<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <%@ page import="com.progress.lang.Character" %> <%@ page import="java.util.*" %> <%@ page import="com.savvion.sbm.bizmanage.api.*" %> <%@ page import="com.savvion.sbm.bizmanage.aim.AimUtil"%> <%@ page import="com.savvion.sbm.bizlogic.server.svo.DateTime" %> <%@ page import="com.savvion.sbm.bizlogic.server.svo.Decimal" %> <%@ page import="org.jfree.chart.JFreeChart"%> <%@ page import="com.savvion.sbm.bpmportal.service.DashboardService"%> <%@ page import="com.savvion.sbm.bpmportal.util.DateTimeUtils"%> <%@ page import="com.savvion.sbm.bpmportal.domain.IWidgetRenderer"%> <%@ page import="com.savvion.sbm.bpmportal.util.PortalConstants" %> <%@ page import="com.savvion.sbm.bpmportal.util.PortalNumberFormatUtil"%> <%@ page import="com.savvion.sbm.bpmportal.util.DataUtil"%> <%@ page import="com.savvion.sbm.bpmportal.util.PortalUtil"%> <%@ page import="com.savvion.sbm.bpmportal.bizsite.util.ServletUtil"%> <%@ include file="./include_tag.jspf" %> <%@ taglib uri="/bpmportal/tld/bpmportal.tld" prefix="sbm" %> <% String locale_lang = bizManage.getLocale().getLanguage() + bizManage.getLocale().getCountry(); boolean isPCTLogin = ServletUtil.isPCTLogin(request); if(isPCTLogin) { %> <%@ include file="../common/include_css_static.jsp" %> <%@ include file="../common/include_javascript.jsp" %> /sbm_content_advanced.css" type=text/css rel=stylesheet> /sbm_content_basics.css" type=text/css rel=stylesheet> <% } %> <% String dwId = ((Long)request.getAttribute("dashboardWidgetId")).toString();%> <% if(isPCTLogin) { %>
<% } %>
<%@ include file="../common/include_form_body.jsp" %>
 : /images/blank.gif" />       :  
<% String ptid = (String)request.getAttribute(IWidgetRenderer.PROCESS_TEMPLATE_ID); String ptname = bizManage.getPTNameFromPTID(ptid); boolean dontUpdate = true; StringBuffer dateConvert = new StringBuffer(""); StringBuffer textAreaCheck = new StringBuffer(""); StringBuffer dateFix = new StringBuffer(""); ArrayList dataslots = (ArrayList)request.getAttribute("dataslots"); for (int i=0;i <% if (dataslot.hasChoices()) { ArrayList allchoices = dataslot.getChoices(); HashMap choiceLabels = dataslot.getChoiceLabels(); %> <% } //end dataslot.hasChoices(); else if (dataslot.isDocument() || dataslot.isObject() || dataslot.isSet() || dataslot.isMap() || dataslot.isList()) { %> <%= ((dataslot.isDocument())?"":"") %> <% } //end dataslot.isDocument() || dataslot.isObject() || dataslot.isSet() || dataslot.isMap() || dataslot.isList() else if (dataslot.isMultiLine()) { %> <% } //end dataslot.isMultiLine() else if (dataslot.isBoolean() || dataslot.isABLLogical()) { %> <% } //end dataslot.isBoolean() else if (dataslot.isString() || dataslot.isURL() || dataslot.isABLCharacter() || dataslot.isABLLongChar()) { String type = "text"; if(dataslot.isPassword()){ type = "password"; } String dsValue = ""; if (dataslot.isABLCharacter() || dataslot.isABLLongChar()) { Character charValue = (Character) dataslot.getValue(); dsValue = charValue.getValue(); dsValue = (dsValue == null) ? "" : AimUtil.getHtmlSafeString(dsValue); } else dsValue = AimUtil.getHtmlSafeString(dataslot.getValue().toString()); %> <% } //end dataslot.isString() || dataslot.isURL else if (dataslot.isLong() || dataslot.isDouble() || dataslot.isABLInteger() || dataslot.isABLInt64()) { String type = "text"; String finalValue = ""; Number nValue = null; try{ if(dataslot.isLong()) nValue = Long.parseLong(dataslot.getValue().toString()); else if(dataslot.isDouble()) nValue = Double.parseDouble(dataslot.getValue().toString()); else if(dataslot.isABLInteger()){ com.progress.lang.Integer intt = (com.progress.lang.Integer)dataslot.getValue(); if(intt.getValue() != null){ nValue = Integer.parseInt(dataslot.getValue().toString()); } } else if(dataslot.isABLInt64()){ com.progress.lang.Int64 int64 = (com.progress.lang.Int64)dataslot.getValue(); if(int64.getValue() != null){ nValue = Long.parseLong(dataslot.getValue().toString()); } } }catch(Exception ex){} if( ! ( nValue == null && (dataslot.isABLInteger() || dataslot.isABLInt64())) ) finalValue = PortalNumberFormatUtil.prepareLocalizedNumber(nValue, bizManage.getLocale()); %> <% } //end dataslot.isLong() || dataslot.isDouble() else if (dataslot.isDecimal()) { Locale locale = bizManage.getLocale(); Decimal decimal = (Decimal) dataslot.getValue(); String dsValue = PortalNumberFormatUtil.prepareLocalizedNumber(decimal.getValue(), locale); %> <% } //end dataslot.isDecimal() else if (dataslot.isABLDecimal()) { String dsValue; Locale locale = bizManage.getLocale(); java.math.BigDecimal bigdecimal = (java.math.BigDecimal) (((com.progress.lang.Decimal)(dataslot.getValue())).getValue()); if(bigdecimal != null) dsValue = PortalNumberFormatUtil.prepareLocalizedNumber(bigdecimal, bizManage.getLocale()); else dsValue = ""; %> <% }// end dataslot.isABLDecimal() else if (dataslot.isDateTime() || dataslot.isABLDateTime()) { String strDateTime = ""; if(dataslot.isABLDateTime()){ java.util.GregorianCalendar gc = (java.util.GregorianCalendar) (((com.progress.lang.DateTimeTZ)(dataslot.getValue())).getValue()); if(gc != null) strDateTime = (gc == null || gc.getTime().toString().length() == 0 )? "" : bizManage.getDate(gc.getTime().getTime(), ptname, dataslot.getName()); }else{ String dsValue=dataslot.getValue().toString(); if (!PortalUtil.isEmpty(dsValue)) { DateTime datetime = (DateTime) dataslot.getValue(); if (datetime != null) { strDateTime = bizManage.getDate(datetime.getValue().getTime(), ptname, dataslot.getName()); } } } String dateFmt = DateTimeUtils.getJSCalendarDateFormat(ptname, dataslot.getName(), bizManage.getLocale(), bizManage.getName()); dateConvert.append("\tdocument.getElementById('").append(dataslot.getName()); dateConvert.append("').value = sbm.date2Long(document.getElementById('").append(dataslot.getName()); dateConvert.append("').value,'").append(dateFmt).append("');\n"); dateFix.append("\tlong2Date(document.getElementById('").append(dataslot.getName()).append("');\n"); %> <% } //end dataslot.isDateTime() else if (dataslot.isXML()) { %> <%= ((dataslot.isXML())?"":"") %> <% } %> <% } %>
"><%= dataslot.getLabel() %>: <% if(dataslot.isRequired()){ %> * <% } %> " width="50%"> " width="50%"><%= dataslot.getValue().toString() %> <% if(dataslot.isDocument()) { %> <% } %> " width="50%"> " width="50%">
<%= ((dataslot.getValue().toString().equalsIgnoreCase("true"))?" checked=\"checked\"":"") %> name="<%= dataslot.getName() %>" value="true" />        <%= ((dataslot.getValue().toString().equalsIgnoreCase("false"))?" checked=\"checked\"":"") %> name="<%= dataslot.getName() %>" value="false" />
" width="50%"> class="InptTxt" name="<%= dataslot.getName() %>" value="<%= dsValue %>" <%= ((dataslot.isString())?"maxlength=\""+dataslot.getSize()+"\"":"") %> size="40" /> " > class="InptTxt" name="<%= dataslot.getName() %>" value="<%= finalValue %>" <%= ((dataslot.isString())?"maxlength=\""+dataslot.getSize()+"\"":"") %> size="40" <%= (dataslot.getValidationType() != null) ? ("alt=\""+dataslot.getValidationType()+"\""):"" %>/> " width="50%">
<%= DataUtil.self().getDecimalPresentation(dataslot.getName(), decimal.getPrecision(), decimal.getScale(), dsValue, dataslot.isRequired(), dontUpdate, dataslot.getLabel(), locale) %>
" width="50%">
id="<%= dataslot.getName() %>" name="<%= dataslot.getName() %>" value="<%= dsValue %>" <%= (dataslot.getValidationType() != null) ? ("alt=\""+dataslot.getValidationType()+"\""):"" %> />
" width="50%">
class="InptTxt" id = "<%= dataslot.getName() %>" name="<%= dataslot.getName() %>" value="<%= strDateTime %>" <%= (dataslot.getValidationType() != null) ? ("alt=\""+dataslot.getValidationType()+"\""):"" %>/> <% if (dontUpdate) { %> /images/calender.gif"> <% } else { %> /images/calender.gif"> <% } %>
" width="50%"> <%= dataslot.getValue().toString() %>
/images/blank.gif" width="1" height="2">
" class="ScrnButton" onmouseover="this.className='ScrnButtonHover';" onmouseout="this.className='ScrnButton';" onclick="javascript:upload();if (sbm.pValidate(document.getElementById('globalDsForm_<%=dwId%>'),'box')) SaveGlobalDsData(document.getElementById('globalDsForm_<%=dwId%>'),'content_','','','','');else return false;" /> " class="ScrnButton" onmouseover="this.className='ScrnButtonHover';" onmouseout="this.className='ScrnButton';" onclick="ResetGlobalDsData(document.getElementById('globalDsForm_<%=dwId%>'),'content_','','','','')" />
<% if(isPCTLogin) { %>
<% } %>