Commit 09bba2f0 authored by ngadkari's avatar ngadkari

Request Id - S17KGTP006 Fin entity wise period open/close facility will be made available.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@181003 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 10c41d2f
Insert into transetup (TRAN_WINDOW,SAVE_FLAG,VAL_FLAG,KEY_FLAG,KEY_STRING,UDF_1,UDF_2,UDF_3,UDF_4,UDF_5,REPEATE_ADD,CHG_DATE,CHG_USER,CHG_TERM,EDI_OPTION,SITE_ACC_COL,CONFIRM_COL,CONFIRM_VAL,REPEAT_ADD_DET,REPEATADDDET,LOAD_MODE,AUTO_CONFIRM,LEDG_POST_CONF,CHG_DATE_ON_CONF,TRAN_ID_COL,MAIL_OPTION,CONFIRM_MODE,GARBAGE_OPT,VAL_FLAG_EDI,VERIFY_PASSWORD,CUST_ACC_COL,SALES_PERS_ACC_COL,SUPP_ACC_COL,ITEM_SER_ACC_CODE,EMP_ACC_COL,ITEM_SER_ACC_COL,WORKFLOW_OPT,TABLE_NAME,APPLICATION,TABLE_DESC,TRAN_DATE_COL,TRAN_ID__FROM,TRAN_ID__TO,TABLE_NAME_DET1,TABLE_NAME_DET2,TABLE_NAME_DET3,MULTITIRE_OPT,REF_SER,VIEW_MODE,TAX_FORMS,SIGN_STATUS,USER_TRAN_WINDOW,CUSTOM_PREVIEW_OBJ,IGNOREERRLIST_ONLOAD,CHILDDATA_ARGOPT,EDIT_TMPLT,WRKFLW_INIT,EDITTAX,FORMAL_ARGS,AUDIT_TRAIL_OPT,EDIT_OPT,CACHE_OPT,OPTIMIZE_MODE,EDIT_EXPR,RATE_COL,QTY_COL,EDIT_EXPR_INP,RCP_CACHE_STATUS,PRINT_CONTROL,TRANSFER_MODE,PROFILE_ID__RES,TRAN_COMPL_MSG,PERIOD_OPTION,WRKFLW_PRIORITY,EXEC_TYPE,DISP_META_DATA,ALLOW_ATTACH,START_FORM,ISATTACHMENT,HEADER_FORM_NO,CONFIRM_DATE_COL,CONFIRM_BY_COL,BROW_DATA_DEF,DEF_VIEW,VIEW_OPTS,ISGWTINITIATED,FUNCTION_TYPE,COMPL_ACTION,CANCEL_COL,CANCEL_VAL,IN_WF_COL,IN_WF_VAL,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,DEFAULT_DATA_ROW,ATTACH_COUNT_MIN,MSG_ONSAVE,WF_STATUS,CMS_PATH,RESTART_FORM,DEFAULT_EDITOR,MSG_NO,OBJ_TYPE,ENABLE_EDITOR) values ('w_periodStatUpd_wiz','2','2','M','seq10',null,null,null,null,null,'N',to_date('07-DEC-17','DD-MON-RR'),'BASE ','1 ','0',null,null,null,null,null,null,null,null,null,'TRAN_ID',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'2',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
SET DEFINE OFF;
Insert into itm2menu (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY,DEFAULT_STATE,DEF_ACTION) values ('SYS',4,35,0,0,0,'/ibase/webitm/jsp/E12WizardPage.jsp?OBJ_NAME=periodStatUpd_wiz&FORM_NO=1','Period Stat Upd',null,'SYS.4.35.0.0.0','plistgen_wiz.png',null,null,'I',null,null,null,null,null,null);
Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY,DUPLICATE_ADD,FREEZE_COL_POS,DEFAULT_ROW_CNT,IS_MANDATORY,TRAN_ID_COL,SELECTION_OPT,KEY_INFO,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,FORM_ICON,FORM_NAME,FORM_VIEW_OPTS,X_COLUMN,Y_COLUMN) values ('w_periodStatUpd_wiz','Prd wizard',null,null,null,null,null,null,'2',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY,DUPLICATE_ADD,FREEZE_COL_POS,DEFAULT_ROW_CNT,IS_MANDATORY,TRAN_ID_COL,SELECTION_OPT,KEY_INFO,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,FORM_ICON,FORM_NAME,FORM_VIEW_OPTS,X_COLUMN,Y_COLUMN) values ('w_periodStatUpd_wiz','Prd wizard',null,null,null,null,null,null,'1',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('periodStatUpd_wiz','default_data_wiz','1','poic_default_ejb',null,'0',to_date('01-MAR-17','DD-MON-RR'),'BASE ','BASE','2','EJB','PeriodStatUpdWiz',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('periodStatUpd_wiz','post_item_change','1','poic_default_ejb',null,'0',to_date('01-MAR-17','DD-MON-RR'),'BASE ','BASE','2','EJB','PeriodStatUpdWiz',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('periodStatUpd_wiz','post_save','1','pos_save_defalut_ejb',null,'0',to_date('01-MAR-17','DD-MON-RR'),'BASE ','BASE','2','EJB','PeriodStatUpdWizPos',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('periodStatUpd_wiz','pre_navigate','1','prv_default_ejb',null,'0',to_date('01-MAR-17','DD-MON-RR'),'BASE ','BASE','2','EJB','PeriodStatUpdWiz',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('periodStatUpd_wiz','pre_validate','1','prv_default_ejb',null,'0',to_date('01-MAR-17','DD-MON-RR'),'BASE ','BASE','2','EJB','PeriodStatUpdWiz',null);
$PBExportHeader$d_period_stat_upd12.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=19 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=22 color="536870912" )
table(column=(type=char(10) updatewhereclause=yes name=site_code dbname="site_code" )
column=(type=char(60) updatewhereclause=yes name=descr dbname="descr" )
column=(type=char(20) updatewhereclause=yes name=prd_code dbname="prd_code" )
column=(type=char(10) updatewhereclause=yes name=stat_adm dbname="stat_adm" values="Yes Y/No N/" )
column=(type=char(10) updatewhereclause=yes name=stat_fin dbname="stat_fin" values="Yes Y/No N/" )
column=(type=char(10) updatewhereclause=yes name=stat_sal dbname="stat_sal" values="Yes Y/No N/" )
column=(type=char(10) updatewhereclause=yes name=stat_ic dbname="stat_ic" values="Yes Y/No N/" )
column=(type=char(10) updatewhereclause=yes name=stat_pur dbname="stat_pur" values="Yes Y/No N/" )
column=(type=char(10) updatewhereclause=yes name=stat_mfg dbname="stat_mfg" values="Yes Y/No N/" )
)
text(band=header alignment="2" text="Period Code" border="6" color="33554432" x="419" y="2" height="15" width="160" html.valueishtml="0" name=prd_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Admin " border="6" color="33554432" x="581" y="2" height="15" width="120" html.valueishtml="0" name=stat_adm_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Manufacturing " border="6" color="33554432" x="1104" y="2" height="15" width="133" html.valueishtml="0" name=stat_mfg_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Sales " border="6" color="33554432" x="809" y="2" height="15" width="93" html.valueishtml="0" name=stat_sal_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Inventory" border="6" color="33554432" x="904" y="2" height="15" width="97" html.valueishtml="0" name=stat_ic_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Purchase " border="6" color="33554432" x="1003" y="2" height="15" width="99" html.valueishtml="0" name=stat_pur_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Finance" border="6" color="33554432" x="703" y="2" height="15" width="104" html.valueishtml="0" name=stat_fin_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Site Code" border="6" color="33554432" x="2" y="2" height="15" width="160" html.valueishtml="0" name=site_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Descrption " border="6" color="33554432" x="164" y="2" height="15" width="253" html.valueishtml="0" name=descr_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=9 alignment="0" tabsequence=60 border="5" color="33554432" x="1104" y="2" height="18" width="133" format="[Yes/No]" html.valueishtml="0" name=stat_mfg visible="1" ddlb.limit=1 ddlb.allowedit=yes ddlb.case=any ddlb.showlist=yes ddlb.useasborder=yes ddlb.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=4 alignment="0" tabsequence=10 border="5" color="33554432" x="581" y="2" height="18" width="120" format="[Yes/No]" html.valueishtml="0" name=stat_adm visible="1" ddlb.limit=1 ddlb.allowedit=yes ddlb.case=any ddlb.showlist=yes ddlb.useasborder=yes ddlb.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=32766 border="5" color="33554432" x="419" y="2" height="18" width="160" format="[general]" html.valueishtml="0" name=prd_code visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=6 alignment="0" tabsequence=30 border="5" color="33554432" x="809" y="2" height="18" width="93" format="[Yes/No]" html.valueishtml="0" name=stat_sal visible="1" ddlb.limit=1 ddlb.allowedit=yes ddlb.case=any ddlb.showlist=yes ddlb.useasborder=yes ddlb.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=20 border="5" color="33554432" x="703" y="2" height="18" width="104" format="[general]" html.valueishtml="0" name=stat_fin visible="1" ddlb.limit=1 ddlb.allowedit=yes ddlb.case=any ddlb.showlist=yes ddlb.useasborder=yes ddlb.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="0" tabsequence=50 border="5" color="33554432" x="1003" y="2" height="18" width="99" format="[Yes/No]" html.valueishtml="0" name=stat_pur visible="1" ddlb.limit=1 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="0" tabsequence=40 border="5" color="33554432" x="904" y="2" height="18" width="97" format="[Yes/No]" html.valueishtml="0" name=stat_ic visible="1" ddlb.limit=1 ddlb.allowedit=yes ddlb.case=any ddlb.showlist=yes ddlb.useasborder=yes ddlb.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="33554432" x="164" y="2" height="18" width="253" format="[general]" html.valueishtml="0" name=descr visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="33554432" x="2" y="2" height="18" width="160" format="[general]" html.valueishtml="0" name=site_code visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
$PBExportHeader$d_period_stat_upd11.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=220 color="536870912" )
table(column=(type=char(20) updatewhereclause=yes name=fin_entity dbname="fin_entity" )
column=(type=char(20) updatewhereclause=yes name=prd_code__from dbname="prd_code__from" )
column=(type=char(20) updatewhereclause=yes name=prd_code__to dbname="prd_code__to" )
)
groupbox(band=detail text="Basic "border="5" color="33554432" x="18" y="25" height="124" width="254" name=gb_1 visible="1" font.face="Liberation Sans" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Financial entity :" border="0" color="33554432" x="36" y="51" height="15" width="96" html.valueishtml="0" name=fin_entity_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Period from :" border="0" color="33554432" x="58" y="84" height="15" width="74" html.valueishtml="0" name=prd_code__from_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Period to :" border="0" color="33554432" x="68" y="117" height="15" width="64" html.valueishtml="0" name=prd_code__to_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="33554432" x="140" y="51" height="18" width="85" format="[general]" html.valueishtml="0" name=fin_entity visible="1" edit.limit=20 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=20 border="5" color="33554432" x="140" y="85" height="18" width="85" format="[general]" html.valueishtml="0" name=prd_code__from visible="1" edit.limit=20 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=30 border="5" color="33554432" x="140" y="117" height="18" width="85" format="[general]" html.valueishtml="0" name=prd_code__to visible="1" edit.limit=20 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
var userTheme='galaxy-theme';
var popHelpId = '',curFieldVal='';
var isServerBusy = false;
var httpRequest;
var xmlHTTPResponse;
var global_date_type = "date";
var global_date_format = "dd/MM/yyyy";
var preErrData = "";
var sorttable = "";
var divArray = new Array();
var lastSerachSuggestionMap = {};
var prevRemoveEnable = "";
var servletUrl = "/ibase/PeriodStatUpdWizServlet?";
var preFieldVal = "";
var thumbImgColNames = ["image_path","add_click_event","thumb_ref_id","thumb_ref_ser","thumb_ref_id_descr"];
if (window.ActiveXObject) /*code for IE6, IE5*/
{
httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest) /*code for IE7+, Firefox, Chrome, Opera, Safari*/
{
httpRequest = new XMLHttpRequest();
}
function getListOfValues(fieldName,fieldId,siteCode,popUpParam)
{
var url = "", keyStringVal = "NULL", urlParamString = "",chkgrp="";
popHelpId = fieldId;
if(document.getElementById(popHelpId).value.trim() != "" || document.getElementById(popHelpId).value != null)
{
curFieldVal = document.getElementById(popHelpId).value;
}
if(fieldId.trim()=="Detail1.1.grp_code")
{
chkgrp=document.getElementById("Detail1.1.product_code").value;
if(chkgrp==null || chkgrp.trim().length<=0 )
{
alert("Please enter product code");
}
}
if(popUpParam != undefined && popUpParam.trim().length>0 )
{
keyStringVal = "0."+popUpParam;
urlParamString = "&"+ popUpParam +"="+document.getElementById("Detail1.1."+popUpParam).value;
}
var addObjName = "periodStatUpd_wiz";
url = "/ibase/webitm/jsp/PopUp.jsp?FIELDNAME="+escape(fieldName)+"&KEYSTRING="+keyStringVal+"&OBJ_NAME="+addObjName+urlParamString;
var fullwidth = eval(screen.width)/2-130;
var iFrame = '<iframe id="popHelpIframe" name ="popHelpIframe" src="'+url+'" style = "width:'+fullwidth+'; height: 100%; border: 0px; bottom:0%;"></iframe>';
var popHlpCntnr = document.getElementById( "popHelpContainer" );
popHlpCntnr.innerHTML = iFrame;
popHlpCntnr.setAttribute( "style", "position: absolute; z-index: 1004; visibility:visible;width:"+fullwidth+";height: 98%; float: right; right: 0%; bottom:1%");
var overlay = document.getElementById( "overlay" );
overlay.setAttribute( "style", "position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color:#000; opacity: .45; z-index:1003; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;");
if(prevRemoveEnable!= "")
{
prevRemoveEnable.style.visibility = "hidden";
}
}
function assignValue(value)
{
document.getElementById(popHelpId).value = value;
document.getElementById(popHelpId).focus();
document.getElementById(popHelpId).blur();
}
function closeMe()
{
document.getElementById("popHelpContainer").style.display='none';
document.getElementById("popHelpContainer").innerHTML = '';
var overlay = document.getElementById( "overlay" );
overlay.removeAttribute('style');
}
function getAutoPopupData(curObj)
{
if(curObj != undefined)
{
if(curObj.value.length == 4 )
{
var curFieldName = curObj.attributes.popupFldName.value;
var addObjName = "&OBJ_NAME=periodStatUpd_wiz";
var urlParamString = "";
var searchListURL = "/ibase/PopupDataServlet?FIELDNAME="+escape(curFieldName)+"&KEYSTRING=NULL"+addObjName;
var searchKey = curFieldName+"~~SEP~~"+urlParamString;
if ( searchKey in lastSerachSuggestionMap )
{
console.log("From lastSerachSuggestionMap");
console.log("searchKey - ["+ searchKey +"], lastSerachSuggestionMap - ["+ lastSerachSuggestionMap[searchKey] +"]");
parseJsonData(lastSerachSuggestionMap[searchKey]);
showAutoSerach(curObj);
}
else
{
console.log("From server");
$.ajax({
async : false,
url : searchListURL,
dataType : 'xml',
type : 'POST',
success : function(result) {
lastSerachSuggestionMap[searchKey] = result;
parseJsonData( result );
showAutoSerach( curObj);
console.log("searchKey in else - ["+ searchKey +"], lastSerachSuggestionMap - ["+ lastSerachSuggestionMap[searchKey] +"]");
},
error : function(result) {
}
});
}
}
}
}
function parseJsonData(result)
{
searchList = [];
var default_col = 0;
if ( result.getElementsByTagName('DEFAULT_COL')[0].childNodes != undefined )
{
default_col = (result.getElementsByTagName('DEFAULT_COL')[0].childNodes[0].nodeValue) - 1;
}
//Added by Santosh on 12-01-2018 to add default thumb image column in default_col
default_col = parseInt(default_col) + 5;
var detail = result.getElementsByTagName('DETAIL');
if (detail != undefined)
{
for ( var i = 0; i < detail.length; i++)
{
var nodes = detail[i].childNodes;
var id = "", value = "";
var searchData = {};
var detailData = "";
if (nodes != undefined)
{
for ( var j = 0; j < nodes.length; j++ )
{
id = nodes[default_col].childNodes[0].nodeValue;
if ( nodes[j].childNodes[0].nodeValue != "" )
{
value = value + nodes[j].childNodes[0].nodeValue + " | ";
}
if ( nodes[j].childNodes[0].nodeValue != "" )
{
detailData = nodes[j].childNodes[0].nodeValue;
}
else
{
detailData = "-";
}
if("image_path" == nodes[j].nodeName)
{
searchData['imgPth'] = value.trim();
}
if(thumbImgColNames.includes(nodes[j].nodeName.trim()))
{
continue;
}
searchData['id'] = id.trim();
searchData['label'] = value.trim();
searchData['value'] = id.trim();
searchData[nodes[j].nodeName] = detailData;
}
searchList.push(searchData);
}
}
}
}
function showAutoSerach(element)
{
try
{
$.widget('custom.mcautocomplete', $.ui.autocomplete, {
_create: function() {
this._super();
this.widget().menu( "option", "items", "> :not(.ui-widget-header)" );
},
_renderMenu: function(ul, items) {
var self = this, thead;
if (this.options.showHeader) {
table=$('<div class="ui-widget-header" style="width:100%"></div>');
$.each(this.options.columns, function(index, item) {
table.append('<span style="padding:0 4px;float:left;width:' + item.width + ';">' + item.name + '</span>');
});
table.append('<div style="clear: both;"></div>');
ul.append(table);
}
$.each(items, function(index, item) {
self._renderItem(ul, item);
self._renderItem1(ul, item);
});
},
_renderItem: function(ul, item) {
var data = '',
result = '';
var iconData = '';
for ( var i in item)
{
if( i == 'imgPth')
{
if(item[i].trim() != '')
{
iconData += '<span><img class="feedImgPnl" src='+item[i].trim()+'></img></span>';
}
}
if (item[i] != undefined && i != 'value' && i != 'label' && i != 'id' && i != 'imgPth')
{
if(divArray[i] != null && divArray[i]!= undefined && divArray[i] < item[i].length)
{
divArray[i] = item[i].length;
}
else
{
if(divArray[i] == null)
{
divArray[i] = item[i].length;
}
}
var divLen = 0;
divLen = divArray[i];
divLen = divLen * 10;
data += '<span class="myClass'+i+'">' + item[i] + '</span>';
$('.myClass'+i).css('padding', '0 4px');
$('.myClass'+i).css('float', 'left');
$('.myClass'+i).css('width', divLen+"px");
$('.myClass'+i).css('position', 'relative');
$('.myClass'+i).css('display', 'inline-block');
}
}
result = $('<li></li>')
.data('ui-autocomplete-item', item)
.append('<a class="mcacAnchor" style="width:700px;"><div style="float:left;padding-right:4px;">'+iconData+'</div><div style="width:700px;height:32px;line-height:32px">' + data + '<div style="clear: both;"></div></div></a>')
.appendTo(ul);
return result;
},
_renderItem1: function(ul, item) {
var data = '',
result = '';
for ( var i in item)
{
if (item[i] != undefined && i != 'value' && i != 'label' && i != 'id')
{
if(divArray[i] != null && divArray[i]!= undefined && divArray[i] < item[i].length)
{
divArray[i] = item[i].length;
}
else
{
if(divArray[i] == null)
{
divArray[i] = item[i].length;
}
}
var divLen = 0;
divLen = divArray[i];
divLen = divLen * 10;
data += '<span class="myClass'+i+'">' + item[i] + '</span>';
$('.myClass'+i).css('padding', '0 4px');
$('.myClass'+i).css('float', 'left');
$('.myClass'+i).css('width', divLen+"px");
$('.myClass'+i).css('position', 'relative');
$('.myClass'+i).css('display', 'inline-block');
}
}
}
});
$( element )
.mcautocomplete({
autoFocus: true,
showHeader: false,
source : searchList,
minLength :3,
select : function(event, ui) {
document.getElementById(element.id).value = ui.item.id;
},
});
if(!$( element ).mcautocomplete( "widget" ).is( ":visible" ))
{
$( element ).mcautocomplete("search", "");
}
}
catch (e)
{
console.log("ERROR\n: " + e);
}
}
function validateSubmit()
{
var isDetailRowSelected = false;
var element = $( "input[type=checkbox]:checked" );
var DOMeles = element.get();
if(DOMeles.length > 0)
{
isDetailRowSelected = true;
}
if(!isDetailRowSelected)
{
alert("Please select atleast one row to process.")
return isDetailRowSelected;
}
else
{
var qty=document.getElementById("offer_free_qty").value;
var qtyOn=document.getElementById("offer_free_on").value;
var disc1=document.getElementById("disc_perc").value;
if( disc1 != null && disc1 != undefined && disc1.trim().length > 0)
{
for( var i=0; i<DOMeles.length; i++)
{
if(DOMeles[i].getAttribute("id").indexOf("parentCheckbox") == -1)
{
var textBoxId = DOMeles[i].getAttribute("textBoxID");
var percVal = document.getElementById("Detail2."+textBoxId+".disc_perc").value;
if(percVal > 100)
{
document.getElementById("offrOrQty"+textBoxId).style.display = "block";
alert("Discount percentage cannot be greater than 100.");
return false;
break;
}
}
}
}
document.getElementById("buttonreplacement").style.display = "block";
var overlay = document.getElementById( "overlay" );
overlay.setAttribute( "style", "position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color:#000; opacity: .45; z-index:1003; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;");
var htmlBody = document.getElementsByTagName("body")[0];
var htmlData = htmlBody.innerHTML;
var url = servletUrl+"action=SAVE_DETAIL_DATA&HTML_DATA="+encodeURIComponent(htmlData)+"";
makeRequest(url, dataSavedInSess);
return isDetailRowSelected;
}
}
function dataSavedInSess(retVal)
{
console.log("Data saved in Session!");
}
function callItemChange(currentColumn, curObj)
{
var currXmlDataStr = '', hdrXmlDataStr = '', allXmlDataStr = '', objContext = '', editFlag = 'A';
var element = $( "[name^='Detail1.1.']" );
var DOMeles = element.get();
if(preFieldVal != curObj.value)
{
preFieldVal = curObj.value;
objContext = document.getElementById("FORM_NO").value;
currXmlDataStr = "<Detail1 domID='1' id='1' objContext='1'>";
currXmlDataStr = currXmlDataStr + "<OBJ_NAME><![CDATA[PeriodStatUpdWiz]]></OBJ_NAME>";
currXmlDataStr = currXmlDataStr + "<PAGE_CONTEXT><![CDATA["+objContext+"]]></PAGE_CONTEXT>";
currXmlDataStr = currXmlDataStr + "<OBJ_CONTEXT><![CDATA["+objContext+"]]></OBJ_CONTEXT>";
currXmlDataStr = currXmlDataStr + "<EDIT_FLAG><![CDATA["+editFlag+"]]></EDIT_FLAG>";
currXmlDataStr = currXmlDataStr + "<EDIT_TMPLT><![CDATA[-1]]></EDIT_TMPLT>";
for (var i = 0; i < DOMeles.length; i++)
{
if ( DOMeles[i] != null )
{
var nodeValue = '', nodeId = '';
var nodeName = DOMeles[i].getAttribute('name');
nodeName = nodeName.substr(nodeName.lastIndexOf('.')+1);
nodeId = DOMeles[i].getAttribute('id');
nodeValue = document.getElementById(nodeId).value;
if(nodeValue.trim().length > 0 && nodeValue.trim() != '')
{
currXmlDataStr = currXmlDataStr + "<" + nodeName + ">" +
"<![CDATA[" + nodeValue + "]]>" +
"</" + nodeName + ">";
}
else
{
currXmlDataStr += "<"+ nodeName +"/>";
}
}
}
currXmlDataStr = currXmlDataStr + "</Detail1>";
hdrXmlDataStr = "<DocumentRoot>";
hdrXmlDataStr += "<description>Datawindow Root</description>";
hdrXmlDataStr += "<group0><description>Group0 description</description>";
hdrXmlDataStr += "<Header0><description>Header0 members</description>";
hdrXmlDataStr += currXmlDataStr;
hdrXmlDataStr += "</Header0></group0></DocumentRoot>";
allXmlDataStr = "<DocumentRoot>";
allXmlDataStr += "<description>Datawindow Root</description>";
allXmlDataStr += "<group0><description>Group0 description</description>";
allXmlDataStr += "<Header0><description>Header0 members</description>";
allXmlDataStr += "<DocumentRoot>";
allXmlDataStr += "<description>Datawindow Root</description>";
allXmlDataStr += "<group0><description>Group0 description</description>";
allXmlDataStr += "<Header0><description>Header0 members</description>";
allXmlDataStr += currXmlDataStr;
allXmlDataStr += "</Header0></group0></DocumentRoot>";
allXmlDataStr += "</Header0></group0></DocumentRoot>";
var url = servletUrl+"action=ITEM_CHANGE&CUR_XML_STR="+escape(currXmlDataStr)+"&HDR_XML_STR="+escape(hdrXmlDataStr)+"&ALL_XML_STR="+escape(allXmlDataStr)+"&CUR_COLUMN="+currentColumn+"&OBJ_CONTEXT="+objContext+"&EDIT_FLAG="+editFlag+"";
makeRequest( url, setItemChangeValues);
}
}
function makeRequest(url,setItemChangeValues)
{
var sURL = unescape(window.location);
if( ! isServerBusy )
{
isServerBusy = true;
httpRequest.open("POST", url, false);
httpRequest.onreadystatechange = function()
{
receiveResponse(setItemChangeValues);
};
httpRequest.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded; charset=UTF-8" );
httpRequest.send( null );
}
}
function receiveResponse(setItemChangeValues)
{
if (httpRequest.readyState == 4)
{
if(httpRequest.status == 200)
{
processResponse(setItemChangeValues);
}
else
{
alert("Error loading page\n"+ httpRequest.status +":"+ httpRequest.statusText);
}
}
}
function processResponse(setItemChangeValues)
{
var returnStr = null;
isProcessOn = false;
if ( window.ActiveXObject )
{
xmldoc = httpRequest.responseText;
xmlHTTPResponse = xmldoc;
}
else
{
try
{
var parser = new DOMParser();
xmldoc = httpRequest.responseText;
}
catch(e)
{
alert("inside catch:"+e.message);
}
}
setItemChangeValues(xmldoc);
isServerBusy = false;
}
function loadXMLString(txt)
{
if (window.DOMParser)
{
parser=new DOMParser();
xmlDoc=parser.parseFromString(txt,"text/xml");
}
else /* code for IE*/
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.loadXML(txt);
}
return xmlDoc;
}
function setItemChangeValues(retVal)
{
var xmlDoc = loadXMLString(retVal);
var rootNodeList = xmlDoc.getElementsByTagName( "Root" );
if( rootNodeList.length == 1 )
{
var rootNode = rootNodeList.item(0);
var childNodeList = rootNode.childNodes;
var noOfTopLevelChilds = childNodeList.length;
for(var i = 0; i < noOfTopLevelChilds; i++)
{
if(childNodeList.item(i).nodeName == 'Detail1')
{
var detailNode = childNodeList.item(i);
var colNodeList = detailNode.childNodes;
var colCount = colNodeList.length;
var colProtect = "";
for(var fieldCtr = 0; fieldCtr < colCount; fieldCtr++)
{
var colNode = colNodeList.item(fieldCtr);
var nodeName = colNode.nodeName;
var newNodeValue = '';
if (colNode.firstChild != null || colNode.firstChild != undefined)
{
newNodeValue = colNode.firstChild.nodeValue;
if(nodeName == 'due_date__from' || nodeName == 'due_date__to')
{
document.getElementById(nodeName).value = newNodeValue;
}
else
{
document.getElementById("Detail1.1."+nodeName).value = newNodeValue;
}
}
if( colNode.attributes != null && colNode.attributes != undefined )
{
colProtect = colNode.attributes.getNamedItem("protect");
if (colProtect != null && colProtect != undefined)
{
if ( colProtect.value == 1)
{
if(document.getElementById("Detail1.1."+nodeName).tagName == 'SELECT')
{
document.getElementById("Detail1.1."+nodeName).disabled=true;
}
else
{
document.getElementById("Detail1.1."+nodeName).disabled=true;
document.getElementById("Detail1.1."+nodeName).value = "";
document.getElementById("Detail1.1."+nodeName).readOnly = true;
document.getElementById("Detail1.1."+nodeName).className = "editDisplayClass";
}
}
else
{
if(document.getElementById("Detail1.1."+nodeName).tagName == 'SELECT')
{
document.getElementById("Detail1.1."+nodeName).disabled=false;
document.getElementById("Detail1.1."+nodeName).style.visibility = "visible";
}
else
{
document.getElementById("Detail1.1."+nodeName).style.visibility = "visible";
document.getElementById("Detail1.1."+nodeName).disabled=false;
document.getElementById("Detail1.1."+nodeName).readOnly = false;
document.getElementById("Detail1.1."+nodeName).focus();
document.getElementById("Detail1.1."+nodeName).value = "";
document.getElementById("Detail1.1."+nodeName).className = "editInputClass";
}
}
}
}
}
}
}
}
}
function setDate(fieldId)
{
var dateFormat = "";
if (document.getElementById('date_format') != null)
{
global_date_format = document.getElementById("date_format").value;
}
if ( global_date_format == "dd/MM/yy" )
{
dateFormat = "d/m/y";
}
else if ( global_date_format == "dd-MMM-yyyy" )
{
dateFormat = "d/M/y";
}
else if ( global_date_format == "MM/dd/yy" )
{
dateFormat = "m/d/y";
}
else
{
dateFormat = "d/m/y";
}
$("#"+fieldId).datetimepicker({
timepicker:false,
//minDate : 0,
format: dateFormat
});
if(!$("#filter_date").datetimepicker( "widget" ).is(":visible"))
{
$( "#"+fieldId ).datetimepicker("show");
}
if(prevRemoveEnable!= "")
{
prevRemoveEnable.style.visibility = "hidden";
}
}
function formatDate()
{
var dateFormat = "";
if (document.getElementById('date_format') != null)
{
global_date_format = document.getElementById("date_format").value;
}
if ( global_date_format == "dd/MM/yy" )
{
dateFormat = "d/m/y";
}
else if ( global_date_format == "dd-MMM-yyyy" )
{
dateFormat = "d/M/y";
}
else if ( global_date_format == "MM/dd/yy" )
{
dateFormat = "m/d/y";
}
else
{
dateFormat = "d/m/y";
}
$('#eff_from').datetimepicker({
format: dateFormat,
timepicker:false,
});
$('#valid_upto').datetimepicker({
format: dateFormat,
timepicker:false,
});
}
function displayWaitImg()
{
document.getElementById("buttonreplacement").style.display = "block";
var overlay = document.getElementById( "overlay" );
overlay.setAttribute( "style", "position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color:#000; opacity: .45; z-index:1003; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;");
return true;
}
function form2Previous()
{
document.getElementById("errorActivityTable").style.display = "none";
document.getElementById("action").value="previous";
var element = $( "input[name^='Detail2.0.']" );
var DOMeles = element.get();
var xmlString = "<?xml version = \"1.0\"?><Root><header><editFlag></editFlag></header>" +
"<Detail1 domID='1' selected = 'N'>";
for (var i = 0; i < DOMeles.length; i++)
{
if ( DOMeles[i] != null )
{
xmlString = xmlString + "<" + DOMeles[i].getAttribute('id') + ">" +
"<![CDATA[" + DOMeles[i].getAttribute('value') + "]]>" +
"</" + DOMeles[i].getAttribute('id') + ">";
}
}
xmlString = xmlString + "</Detail1></Root>";
document.getElementById("PRE_FORM_VAL").value = xmlString;
document.getElementById("buttonreplacement").style.display = "block";
var overlay = document.getElementById( "overlay" );
overlay.setAttribute( "style", "position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color:#000; opacity: .45; z-index:1003; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;");
document.getElementById("PeriodStatUpdWizform2").action = "/ibase/PeriodStatUpdWizServlet";
document.getElementById("PeriodStatUpdWizform2").submit();
}
function doHideMsg(erroTable)
{
document.getElementById(erroTable).style.display = "none";
}
function displayPopUpIcon(popUpID)
{
if(prevRemoveEnable!= "")
{
prevRemoveEnable.style.visibility = "hidden";
}
prevRemoveEnable = document.getElementById(popUpID);
document.getElementById(popUpID).style.visibility = "visible";
}
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : evt.keyCode;
if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
}
function goToHomePage(objName)
{
var url = "E12WizardPage.jsp?OBJ_NAME="+objName;
window.location.href = url;
}
function setSelected(obj)
{
var selectVal = obj.value;
for (var i = 0; i < obj.length; i++)
{
if(selectVal == obj.options[i].getAttribute("value"))
{
obj.options[i].setAttribute('selected', 'selected');
}
else
{
obj.options[i].removeAttribute('selected');
}
}
}
function formatDetailWithErr()
{
preErrData = document.getElementById("innerDiv").innerHTML;
var url = servletUrl+"action=DISPLAY_DETAIL_DATA";
makeRequest(url,displayDataFromSession);
}
function displayDataFromSession(retHtmlData)
{
var htmlBody = document.getElementsByTagName("body")[0];
htmlBody.innerHTML = retHtmlData;
if(document.getElementById("innerDiv") != null)
{
document.getElementById("innerDiv").innerHTML = preErrData;
}
var overlay = document.getElementById( "overlay" );
overlay.removeAttribute('style');
document.getElementById("buttonreplacement").style.display = "none";
}
function setActionVal(action)
{
document.getElementById("action").value = action;
}
function validateHeaderForm(){
var qty=document.getElementById("Detail1.1.offer_free_qty").value;
var qtyOn=document.getElementById("Detail1.1.offer_free_on").value;
var prdCode=document.getElementById("Detail1.1.product_code").value;
var effFrom=document.getElementById("eff_from").value;
var validUpto=document.getElementById("valid_upto").value;
//var effFromDate= new Date(effFrom);
//var validUptoDate= new Date(validUpto);
var disc1=document.getElementById("Detail1.1.disc_perc").value;
var offerRBtn= document.getElementById("Detail1.1.offer").checked;
var discountRBtn=document.getElementById("Detail1.1.discount").checked;
if(prdCode == null || prdCode == "")
{
alert("Please enter Product Code.");
return false;
}
if(effFrom == null || effFrom == "")
{
alert("Please enter effective date.");
return false;
}
if(validUpto == null || validUpto == "")
{
alert("Please enter Valid Upto date.");
return false;
}
if(effFrom != null && validUpto != null )
{
var value1=effFrom.split('/');
var effFrom1=value1[1]+"/"+value1[0]+"/"+value1[2];
var value2=validUpto.split('/');
var validUpto1=value2[1]+"/"+value2[0]+"/"+value2[2];
var d1=new Date(effFrom1).getTime();
var d2=new Date(validUpto1).getTime();
if(d1>d2)
{
alert("Effective from cannot be greater than valid upto");
return false;
}
}
if( !offerRBtn && !discountRBtn)
{
alert("Please select Offer/Discount");
return false;
}
if(offerRBtn)
{
if(qty == null || qty == "" )
{
alert("Please enter Free Quantity");
return false;
}
if(qty <=0)
{
alert("Free Qty should be greater than zero");
return false;
}
if(qtyOn == null || qtyOn == "")
{
alert("Please enter Free On.");
return false;
}
if(qtyOn <=0)
{
alert("Free On should be greater than zero");
return false;
}
}
if(discountRBtn)
{
if(disc1 == null || disc1 == "")
{
alert("Please enter Discount percent.");
return false;
}
else if (parseInt(disc1) > 100)
{
alert("Discount percentage can not be greater than 100.");
return false;
}
}
return true;
}
function enableTextBox(fieldName)
{
if("offer" == fieldName)
{
document.getElementById("Detail1.1.offer_free_qty").removeAttribute("readonly");
document.getElementById("Detail1.1.offer_free_on").removeAttribute("readonly");
document.getElementById("Detail1.1.offer_free_qty").classList.remove("editDisplayClass");
document.getElementById("Detail1.1.offer_free_on").classList.remove("editDisplayClass");
document.getElementById("Detail1.1.offer_free_qty").focus();
document.getElementById("Detail1.1.offer_free_qty").classList.remove("input_editable");
document.getElementById("Detail1.1.offer_free_on").classList.remove("input_editable");
document.getElementById("Detail1.1.disc_perc").classList.add("editDisplayClass");
document.getElementById("Detail1.1.disc_perc").setAttribute("readonly","true");
document.getElementById("Detail1.1.disc_perc").value = "";
}
else if( "discount" == fieldName)
{
document.getElementById("Detail1.1.disc_perc").removeAttribute("readonly");
document.getElementById("Detail1.1.disc_perc").classList.remove("editDisplayClass");
document.getElementById("Detail1.1.disc_perc").classList.add("input_editable");
document.getElementById("Detail1.1.disc_perc").focus();
document.getElementById("Detail1.1.offer_free_qty").value = "";
document.getElementById("Detail1.1.offer_free_on").value = "";
document.getElementById("Detail1.1.offer_free_on").classList.add("editDisplayClass");
document.getElementById("Detail1.1.offer_free_qty").classList.add("editDisplayClass");
document.getElementById("Detail1.1.offer_free_qty").setAttribute("readonly","true");
document.getElementById("Detail1.1.offer_free_on").setAttribute("readonly","true");
}
}
function displayOfferDiv(domId)
{
document.getElementById("offrOrQty"+domId).style.display = "block";
}
function hideOfferDiv(domId)
{
var hideDiv = true;
var qty=document.getElementById("offer_free_qty").value;
var qtyOn=document.getElementById("offer_free_on").value;
var disc1=document.getElementById("disc_perc").value;
if( disc1 != null && disc1 != undefined && disc1.trim().length > 0)
{
var percVal = document.getElementById("Detail2."+domId+".disc_perc").value;
if(percVal > 100)
{
document.getElementById("offrOrQty"+domId).style.display = "block";
alert("Discount percentage cannot be greater than 100.");
hideDiv = false;
}
}
if(hideDiv)
{
document.getElementById("offrOrQty"+domId).style.display = "none";
}
}
function checkChildChkBox(curAccorObj, event)
{
var nextPanelDiv = curAccorObj.parentElement.nextElementSibling;
var inputElems = nextPanelDiv.getElementsByTagName("input");
if(curAccorObj.checked)
{
if(nextPanelDiv.classList.contains("show"))
{
event.stopPropagation();
}
for(var i=0; i < inputElems.length; i++)
{
if("checkbox" == inputElems[i].type)
{
inputElems[i].checked = true;
}
}
}
else
{
event.stopPropagation();
for(var i=0; i < inputElems.length; i++)
{
if("checkbox" == inputElems[i].type)
{
inputElems[i].checked = false;
}
}
}
}
function selectAllRows()
{
var selectAllElems = $("input[type='checkbox']");
if(document.getElementById("selectAllRow").value == "Select All")
{
document.getElementById("selectAllRow").value = "Deselect All";
for(var i=0; i<selectAllElems.length; i++)
{
if(!selectAllElems[i].checked)
{
selectAllElems[i].click();
}
}
}
else
{
document.getElementById("selectAllRow").value = "Select All";
for(var i=0; i<selectAllElems.length; i++)
{
if(selectAllElems[i].checked)
{
selectAllElems[i].click();
}
}
}
}
function changeParentChkBox( checkBoxName )
{
var chkBoxElemes = $( "input[childName='childChkBox"+checkBoxName+"']" );
var chkBoxCnt = 0;
for(var i=0; i < chkBoxElemes.length; i++)
{
if(chkBoxElemes[i].checked)
{
chkBoxCnt++;
}
}
if(chkBoxElemes.length == chkBoxCnt)
{
document.getElementById("parentCheckbox"+checkBoxName).checked = true;
}
else
{
document.getElementById("parentCheckbox"+checkBoxName).checked = false;
}
}
function setActionVal(action)
{
document.getElementById("action").value = action;
}
function checkType()
{
var qty=document.getElementById("Detail1.1.offer_free_qty").value;
var qtyOn=document.getElementById("Detail1.1.offer_free_on").value;
var disc1=document.getElementById("Detail1.1.disc_perc").value;
if( disc1 != null && disc1 != undefined && disc1.trim().length > 0)
{
document.getElementById("Detail1.1.discount").click();
}
else
{
document.getElementById("Detail1.1.offer").click();
}
}
function alingNumberTD()
{
var tableObj = document.getElementById("plistTable");
var rows = tableObj.rows;
for(var i=0; i<rows.length; i++)
{
var eachRowCells = rows[i].cells;
for(var j=1; j<eachRowCells.length;j++)
{
var eachCell = eachRowCells[j];
eachCell.align = "right";
}
}
}
function resetForm()
{
alert("in reset form");
document.getElementById("plistgenWizForm1").reset();
}
function callDelete()
{
var answer = confirm("Do you want to Reset?")
if (answer) {
var url = servletUrl+"action=DELETE";
makeRequest(url, dataDeleted);
window.location.href = "/ibase/webitm/jsp/E12WizardPage.jsp?OBJ_NAME=periodStatUpd_wiz&FORM_NO=1";
}
else {
}
}
function dataDeleted(retdata){
console.log(retdata);
}
function checkZero()
{
alert("hello");
}
function checkAll(ele) {
var checkboxes = document.getElementsByClassName('test1');
if (ele.checked) {
for (var i = 0; i < checkboxes.length; i++) {
if (checkboxes[i].type == 'checkbox') {
checkboxes[i].checked = true;
}
}
} else {
for (var i = 0; i < checkboxes.length; i++) {
console.log(i)
if (checkboxes[i].type == 'checkbox') {
checkboxes[i].checked = false;
}
}
}
}
<%@ page import="java.io.*" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.net.*" %>
<%@ page import="ibase.webitm.bean.wiz.*" %>
<%@ page import="ibase.utility.*" %>
<%@ page import="ibase.webitm.servlet.ITMWizardHandlerServlet" %>
<%@page import = "java.lang.*,java.util.*, ibase.webitm.ejb.dis.PeriodStatUpdWizBean"%>
<%
System.out.println("***********In PeriodStatUpdWiz JSP********************");
String htmlData = "";
try
{
ibase.utility.UserInfoBean userInfo = ( ibase.utility.UserInfoBean )session.getAttribute( "USER_INFO" );
if( userInfo == null )
{
out.println("Your session has been expired. Please re-login.");
}
String objName = request.getParameter("OBJ_NAME");
String PRE_FORM_VAL = ( request.getParameter( "PRE_FORM_VAL" ) != null ) ? request.getParameter( "PRE_FORM_VAL" ) : "";
String editorId = request.getParameter("EDITOR_ID");
String directAcc = ( request.getParameter( "DIRECT_ACC" ) != null ) ? request.getParameter( "DIRECT_ACC" ) : "Y";
System.out.println("objName : " + objName);
ITMWizardBean itmWizardBean;
String transDB = userInfo.getTransDB();
System.out.println("TransDB E12 name is : " + transDB);
if(transDB != null && !"null".equalsIgnoreCase(transDB.trim()) && transDB.trim().length() > 0)
{
itmWizardBean = new ITMWizardBean( objName, request.getSession(), userInfo );
}
else
{
itmWizardBean = new ITMWizardBean( objName, request.getSession() );
}
request.getSession().setAttribute( "WIZARD_BEAN_" + objName, itmWizardBean );
PeriodStatUpdWizBean beanObj = new PeriodStatUpdWizBean(objName);
htmlData = beanObj.previousForm("1", PRE_FORM_VAL);
}
catch(Exception e)
{
e.printStackTrace();
}
%>
<div id="detailData" style="display: ">
<%=htmlData%>
</div>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>19</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>22</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>site_code</name>
<dbname>site_code</dbname>
</table_column>
<table_column>
<type size="60">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>descr</name>
<dbname>descr</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>prd_code</name>
<dbname>prd_code</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>stat_adm</name>
<dbname>stat_adm</dbname>
<values>
<item display="Yes" data="Y"/>
<item display="No" data="N"/>
</values>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>stat_fin</name>
<dbname>stat_fin</dbname>
<values>
<item display="Yes" data="Y"/>
<item display="No" data="N"/>
</values>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>stat_sal</name>
<dbname>stat_sal</dbname>
<values>
<item display="Yes" data="Y"/>
<item display="No" data="N"/>
</values>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>stat_ic</name>
<dbname>stat_ic</dbname>
<values>
<item display="Yes" data="Y"/>
<item display="No" data="N"/>
</values>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>stat_pur</name>
<dbname>stat_pur</dbname>
<values>
<item display="Yes" data="Y"/>
<item display="No" data="N"/>
</values>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>stat_mfg</name>
<dbname>stat_mfg</dbname>
<values>
<item display="Yes" data="Y"/>
<item display="No" data="N"/>
</values>
</table_column>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Period Code</text>
<border>6</border>
<color>33554432</color>
<x>419</x>
<y>2</y>
<height>15</height>
<width>160</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Admin </text>
<border>6</border>
<color>33554432</color>
<x>581</x>
<y>2</y>
<height>15</height>
<width>120</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_adm_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Manufacturing </text>
<border>6</border>
<color>33554432</color>
<x>1104</x>
<y>2</y>
<height>15</height>
<width>133</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_mfg_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Sales </text>
<border>6</border>
<color>33554432</color>
<x>809</x>
<y>2</y>
<height>15</height>
<width>93</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_sal_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Inventory</text>
<border>6</border>
<color>33554432</color>
<x>904</x>
<y>2</y>
<height>15</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_ic_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Purchase </text>
<border>6</border>
<color>33554432</color>
<x>1003</x>
<y>2</y>
<height>15</height>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_pur_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Finance</text>
<border>6</border>
<color>33554432</color>
<x>703</x>
<y>2</y>
<height>15</height>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_fin_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Site Code</text>
<border>6</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>15</height>
<width>160</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Descrption </text>
<border>6</border>
<color>33554432</color>
<x>164</x>
<y>2</y>
<height>15</height>
<width>253</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1104</x>
<y>2</y>
<height>18</height>
<width>133</width>
<format>[Yes/No]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_mfg</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>yes</allowedit>
<case>any</case>
<showlist>yes</showlist>
<useasborder>yes</useasborder>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>581</x>
<y>2</y>
<height>18</height>
<width>120</width>
<format>[Yes/No]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_adm</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>yes</allowedit>
<case>any</case>
<showlist>yes</showlist>
<useasborder>yes</useasborder>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>419</x>
<y>2</y>
<height>18</height>
<width>160</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>809</x>
<y>2</y>
<height>18</height>
<width>93</width>
<format>[Yes/No]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_sal</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>yes</allowedit>
<case>any</case>
<showlist>yes</showlist>
<useasborder>yes</useasborder>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>703</x>
<y>2</y>
<height>18</height>
<width>104</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_fin</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>yes</allowedit>
<case>any</case>
<showlist>yes</showlist>
<useasborder>yes</useasborder>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1003</x>
<y>2</y>
<height>18</height>
<width>99</width>
<format>[Yes/No]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_pur</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>33554432</color>
<x>904</x>
<y>2</y>
<height>18</height>
<width>97</width>
<format>[Yes/No]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_ic</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>yes</allowedit>
<case>any</case>
<showlist>yes</showlist>
<useasborder>yes</useasborder>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>164</x>
<y>2</y>
<height>18</height>
<width>253</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>18</height>
<width>160</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>19</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>22</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>site_code</name>
<dbname>site_code</dbname>
</table_column>
<table_column>
<type size="60">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>descr</name>
<dbname>descr</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>prd_code</name>
<dbname>prd_code</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>stat_adm</name>
<dbname>stat_adm</dbname>
<values>
<item display="Yes" data="Y"/>
<item display="No" data="N"/>
</values>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>stat_fin</name>
<dbname>stat_fin</dbname>
<values>
<item display="Yes" data="Y"/>
<item display="No" data="N"/>
</values>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>stat_sal</name>
<dbname>stat_sal</dbname>
<values>
<item display="Yes" data="Y"/>
<item display="No" data="N"/>
</values>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>stat_ic</name>
<dbname>stat_ic</dbname>
<values>
<item display="Yes" data="Y"/>
<item display="No" data="N"/>
</values>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>stat_pur</name>
<dbname>stat_pur</dbname>
<values>
<item display="Yes" data="Y"/>
<item display="No" data="N"/>
</values>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>stat_mfg</name>
<dbname>stat_mfg</dbname>
<values>
<item display="Yes" data="Y"/>
<item display="No" data="N"/>
</values>
</table_column>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Period Code</text>
<border>6</border>
<color>33554432</color>
<x>419</x>
<y>2</y>
<height>15</height>
<width>160</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Admin </text>
<border>6</border>
<color>33554432</color>
<x>581</x>
<y>2</y>
<height>15</height>
<width>120</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_adm_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Manufacturing </text>
<border>6</border>
<color>33554432</color>
<x>1104</x>
<y>2</y>
<height>15</height>
<width>133</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_mfg_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Sales </text>
<border>6</border>
<color>33554432</color>
<x>809</x>
<y>2</y>
<height>15</height>
<width>93</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_sal_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Inventory</text>
<border>6</border>
<color>33554432</color>
<x>904</x>
<y>2</y>
<height>15</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_ic_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Purchase </text>
<border>6</border>
<color>33554432</color>
<x>1003</x>
<y>2</y>
<height>15</height>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_pur_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Finance</text>
<border>6</border>
<color>33554432</color>
<x>703</x>
<y>2</y>
<height>15</height>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_fin_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Site Code</text>
<border>6</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>15</height>
<width>160</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Descrption </text>
<border>6</border>
<color>33554432</color>
<x>164</x>
<y>2</y>
<height>15</height>
<width>253</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1104</x>
<y>2</y>
<height>18</height>
<width>133</width>
<format>[Yes/No]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_mfg</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>yes</allowedit>
<case>any</case>
<showlist>yes</showlist>
<useasborder>yes</useasborder>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>581</x>
<y>2</y>
<height>18</height>
<width>120</width>
<format>[Yes/No]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_adm</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>yes</allowedit>
<case>any</case>
<showlist>yes</showlist>
<useasborder>yes</useasborder>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>419</x>
<y>2</y>
<height>18</height>
<width>160</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>809</x>
<y>2</y>
<height>18</height>
<width>93</width>
<format>[Yes/No]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_sal</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>yes</allowedit>
<case>any</case>
<showlist>yes</showlist>
<useasborder>yes</useasborder>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>703</x>
<y>2</y>
<height>18</height>
<width>104</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_fin</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>yes</allowedit>
<case>any</case>
<showlist>yes</showlist>
<useasborder>yes</useasborder>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<border>5</border>
<color>33554432</color>
<x>1003</x>
<y>2</y>
<height>18</height>
<width>99</width>
<format>[Yes/No]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_pur</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>33554432</color>
<x>904</x>
<y>2</y>
<height>18</height>
<width>97</width>
<format>[Yes/No]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stat_ic</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>yes</allowedit>
<case>any</case>
<showlist>yes</showlist>
<useasborder>yes</useasborder>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>164</x>
<y>2</y>
<height>18</height>
<width>253</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>18</height>
<width>160</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>220</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>fin_entity</name>
<dbname>fin_entity</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>prd_code__from</name>
<dbname>prd_code__from</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>prd_code__to</name>
<dbname>prd_code__to</dbname>
</table_column>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Basic </text>
<border>5</border>
<color>33554432</color>
<x>18</x>
<y>25</y>
<height>124</height>
<width>254</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Liberation Sans</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Financial entity :</text>
<border>0</border>
<color>33554432</color>
<x>36</x>
<y>51</y>
<height>15</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>fin_entity_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Period from :</text>
<border>0</border>
<color>33554432</color>
<x>58</x>
<y>84</y>
<height>15</height>
<width>74</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code__from_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Period to :</text>
<border>0</border>
<color>33554432</color>
<x>68</x>
<y>117</y>
<height>15</height>
<width>64</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code__to_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>140</x>
<y>51</y>
<height>18</height>
<width>85</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>fin_entity</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>20</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>140</x>
<y>85</y>
<height>18</height>
<width>85</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code__from</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>20</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>140</x>
<y>117</y>
<height>18</height>
<width>85</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code__to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>20</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>220</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>fin_entity</name>
<dbname>fin_entity</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>prd_code__from</name>
<dbname>prd_code__from</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>prd_code__to</name>
<dbname>prd_code__to</dbname>
</table_column>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Basic </text>
<border>5</border>
<color>33554432</color>
<x>18</x>
<y>25</y>
<height>124</height>
<width>254</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Liberation Sans</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Financial entity :</text>
<border>0</border>
<color>33554432</color>
<x>36</x>
<y>51</y>
<height>15</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>fin_entity_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Period from :</text>
<border>0</border>
<color>33554432</color>
<x>58</x>
<y>84</y>
<height>15</height>
<width>74</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code__from_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Period to :</text>
<border>0</border>
<color>33554432</color>
<x>68</x>
<y>117</y>
<height>15</height>
<width>64</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code__to_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>140</x>
<y>51</y>
<height>18</height>
<width>85</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>fin_entity</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>20</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>140</x>
<y>85</y>
<height>18</height>
<width>85</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code__from</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>20</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>140</x>
<y>117</y>
<height>18</height>
<width>85</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code__to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>20</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>
<xsl:template match="/">
<html>
<body onload="formatDate(); checkType();">
<script type="text/javascript" src="/ibase/webitm/js/PeriodStatUpdWiz.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/FixedTableHeader.js"></script>
<script language="Javascript" src="/ibase/webitm/js/jquery.datetimepicker.full.js"></script>
<script language="Javascript" src="/ibase/webitm/js/date.js"></script>
<link href="/ibase/webitm/css/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"/>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.core.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.widget.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.position.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.menu.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.autocomplete.js"></script>
<link href="/ibase/webitm/css/htmlWizard.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/PeriodStatUpdWiz.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/jquery.datetimepicker.css" rel="stylesheet"/>
<script>
<![CDATA[
$(document).on("keydown", function (e) {
if (e.which === 8 && !$(e.target).is("input, textarea, form")) {
e.preventDefault();
}
else if(e.which ===13){
e.preventDefault();
}
});
]]>
</script>
<form name="PeriodStatUpdWizform1" id="PeriodStatUpdWizform1" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet" >
<div class="contentHeaderLbl" style="position:fixed;overflow:hidden;width:100%;padding:12px; background-color:white;top:0px;">
&#160;&#160;<img src="/ibase/images/menuImages/web/plistgen_wiz.png" onerror=" this.src= '/ibase/images/menuImages/errMenu.png' " style="position: absolute; margin-left: -20px; height: 20px; width: 20px;"/>
&#160;Period Status Update
</div><br></br><br></br>
<div id="innerDiv" style="overflow-y:hidden;overflow-x:auto;max-height:80%;width:99%;position:absolute;">
<table id="errorActivityTable" height="10%" class="tableClass" style="margin: 12px 0px 0px 0px;position: relative;width: calc(literal('100% - 15px'));width: -moz-calc(literal('100% - 15px'));padding-right:0px; padding-left:5xp; width: -webkit-calc(literal('100% - 15px'));box-shadow: 3px 3px 3px gray;-moz-box-shadow:3px 3px 3px gray;-webkit-box-shadow: 3px 3px 3px gray;-o-box-shadow: 3px 3px 3px gray;background: rgba(255, 204, 0, 0.66);min-height: 50px;bottom:10px" border="0" cellspacing="0" cellpadding="0">
<xsl:for-each select="//error">
<xsl:if test="position() = 1">
<tr>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
Message :
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
Description :
</td>
<td class="tdss_rightAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom" colspan="2">
<a href="#" style="text-decoration:none;" onclick="doHideMsg('errorActivityTable')"><font style="color:#000;text-decoration:none;padding-right:5px;" ><b>X</b></font></a>
</td>
</tr>
</xsl:if>
<xsl:variable name="message"><xsl:value-of select="message"/></xsl:variable>
<xsl:variable name="description"><xsl:value-of select="description"/></xsl:variable>
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domId"/></xsl:variable>
<xsl:variable name="column_name"><xsl:value-of select="@column_name"/></xsl:variable>
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
<xsl:value-of select="message"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
<xsl:value-of select="description"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
</td>
</tr>
</xsl:for-each>
<xsl:for-each select="//error">
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:if test="position() = 1">
<xsl:if test="$type = 'W'">
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
<input type="checkbox" name="forceSave" value="true" checked="checked" onClick="setChecked(this)"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true"></td>
</tr>
</xsl:if>
</xsl:if>
</xsl:for-each>
</table>
</div>
<div id="popHelpContainer"></div>
<div id="overlay"></div>
<div id="mainPageHeaderContatiner">
<div id="mainPage-input-Container">
<xsl:for-each select="//Detail1">
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<xsl:variable name="fin_entity"><xsl:value-of select="fin_entity"/></xsl:variable>
<xsl:variable name="prd_code__from"><xsl:value-of select="prd_code__from"/></xsl:variable>
<xsl:variable name="prd_code__to"><xsl:value-of select="prd_code__to"/></xsl:variable>
<table id="activityTable" border="0" cellSpacing="1" cellPadding="0" style="margin-bottom:25px;">
<tr>
<td class="td_rightAlign" nowrap="true" valign="left" >
Financial Entity :
</td>
<td class="td_leftAlign" >
<input type="text" class="input_editable" value="{$fin_entity}" popupFldName="FIN_ENTITY" name="Detail1.{normalize-space($dbID)}.fin_entity" id="Detail1.{normalize-space($dbID)}.fin_entity" onfocus="displayPopUpIcon('popUpIcon3');" onkeyup="getAutoPopupData(this);" style="width:51%;" tabIndex="40"/>
<a href="javascript:getListOfValues('FIN_ENTITY','Detail1.{normalize-space($dbID)}.fin_entity','','');" id="popUpIcon3" tabIndex="-1" ><img src="/ibase/webitm/images/pophelp.png"/></a>
</td>
</tr>
<tr>
<td class="td_rightAlign" nowrap="true" valign="left" >
Period From :
</td>
<td class="td_leftAlign" >
<input type="text" class="input_editable" value="{$prd_code__from}" popupFldName="PRD_CODE__FROM" name="Detail1.{normalize-space($dbID)}.prd_code__from" id="Detail1.{normalize-space($dbID)}.prd_code__from" onfocus="displayPopUpIcon('popUpIcon4');" onkeyup="getAutoPopupData(this);" style="width:51%;" tabIndex="40"/>
<a href="javascript:getListOfValues('PRD_CODE__FROM','Detail1.{normalize-space($dbID)}.prd_code__from','','');" id="popUpIcon4" tabIndex="-1" ><img src="/ibase/webitm/images/pophelp.png"/></a>
</td>
</tr>
<tr>
<td class="td_rightAlign" nowrap="true" valign="left" >
Period To :
</td>
<td class="td_leftAlign" >
<input type="text" class="input_editable" value="{$prd_code__to}" popupFldName="PRD_CODE__TO" name="Detail1.{normalize-space($dbID)}.prd_code__to" id="Detail1.{normalize-space($dbID)}.prd_code__to" onfocus="displayPopUpIcon('popUpIcon5');" onkeyup="getAutoPopupData(this);" style="width:51%;" tabIndex="40"/>
<a href="javascript:getListOfValues('PRD_CODE__TO','Detail1.{normalize-space($dbID)}.prd_code__to','','');" id="popUpIcon5" tabIndex="-1" ><img src="/ibase/webitm/images/pophelp.png"/></a>
</td>
</tr>
</table>
</xsl:for-each>
</div>
<div id="btnDiv">
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="periodStatUpd_wiz" name="OBJ_NAME" />
<input type="hidden" value="next" name="action" id="action" />
<input type="reset" style="cursor:hand;margin-left:5px;" value="Reset" class="button" title='Reset' id="reset"/>
<input type="submit" style="cursor:hand;margin-left:2px;" value="Next" onclick="setActionVal('next');" class="button" title='Next' id="next"/>
</div>
</div>
<div id="buttonreplacement">
<img src="/ibase/images/preload.gif" alt="Please wait work in progress" ></img>
<span>Please wait......</span>
</div>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>
<xsl:template match="/">
<html>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/PeriodStatUpdWiz.js"></script>
<!-- <link href="/ibase/webitm/css/theme/galaxy-theme.css" rel="stylesheet"/> -->
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/sorderWiz.css"/>
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/htmlWizard.css"/>
<link href="/ibase/webitm/css/DD/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"/>
<script language="Javascript" src="/ibase/webitm/js/jquery.datetimepicker.full.js"></script>
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/jquery.datetimepicker.css"/>
<script type="text/javascript" src="/ibase/webitm/js/FixedTableHeader.js"></script>
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/FixedTableHeader.css"/>
<script language="JavaScript" type="text/javascript">
<![CDATA[
<!-- $(document).ready(function() {
$('#Details').fxdHdrCol({
fixedCols: 0,
width: "200%",
height: "85%",
colModal: [
{ width: 5, align: 'center' },
{ width: 100, align: 'center' },
{ width: 100, align: 'center' },
{ width: 300, align: 'center' },
{ width: 70, align: 'center' },
{ width: 70, align: 'center' },
{ width: 70, align: 'center' },
{ width: 50, align: 'center' },
{ width: 200, align: 'center' },
{ width: 70, align: 'center' },
{ width: 70, align: 'center' },
{ width: 70, align: 'center' }
],
sort: true
});
}); -->
]]>
</script>
<style type="text/css">
.tHeader
{
border-top: #6cf 2px solid !important;
border-left: 1px solid #ddd !important;
border-right: 1px solid #ddd !important;
border-bottom: 1px solid #ddd !important
}
.ft_container table tr td
{
color: #555 !important;
}
tr.schemeRow>td {
background-color: #f2fdff !important;
}
tr.schemeRow>td>input {
background-color: #f2fdff !important;
}
</style>
<body onload="foarmatSchemeRows();">
<form name="PeriodStatUpdWizform2" id="PeriodStatUpdWizform2" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet">
<xsl:for-each select="//Detail2">
<xsl:if test="position() = 1">
<TABLE border="0" width="99%" height="2%" class="header_td" cellpadding="0" cellspacing="0" style="background-color: #f7f8fa;">
<TR>
<div class='contentHeaderLbl'><img src="/ibase/images/menuImages/web/salesorder.png" onerror=" this.src= '/ibase/images/menuImages/errMenu.png' " style="position: absolute; margin-left: -20px;margin-top:9px; height: 20px; width: 20px;"/>
<TD class="header_main" nowrap="true" align="left" valign="middle" style="padding-left: 10px;font-size:16px;" width="2%" >
<!-- Summary-->
</TD>
<TD class="header_main" nowrap="true" align="left" valign="middle" style="padding-left: 10px;font-size:16px;" width="2%" >
<!--Sales Order:--> <xsl:value-of select="sale_order"/>
</TD>
<TD class="header_main" nowrap="true" align="left" valign="middle" style="" width="2%" >
<!-- Order Date:--> <xsl:value-of select="order_date"/>
</TD>
<TD class="header_main" nowrap="true" align="left" valign="middle" style="padding-left: 10px;font-size:16px;" width="2%" >
<xsl:variable name="udf__str2"><xsl:value-of select="udf__str2"/></xsl:variable>
<xsl:if test="$udf__str2 = 'A'">Add Mode</xsl:if>
<xsl:if test="$udf__str2 = 'E'">Edit Mode</xsl:if>
</TD>
</div>
</TR>
</TABLE>
</xsl:if>
</xsl:for-each>
<div id="innerDiv" style="overflow-y:hidden;overflow-x:auto;max-height:80%;">
<table id="errorActivityTable" width="100%" height="13%" class="tableClass" style="margin: 0px 0px 0px 0px;position: relative;width: calc(literal('100% - 15px'));width: -moz-calc(literal('100% - 15px'));padding-right:0px; padding-left:5xp; width: -webkit-calc(literal('100% - 15px'));box-shadow: 3px 3px 3px gray;-moz-box-shadow:3px 3px 3px gray;-webkit-box-shadow: 3px 3px 3px gray;-o-box-shadow: 3px 3px 3px gray;background: rgba(255, 204, 0, 0.66);min-height: 50px;bottom:10px" border="0" cellspacing="0" cellpadding="0">
<xsl:for-each select="//error">
<xsl:if test="position() = 1">
<tr>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
Message :
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
Description :
</td>
<td class="tdss_rightAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom" colspan="2">
<a href="#" style="text-decoration:none;" onclick="doHideMsg('errorActivityTable')"><font style="color:#000;text-decoration:none;padding-right:5px;" ><b>X</b></font></a>
</td>
</tr>
</xsl:if>
<xsl:variable name="message"><xsl:value-of select="message"/></xsl:variable>
<xsl:variable name="description"><xsl:value-of select="description"/></xsl:variable>
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domId"/></xsl:variable>
<xsl:variable name="column_name"><xsl:value-of select="@column_name"/></xsl:variable>
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
<xsl:value-of select="message"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
<xsl:value-of select="description"/>
<br></br>
<xsl:value-of select="trace"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
</td>
</tr>
</xsl:for-each>
<xsl:for-each select="//error">
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:if test="position() = 1">
<xsl:if test="$type = 'W'">
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
<input type="checkbox" name="forceSave" value="true" checked="checked" onClick="setChecked(this)"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true">
</td>
</tr>
</xsl:if>
</xsl:if>
</xsl:for-each>
</table>
</div>
<xsl:for-each select="//Detail2">
<!--< <xsl:variable name="site_code"><xsl:value-of select="site_code"/></xsl:variable>
<xsl:variable name="descr"><xsl:value-of select="descr"/></xsl:variable>
<xsl:variable name="prd_code"><xsl:value-of select="prd_code"/></xsl:variable>
<xsl:variable name="stat_adm"><xsl:value-of select="stat_adm"/></xsl:variable>
<xsl:variable name="stat_fin"><xsl:value-of select="stat_fin"/></xsl:variable>
<xsl:variable name="stat_sal"><xsl:value-of select="stat_sal"/></xsl:variable>
<xsl:variable name="stat_ic"><xsl:value-of select="stat_ic"/></xsl:variable>
<xsl:variable name="stat_pur"><xsl:value-of select="stat_pur"/></xsl:variable>
<xsl:variable name="stat_mfg"><xsl:value-of select="stat_mfg"/></xsl:variable>-->
<xsl:variable name="fin_entity"><xsl:value-of select="fin_entity"/></xsl:variable>
<xsl:variable name="prd_code__from"><xsl:value-of select="prd_code__from"/></xsl:variable>
<xsl:variable name="prd_code__to"><xsl:value-of select="prd_code__to"/></xsl:variable>
<xsl:variable name="dbIDs"><xsl:value-of select="@domID"/></xsl:variable>
<xsl:variable name="chkbox"><xsl:value-of select="@selected"/></xsl:variable>
<xsl:if test="$dbIDs = '0'">
<input type="hidden" value="{$fin_entity}" name="Detail2.{normalize-space($dbIDs)}.fin_entity" id="fin_entity" />
<input type="hidden" value="{$prd_code__from}" name="Detail2.{normalize-space($dbIDs)}.prd_code__from" id="prd_code__from" />
<input type="hidden" value="{$prd_code__to}" name="Detail2.{normalize-space($dbIDs)}.prd_code__to" id="prd_code__to" />
<!--<input type="hidden" value="{$site_code}" name="Detail2.{normalize-space($dbIDs)}.site_code" id="site_code" />
<input type="hidden" value="{$descr}" name="Detail2.{normalize-space($dbIDs)}.descr" id="descr" />
<input type="hidden" value="{$prd_code}" name="Detail2.{normalize-space($dbIDs)}.prd_code" id="prd_code" />
<input type="hidden" value="{$stat_adm}" name="Detail2.{normalize-space($dbIDs)}.stat_adm" id="stat_adm" />
<input type="hidden" value="{$stat_fin}" name="Detail2.{normalize-space($dbIDs)}.stat_fin" id="stat_fin" />
<input type="hidden" value="{$stat_sal}" name="Detail2.{normalize-space($dbIDs)}.stat_sal" id="stat_sal" />
<input type="hidden" value="{$stat_ic}" name="Detail2.{normalize-space($dbIDs)}.stat_ic" id="stat_ic" />
<input type="hidden" value="{$stat_pur}" name="Detail2.{normalize-space($dbIDs)}.stat_pur" id="stat_pur" />
<input type="hidden" value="{$stat_mfg}" name="Detail2.{normalize-space($dbIDs)}.stat_mfg" id="stat_mfg" />-->
</xsl:if>
</xsl:for-each>
<div style="height:calc(100% - 80px); width:100%;margin-top:2px;margin-left:1px;overflow:-moz-scrollbars-vertical;overflow-x:auto;overflow-y:auto;white-space:nowrap;border:thin ridge lightgray;">
<table id="Details" class="headertableClass" border="0" cellspacing="0" cellpadding="0" width='100%' style = "color: #333 !important;">
<tr>
<th class="tHeader" nowrap="true" style="width:20px;display:none" >
</th>
<th class="tHeader" nowrap="true" width='20px'>
<INPUT type="checkbox" onchange="checkAll(this)" name="chk[]" />
</th>
<th class="tHeader" nowrap="true" valign="bottom">
Site Code
</th>
<th class="tHeader" nowrap="true" valign="bottom" width='250px'>
Descrption
</th>
<th class="tHeader" nowrap="true" valign="bottom" >
Period Code
</th>
<th class="tHeader" nowrap="true" valign="bottom">
Admin
</th>
<th class="tHeader" nowrap="true" valign="bottom">
Finance
</th>
<th class="tHeader" nowrap="true" valign="bottom">
Sales
</th>
<th class="tHeader" nowrap="true" valign="bottom">
Inventory
</th>
<th class="tHeader" nowrap="true" valign="bottom">
Purchase
</th>
<th class="tHeader" nowrap="true" valign="bottom" >
Manufacturing
</th>
</tr>
<tbody>
<xsl:for-each select="//Detail2">
<xsl:variable name="site_code"><xsl:value-of select="site_code"/></xsl:variable>
<xsl:variable name="descr"><xsl:value-of select="descr"/></xsl:variable>
<xsl:variable name="prd_code"><xsl:value-of select="prd_code"/></xsl:variable>
<xsl:variable name="stat_adm"><xsl:value-of select="stat_adm"/></xsl:variable>
<xsl:variable name="stat_fin"><xsl:value-of select="stat_fin"/></xsl:variable>
<xsl:variable name="stat_sal"><xsl:value-of select="stat_sal"/></xsl:variable>
<xsl:variable name="stat_ic"><xsl:value-of select="stat_ic"/></xsl:variable>
<xsl:variable name="stat_pur"><xsl:value-of select="stat_pur"/></xsl:variable>
<xsl:variable name="stat_mfg"><xsl:value-of select="stat_mfg"/></xsl:variable>
<xsl:variable name="dbIDs"><xsl:value-of select="@domID"/></xsl:variable>
<xsl:variable name="chkbox"><xsl:value-of select="@selected"/></xsl:variable>
<xsl:if test="$dbIDs != '0'">
<tr class="trClass" id="itemRow{$dbIDs}" >
<td>
<input type="checkbox" name="Detail2.{normalize-space($dbIDs)}.selectbox"
id="Detail2.{normalize-space($dbIDs)}.selectbox" value="true" class="test1" />
</td>
<xsl:choose>
<xsl:when test="$site_code =''">
<td style="width:100px" nowrap="true">
<!-- <xsl:value-of select="item_code"/> -->
<input id="Detail2.{normalize-space($dbIDs)}.site_code" name="Detail2.{normalize-space($dbIDs)}.site_code" value="{$site_code}" type="text" style="border: none;outline: none;color: #555;font-size: 14px;" readonly="" />
</td>
</xsl:when>
<xsl:otherwise>
<td style="width:100px; background:#e3fef1;" nowrap="true">
<!-- <xsl:value-of select="item_code"/> -->
<input id="Detail2.{normalize-space($dbIDs)}.site_code" name="Detail2.{normalize-space($dbIDs)}.site_code" value="{$site_code}" type="text" style="border: none;outline: none;color: #555;font-size: 12px;background:#e3fef1;" readonly=""/>
</td>
</xsl:otherwise>
</xsl:choose>
<td nowrap="true" >
<input id="Detail2.{normalize-space($dbIDs)}.descr" name="Detail2.{normalize-space($dbIDs)}.descr" value="{$descr}" type="text" style="border: none;outline: none;color: #555;font-size: 12px;width:232px;" readonly="" />
</td>
<td style="width:75px;" nowrap="true">
<input type="text" value="{$prd_code}" name="Detail2.{normalize-space($dbIDs)}.prd_code" id="Detail2.{normalize-space($dbIDs)}.prd_code"
style="border: none;outline: none;color: #555;font-size: 14px;" maxlength="10" readonly=""
/>
</td>
<td style="width:75px;" nowrap="true">
<!-- <xsl:value-of select="rate"/> -->
<select class="editInputClass editInputCur" name="Detail2.{normalize-space($dbIDs)}.stat_adm" id="Detail2.{normalize-space($dbIDs)}.stat_adm">
<OPTION value="Y"><xsl:choose><xsl:when test="stat_adm='Y'"><xsl:attribute name="selected"/></xsl:when></xsl:choose><![CDATA[Yes]]></OPTION>
<OPTION value="N"><xsl:choose><xsl:when test="stat_adm='N'"><xsl:attribute name="selected"/></xsl:when></xsl:choose><![CDATA[No]]></OPTION>
</select>
</td>
<td style="width:75px;" nowrap="true">
<select class="editInputClass editInputCur" name="Detail2.{normalize-space($dbIDs)}.stat_fin" id="Detail2.{normalize-space($dbIDs)}.stat_fin">
<OPTION value="Y"><xsl:choose><xsl:when test="stat_fin='Y'"><xsl:attribute name="selected"/></xsl:when></xsl:choose><![CDATA[Yes]]></OPTION>
<OPTION value="N"><xsl:choose><xsl:when test="stat_fin='N'"><xsl:attribute name="selected"/></xsl:when></xsl:choose><![CDATA[No]]></OPTION>
</select>
</td>
<td style="width:75px;" nowrap="true">
<select class="editInputClass editInputCur" name="Detail2.{normalize-space($dbIDs)}.stat_sal" id="Detail2.{normalize-space($dbIDs)}.stat_sal">
<OPTION value="Y"><xsl:choose><xsl:when test="stat_sal='Y'"><xsl:attribute name="selected"/></xsl:when></xsl:choose><![CDATA[Yes]]></OPTION>
<OPTION value="N"><xsl:choose><xsl:when test="stat_sal='N'"><xsl:attribute name="selected"/></xsl:when></xsl:choose><![CDATA[No]]></OPTION>
</select>
</td>
<td style="width:75px;" nowrap="true">
<select class="editInputClass editInputCur" name="Detail2.{normalize-space($dbIDs)}.stat_ic" id="Detail2.{normalize-space($dbIDs)}.stat_ic">
<OPTION value="Y"><xsl:choose><xsl:when test="stat_ic='Y'"><xsl:attribute name="selected"/></xsl:when></xsl:choose><![CDATA[Yes]]></OPTION>
<OPTION value="N"><xsl:choose><xsl:when test="stat_ic='N'"><xsl:attribute name="selected"/></xsl:when></xsl:choose><![CDATA[No]]></OPTION>
</select>
</td>
<td style="width:75px;" nowrap="true">
<select class="editInputClass editInputCur" name="Detail2.{normalize-space($dbIDs)}.stat_pur" id="Detail2.{normalize-space($dbIDs)}.stat_pur">
<OPTION value="Y"><xsl:choose><xsl:when test="stat_pur='Y'"><xsl:attribute name="selected"/></xsl:when></xsl:choose><![CDATA[Yes]]></OPTION>
<OPTION value="N"><xsl:choose><xsl:when test="stat_pur='N'"><xsl:attribute name="selected"/></xsl:when></xsl:choose><![CDATA[No]]></OPTION>
</select>
</td>
<td style="width:75px;" nowrap="true">
<select class="editInputClass editInputCur" name="Detail2.{normalize-space($dbIDs)}.stat_mfg" id="Detail2.{normalize-space($dbIDs)}.stat_mfg">
<OPTION value="Y"><xsl:choose><xsl:when test="stat_mfg='Y'"><xsl:attribute name="selected"/></xsl:when></xsl:choose><![CDATA[Yes]]></OPTION>
<OPTION value="N"><xsl:choose><xsl:when test="stat_mfg='N'"><xsl:attribute name="selected"/></xsl:when></xsl:choose><![CDATA[No]]></OPTION>
</select>
</td>
</tr>
</xsl:if>
</xsl:for-each>
</tbody>
</table>
</div>
<div style="width=20%;height:6px;margin-left=-12px;margin-top:5px;margin-bottom:0px;">
<table cellSpacing="1" cellPadding="1" width="50%" border="0">
<input type="hidden" value="2" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="periodStatUpd_wiz" name="OBJ_NAME" />
<input type="hidden" value="" name="action" id="action" />
<input type="hidden" value="2:MP" name="formType" id="formType" />
<input type="hidden" name="PRE_FORM_VAL" ID="PRE_FORM_VAL" />
<input type="hidden" name="PRE_FORM_VAL2" ID="PRE_FORM_VAL2" />
<input type="hidden" name="EXISITING_COL_VALUES" ID="EXISITING_COL_VALUES" />
<input type="button" style="cursor:hand" class="button" value="Previous" title='Previous' id="back" onclick="history.go(-1)"/>
<!--<input type="submit" style="cursor:hand" class="button" value="Previous" title='Previous' id="back" onclick="setActionVal('previous');"/>-->
<input type="submit" style="cursor:hand" class="button" value="Finish" title='Finish' id="finish" onclick="setActionVal('finish');"/>
<div id="buttonreplacement" align="center" style="display:none;">
<img src="/ibase/images/preload.gif" alt="Please wait work in progress" >
Please wait......
</img>
</div>
</table>
<div id="BgGlassLastPg" class="bgGlass" style="display: none"></div>
<div id='taxCalDivLastPg' class="popUpContainerForTax"></div>
<div id='SchemeDiv' class="popUpContainerForTax"></div>
</div>
</form>
</body>
<script language="JavaScript" type="text/javascript">
<![CDATA[
fixedTableHdr('Details', '', 'simpleTran') ;
]]>
</script>
</html>
</xsl:template>
</xsl:stylesheet>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment