Commit 76c4f435 authored by dpingle's avatar dpingle

* Changes done in work balance on [04/09/19]

work_balance11.xml
work_balance21.xml
d_work_balance_edit.srd
AttendanceWorkBal.java
w_work_balance.sql


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@206811 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 72414180
----------------------------------------------------- TRANSETUP
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,MSG_ONSAVE,WF_STATUS,RESTART_FORM,CMS_PATH,BROW_DATA_DEF,DEF_VIEW,VIEW_OPTS,ISGWTINITIATED,DEFAULT_DATA_ROW,IN_WF_VAL,IN_WF_COL,CANCEL_VAL,CANCEL_COL,THUMB_ALT_COL,THUMB_IMAGE_COL,THUMB_OBJ,ATTACH_COUNT_MIN,FUNCTION_TYPE,COMPL_ACTION,DEFAULT_EDITOR,MSG_NO,OBJ_TYPE,STATUS_COL,ENABLE_EDITOR,OFFLINE_OPT,CLOSE_COL,CLOSE_VAL) values ('w_work_balance','2','2','M','seq5',null,null,null,null,null,'Y',to_date('04-01-16','DD-MM-RR'),'E28150 ','snitdeepakg ','0',null,null,null,'Y',null,'E','N','N',null,'work_tblno,line_no',null,null,null,null,null,null,null,null,null,null,null,'0',null,null,null,null,null,null,null,null,null,'2',null,'F',null,null,null,null,null,null,null,null,null,null,'2',null,null,null,null,null,null,null,null,null,null,null,null,'M',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,'0',null,'compact',null,'C',null,'C',null,null,null);
----------------------------------------------------- OBJ_FORMS
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,SCAN_FLAG,SCAN_METADATA,AUTO_ACCEPT_SCAN,PROPERTY_INFO,SCAN_DELIMITER,EXT_COM,EXT_METADATA,EXT_SETUP,AFTER_SAVE,COLUMN_ON_SAVE,AUTO_ACCEPT_WEIGHDATA,RATE_COL,QTY_COL,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY,FREEZE_COL_POS,DEFAULT_ROW_CNT,IS_MANDATORY,TRAN_ID_COL,KEY_INFO,SELECTION_OPT,THUMB_OBJ,THUMB_IMAGE_COL,FORM_NAME,FORM_ICON,THUMB_ALT_COL) values ('w_work_balance','Attendance Hdr','d_work_balance_brow','d_work_balance_EDIT',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);
update obj_forms set SCR_FLAG='F' where win_name='w_work_balance';
------------------------------------------------------ ITM2MENU
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,MOB_DEPLY,ENT_TYPES) values ('ADP',4,64,0,0,0,'w_work_balance','Work Balance',null,'ADP.4.64.0.0.0',null,'M',null,'T',null,null,null,'B',null,null,'B','0 ');
----------------------------------------------------- OBJ_ACTIONS
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('work_balance',1,'ibase/resource/objaction/add.svg','Adding New','a','a','A','Add','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'2',null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('work_balance',2,'ibase/resource/objaction/edit.svg','Editing Existing Record','a','a','E','Edit','1',null,null,'S',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_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('work_balance',3,'ibase/resource/objaction/edit.svg','Editing Existing Record','a','a','E','Edit','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'2','000',null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC)
values ('work_balance',8,'ibase/resource/objaction/copyTransaction.svg','Adding New','a','a','A','Copy Transaction','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,'0',null,null,null,null,null,null,'1',null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('work_balance',21,'ibase/resource/objaction/Audit-trail.svg','View Audit Trail','audit_trail','1','Q','View Audit','1','1','1','U',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_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('work_balance',39,'ibase/resource/objaction/exprtExl.svg','Export To Excel','a','a','B','Export2XLS','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'2',null,1);
delete OBJ_ACTIONS where OBJ_NAME='work_balance' and LINE_NO=22;
delete OBJ_ACTIONS WHERE OBJ_NAME='work_balance' and line_no=3;
----------------------------------------------------- SYSTEM_EVENTS
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 ('work_balance','audit_trail','1','project_audit_trail',null,'0',to_date('04-12-07','DD-MM-RR'),'d ','Base45','2',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 ('work_balance','export_excel','1','export_excel',null,null,to_date('26-03-15','DD-MM-RR'),'danish ','Base143',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 ('work_balance','post_item_change','1','poic_default_ejb',null,'0',to_date('04-12-07','DD-MM-RR'),'manoj ','base33 ','2','JB','ibase.webitm.ejb.adm.AttendanceWorkBal',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 ('work_balance','pre_validate','1','prv_default_ejb',null,'0',to_date('04-12-07','DD-MM-RR'),'manoj ','base33 ','2','JB','ibase.webitm.ejb.adm.AttendanceWorkBal',null);
---------------------------------------------------- SYSTEM_EVENT_SERVICES
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION) values ('export_excel','Calling Export To Excel','/ibase/jsp/E12ExportToExcelXlsx.jsp',null,'doPost',null,null,null,null,to_date('12-08-14','DD-MM-RR'),'DANISH ','Base143',null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION) values ('poic_default_ejb','itemchanged','http://localhost:9090/axis/services/ValidatorService',null,'itemChanged','String','S',null,null,to_date('22-03-19','DD-MM-RR'),'BASE ','BASE',null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION) values ('project_audit_trail','calling audit log jsp','/ibase/webitm/jsp/ITMAuditForms.jsp',null,'doPost',null,null,null,null,to_date('14-02-17','DD-MM-RR'),'BASE ','BASE','http://NvoServiceurl.org','doPostResult','http://NvoServiceurl.org/doPost');
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION) values ('prv_default_ejb','prv_default_ejb','http://localhost:9090/axis/services/ValidatorService',null,'wfValData','String','S',null,null,to_date('22-03-19','DD-MM-RR'),'BASE ','BASE',null,null,null);
---------------------------------------------------- SYSTEM_SERVICE_ARGS
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',1,'COMPONENT_TYPE','I',null,'S',null,null,null,null,'JB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',2,'COMPONENT_NAME','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',3,'XML_DATA','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',4,'XML_DATA_1','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',5,'XML_DATA_ALL','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',6,'OBJ_CONTEXT','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',7,'FOCUSED_COLUMN','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',8,'EDIT_FLAG','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',9,'XTRA_PARAMS','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('project_audit_trail',1,'COMPONENT_TYPE','I',null,'S',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA','JB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('project_audit_trail',2,'COMPONENT_NAME','I',null,'S',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA','ibase.webitm.ejb.adm.AttendanceWorkBal');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('project_audit_trail',3,'XML_DATA','l',null,'S',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('project_audit_trail',4,'XML_DATA_1','l',null,'S',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('project_audit_trail',5,'XML_DATA_ALL','l',null,'S',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('project_audit_trail',6,'OBJ_CONTEXT','l',null,'S',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('project_audit_trail',7,'XTRA_PARAMS','l',null,'S',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('project_audit_trail',8,'DB_CONN','l',null,'S.Connection',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',1,'COMPONENT_TYPE','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'Manohar ','Manohar',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',2,'COMPONENT_NAME','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'Manohar ','Manohar',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',3,'XML_DATA','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'Manohar ','Manohar',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',4,'XML_DATA_1','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'Manohar ','Manohar',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',5,'XML_DATA_ALL','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'Manohar ','Manohar',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',6,'OBJ_CONTEXT','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'Manohar ','Manohar',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',7,'EDIT_FLAG','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'Manohar ','Manohar',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',8,'XTRA_PARAMS','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'Manohar ','Manohar',null);
----------------------------------------------------- OBJ_ITEMCHANGE
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('work_balance','1','end_date',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('work_balance','1','itm_default',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('work_balance','1','start_date',null);
----------------------------------------------------- POPHELP
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('LINE_NO','W_WORK_BALANCE','SELECT LINE_NO,WORK_TBLNO FROM WORK_TABLE ','Work Table No','Work Table No',0,0,to_date('20-05-13','DD-MM-RR'),'VENKAT ','BASE ','1',null,null,null,null,null,null,null,null,null,'2',null,'3','LineImages','line_no','line_no','2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('PRD_CODE__PAY','W_WORK_BALANCE','select descr,code from period',null,'Pay Period',0,0,to_date('17-08-15','DD-MM-RR'),'BASE ','BASE ','0',null,null,2,null,null,null,null,null,null,'2',null,'3',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('WORK_TBLNO','W_WORK_BALANCE','SELECT WORK_TBLNO, LINE_NO FROM WORK_TABLE ','Work Table No','Work Table No',0,0,to_date('20-05-13','DD-MM-RR'),'VENKAT ','BASE ','1',null,null,null,null,null,null,null,null,null,'2',null,'3',null,null,null,'2 ',null,null,null,null,null,null,null);
----------------------------------------------------- MESSAGES
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('INVDLINENO','Invalid Line No','Line No Can Not be Null','E','Y',null,null,null,to_date('10-06-11','DD-MM-RR'),'PAWAN ','BASE ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('INVLVEDT01','Invalid Work TableNo','The Work TableNo cannot Blank or Already Existed in Work Table','E','Y',null,null,null,to_date('24-03-06','DD-MM-RR'),'BASE ','01BASE215 ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('INVWORKTBL','Work TableNO Empty!!','Work Table No Can Not be Null','E','Y',null,null,null,to_date('10-06-11','DD-MM-RR'),'PAWAN ','BASE ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('STARTPRD ','Invalid start period','Start period not found or is not defined in the period master','E','Y',null,null,null,to_date('22-10-00','DD-MM-RR'),'SUN ','HDP ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VEDAT2 ','Invalid date, empty!','Date cannot be empty. Please enter valid date.','E','Y',null,null,null,to_date('22-10-00','DD-MM-RR'),'SUN ','HDP ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTCALPRD ','Empty calc period!','Calculation period cannot be left blank','E','Y',null,null,null,to_date('27-04-06','DD-MM-RR'),'BASE ','BASE ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTDATE1 ','Invalid Actual End Date!','Actual End date of Project should be greater than or equal to Plan Start Date of Project .','E','Y',null,null,null,to_date('22-10-00','DD-MM-RR'),'SUN ','HDP ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTINVOT ','Invalid OT generation Period','The Period you Have Entered For OT Generation Already Exist','E','Y',null,null,null,null,null,null,null,null);
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow> <!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow> <Sybase_eDataWindow>
<Release>9</Release> <Release>9</Release>
<BaseDefinition> <BaseDefinition>
<units>1</units> <units>0</units>
<timer_interval>0</timer_interval> <timer_interval>0</timer_interval>
<color>67108864</color> <color>67108864</color>
<processing>1</processing> <processing>1</processing>
<HTMLDW>no</HTMLDW> <HTMLDW>no</HTMLDW>
<print> <print>
<documentname></documentname> <documentname></documentname>
<printername></printername> <printername></printername>
<orientation>0</orientation> <orientation>0</orientation>
<margin> <margin>
<left>24</left> <left>110</left>
<right>24</right> <right>110</right>
<top>24</top> <top>96</top>
<bottom>24</bottom> <bottom>96</bottom>
</margin> </margin>
<paper> <paper>
<source>0</source> <source>0</source>
<size>0</size> <size>0</size>
</paper> </paper>
<prompt>no</prompt> <prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter> <canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons> <buttons>no</buttons>
<preview.buttons>no</preview.buttons> <preview.buttons>no</preview.buttons>
<cliptext>no</cliptext> <cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob> <overrideprintjob>no</overrideprintjob>
</print> </print>
<grid.lines>0</grid.lines> <grid.lines>0</grid.lines>
</BaseDefinition> </BaseDefinition>
<Header> <Header>
<height>19</height> <height>80</height>
<color>536870912</color> <color>536870912</color>
</Header> </Header>
<Summary> <Summary>
<height>0</height> <height>0</height>
<color>536870912</color> <color>536870912</color>
</Summary> </Summary>
<Footer> <Footer>
<height>0</height> <height>0</height>
<color>536870912</color> <color>536870912</color>
</Footer> </Footer>
<Detail> <Detail>
<height>18</height> <height>92</height>
<color>536870912</color> <color>536870912</color>
</Detail> </Detail>
<TableDefinition> <TableDefinition>
<table_column> <table_column>
<type size="5">char</type> <type size="5">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<key>yes</key> <key>yes</key>
<name>work_tblno</name> <name>work_tblno</name>
<dbname>work_table.work_tblno</dbname> <dbname>work_table.work_tblno</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type precision="0">decimal</type> <type precision="0">decimal</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<key>yes</key> <key>yes</key>
<name>line_no</name> <name>line_no</name>
<dbname>work_table.line_no</dbname> <dbname>work_table.line_no</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type>datetime</type> <type>datetime</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>start_date</name> <name>start_date</name>
<dbname>work_table.start_date</dbname> <dbname>work_table.start_date</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type>datetime</type> <type>datetime</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>end_date</name> <name>end_date</name>
<dbname>work_table.end_date</dbname> <dbname>work_table.end_date</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="6">char</type> <type size="6">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>prd_code__pay</name> <name>prd_code__pay</name>
<dbname>work_table.prd_code__pay</dbname> <dbname>work_table.prd_code__pay</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type>datetime</type> <type>datetime</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>chg_date</name> <name>chg_date</name>
<dbname>work_table.chg_date</dbname> <dbname>work_table.chg_date</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="15">char</type> <type size="300">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>chg_term</name> <name>chg_term</name>
<dbname>work_table.chg_term</dbname> <dbname>work_table.chg_term</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="10">char</type> <type size="10">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>chg_user</name> <name>chg_user</name>
<dbname>work_table.chg_user</dbname> <dbname>work_table.chg_user</dbname>
</table_column> </table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;work_table&quot; ) COLUMN(NAME=&quot;work_table.work_tblno&quot;) COLUMN(NAME=&quot;work_table.line_no&quot;) COLUMN(NAME=&quot;work_table.start_date&quot;) COLUMN(NAME=&quot;work_table.end_date&quot;) COLUMN(NAME=&quot;work_table.prd_code__pay&quot;) COLUMN(NAME=&quot;work_table.chg_date&quot;) COLUMN(NAME=&quot;work_table.chg_term&quot;) COLUMN(NAME=&quot;work_table.chg_user&quot;)) </retrieve> <retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;work_table&quot; ) COLUMN(NAME=&quot;work_table.work_tblno&quot;) COLUMN(NAME=&quot;work_table.line_no&quot;) COLUMN(NAME=&quot;work_table.start_date&quot;) COLUMN(NAME=&quot;work_table.end_date&quot;) COLUMN(NAME=&quot;work_table.prd_code__pay&quot;) COLUMN(NAME=&quot;work_table.chg_date&quot;) COLUMN(NAME=&quot;work_table.chg_term&quot;) COLUMN(NAME=&quot;work_table.chg_user&quot;)WHERE( EXP1 =&quot;work_table.work_tblno&quot; OP =&quot;=&quot; EXP2 =&quot;:work_tblno&quot; ) ) ARG(NAME = &quot;work_tblno&quot; TYPE = string) </retrieve>
<update>work_table</update> <update>work_table</update>
<updatewhere>0</updatewhere> <updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace> <updatekeyinplace>no</updatekeyinplace>
</TableDefinition> <argument>
<TextObject> <name>work_tblno</name>
<band>Header</band> <type>string</type>
<alignment>0</alignment> </argument>
<text>Work Tblno</text> </TableDefinition>
<border>6</border> <TextObject>
<color>33554432</color> <band>Header</band>
<x>2</x> <alignment>2</alignment>
<y>1</y> <text>Work Table No</text>
<height>16</height> <border>2</border>
<width>70</width> <color>33554432</color>
<html> <x>9</x>
<valueishtml>0</valueishtml> <y>8</y>
</html> <height>64</height>
<name>work_tblno_t</name> <width>795</width>
<visible>1</visible> <html>
<font> <valueishtml>0</valueishtml>
<face>Times New Roman</face> </html>
<height>-10</height> <name>work_tblno_t</name>
<weight>400</weight> <visible>1</visible>
<family>1</family> <font>
<pitch>2</pitch> <face>Arial</face>
<charset>0</charset> <height>-10</height>
</font> <weight>400</weight>
<background> <family>2</family>
<mode>2</mode> <pitch>2</pitch>
<color>67108864</color> <charset>0</charset>
</background> </font>
</TextObject> <background>
<TextObject> <mode>1</mode>
<band>Header</band> <color>536870912</color>
<alignment>0</alignment> </background>
<text>Line No</text> </TextObject>
<border>6</border> <TextObject>
<color>33554432</color> <band>Header</band>
<x>74</x> <alignment>2</alignment>
<y>1</y> <text>Line No</text>
<height>16</height> <border>2</border>
<width>49</width> <color>33554432</color>
<html> <x>814</x>
<valueishtml>0</valueishtml> <y>8</y>
</html> <height>64</height>
<name>line_no_t</name> <width>238</width>
<visible>1</visible> <html>
<font> <valueishtml>0</valueishtml>
<face>Times New Roman</face> </html>
<height>-10</height> <name>line_no_t</name>
<weight>400</weight> <visible>1</visible>
<family>1</family> <font>
<pitch>2</pitch> <face>Arial</face>
<charset>0</charset> <height>-10</height>
</font> <weight>400</weight>
<background> <family>2</family>
<mode>2</mode> <pitch>2</pitch>
<color>67108864</color> <charset>0</charset>
</background> </font>
</TextObject> <background>
<TextObject> <mode>1</mode>
<band>Header</band> <color>536870912</color>
<alignment>0</alignment> </background>
<text>Start Date</text> </TextObject>
<border>6</border> <TextObject>
<color>33554432</color> <band>Header</band>
<x>125</x> <alignment>2</alignment>
<y>1</y> <text>Start Date</text>
<height>16</height> <border>2</border>
<width>53</width> <color>33554432</color>
<html> <x>1061</x>
<valueishtml>0</valueishtml> <y>8</y>
</html> <height>64</height>
<name>start_date_t</name> <width>466</width>
<visible>1</visible> <html>
<font> <valueishtml>0</valueishtml>
<face>Times New Roman</face> </html>
<height>-10</height> <name>start_date_t</name>
<weight>400</weight> <visible>1</visible>
<family>1</family> <font>
<pitch>2</pitch> <face>Arial</face>
<charset>0</charset> <height>-10</height>
</font> <weight>400</weight>
<background> <family>2</family>
<mode>2</mode> <pitch>2</pitch>
<color>67108864</color> <charset>0</charset>
</background> </font>
</TextObject> <background>
<TextObject> <mode>1</mode>
<band>Header</band> <color>536870912</color>
<alignment>0</alignment> </background>
<text>End Date</text> </TextObject>
<border>6</border> <TextObject>
<color>33554432</color> <band>Header</band>
<x>180</x> <alignment>2</alignment>
<y>1</y> <text>End Date</text>
<height>16</height> <border>2</border>
<width>55</width> <color>33554432</color>
<html> <x>1536</x>
<valueishtml>0</valueishtml> <y>8</y>
</html> <height>64</height>
<name>end_date_t</name> <width>430</width>
<visible>1</visible> <html>
<font> <valueishtml>0</valueishtml>
<face>Times New Roman</face> </html>
<height>-10</height> <name>end_date_t</name>
<weight>400</weight> <visible>1</visible>
<family>1</family> <font>
<pitch>2</pitch> <face>Arial</face>
<charset>0</charset> <height>-10</height>
</font> <weight>400</weight>
<background> <family>2</family>
<mode>2</mode> <pitch>2</pitch>
<color>67108864</color> <charset>0</charset>
</background> </font>
</TextObject> <background>
<TextObject> <mode>1</mode>
<band>Header</band> <color>536870912</color>
<alignment>0</alignment> </background>
<text>Prd Code Pay</text> </TextObject>
<border>6</border> <TextObject>
<color>33554432</color> <band>Header</band>
<x>237</x> <alignment>2</alignment>
<y>1</y> <text>Prd Code Pay</text>
<height>16</height> <border>2</border>
<width>54</width> <color>33554432</color>
<html> <x>1975</x>
<valueishtml>0</valueishtml> <y>8</y>
</html> <height>64</height>
<name>prd_code__pay_t</name> <width>503</width>
<visible>1</visible> <html>
<font> <valueishtml>0</valueishtml>
<face>Times New Roman</face> </html>
<height>-10</height> <name>prd_code__pay_t</name>
<weight>400</weight> <visible>1</visible>
<family>1</family> <font>
<pitch>2</pitch> <face>Arial</face>
<charset>0</charset> <height>-10</height>
</font> <weight>400</weight>
<background> <family>2</family>
<mode>2</mode> <pitch>2</pitch>
<color>67108864</color> <charset>0</charset>
</background> </font>
</TextObject> <background>
<TextObject> <mode>1</mode>
<band>Header</band> <color>536870912</color>
<alignment>0</alignment> </background>
<text>Chg Date</text> </TextObject>
<border>6</border> <TextObject>
<color>33554432</color> <band>Header</band>
<x>293</x> <alignment>2</alignment>
<y>1</y> <text>Chg Date</text>
<height>16</height> <border>2</border>
<width>57</width> <color>33554432</color>
<html> <x>2487</x>
<valueishtml>0</valueishtml> <y>8</y>
</html> <height>64</height>
<name>chg_date_t</name> <width>347</width>
<visible>1</visible> <html>
<font> <valueishtml>0</valueishtml>
<face>Times New Roman</face> </html>
<height>-10</height> <name>chg_date_t</name>
<weight>400</weight> <visible>1</visible>
<family>1</family> <font>
<pitch>2</pitch> <face>Arial</face>
<charset>0</charset> <height>-10</height>
</font> <weight>400</weight>
<background> <family>2</family>
<mode>2</mode> <pitch>2</pitch>
<color>67108864</color> <charset>0</charset>
</background> </font>
</TextObject> <background>
<TextObject> <mode>1</mode>
<band>Header</band> <color>536870912</color>
<alignment>0</alignment> </background>
<text>Chg Term</text> </TextObject>
<border>6</border> <TextObject>
<color>33554432</color> <band>Header</band>
<x>352</x> <alignment>2</alignment>
<y>1</y> <text>Chg Term</text>
<height>16</height> <border>2</border>
<width>54</width> <color>33554432</color>
<html> <x>2843</x>
<valueishtml>0</valueishtml> <y>8</y>
</html> <height>64</height>
<name>chg_term_t</name> <width>315</width>
<visible>1</visible> <html>
<font> <valueishtml>0</valueishtml>
<face>Times New Roman</face> </html>
<height>-10</height> <name>chg_term_t</name>
<weight>400</weight> <visible>1</visible>
<family>1</family> <font>
<pitch>2</pitch> <face>Arial</face>
<charset>0</charset> <height>-10</height>
</font> <weight>400</weight>
<background> <family>2</family>
<mode>2</mode> <pitch>2</pitch>
<color>67108864</color> <charset>0</charset>
</background> </font>
</TextObject> <background>
<TextObject> <mode>1</mode>
<band>Header</band> <color>536870912</color>
<alignment>0</alignment> </background>
<text>Chg User</text> </TextObject>
<border>6</border> <TextObject>
<color>33554432</color> <band>Header</band>
<x>408</x> <alignment>2</alignment>
<y>1</y> <text>Chg User</text>
<height>16</height> <border>2</border>
<width>68</width> <color>33554432</color>
<html> <x>3168</x>
<valueishtml>0</valueishtml> <y>8</y>
</html> <height>64</height>
<name>chg_user_t</name> <width>329</width>
<visible>1</visible> <html>
<font> <valueishtml>0</valueishtml>
<face>Times New Roman</face> </html>
<height>-10</height> <name>chg_user_t</name>
<weight>400</weight> <visible>1</visible>
<family>1</family> <font>
<pitch>2</pitch> <face>Arial</face>
<charset>0</charset> <height>-10</height>
</font> <weight>400</weight>
<background> <family>2</family>
<mode>2</mode> <pitch>2</pitch>
<color>67108864</color> <charset>0</charset>
</background> </font>
</TextObject> <background>
<ColumnObject> <mode>1</mode>
<band>Detail</band> <color>536870912</color>
<id>1</id> </background>
<alignment>0</alignment> </TextObject>
<tabsequence>32766</tabsequence> <ColumnObject>
<border>5</border> <band>Detail</band>
<color>33554432</color> <id>1</id>
<x>2</x> <alignment>0</alignment>
<y>1</y> <tabsequence>10</tabsequence>
<height>16</height> <border>5</border>
<width>70</width> <color>33554432</color>
<format>[general]</format> <x>9</x>
<html> <y>8</y>
<valueishtml>0</valueishtml> <height>76</height>
</html> <width>795</width>
<name>work_tblno</name> <format>[general]</format>
<visible>1</visible> <html>
<EditStyle style="edit"> <valueishtml>0</valueishtml>
<limit>0</limit> </html>
<case>any</case> <name>work_tblno</name>
<focusrectangle>no</focusrectangle> <visible>1</visible>
<autoselect>no</autoselect> <EditStyle style="edit">
<imemode>0</imemode> <limit>5</limit>
</EditStyle> <case>any</case>
<font> <focusrectangle>no</focusrectangle>
<face>Times New Roman</face> <autoselect>yes</autoselect>
<height>-10</height> <autohscroll>yes</autohscroll>
<weight>400</weight> <imemode>0</imemode>
<family>1</family> </EditStyle>
<pitch>2</pitch> <font>
<charset>0</charset> <face>Arial</face>
</font> <height>-10</height>
<background> <weight>400</weight>
<mode>2</mode> <family>2</family>
<color>16777215</color> <pitch>2</pitch>
</background> <charset>0</charset>
</ColumnObject> </font>
<ColumnObject> <background>
<band>Detail</band> <mode>1</mode>
<id>2</id> <color>536870912</color>
<alignment>0</alignment> </background>
<tabsequence>32766</tabsequence> </ColumnObject>
<border>5</border> <ColumnObject>
<color>33554432</color> <band>Detail</band>
<x>74</x> <id>2</id>
<y>1</y> <alignment>1</alignment>
<height>16</height> <tabsequence>20</tabsequence>
<width>49</width> <border>5</border>
<format>[general]</format> <color>33554432</color>
<html> <x>814</x>
<valueishtml>0</valueishtml> <y>8</y>
</html> <height>76</height>
<name>line_no</name> <width>238</width>
<visible>1</visible> <format>[general]</format>
<EditStyle style="edit"> <html>
<limit>0</limit> <valueishtml>0</valueishtml>
<case>any</case> </html>
<focusrectangle>no</focusrectangle> <name>line_no</name>
<autoselect>no</autoselect> <visible>1</visible>
<imemode>0</imemode> <EditStyle style="edit">
</EditStyle> <limit>0</limit>
<font> <case>any</case>
<face>Times New Roman</face> <focusrectangle>no</focusrectangle>
<height>-10</height> <autoselect>yes</autoselect>
<weight>400</weight> <autohscroll>yes</autohscroll>
<family>1</family> <imemode>0</imemode>
<pitch>2</pitch> </EditStyle>
<charset>0</charset> <font>
</font> <face>Arial</face>
<background> <height>-10</height>
<mode>2</mode> <weight>400</weight>
<color>16777215</color> <family>2</family>
</background> <pitch>2</pitch>
</ColumnObject> <charset>0</charset>
<ColumnObject> </font>
<band>Detail</band> <background>
<id>3</id> <mode>1</mode>
<alignment>0</alignment> <color>536870912</color>
<tabsequence>32766</tabsequence> </background>
<border>5</border> </ColumnObject>
<color>33554432</color> <ColumnObject>
<x>125</x> <band>Detail</band>
<y>1</y> <id>3</id>
<height>16</height> <alignment>0</alignment>
<width>53</width> <tabsequence>30</tabsequence>
<format>[shortdate] [time]</format> <border>5</border>
<html> <color>33554432</color>
<valueishtml>0</valueishtml> <x>1061</x>
</html> <y>8</y>
<name>start_date</name> <height>76</height>
<visible>1</visible> <width>466</width>
<EditStyle style="edit"> <format>[shortdate] [time]</format>
<limit>0</limit> <html>
<case>any</case> <valueishtml>0</valueishtml>
<focusrectangle>no</focusrectangle> </html>
<autoselect>no</autoselect> <name>start_date</name>
<imemode>0</imemode> <visible>1</visible>
</EditStyle> <EditStyle style="edit">
<font> <limit>0</limit>
<face>Times New Roman</face> <case>any</case>
<height>-10</height> <focusrectangle>no</focusrectangle>
<weight>400</weight> <autoselect>yes</autoselect>
<family>1</family> <autohscroll>yes</autohscroll>
<pitch>2</pitch> <imemode>0</imemode>
<charset>0</charset> </EditStyle>
</font> <font>
<background> <face>Arial</face>
<mode>2</mode> <height>-10</height>
<color>16777215</color> <weight>400</weight>
</background> <family>2</family>
</ColumnObject> <pitch>2</pitch>
<ColumnObject> <charset>0</charset>
<band>Detail</band> </font>
<id>4</id> <background>
<alignment>0</alignment> <mode>1</mode>
<tabsequence>32766</tabsequence> <color>536870912</color>
<border>5</border> </background>
<color>33554432</color> </ColumnObject>
<x>180</x> <ColumnObject>
<y>1</y> <band>Detail</band>
<height>16</height> <id>4</id>
<width>55</width> <alignment>0</alignment>
<format>[shortdate] [time]</format> <tabsequence>40</tabsequence>
<html> <border>5</border>
<valueishtml>0</valueishtml> <color>33554432</color>
</html> <x>1536</x>
<name>end_date</name> <y>8</y>
<visible>1</visible> <height>76</height>
<EditStyle style="edit"> <width>430</width>
<limit>0</limit> <format>[shortdate] [time]</format>
<case>any</case> <html>
<focusrectangle>no</focusrectangle> <valueishtml>0</valueishtml>
<autoselect>no</autoselect> </html>
<imemode>0</imemode> <name>end_date</name>
</EditStyle> <visible>1</visible>
<font> <EditStyle style="edit">
<face>Times New Roman</face> <limit>0</limit>
<height>-10</height> <case>any</case>
<weight>400</weight> <focusrectangle>no</focusrectangle>
<family>1</family> <autoselect>yes</autoselect>
<pitch>2</pitch> <autohscroll>yes</autohscroll>
<charset>0</charset> <imemode>0</imemode>
</font> </EditStyle>
<background> <font>
<mode>2</mode> <face>Arial</face>
<color>16777215</color> <height>-10</height>
</background> <weight>400</weight>
</ColumnObject> <family>2</family>
<ColumnObject> <pitch>2</pitch>
<band>Detail</band> <charset>0</charset>
<id>5</id> </font>
<alignment>0</alignment> <background>
<tabsequence>32766</tabsequence> <mode>1</mode>
<border>5</border> <color>536870912</color>
<color>33554432</color> </background>
<x>237</x> </ColumnObject>
<y>1</y> <ColumnObject>
<height>16</height> <band>Detail</band>
<width>54</width> <id>5</id>
<format>[general]</format> <alignment>0</alignment>
<html> <tabsequence>50</tabsequence>
<valueishtml>0</valueishtml> <border>5</border>
</html> <color>33554432</color>
<name>prd_code__pay</name> <x>1975</x>
<visible>1</visible> <y>8</y>
<EditStyle style="edit"> <height>76</height>
<limit>0</limit> <width>503</width>
<case>any</case> <format>[general]</format>
<focusrectangle>no</focusrectangle> <html>
<autoselect>no</autoselect> <valueishtml>0</valueishtml>
<imemode>0</imemode> </html>
</EditStyle> <name>prd_code__pay</name>
<font> <visible>1</visible>
<face>Times New Roman</face> <EditStyle style="edit">
<height>-10</height> <limit>6</limit>
<weight>400</weight> <case>any</case>
<family>1</family> <focusrectangle>no</focusrectangle>
<pitch>2</pitch> <autoselect>yes</autoselect>
<charset>0</charset> <autohscroll>yes</autohscroll>
</font> <imemode>0</imemode>
<background> </EditStyle>
<mode>2</mode> <font>
<color>16777215</color> <face>Arial</face>
</background> <height>-10</height>
</ColumnObject> <weight>400</weight>
<ColumnObject> <family>2</family>
<band>Detail</band> <pitch>2</pitch>
<id>6</id> <charset>0</charset>
<alignment>0</alignment> </font>
<tabsequence>32766</tabsequence> <background>
<border>5</border> <mode>1</mode>
<color>33554432</color> <color>536870912</color>
<x>293</x> </background>
<y>1</y> </ColumnObject>
<height>16</height> <ColumnObject>
<width>57</width> <band>Detail</band>
<format>[shortdate] [time]</format> <id>6</id>
<html> <alignment>0</alignment>
<valueishtml>0</valueishtml> <tabsequence>32766</tabsequence>
</html> <border>5</border>
<name>chg_date</name> <color>33554432</color>
<visible>1</visible> <x>2487</x>
<EditStyle style="edit"> <y>8</y>
<limit>0</limit> <height>76</height>
<case>any</case> <width>347</width>
<focusrectangle>no</focusrectangle> <format>[shortdate] [time]</format>
<autoselect>no</autoselect> <html>
<imemode>0</imemode> <valueishtml>0</valueishtml>
</EditStyle> </html>
<font> <name>chg_date</name>
<face>Times New Roman</face> <visible>1</visible>
<height>-10</height> <EditStyle style="edit">
<weight>400</weight> <limit>0</limit>
<family>1</family> <case>any</case>
<pitch>2</pitch> <focusrectangle>no</focusrectangle>
<charset>0</charset> <autoselect>yes</autoselect>
</font> <autohscroll>yes</autohscroll>
<background> <imemode>0</imemode>
<mode>2</mode> </EditStyle>
<color>16777215</color> <font>
</background> <face>Arial</face>
</ColumnObject> <height>-10</height>
<ColumnObject> <weight>400</weight>
<band>Detail</band> <family>2</family>
<id>7</id> <pitch>2</pitch>
<alignment>0</alignment> <charset>0</charset>
<tabsequence>32766</tabsequence> </font>
<border>5</border> <background>
<color>33554432</color> <mode>1</mode>
<x>352</x> <color>536870912</color>
<y>1</y> </background>
<height>16</height> </ColumnObject>
<width>54</width> <ColumnObject>
<format>[general]</format> <band>Detail</band>
<html> <id>7</id>
<valueishtml>0</valueishtml> <alignment>0</alignment>
</html> <tabsequence>32766</tabsequence>
<name>chg_term</name> <border>5</border>
<visible>1</visible> <color>33554432</color>
<EditStyle style="edit"> <x>2843</x>
<limit>0</limit> <y>8</y>
<case>any</case> <height>76</height>
<focusrectangle>no</focusrectangle> <width>315</width>
<autoselect>no</autoselect> <format>[general]</format>
<imemode>0</imemode> <html>
</EditStyle> <valueishtml>0</valueishtml>
<font> </html>
<face>Times New Roman</face> <name>chg_term</name>
<height>-10</height> <visible>1</visible>
<weight>400</weight> <EditStyle style="edit">
<family>1</family> <limit>300</limit>
<pitch>2</pitch> <case>any</case>
<charset>0</charset> <focusrectangle>no</focusrectangle>
</font> <autoselect>yes</autoselect>
<background> <autohscroll>yes</autohscroll>
<mode>2</mode> <imemode>0</imemode>
<color>16777215</color> </EditStyle>
</background> <font>
</ColumnObject> <face>Arial</face>
<ColumnObject> <height>-10</height>
<band>Detail</band> <weight>400</weight>
<id>8</id> <family>2</family>
<alignment>0</alignment> <pitch>2</pitch>
<tabsequence>32766</tabsequence> <charset>0</charset>
<border>5</border> </font>
<color>33554432</color> <background>
<x>408</x> <mode>1</mode>
<y>1</y> <color>536870912</color>
<height>16</height> </background>
<width>68</width> </ColumnObject>
<format>[general]</format> <ColumnObject>
<html> <band>Detail</band>
<valueishtml>0</valueishtml> <id>8</id>
</html> <alignment>0</alignment>
<name>chg_user</name> <tabsequence>32766</tabsequence>
<visible>1</visible> <border>5</border>
<EditStyle style="edit"> <color>33554432</color>
<limit>0</limit> <x>3168</x>
<case>any</case> <y>8</y>
<focusrectangle>no</focusrectangle> <height>76</height>
<autoselect>no</autoselect> <width>329</width>
<imemode>0</imemode> <format>[general]</format>
</EditStyle> <html>
<font> <valueishtml>0</valueishtml>
<face>Times New Roman</face> </html>
<height>-10</height> <name>chg_user</name>
<weight>400</weight> <visible>1</visible>
<family>1</family> <EditStyle style="edit">
<pitch>2</pitch> <limit>10</limit>
<charset>0</charset> <case>any</case>
</font> <focusrectangle>no</focusrectangle>
<background> <autoselect>yes</autoselect>
<mode>2</mode> <autohscroll>yes</autohscroll>
<color>16777215</color> <imemode>0</imemode>
</background> </EditStyle>
</ColumnObject> <font>
<HtmlTable> <face>Arial</face>
<border>1</border> <height>-10</height>
</HtmlTable> <weight>400</weight>
<HtmlGen> <family>2</family>
<clientevents>1</clientevents> <pitch>2</pitch>
<clientvalidation>1</clientvalidation> <charset>0</charset>
<clientcomputedfields>1</clientcomputedfields> </font>
<clientformatting>0</clientformatting> <background>
<clientscriptable>0</clientscriptable> <mode>1</mode>
<generatejavascript>1</generatejavascript> <color>536870912</color>
<encodeselflinkargs>1</encodeselflinkargs> </background>
<netscapelayers>0</netscapelayers> </ColumnObject>
</HtmlGen> <HtmlTable>
<Export.XML> <border>1</border>
<headgroups>1</headgroups> </HtmlTable>
<includewhitespace>0</includewhitespace> <HtmlGen>
<metadatatype>0</metadatatype> <clientevents>1</clientevents>
<savemetadata>0</savemetadata> <clientvalidation>1</clientvalidation>
</Export.XML> <clientcomputedfields>1</clientcomputedfields>
<Import.XML> <clientformatting>0</clientformatting>
</Import.XML> <clientscriptable>0</clientscriptable>
<Export.PDF> <generatejavascript>1</generatejavascript>
<method>0</method> <encodeselflinkargs>1</encodeselflinkargs>
<distill.custompostscript>0</distill.custompostscript> <netscapelayers>0</netscapelayers>
<xslfop.print>0</xslfop.print> </HtmlGen>
</Export.PDF> <Export.XML>
</Sybase_eDataWindow> <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"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow> <!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow> <Sybase_eDataWindow>
<Release>9</Release> <Release>9</Release>
<BaseDefinition> <BaseDefinition>
<units>1</units> <units>1</units>
<timer_interval>0</timer_interval> <timer_interval>0</timer_interval>
<color>67108864</color> <color>67108864</color>
<processing>0</processing> <processing>0</processing>
<HTMLDW>no</HTMLDW> <HTMLDW>no</HTMLDW>
<print> <print>
<documentname></documentname> <documentname></documentname>
<printername></printername> <printername></printername>
<orientation>0</orientation> <orientation>0</orientation>
<margin> <margin>
<left>24</left> <left>24</left>
<right>24</right> <right>24</right>
<top>24</top> <top>24</top>
<bottom>24</bottom> <bottom>24</bottom>
</margin> </margin>
<paper> <paper>
<source>0</source> <source>0</source>
<size>0</size> <size>0</size>
</paper> </paper>
<prompt>no</prompt> <prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter> <canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons> <buttons>no</buttons>
<preview.buttons>no</preview.buttons> <preview.buttons>no</preview.buttons>
<cliptext>no</cliptext> <cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob> <overrideprintjob>no</overrideprintjob>
</print> </print>
</BaseDefinition> </BaseDefinition>
<Summary> <Summary>
<height>0</height> <height>0</height>
<color>536870912</color> <color>536870912</color>
</Summary> </Summary>
<Footer> <Footer>
<height>0</height> <height>0</height>
<color>536870912</color> <color>536870912</color>
</Footer> </Footer>
<Detail> <Detail>
<height>166</height> <height>331</height>
<color>536870912</color> <color>536870912</color>
</Detail> </Detail>
<TableDefinition> <TableDefinition>
<table_column> <table_column>
<type size="5">char</type> <type size="5">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<key>yes</key> <key>yes</key>
<name>work_tblno</name> <name>work_tblno</name>
<dbname>work_table.work_tblno</dbname> <dbname>work_table.work_tblno</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type precision="0">decimal</type> <type precision="0">decimal</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<key>yes</key> <key>yes</key>
<name>line_no</name> <name>line_no</name>
<dbname>work_table.line_no</dbname> <dbname>work_table.line_no</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type>datetime</type> <type>datetime</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>start_date</name> <name>start_date</name>
<dbname>work_table.start_date</dbname> <dbname>work_table.start_date</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type>datetime</type> <type>datetime</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>end_date</name> <name>end_date</name>
<dbname>work_table.end_date</dbname> <dbname>work_table.end_date</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="6">char</type> <type size="6">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>prd_code__pay</name> <name>prd_code__pay</name>
<dbname>work_table.prd_code__pay</dbname> <dbname>work_table.prd_code__pay</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type>datetime</type> <type>datetime</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>chg_date</name> <name>chg_date</name>
<dbname>work_table.chg_date</dbname> <dbname>work_table.chg_date</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="15">char</type> <type size="300">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>chg_term</name> <name>chg_term</name>
<dbname>work_table.chg_term</dbname> <dbname>work_table.chg_term</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="10">char</type> <type size="10">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>chg_user</name> <name>chg_user</name>
<dbname>work_table.chg_user</dbname> <dbname>work_table.chg_user</dbname>
</table_column> </table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;work_table&quot; ) COLUMN(NAME=&quot;work_table.work_tblno&quot;) COLUMN(NAME=&quot;work_table.line_no&quot;) COLUMN(NAME=&quot;work_table.start_date&quot;) COLUMN(NAME=&quot;work_table.end_date&quot;) COLUMN(NAME=&quot;work_table.prd_code__pay&quot;) COLUMN(NAME=&quot;work_table.chg_date&quot;) COLUMN(NAME=&quot;work_table.chg_term&quot;) COLUMN(NAME=&quot;work_table.chg_user&quot;)WHERE( EXP1 =&quot;work_table.work_tblno&quot; OP =&quot;=&quot; EXP2 =&quot;:work_tblno&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;work_table.line_no&quot; OP =&quot;=&quot; EXP2 =&quot;:line_no&quot; ) ) ARG(NAME = &quot;work_tblno&quot; TYPE = string) ARG(NAME = &quot;line_no&quot; TYPE = number) </retrieve> <retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;work_table&quot; ) COLUMN(NAME=&quot;work_table.work_tblno&quot;) COLUMN(NAME=&quot;work_table.line_no&quot;) COLUMN(NAME=&quot;work_table.start_date&quot;) COLUMN(NAME=&quot;work_table.end_date&quot;) COLUMN(NAME=&quot;work_table.prd_code__pay&quot;) COLUMN(NAME=&quot;work_table.chg_date&quot;) COLUMN(NAME=&quot;work_table.chg_term&quot;) COLUMN(NAME=&quot;work_table.chg_user&quot;)WHERE( EXP1 =&quot;work_table.work_tblno&quot; OP =&quot;=&quot; EXP2 =&quot;:work_tblno&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;work_table.line_no&quot; OP =&quot;=&quot; EXP2 =&quot;:line_no&quot; ) ) ARG(NAME = &quot;work_tblno&quot; TYPE = string) ARG(NAME = &quot;line_no&quot; TYPE = number) </retrieve>
<update>work_table</update> <update>work_table</update>
<updatewhere>0</updatewhere> <updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace> <updatekeyinplace>no</updatekeyinplace>
<argument> <argument>
<name>work_tblno</name> <name>work_tblno</name>
<type>string</type> <type>string</type>
</argument> </argument>
<argument> <argument>
<name>line_no</name> <name>line_no</name>
<type>number</type> <type>number</type>
</argument> </argument>
</TableDefinition> </TableDefinition>
<GroupBox> <GroupBox>
<band>Detail</band> <band>Detail</band>
<text>Basic</text> <text>Other</text>
<border>2</border> <border>2</border>
<color>33554432</color> <color>33554432</color>
<x>6</x> <x>11</x>
<y>3</y> <y>144</y>
<height>148</height> <height>46</height>
<width>389</width> <width>522</width>
<name>gb_1</name> <name>gb_2</name>
<tag></tag> <visible>1</visible>
<visible>1</visible> <font>
<font> <face>Arial</face>
<face>Times New Roman</face> <height>-10</height>
<height>-10</height> <weight>400</weight>
<weight>400</weight> <family>2</family>
<family>1</family> <pitch>2</pitch>
<pitch>2</pitch> <charset>0</charset>
<charset>0</charset> </font>
</font> <background>
<background> <mode>1</mode>
<mode>2</mode> <color>553648127</color>
<color>67108864</color> </background>
</background> </GroupBox>
</GroupBox> <GroupBox>
<ColumnObject> <band>Detail</band>
<band>Detail</band> <text>Basic</text>
<id>1</id> <border>2</border>
<alignment>0</alignment> <color>33554432</color>
<tabsequence>10</tabsequence> <x>10</x>
<border>5</border> <y>1</y>
<color>33554432</color> <height>138</height>
<x>123</x> <width>483</width>
<y>21</y> <name>gb_1</name>
<height>16</height> <visible>1</visible>
<width>78</width> <font>
<format>[general]</format> <face>Arial</face>
<html> <height>-10</height>
<valueishtml>0</valueishtml> <weight>400</weight>
</html> <family>2</family>
<name>work_tblno</name> <pitch>2</pitch>
<visible>1</visible> <charset>0</charset>
<EditStyle style="edit"> </font>
<limit>5</limit> <background>
<case>upper</case> <mode>1</mode>
<focusrectangle>no</focusrectangle> <color>553648127</color>
<autoselect>yes</autoselect> </background>
<autohscroll>yes</autohscroll> </GroupBox>
<imemode>0</imemode> <TextObject>
</EditStyle> <band>Detail</band>
<font> <alignment>1</alignment>
<face>Times New Roman</face> <text>Work Table No :</text>
<height>-10</height> <border>2</border>
<weight>400</weight> <color>33554432</color>
<family>2</family> <x>14</x>
<pitch>2</pitch> <y>23</y>
<charset>0</charset> <height>16</height>
</font> <width>150</width>
<background> <html>
<mode>2</mode> <valueishtml>0</valueishtml>
<color>16777215</color> </html>
</background> <name>work_tblno_t</name>
</ColumnObject> <visible>1</visible>
<ColumnObject> <font>
<band>Detail</band> <face>Arial</face>
<id>3</id> <height>-10</height>
<alignment>0</alignment> <weight>400</weight>
<tabsequence>30</tabsequence> <family>2</family>
<border>5</border> <pitch>2</pitch>
<color>33554432</color> <charset>0</charset>
<x>123</x> </font>
<y>44</y> <background>
<height>16</height> <mode>1</mode>
<width>78</width> <color>536870912</color>
<format>dd/mm/yy</format> </background>
<html> </TextObject>
<valueishtml>0</valueishtml> <TextObject>
</html> <band>Detail</band>
<name>start_date</name> <alignment>1</alignment>
<visible>1</visible> <text>Line No:</text>
<EditStyle style="editmask"> <border>2</border>
<mask>dd/mm/yy</mask> <color>33554432</color>
<imemode>0</imemode> <x>14</x>
<focusrectangle>no</focusrectangle> <y>46</y>
</EditStyle> <height>16</height>
<font> <width>150</width>
<face>Times New Roman</face> <html>
<height>-10</height> <valueishtml>0</valueishtml>
<weight>400</weight> </html>
<family>2</family> <name>line_no_t</name>
<pitch>2</pitch> <visible>1</visible>
<charset>0</charset> <font>
</font> <face>Arial</face>
<background> <height>-10</height>
<mode>2</mode> <weight>400</weight>
<color>16777215</color> <family>2</family>
</background> <pitch>2</pitch>
</ColumnObject> <charset>0</charset>
<ColumnObject> </font>
<band>Detail</band> <background>
<id>5</id> <mode>1</mode>
<alignment>0</alignment> <color>536870912</color>
<tabsequence>50</tabsequence> </background>
<border>5</border> </TextObject>
<color>33554432</color> <TextObject>
<x>123</x> <band>Detail</band>
<y>67</y> <alignment>1</alignment>
<height>16</height> <text>Start Date:</text>
<width>78</width> <border>2</border>
<format>[general]</format> <color>33554432</color>
<html> <x>14</x>
<valueishtml>0</valueishtml> <y>69</y>
</html> <height>16</height>
<name>prd_code__pay</name> <width>150</width>
<visible>1</visible> <html>
<EditStyle style="edit"> <valueishtml>0</valueishtml>
<limit>6</limit> </html>
<case>upper</case> <name>start_date_t</name>
<focusrectangle>no</focusrectangle> <visible>1</visible>
<autoselect>yes</autoselect> <font>
<autohscroll>yes</autohscroll> <face>Arial</face>
<imemode>0</imemode> <height>-10</height>
</EditStyle> <weight>400</weight>
<font> <family>2</family>
<face>Times New Roman</face> <pitch>2</pitch>
<height>-10</height> <charset>0</charset>
<weight>400</weight> </font>
<family>2</family> <background>
<pitch>2</pitch> <mode>1</mode>
<charset>0</charset> <color>536870912</color>
</font> </background>
<background> </TextObject>
<mode>2</mode> <TextObject>
<color>16777215</color> <band>Detail</band>
</background> <alignment>1</alignment>
</ColumnObject> <text>End Date:</text>
<ColumnObject> <border>2</border>
<band>Detail</band> <color>33554432</color>
<id>6</id> <x>14</x>
<alignment>0</alignment> <y>92</y>
<tabsequence>32766</tabsequence> <height>16</height>
<border>5</border> <width>150</width>
<color>255</color> <html>
<x>123</x> <valueishtml>0</valueishtml>
<y>90</y> </html>
<height>16</height> <name>end_date_t</name>
<width>78</width> <visible>1</visible>
<format>[shortdate] [time]</format> <font>
<html> <face>Arial</face>
<valueishtml>0</valueishtml> <height>-10</height>
</html> <weight>400</weight>
<name>chg_date</name> <family>2</family>
<visible>0</visible> <pitch>2</pitch>
<EditStyle style="edit"> <charset>0</charset>
<limit>0</limit> </font>
<case>any</case> <background>
<focusrectangle>no</focusrectangle> <mode>1</mode>
<autoselect>yes</autoselect> <color>536870912</color>
<autohscroll>yes</autohscroll> </background>
<imemode>0</imemode> </TextObject>
</EditStyle> <TextObject>
<font> <band>Detail</band>
<face>Times New Roman</face> <alignment>1</alignment>
<height>-10</height> <text>Period Code Pay :</text>
<weight>400</weight> <border>2</border>
<family>2</family> <color>33554432</color>
<pitch>2</pitch> <x>14</x>
<charset>0</charset> <y>115</y>
</font> <height>16</height>
<background> <width>150</width>
<mode>2</mode> <html>
<color>67108864</color> <valueishtml>0</valueishtml>
</background> </html>
</ColumnObject> <name>prd_code__pay_t</name>
<ColumnObject> <visible>1</visible>
<band>Detail</band> <font>
<id>7</id> <face>Arial</face>
<alignment>0</alignment> <height>-10</height>
<tabsequence>32766</tabsequence> <weight>400</weight>
<border>5</border> <family>2</family>
<color>255</color> <pitch>2</pitch>
<x>123</x> <charset>0</charset>
<y>113</y> </font>
<height>16</height> <background>
<width>78</width> <mode>1</mode>
<format>[general]</format> <color>536870912</color>
<html> </background>
<valueishtml>0</valueishtml> </TextObject>
</html> <TextObject>
<name>chg_term</name> <band>Detail</band>
<visible>0</visible> <alignment>1</alignment>
<EditStyle style="edit"> <text>Chg Date:</text>
<limit>15</limit> <border>2</border>
<case>any</case> <color>33554432</color>
<focusrectangle>no</focusrectangle> <x>15</x>
<autoselect>yes</autoselect> <y>165</y>
<autohscroll>yes</autohscroll> <height>16</height>
<imemode>0</imemode> <width>80</width>
</EditStyle> <html>
<font> <valueishtml>0</valueishtml>
<face>Times New Roman</face> </html>
<height>-10</height> <name>chg_date_t</name>
<weight>400</weight> <visible>1</visible>
<family>2</family> <font>
<pitch>2</pitch> <face>Arial</face>
<charset>0</charset> <height>-10</height>
</font> <weight>400</weight>
<background> <family>2</family>
<mode>2</mode> <pitch>2</pitch>
<color>67108864</color> <charset>0</charset>
</background> </font>
</ColumnObject> <background>
<TextObject> <mode>1</mode>
<band>Detail</band> <color>536870912</color>
<alignment>1</alignment> </background>
<text>Line No:</text> </TextObject>
<border>0</border> <TextObject>
<color>33554432</color> <band>Detail</band>
<x>225</x> <alignment>1</alignment>
<y>21</y> <text>Chg Term:</text>
<height>16</height> <border>2</border>
<width>54</width> <color>33554432</color>
<html> <x>187</x>
<valueishtml>0</valueishtml> <y>164</y>
</html> <height>16</height>
<name>line_no_t</name> <width>80</width>
<visible>1</visible> <html>
<font> <valueishtml>0</valueishtml>
<face>Times New Roman</face> </html>
<height>-10</height> <name>chg_term_t</name>
<weight>400</weight> <visible>1</visible>
<family>1</family> <font>
<pitch>2</pitch> <face>Arial</face>
<charset>0</charset> <height>-10</height>
</font> <weight>400</weight>
<background> <family>2</family>
<mode>1</mode> <pitch>2</pitch>
<color>536870912</color> <charset>0</charset>
</background> </font>
</TextObject> <background>
<TextObject> <mode>1</mode>
<band>Detail</band> <color>536870912</color>
<alignment>1</alignment> </background>
<text>End Date:</text> </TextObject>
<border>0</border> <TextObject>
<color>33554432</color> <band>Detail</band>
<x>225</x> <alignment>1</alignment>
<y>44</y> <text>Chg User:</text>
<height>16</height> <border>2</border>
<width>54</width> <color>33554432</color>
<html> <x>359</x>
<valueishtml>0</valueishtml> <y>164</y>
</html> <height>16</height>
<name>end_date_t</name> <width>80</width>
<visible>1</visible> <html>
<font> <valueishtml>0</valueishtml>
<face>Times New Roman</face> </html>
<height>-10</height> <name>chg_user_t</name>
<weight>400</weight> <visible>1</visible>
<family>1</family> <font>
<pitch>2</pitch> <face>Arial</face>
<charset>0</charset> <height>-10</height>
</font> <weight>400</weight>
<background> <family>2</family>
<mode>1</mode> <pitch>2</pitch>
<color>536870912</color> <charset>0</charset>
</background> </font>
</TextObject> <background>
<ColumnObject> <mode>1</mode>
<band>Detail</band> <color>536870912</color>
<id>2</id> </background>
<alignment>1</alignment> </TextObject>
<tabsequence>20</tabsequence> <ColumnObject>
<border>5</border> <band>Detail</band>
<color>33554432</color> <id>1</id>
<x>283</x> <alignment>0</alignment>
<y>21</y> <tabsequence>10</tabsequence>
<height>16</height> <border>5</border>
<width>78</width> <color>0</color>
<format>[general]</format> <x>170</x>
<html> <y>23</y>
<valueishtml>0</valueishtml> <height>16</height>
</html> <width>80</width>
<name>line_no</name> <format>[general]</format>
<visible>1</visible> <html>
<EditStyle style="edit"> <valueishtml>0</valueishtml>
<limit>0</limit> </html>
<case>any</case> <name>work_tblno</name>
<focusrectangle>no</focusrectangle> <visible>1</visible>
<autoselect>yes</autoselect> <EditStyle style="edit">
<autohscroll>yes</autohscroll> <limit>5</limit>
<imemode>0</imemode> <case>any</case>
</EditStyle> <focusrectangle>no</focusrectangle>
<font> <autoselect>yes</autoselect>
<face>Times New Roman</face> <autohscroll>yes</autohscroll>
<height>-10</height> <imemode>0</imemode>
<weight>400</weight> </EditStyle>
<family>2</family> <font>
<pitch>2</pitch> <face>Arial</face>
<charset>0</charset> <height>-10</height>
</font> <weight>400</weight>
<background> <family>2</family>
<mode>2</mode> <pitch>2</pitch>
<color>16777215</color> <charset>0</charset>
</background> </font>
</ColumnObject> <background>
<ColumnObject> <mode>2</mode>
<band>Detail</band> <color>16777215</color>
<id>4</id> </background>
<alignment>0</alignment> </ColumnObject>
<tabsequence>40</tabsequence> <ColumnObject>
<border>5</border> <band>Detail</band>
<color>33554432</color> <id>2</id>
<x>283</x> <alignment>1</alignment>
<y>44</y> <tabsequence>20</tabsequence>
<height>16</height> <border>5</border>
<width>78</width> <color>0</color>
<format>dd/mm/yy</format> <x>170</x>
<html> <y>46</y>
<valueishtml>0</valueishtml> <height>16</height>
</html> <width>80</width>
<name>end_date</name> <format>[general]</format>
<visible>1</visible> <html>
<EditStyle style="editmask"> <valueishtml>0</valueishtml>
<mask>dd/mm/yy</mask> </html>
<imemode>0</imemode> <name>line_no</name>
<focusrectangle>no</focusrectangle> <visible>1</visible>
</EditStyle> <EditStyle style="edit">
<font> <limit>0</limit>
<face>Times New Roman</face> <case>any</case>
<height>-10</height> <focusrectangle>no</focusrectangle>
<weight>400</weight> <autoselect>yes</autoselect>
<family>2</family> <autohscroll>yes</autohscroll>
<pitch>2</pitch> <imemode>0</imemode>
<charset>0</charset> </EditStyle>
</font> <font>
<background> <face>Arial</face>
<mode>2</mode> <height>-10</height>
<color>16777215</color> <weight>400</weight>
</background> <family>2</family>
</ColumnObject> <pitch>2</pitch>
<TextObject> <charset>0</charset>
<band>Detail</band> </font>
<alignment>1</alignment> <background>
<text>Chg User:</text> <mode>2</mode>
<border>0</border> <color>16777215</color>
<color>33554432</color> </background>
<x>225</x> </ColumnObject>
<y>92</y> <ColumnObject>
<height>16</height> <band>Detail</band>
<width>54</width> <id>3</id>
<html> <alignment>0</alignment>
<valueishtml>0</valueishtml> <tabsequence>30</tabsequence>
</html> <border>5</border>
<name>chg_user_t</name> <color>0</color>
<visible>0</visible> <x>170</x>
<font> <y>69</y>
<face>Times New Roman</face> <height>16</height>
<height>-10</height> <width>132</width>
<weight>400</weight> <format>[shortdate] [time]</format>
<family>1</family> <html>
<pitch>2</pitch> <valueishtml>0</valueishtml>
<charset>0</charset> </html>
</font> <name>start_date</name>
<background> <visible>1</visible>
<mode>1</mode> <EditStyle style="edit">
<color>536870912</color> <limit>0</limit>
</background> <case>any</case>
</TextObject> <focusrectangle>no</focusrectangle>
<ColumnObject> <autoselect>yes</autoselect>
<band>Detail</band> <autohscroll>yes</autohscroll>
<id>8</id> <imemode>0</imemode>
<alignment>0</alignment> </EditStyle>
<tabsequence>32766</tabsequence> <font>
<border>5</border> <face>Arial</face>
<color>255</color> <height>-10</height>
<x>283</x> <weight>400</weight>
<y>92</y> <family>2</family>
<height>16</height> <pitch>2</pitch>
<width>78</width> <charset>0</charset>
<format>[general]</format> </font>
<html> <background>
<valueishtml>0</valueishtml> <mode>2</mode>
</html> <color>16777215</color>
<name>chg_user</name> </background>
<visible>0</visible> </ColumnObject>
<EditStyle style="edit"> <ColumnObject>
<limit>10</limit> <band>Detail</band>
<case>any</case> <id>4</id>
<focusrectangle>no</focusrectangle> <alignment>0</alignment>
<autoselect>yes</autoselect> <tabsequence>40</tabsequence>
<autohscroll>yes</autohscroll> <border>5</border>
<imemode>0</imemode> <color>0</color>
</EditStyle> <x>170</x>
<font> <y>92</y>
<face>Times New Roman</face> <height>16</height>
<height>-10</height> <width>132</width>
<weight>400</weight> <format>[shortdate] [time]</format>
<family>2</family> <html>
<pitch>2</pitch> <valueishtml>0</valueishtml>
<charset>0</charset> </html>
</font> <name>end_date</name>
<background> <visible>1</visible>
<mode>2</mode> <EditStyle style="edit">
<color>67108864</color> <limit>0</limit>
</background> <case>any</case>
</ColumnObject> <focusrectangle>no</focusrectangle>
<TextObject> <autoselect>yes</autoselect>
<band>Detail</band> <autohscroll>yes</autohscroll>
<alignment>1</alignment> <imemode>0</imemode>
<text>Work Table:</text> </EditStyle>
<border>0</border> <font>
<color>33554432</color> <face>Arial</face>
<x>44</x> <height>-10</height>
<y>21</y> <weight>400</weight>
<height>16</height> <family>2</family>
<width>73</width> <pitch>2</pitch>
<html> <charset>0</charset>
<valueishtml>0</valueishtml> </font>
</html> <background>
<name>work_tblno_t</name> <mode>2</mode>
<visible>1</visible> <color>16777215</color>
<font> </background>
<face>Times New Roman</face> </ColumnObject>
<height>-10</height> <ColumnObject>
<weight>400</weight> <band>Detail</band>
<family>1</family> <id>5</id>
<pitch>2</pitch> <alignment>0</alignment>
<charset>0</charset> <tabsequence>50</tabsequence>
</font> <border>5</border>
<background> <color>0</color>
<mode>1</mode> <x>170</x>
<color>536870912</color> <y>115</y>
</background> <height>16</height>
</TextObject> <width>80</width>
<TextObject> <format>[general]</format>
<band>Detail</band> <html>
<alignment>1</alignment> <valueishtml>0</valueishtml>
<text>Start Date:</text> </html>
<border>0</border> <name>prd_code__pay</name>
<color>33554432</color> <visible>1</visible>
<x>44</x> <EditStyle style="edit">
<y>44</y> <limit>6</limit>
<height>16</height> <case>any</case>
<width>73</width> <focusrectangle>no</focusrectangle>
<html> <autoselect>yes</autoselect>
<valueishtml>0</valueishtml> <autohscroll>yes</autohscroll>
</html> <imemode>0</imemode>
<name>start_date_t</name> </EditStyle>
<visible>1</visible> <font>
<font> <face>Arial</face>
<face>Times New Roman</face> <height>-10</height>
<height>-10</height> <weight>400</weight>
<weight>400</weight> <family>2</family>
<family>1</family> <pitch>2</pitch>
<pitch>2</pitch> <charset>0</charset>
<charset>0</charset> </font>
</font> <background>
<background> <mode>2</mode>
<mode>1</mode> <color>16777215</color>
<color>536870912</color> </background>
</background> </ColumnObject>
</TextObject> <ColumnObject>
<TextObject> <band>Detail</band>
<band>Detail</band> <id>6</id>
<alignment>1</alignment> <alignment>0</alignment>
<text>Paid Preriod:</text> <tabsequence>32766</tabsequence>
<border>0</border> <border>5</border>
<color>33554432</color> <color>255</color>
<x>15</x> <x>101</x>
<y>67</y> <y>165</y>
<height>16</height> <height>16</height>
<width>102</width> <width>80</width>
<html> <format>[shortdate] [time]</format>
<valueishtml>0</valueishtml> <html>
</html> <valueishtml>0</valueishtml>
<name>prd_code__pay_t</name> </html>
<visible>1</visible> <name>chg_date</name>
<font> <visible>1</visible>
<face>Times New Roman</face> <EditStyle style="edit">
<height>-10</height> <limit>0</limit>
<weight>400</weight> <case>any</case>
<family>1</family> <focusrectangle>no</focusrectangle>
<pitch>2</pitch> <autoselect>yes</autoselect>
<charset>0</charset> <autohscroll>yes</autohscroll>
</font> <imemode>0</imemode>
<background> </EditStyle>
<mode>1</mode> <font>
<color>536870912</color> <face>Arial</face>
</background> <height>-10</height>
</TextObject> <weight>400</weight>
<TextObject> <family>2</family>
<band>Detail</band> <pitch>2</pitch>
<alignment>1</alignment> <charset>0</charset>
<text>Chg Date:</text> </font>
<border>0</border> <background>
<color>33554432</color> <mode>1</mode>
<x>44</x> <color>536870912</color>
<y>90</y> </background>
<height>16</height> </ColumnObject>
<width>73</width> <ColumnObject>
<html> <band>Detail</band>
<valueishtml>0</valueishtml> <id>7</id>
</html> <alignment>0</alignment>
<name>chg_date_t</name> <tabsequence>32766</tabsequence>
<visible>0</visible> <border>5</border>
<font> <color>255</color>
<face>Times New Roman</face> <x>273</x>
<height>-10</height> <y>164</y>
<weight>400</weight> <height>16</height>
<family>1</family> <width>80</width>
<pitch>2</pitch> <format>[general]</format>
<charset>0</charset> <html>
</font> <valueishtml>0</valueishtml>
<background> </html>
<mode>1</mode> <name>chg_term</name>
<color>536870912</color> <visible>1</visible>
</background> <EditStyle style="edit">
</TextObject> <limit>300</limit>
<TextObject> <case>any</case>
<band>Detail</band> <focusrectangle>no</focusrectangle>
<alignment>1</alignment> <autoselect>yes</autoselect>
<text>Chg Term:</text> <autohscroll>yes</autohscroll>
<border>0</border> <imemode>0</imemode>
<color>33554432</color> </EditStyle>
<x>44</x> <font>
<y>113</y> <face>Arial</face>
<height>16</height> <height>-10</height>
<width>73</width> <weight>400</weight>
<html> <family>2</family>
<valueishtml>0</valueishtml> <pitch>2</pitch>
</html> <charset>0</charset>
<name>chg_term_t</name> </font>
<visible>0</visible> <background>
<font> <mode>1</mode>
<face>Times New Roman</face> <color>536870912</color>
<height>-10</height> </background>
<weight>400</weight> </ColumnObject>
<family>1</family> <ColumnObject>
<pitch>2</pitch> <band>Detail</band>
<charset>0</charset> <id>8</id>
</font> <alignment>0</alignment>
<background> <tabsequence>32766</tabsequence>
<mode>1</mode> <border>5</border>
<color>536870912</color> <color>255</color>
</background> <x>445</x>
</TextObject> <y>164</y>
<HtmlTable> <height>16</height>
<border>1</border> <width>80</width>
</HtmlTable> <format>[general]</format>
<HtmlGen> <html>
<clientevents>1</clientevents> <valueishtml>0</valueishtml>
<clientvalidation>1</clientvalidation> </html>
<clientcomputedfields>1</clientcomputedfields> <name>chg_user</name>
<clientformatting>0</clientformatting> <visible>1</visible>
<clientscriptable>0</clientscriptable> <EditStyle style="edit">
<generatejavascript>1</generatejavascript> <limit>10</limit>
<encodeselflinkargs>1</encodeselflinkargs> <case>any</case>
<netscapelayers>0</netscapelayers> <focusrectangle>no</focusrectangle>
</HtmlGen> <autoselect>yes</autoselect>
<Export.XML> <autohscroll>yes</autohscroll>
<headgroups>1</headgroups> <imemode>0</imemode>
<includewhitespace>0</includewhitespace> </EditStyle>
<metadatatype>0</metadatatype> <font>
<savemetadata>0</savemetadata> <face>Arial</face>
</Export.XML> <height>-10</height>
<Import.XML> <weight>400</weight>
</Import.XML> <family>2</family>
<Export.PDF> <pitch>2</pitch>
<method>0</method> <charset>0</charset>
<distill.custompostscript>0</distill.custompostscript> </font>
<xslfop.print>0</xslfop.print> <background>
</Export.PDF> <mode>1</mode>
</Sybase_eDataWindow> <color>536870912</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>
$PBExportHeader$d_work_balance_edit.srd $PBExportHeader$d_work_balance_edit.srd
release 9; 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 ) 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" ) summary(height=194 color="536870912" )
footer(height=0 color="536870912" ) footer(height=0 color="536870912" )
detail(height=166 color="536870912" ) detail(height=375 color="536870912" )
table(column=(type=char(5) update=yes updatewhereclause=yes key=yes name=work_tblno dbname="work_table.work_tblno" ) table(column=(type=char(5) update=yes updatewhereclause=yes key=yes name=work_tblno dbname="work_table.work_tblno" )
column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=line_no dbname="work_table.line_no" ) column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=line_no dbname="work_table.line_no" )
column=(type=datetime update=yes updatewhereclause=yes name=start_date dbname="work_table.start_date" ) column=(type=datetime update=yes updatewhereclause=yes name=start_date dbname="work_table.start_date" )
...@@ -12,7 +12,7 @@ table(column=(type=char(5) update=yes updatewhereclause=yes key=yes name=work_tb ...@@ -12,7 +12,7 @@ table(column=(type=char(5) update=yes updatewhereclause=yes key=yes name=work_tb
column=(type=datetime update=yes updatewhereclause=yes name=chg_date dbname="work_table.chg_date" ) column=(type=datetime update=yes updatewhereclause=yes name=chg_date dbname="work_table.chg_date" )
column=(type=char(15) update=yes updatewhereclause=yes name=chg_term dbname="work_table.chg_term" ) column=(type=char(15) update=yes updatewhereclause=yes name=chg_term dbname="work_table.chg_term" )
column=(type=char(10) update=yes updatewhereclause=yes name=chg_user dbname="work_table.chg_user" ) column=(type=char(10) update=yes updatewhereclause=yes name=chg_user dbname="work_table.chg_user" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"work_table~" ) COLUMN(NAME=~"work_table.work_tblno~") COLUMN(NAME=~"work_table.line_no~") COLUMN(NAME=~"work_table.start_date~") COLUMN(NAME=~"work_table.end_date~") COLUMN(NAME=~"work_table.prd_code__pay~") COLUMN(NAME=~"work_table.chg_date~") COLUMN(NAME=~"work_table.chg_term~") COLUMN(NAME=~"work_table.chg_user~")WHERE( EXP1 =~"work_table.work_tblno~" OP =~"=~" EXP2 =~":work_tblno~" LOGIC =~"And~" ) WHERE( EXP1 =~"work_table.line_no~" OP =~"=~" EXP2 =~":line_no~" ) ) ARG(NAME = ~"work_tblno~" TYPE = string) ARG(NAME = ~"line_no~" TYPE = number) " update="work_table" updatewhere=0 updatekeyinplace=no arguments=(("work_tblno", string),("line_no", number)) ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"work_table~" ) COLUMN(NAME=~"work_table.work_tblno~") COLUMN(NAME=~"work_table.line_no~") COLUMN(NAME=~"work_table.start_date~") COLUMN(NAME=~"work_table.end_date~") COLUMN(NAME=~"work_table.prd_code__pay~") COLUMN(NAME=~"work_table.chg_date~") COLUMN(NAME=~"work_table.chg_term~") COLUMN(NAME=~"work_table.chg_user~")WHERE( EXP1 =~"work_table.work_tblno~" OP =~"=~" EXP2 =~":work_tblno~" LOGIC =~"And~" ) WHERE( EXP1 =~"work_table.line_no~" OP =~"=~" EXP2 =~":line_no~" ) ) ARG(NAME = ~"work_tblno~" TYPE = string) ARG(NAME = ~"line_no~" TYPE = number) " update="WORK_TABLE" updatewhere=0 updatekeyinplace=no arguments=(("work_tblno", string),("line_no", number)) )
groupbox(band=detail text="Basic"border="2" color="33554432" x="6" y="3" height="148" width="389" name=gb_1 tag="" visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) groupbox(band=detail text="Basic"border="2" color="33554432" x="6" y="3" height="148" width="389" name=gb_1 tag="" visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="33554432" x="123" y="21" height="16" width="78" format="[general]" html.valueishtml="0" name=work_tblno visible="1" edit.limit=5 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" 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=10 border="5" color="33554432" x="123" y="21" height="16" width="78" format="[general]" html.valueishtml="0" name=work_tblno visible="1" edit.limit=5 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" 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="123" y="44" height="16" width="78" format="dd/mm/yy" html.valueishtml="0" name=start_date visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Times New Roman" 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="123" y="44" height="16" width="78" format="dd/mm/yy" html.valueishtml="0" name=start_date visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
...@@ -27,7 +27,7 @@ text(band=detail alignment="1" text="Chg User:" border="0" color="33554432" x="2 ...@@ -27,7 +27,7 @@ text(band=detail alignment="1" text="Chg User:" border="0" color="33554432" x="2
column(band=detail id=8 alignment="0" tabsequence=32766 border="5" color="255" x="283" y="92" height="16" width="78" format="[general]" html.valueishtml="0" name=chg_user visible="0" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) column(band=detail id=8 alignment="0" tabsequence=32766 border="5" color="255" x="283" y="92" height="16" width="78" format="[general]" html.valueishtml="0" name=chg_user visible="0" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" 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="Work Table:" border="0" color="33554432" x="44" y="21" height="16" width="73" html.valueishtml="0" name=work_tblno_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=detail alignment="1" text="Work Table:" border="0" color="33554432" x="44" y="21" height="16" width="73" html.valueishtml="0" name=work_tblno_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Start Date:" border="0" color="33554432" x="44" y="44" height="16" width="73" html.valueishtml="0" name=start_date_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=detail alignment="1" text="Start Date:" border="0" color="33554432" x="44" y="44" height="16" width="73" html.valueishtml="0" name=start_date_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Paid Preriod:" border="0" color="33554432" x="15" y="67" height="16" width="102" html.valueishtml="0" name=prd_code__pay_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=detail alignment="1" text="Paid Preriod:" border="0" color="33554432" x="44" y="67" height="16" width="73" html.valueishtml="0" name=prd_code__pay_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Chg Date:" border="0" color="33554432" x="44" y="90" height="16" width="73" html.valueishtml="0" name=chg_date_t visible="0" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=detail alignment="1" text="Chg Date:" border="0" color="33554432" x="44" y="90" height="16" width="73" html.valueishtml="0" name=chg_date_t visible="0" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Chg Term:" border="0" color="33554432" x="44" y="113" height="16" width="73" html.valueishtml="0" name=chg_term_t visible="0" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=detail alignment="1" text="Chg Term:" border="0" color="33554432" x="44" y="113" height="16" width="73" html.valueishtml="0" name=chg_term_t visible="0" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
htmltable(border="1" ) htmltable(border="1" )
......
package ibase.webitm.ejb.adm; import java.rmi.RemoteException; import java.util.*;import java.util.Date;import java.text.*;import java.sql.*;import org.w3c.dom.*; import javax.ejb.*; import ibase.system.config.ConnDriver;import ibase.webitm.utility.ITMException;import ibase.webitm.utility.*;import ibase.webitm.ejb.*;import javax.ejb.Stateless; // added for ejb3 @Stateless // added for ejb3 public class AttendanceWorkBal extends ValidatorEJB implements AttendanceWorkBalLocal,AttendanceWorkBalRemote // SessionBean { GenericUtility genericUtility = GenericUtility.getInstance(); ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB(); ConnDriver connDriver = new ConnDriver(); /* public void ejbCreate() throws RemoteException, CreateException { System.out.println("Entering into AttendancesEJB............."); } public void ejbRemove() { } public void ejbActivate() { } public void ejbPassivate() { }*/ public String wfValData() throws RemoteException,ITMException { return ""; } public String itemChanged() throws RemoteException,ITMException { return ""; } public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException { Document dom = null; Document dom1 = null; Document dom2 = null; String valueXmlString = ""; try { dom = parseString(xmlString); //returns the DOM Object for the passed XML Stirng System.out.println("xmlString :" + xmlString); dom1 = parseString(xmlString1); //returns the DOM Object for the passed XML Stirng System.out.println("xmlString1 :" + xmlString1); System.out.println("xmlString2 :" + xmlString2); if (xmlString2.trim().length() > 0 ) { dom2 = parseString(xmlString2); } valueXmlString = itemChanged(dom,dom1,dom2,objContext,currentColumn,editFlag,xtraParams); } catch(Exception e) { System.out.println("Exception : [AttendancesEJB][itemChanged(String,String)] :==>\n"+e.getMessage()); } return valueXmlString; } package ibase.webitm.ejb.adm; import java.rmi.RemoteException;import java.sql.Connection;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.Statement;import java.sql.Timestamp;import java.text.SimpleDateFormat;import java.util.ArrayList;import java.util.Calendar;import java.util.Date; import org.w3c.dom.Document;import org.w3c.dom.Node;import org.w3c.dom.NodeList; import ibase.utility.E12GenericUtility;import ibase.webitm.ejb.ITMDBAccessEJB;import ibase.webitm.ejb.ValidatorEJB;import ibase.webitm.utility.ITMException; //Modified By Dipesh on[18/07/2019][Start] //@Stateless // added for ejb3 //Modified By Dipesh on[18/07/2019][End] public class AttendanceWorkBal extends ValidatorEJB implements AttendanceWorkBalLocal,AttendanceWorkBalRemote // SessionBean { //Modified By Dipesh on[18/07/2019][Start] //GenericUtility genericUtility = GenericUtility.getInstance(); E12GenericUtility genericUtility = new E12GenericUtility(); //Modified By Dipesh on[18/07/2019][End] ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB(); //Modified By Dipesh on[18/07/2019][Start] //ConnDriver connDriver = new ConnDriver(); Connection conn = null; //Modified By Dipesh on[18/07/2019][End] /* public void ejbCreate() throws RemoteException, CreateException { System.out.println("Entering into AttendancesEJB............."); } public void ejbRemove() { } public void ejbActivate() { } public void ejbPassivate() { }*/ public String wfValData() throws RemoteException,ITMException { return ""; } public String itemChanged() throws RemoteException,ITMException { return ""; } public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException { Document dom = null; Document dom1 = null; Document dom2 = null; String valueXmlString = ""; try { dom = parseString(xmlString); //returns the DOM Object for the passed XML Stirng System.out.println("xmlString :" + xmlString); dom1 = parseString(xmlString1); //returns the DOM Object for the passed XML Stirng System.out.println("xmlString1 :" + xmlString1); System.out.println("xmlString2 :" + xmlString2); if (xmlString2.trim().length() > 0 ) { dom2 = parseString(xmlString2); } valueXmlString = itemChanged(dom,dom1,dom2,objContext,currentColumn,editFlag,xtraParams); } catch(Exception e) { System.out.println("Exception : [AttendancesEJB][itemChanged(String,String)] :==>\n"+e.getMessage()); } return valueXmlString; }
public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException { System.out.println(" in itemChanged "); StringBuffer valueXmlString = new StringBuffer(); StringBuffer retString = new StringBuffer(); String errCode = ""; String sql = ""; String sundrySql= ""; String columnValue = ""; String loginSite = ""; String format = ""; String accPrd = ""; String childNodeName = ""; String dateStr=""; String endDateStr=""; String endTime=null; String stsrtTime=null; int childListLength=0; NodeList parentNodeList = null; NodeList childNodeList = null; Node parentNode = null; Node childNode = null; int ctr = 0; int n = 0; int currentFormNo = 0; String userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"userId"); System.out.println("userId ::-"+userId); loginSite = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSiteCode"); System.out.println("loginSiteCode ::-"+loginSite); System.out.println("currentColumn ::-"+currentColumn); try { if(objContext != null && objContext.trim().length()>0) { currentFormNo = Integer.parseInt(objContext); } valueXmlString = new StringBuffer("<?xml version=\"1.0\"?><Root><header><editFlag>"); valueXmlString.append(editFlag).append("</editFlag></header>"); switch (currentFormNo) { case 1: parentNodeList = dom.getElementsByTagName("Detail1"); parentNode = parentNodeList.item(0); childNodeList = parentNode.getChildNodes(); valueXmlString.append("<Detail1>"); if(currentColumn.trim().equals("itm_default")) { Calendar cal=Calendar.getInstance(); Date date=cal.getTime(); //Changed by Pawan on 5/2/2011 [AD01SUN007] for date formating.start //SimpleDateFormat dateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat dateFormat = null; if( xtraParams.indexOf("user_lang=") <= 0 ) { dateFormat = new SimpleDateFormat("yyyy-MM-dd"); } else { dateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat()); } //Changed by Pawan on 5/2/2011 [AD01SUN009] for date formating.end dateStr=dateFormat.format(date); System.out.println("Today's Date "+dateStr); valueXmlString.append("<start_date>").append(dateStr).append("</start_date>\r\n"); } /*else if(currentColumn.trim().equals("end_date") || currentColumn.trim().equals("start_date")) { parentNodeList = dom.getElementsByTagName("Detail1"); parentNode = parentNodeList.item(0); childNodeList = parentNode.getChildNodes(); ctr = 0; childListLength = childNodeList.getLength(); while(ctr<childListLength) { String dateString=childNodeList.item(ctr).getNodeName(); if("end_date".equals(dateString)) endTime=childNodeList.item(ctr).getFirstChild().getNodeValue(); else if("start_date".equals(dateString)) stsrtTime=childNodeList.item(ctr).getFirstChild().getNodeValue(); ctr++; } if(endTime.indexOf(' ')!=-1) { endTime=endTime.substring(0,endTime.indexOf(' ')); } if(stsrtTime.indexOf(' ')!=-1) { stsrtTime=stsrtTime.substring(0,stsrtTime.indexOf(' ')); } if(endTime.indexOf('-')!=-1) { endTime=endTime.replace('-','/'); } if(stsrtTime.indexOf('-')!=-1) { stsrtTime=stsrtTime.replace('-','/'); } System.out.println(">>>>>>.. endTime "+endTime); System.out.println(">>>>>>.. stsrtTime "+stsrtTime); if(stsrtTime !=null && endTime !=null) { SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat()); Date stDate = simpleDateFormat.parse(stsrtTime); Date edDate = simpleDateFormat.parse(endTime); // Date stDate = new Date(stsrtTime); // Date edDate = new Date(endTime); long stTimeImMilsec=stDate.getTime(); long edTimeImMilsec=edDate.getTime(); long dayTminMilsec=24*60*60*1000; long noOfDays =(edTimeImMilsec - stTimeImMilsec)/dayTminMilsec; if(noOfDays !=0) { noOfDays=noOfDays + 1; } System.out.println(">>>>>>.. stTimeImMilsec "+stTimeImMilsec); System.out.println(">>>>>>.. edTimeImMilsec "+edTimeImMilsec); System.out.println(">>>>>>.. noOfDays "+noOfDays); valueXmlString.append("<paid_prdcode>").append(noOfDays).append("</paid_prdcode>\r\n"); } }*/ valueXmlString.append("</Detail1>\r\n"); break; } valueXmlString.append("</Root>"); } catch(Exception e) { System.out.println("Exception ::"+e.getMessage()); e.printStackTrace(); } return valueXmlString.toString(); } public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException { System.out.println(" in itemChanged "); StringBuffer valueXmlString = new StringBuffer(); StringBuffer retString = new StringBuffer(); PreparedStatement pstmt = null; ResultSet rs = null; String errCode = ""; String sql = ""; String sundrySql= ""; String columnValue = ""; String loginSite = ""; String format = ""; String accPrd = ""; String childNodeName = ""; String dateStr=""; String endDateStr=""; String endTime=null; String stsrtTime=null; int childListLength=0; NodeList parentNodeList = null; NodeList childNodeList = null; Node parentNode = null; Node childNode = null; int ctr = 0; int n = 0; int currentFormNo = 0; String userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"userId"); System.out.println("userId ::-"+userId); loginSite = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSiteCode"); System.out.println("loginSiteCode ::-"+loginSite); System.out.println("currentColumn ::-"+currentColumn); try { conn=getConnection(); if(objContext != null && objContext.trim().length()>0) { currentFormNo = Integer.parseInt(objContext); } valueXmlString = new StringBuffer("<?xml version=\"1.0\"?><Root><header><editFlag>"); valueXmlString.append(editFlag).append("</editFlag></header>"); switch (currentFormNo) { case 1: parentNodeList = dom.getElementsByTagName("Detail1"); parentNode = parentNodeList.item(0); childNodeList = parentNode.getChildNodes(); valueXmlString.append("<Detail1>"); //Modified By Dipesh on[18/07/2019][Start] //if(currentColumn.trim().equals("itm_default")) if(currentColumn.trim().equalsIgnoreCase("itm_default")) //Modified By Dipesh on[18/07/2019][End] { Calendar cal=Calendar.getInstance(); Date date=cal.getTime(); //Changed by Pawan on 5/2/2011 [AD01SUN007] for date formating.start //SimpleDateFormat dateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat dateFormat = null; if( xtraParams.indexOf("user_lang=") <= 0 ) { dateFormat = new SimpleDateFormat("yyyy-MM-dd"); } else { dateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat()); } //Changed by Pawan on 5/2/2011 [AD01SUN009] for date formating.end dateStr=dateFormat.format(date); System.out.println("Today's Date "+dateStr); valueXmlString.append("<start_date>").append(dateStr).append("</start_date>\r\n"); } /*else if(currentColumn.trim().equals("end_date") || currentColumn.trim().equals("start_date")) { parentNodeList = dom.getElementsByTagName("Detail1"); parentNode = parentNodeList.item(0); childNodeList = parentNode.getChildNodes(); ctr = 0; childListLength = childNodeList.getLength(); while(ctr<childListLength) { String dateString=childNodeList.item(ctr).getNodeName(); if("end_date".equals(dateString)) endTime=childNodeList.item(ctr).getFirstChild().getNodeValue(); else if("start_date".equals(dateString)) stsrtTime=childNodeList.item(ctr).getFirstChild().getNodeValue(); ctr++; } if(endTime.indexOf(' ')!=-1) { endTime=endTime.substring(0,endTime.indexOf(' ')); } if(stsrtTime.indexOf(' ')!=-1) { stsrtTime=stsrtTime.substring(0,stsrtTime.indexOf(' ')); } if(endTime.indexOf('-')!=-1) { endTime=endTime.replace('-','/'); } if(stsrtTime.indexOf('-')!=-1) { stsrtTime=stsrtTime.replace('-','/'); } System.out.println(">>>>>>.. endTime "+endTime); System.out.println(">>>>>>.. stsrtTime "+stsrtTime); if(stsrtTime !=null && endTime !=null) { SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat()); Date stDate = simpleDateFormat.parse(stsrtTime); Date edDate = simpleDateFormat.parse(endTime); // Date stDate = new Date(stsrtTime); // Date edDate = new Date(endTime); long stTimeImMilsec=stDate.getTime(); long edTimeImMilsec=edDate.getTime(); long dayTminMilsec=24*60*60*1000; long noOfDays =(edTimeImMilsec - stTimeImMilsec)/dayTminMilsec; if(noOfDays !=0) { noOfDays=noOfDays + 1; } System.out.println(">>>>>>.. stTimeImMilsec "+stTimeImMilsec); System.out.println(">>>>>>.. edTimeImMilsec "+edTimeImMilsec); System.out.println(">>>>>>.. noOfDays "+noOfDays); valueXmlString.append("<paid_prdcode>").append(noOfDays).append("</paid_prdcode>\r\n"); } }*/ valueXmlString.append("</Detail1>\r\n"); break; } valueXmlString.append("</Root>"); } catch(Exception e) { System.out.println("Exception ::"+e.getMessage()); e.printStackTrace(); } finally { try { if (conn != null) { conn.close(); conn = null; } if (rs != null) { rs.close(); rs = null; } if (pstmt != null) { pstmt.close(); pstmt = null; } } catch (Exception e) { System.out.println("Exception ::" + e); e.printStackTrace(); throw new ITMException(e); } } return valueXmlString.toString(); }
private long getTimeInMinit(String timeStr) { String hr=timeStr.substring(0,timeStr.indexOf(':')); String min=timeStr.substring(timeStr.indexOf(':')+1); long timinMin=Integer.parseInt(hr)*60+Integer.parseInt(min); return timinMin; } public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException { Document dom = null; Document dom1 = null; Document dom2 = null; String errString = null; System.out.println("Entering into validations ..................."); System.out.println("xmlString : "+xmlString); System.out.println("xmlString1 : "+xmlString1); System.out.println("xmlString2 : "+xmlString2); try { dom = parseString(xmlString); dom1 = parseString(xmlString1); if (xmlString2.trim().length() > 0 ) { dom2 = parseString(xmlString2); } errString = wfValData(dom,dom1,dom2,objContext,editFlag,xtraParams); } catch(Exception e) { System.out.println("Exception : PayableOpeningsEJB : wfValData(String xmlString) : ==>\n"+e.getMessage()); } return (errString); } private long getTimeInMinit(String timeStr) { String hr=timeStr.substring(0,timeStr.indexOf(':')); String min=timeStr.substring(timeStr.indexOf(':')+1); long timinMin=Integer.parseInt(hr)*60+Integer.parseInt(min); return timinMin; } public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException { Document dom = null; Document dom1 = null; Document dom2 = null; String errString = null; System.out.println("Entering into validations ..................."); System.out.println("xmlString : "+xmlString); System.out.println("xmlString1 : "+xmlString1); System.out.println("xmlString2 : "+xmlString2); try { dom = parseString(xmlString); dom1 = parseString(xmlString1); if (xmlString2.trim().length() > 0 ) { dom2 = parseString(xmlString2); } errString = wfValData(dom,dom1,dom2,objContext,editFlag,xtraParams); } catch(Exception e) { System.out.println("Exception : PayableOpeningsEJB : wfValData(String xmlString) : ==>\n"+e.getMessage()); } return (errString); }
public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException { System.out.println(" IN wfValData 2"); Connection conn = null; Statement stmt = null; PreparedStatement pstmt = null; ResultSet rs = null; String errString = ""; String errCode = ""; String sql = ""; String userId = ""; String loginSite = ""; String startDateStr = ""; String endDateStr = ""; String shiftPattern = ""; String periodCode = ""; String itemSer = ""; String currCode = ""; String childNodeName = ""; NodeList parentNodeList = null; NodeList childNodeList = null; Node parentNode = null; Node childNode = null; int ctr,currentFormNo=0; int childNodeListLength; int cnt; Date startDate=null; Date endDate=null; String workTblNo = ""; int lineNo = 0; String lineNoStr = ""; SimpleDateFormat simpleDateFormat = null; userId = getValueFromXTRA_PARAMS(xtraParams,"userId"); try { conn = getConnection(); simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat()); if(objContext != null && objContext.trim().length()>0) { currentFormNo = Integer.parseInt(objContext); } parentNodeList = dom.getElementsByTagName("Detail" + currentFormNo); startDateStr = genericUtility.getColumnValue("start_date",dom); endDateStr = genericUtility.getColumnValue("end_date",dom); workTblNo = genericUtility.getColumnValue("work_tblno",dom); lineNoStr = genericUtility.getColumnValue("line_no",dom); System.out.println("Line No : "+lineNoStr); if(lineNoStr != null && lineNoStr.trim().length() > 0){ lineNo = Integer.parseInt(lineNoStr); } if(startDateStr !=null && endDateStr !=null) { if(startDateStr.indexOf(" ")!= -1) { startDateStr=startDateStr.substring(0,startDateStr.indexOf(" ")); } if(endDateStr.indexOf(" ")!=-1) { endDateStr=endDateStr.substring(0,endDateStr.indexOf(" ")); } if(startDateStr.indexOf('-')!=-1) { startDateStr=startDateStr.replace('-','/'); } if(endDateStr.indexOf('-')!=-1) { endDateStr=endDateStr.replace('-','/'); } startDate = simpleDateFormat.parse(startDateStr); endDate = simpleDateFormat.parse(endDateStr); } parentNode = parentNodeList.item(0); childNodeList = parentNode.getChildNodes(); childNodeListLength = childNodeList.getLength(); for (ctr = 0; ctr < childNodeListLength; ctr++) { childNode = childNodeList.item(ctr); childNodeName = childNode.getNodeName(); switch (currentFormNo) { case 1: //Changed by Pawan on 5/14/2011 [AD01SUN007] to check blank work_tblno and line_no.start if (childNodeName.equals("work_tblno")) { if (childNode.getFirstChild() == null) { errCode = "INVWORKTBL"; errString = getErrorString("work_tblno",errCode,userId); break; } } if (childNodeName.equals("line_no")) { if (childNode.getFirstChild() == null) { errCode = "INVDLINENO"; errString = getErrorString("line_no",errCode,userId); break; } } //Changed by Pawan on 5/14/2011 [AD01SUN007] to check blank work_tblno and line_no.end //if (childNodeName.equals("paid_prdcode")) if (childNodeName.equals("prd_code__pay")) { if (childNode.getFirstChild() == null) { errCode = "VTCALPRD"; errString = getErrorString("prd_code__pay",errCode,userId); break; } periodCode=childNode.getFirstChild().getNodeValue(); sql = "SELECT COUNT(*) AS COUNT FROM PERIOD WHERE CODE = '"+periodCode+"'"; stmt = conn.createStatement(); rs = stmt.executeQuery(sql); if (rs.next()) { cnt = rs.getInt("COUNT"); if (cnt == 0) { errCode = "STARTPRD"; errString = getErrorString("prd_code__pay",errCode,userId); break; } } stmt.close(); rs.close(); } else if((startDateStr ==null)) { errCode = "VEDAT2"; errString = getErrorString("start_date",errCode,userId); break; } else if((endDateStr ==null)) { errCode = "VEDAT2"; errString = getErrorString("end_date",errCode,userId); break; } else if((endDate.compareTo(startDate) <= 0)) { errCode = "VTDATE1"; errString = getErrorString("end_date",errCode,userId); break; } else if (childNodeName.equals("start_date") || childNodeName.equals("end_date")){ if(editFlag.equalsIgnoreCase("E")){ java.sql.Date dbFrDate = new java.sql.Date(System.currentTimeMillis()); java.sql.Date dbToDate = new java.sql.Date(System.currentTimeMillis()); sql = "SELECT START_DATE,END_DATE FROM WORK_TABLE WHERE WORK_TBLNO = '"+workTblNo+"' AND LINE_NO = "+lineNo+""; System.out.println("SQL :: "+sql); stmt = conn.createStatement(); rs = stmt.executeQuery(sql); if(rs.next()){ dbFrDate = rs.getDate("START_DATE"); dbToDate = rs.getDate("END_DATE"); System.out.println("DomFrDate : "+startDate+" DbFromDate :"+dbFrDate+" DomEndDate :"+endDate+" dbEndDate :"+dbToDate); if(startDate.compareTo(new java.util.Date(dbFrDate.getTime())) == 0 && endDate.compareTo(new java.util.Date(dbToDate.getTime())) == 0){ break; } } stmt.close(); } int count = 0; java.sql.Date startSqlDate = new java.sql.Date(startDate.getTime()); java.sql.Date endSqlDate = new java.sql.Date(endDate.getTime()); System.out.println("Work Table No ::"+workTblNo); if(workTblNo != null && workTblNo.trim().length() > 0){ sql = "SELECT COUNT(*) FROM WORK_TABLE WHERE WORK_TBLNO = '"+workTblNo+"'"; System.out.println("SQL ::"+sql); stmt = conn.createStatement(); rs = stmt.executeQuery(sql); if(rs.next()){ count = rs.getInt(1); if(count > 0){ sql = "SELECT COUNT(*) FROM WORK_TABLE WHERE WORK_TBLNO = '"+workTblNo+"' "+ "AND ? BETWEEN START_DATE AND END_DATE AND LINE_NO != "+lineNo+""; System.out.println("SQL ::"+sql); pstmt = conn.prepareStatement(sql); pstmt.setTimestamp(1,Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(startDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); System.out.println("SET 1 "+Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(startDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); rs = pstmt.executeQuery(); if(rs.next()){ count = rs.getInt(1); } System.out.println("Count ::"+count); if(count > 0){ errCode = "VTINVOT"; errString = getErrorString("start_date",errCode,userId); break; } else if(count == 0){ sql = "SELECT COUNT(*) FROM WORK_TABLE WHERE WORK_TBLNO = '"+workTblNo+"' "+ "AND ? BETWEEN START_DATE AND END_DATE AND LINE_NO != "+lineNo+""; pstmt = conn.prepareStatement(sql); pstmt.setTimestamp(1,Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(endDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); System.out.println("SET 1 "+Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(endDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); rs = pstmt.executeQuery(); if(rs.next()){ count = rs.getInt(1); } System.out.println("Count ::"+count); if(count > 0){ errCode = "VTINVOT"; errString = getErrorString("end_date",errCode,userId); break; } else if(count == 0){ sql = "SELECT COUNT(*) FROM WORK_TABLE WHERE WORK_TBLNO = '"+workTblNo+"' "+ "AND START_DATE BETWEEN ? AND ? AND LINE_NO != "+lineNo+""; System.out.println("SQL ::"+sql); pstmt = conn.prepareStatement(sql); pstmt.setTimestamp(1,Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(startDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); pstmt.setTimestamp(2,Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(endDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); rs = pstmt.executeQuery(); if(rs.next()){ count = rs.getInt(1); } System.out.println("Count ::"+count); if(count > 0){ errCode = "VTINVOT"; errString = getErrorString("start_date",errCode,userId); break; } else if(count == 0){ sql = "SELECT COUNT(*) FROM WORK_TABLE WHERE WORK_TBLNO = '"+workTblNo+"' "+ "AND END_DATE BETWEEN ? AND ? AND LINE_NO != "+lineNo+""; System.out.println("SQL ::"+sql); pstmt = conn.prepareStatement(sql); pstmt.setTimestamp(1,Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(startDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); pstmt.setTimestamp(2,Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(endDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); rs = pstmt.executeQuery(); if(rs.next()){ count = rs.getInt(1); } System.out.println("Count ::"+count); if(count > 0){ errCode = "VTINVOT"; errString = getErrorString("start_date",errCode,userId); break; } } } } } } } } } } } catch(Exception e) { System.out.println("Exception ::"+e); e.printStackTrace(); } finally { try { if(stmt != null){ stmt.close(); stmt = null; } if(pstmt != null){ pstmt.close(); pstmt = null; } if(conn != null) { conn.close(); } } catch(Exception ex) { System.out.println("Exception ::"+ex.getMessage()); ex.printStackTrace(); } } return errString; } } public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException { System.out.println(" IN wfValData 2"); Connection conn = null; Statement stmt = null; PreparedStatement pstmt = null; ResultSet rs = null; String errString = ""; String errCode = ""; String sql = ""; String userId = ""; String loginSite = ""; String startDateStr = ""; String endDateStr = ""; String shiftPattern = ""; String periodCode = ""; String itemSer = ""; String currCode = ""; String childNodeName = ""; NodeList parentNodeList = null; NodeList childNodeList = null; Node parentNode = null; Node childNode = null; int ctr,currentFormNo=0; int childNodeListLength; int cnt; Date startDate=null; Date endDate=null; String workTblNo = ""; int lineNo = 0; String lineNoStr = ""; SimpleDateFormat simpleDateFormat = null; userId = getValueFromXTRA_PARAMS(xtraParams,"userId"); StringBuffer errStringXml = null; //Modified By Dipesh on[13/08/2019][Start] ITMDBAccessEJB itmDbAcess = null; //Modified By Dipesh on[13/08/2019][End] errStringXml = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root><Errors>"); ArrayList<String> errList = new ArrayList<String>(); ArrayList<String> errFields = new ArrayList<String>(); try { //Modified By Dipesh on[13/08/2019][Start] itmDbAcess =new ITMDBAccessEJB(); //Modified By Dipesh on[13/08/2019][End] conn = getConnection(); simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat()); if(objContext != null && objContext.trim().length()>0) { currentFormNo = Integer.parseInt(objContext); } parentNodeList = dom.getElementsByTagName("Detail" + currentFormNo); //Modified By Dipesh on[19/07/2019][Start] //startDateStr = genericUtility.getColumnValue("start_date",dom); //endDateStr = genericUtility.getColumnValue("end_date",dom); //workTblNo = genericUtility.getColumnValue("work_tblno",dom); startDateStr = checkNull(genericUtility.getColumnValue("start_date",dom)); endDateStr = checkNull(genericUtility.getColumnValue("end_date",dom)); workTblNo = checkNull(genericUtility.getColumnValue("work_tblno",dom)); //Modified By Dipesh on[19/07/2019][End] lineNoStr = genericUtility.getColumnValue("line_no",dom); System.out.println("Line No : "+lineNoStr); if(lineNoStr != null && lineNoStr.trim().length() > 0) { lineNo = Integer.parseInt(lineNoStr); } if(startDateStr !=null && endDateStr !=null) { if(startDateStr.indexOf(" ")!= -1) { startDateStr=startDateStr.substring(0,startDateStr.indexOf(" ")); } if(endDateStr.indexOf(" ")!=-1) { endDateStr=endDateStr.substring(0,endDateStr.indexOf(" ")); } if(startDateStr.indexOf('-')!=-1) { startDateStr=startDateStr.replace('-','/'); } if(endDateStr.indexOf('-')!=-1) { endDateStr=endDateStr.replace('-','/'); } if(startDateStr != null && startDateStr.trim().length() > 0) { //startDate = simpleDateFormat.parse(startDateStr); startDate = Timestamp.valueOf(genericUtility.getValidDateString(startDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"); } if(endDateStr != null && endDateStr.trim().length() > 0) { //endDate = simpleDateFormat.parse(endDateStr); endDate = Timestamp.valueOf(genericUtility.getValidDateString(endDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"); } } parentNode = parentNodeList.item(0); childNodeList = parentNode.getChildNodes(); childNodeListLength = childNodeList.getLength(); for (ctr = 0; ctr < childNodeListLength; ctr++) { childNode = childNodeList.item(ctr); childNodeName = childNode.getNodeName(); switch (currentFormNo) { case 1: //Changed by Pawan on 5/14/2011 [AD01SUN007] to check blank work_tblno and line_no.start //Modified By Dipesh on[18/07/2019][Start] //if (childNodeName.equals("work_tblno")) if (childNodeName.equalsIgnoreCase("work_tblno")) //Modified By Dipesh on[18/07/2019][End] { System.out.println("childNode.getFirstChild()------" +childNode.getFirstChild()); if (childNode.getFirstChild() == null) { errCode = "INVWORKTBL"; //Modified By Dipesh on[13/08/2019][Start] //errString = getErrorString("work_tblno",errCode,userId); errString = itmDbAcess.getErrorString("work_tblno", errCode, userId, "", conn); //Modified By Dipesh on[13/08/2019][End] break; } } //Modified By Dipesh on[18/07/2019][Start] //if (childNodeName.equals("line_no")) else if (childNodeName.equalsIgnoreCase("line_no")) //Modified By Dipesh on[18/07/2019][Start] { if (childNode.getFirstChild() == null) { errCode = "INVDLINENO"; //Modified By Dipesh on[13/08/2019][Start] //errString = getErrorString("line_no",errCode,userId); errString = itmDbAcess.getErrorString("line_no", errCode, userId, "", conn); //Modified By Dipesh on[13/08/2019][End] break; } } //Changed by Pawan on 5/14/2011 [AD01SUN007] to check blank work_tblno and line_no.end //if (childNodeName.equals("paid_prdcode")) //Modified By Dipesh on[18/07/2019][Start] //if (childNodeName.equals("prd_code__pay")) else if (childNodeName.equalsIgnoreCase("prd_code__pay")) //Modified By Dipesh on[18/07/2019][Start] { if (childNode.getFirstChild() == null) { errCode = "VTCALPRD"; //Modified By Dipesh on[13/08/2019][Start] //errString = getErrorString("prd_code__pay",errCode,userId); errString = itmDbAcess.getErrorString("prd_code__pay", errCode, userId, "", conn); //Modified By Dipesh on[13/08/2019][End] break; } periodCode=childNode.getFirstChild().getNodeValue(); //Modified By Dipesh on[18/07/2019][Start] //sql = "SELECT COUNT(*) AS COUNT FROM PERIOD WHERE CODE = '"+periodCode+"'"; //stmt = conn.createStatement(); //rs = stmt.executeQuery(sql); sql = "SELECT COUNT(*) AS COUNT FROM PERIOD WHERE CODE = ?"; pstmt = conn.prepareStatement(sql); pstmt.setString(1,periodCode); //Modified By Dipesh on[18/07/2019][End] rs = pstmt.executeQuery(); if (rs.next()) { cnt = rs.getInt("COUNT"); if (cnt == 0) { errCode = "STARTPRD"; //Modified By Dipesh on[13/08/2019][Start] //errString = getErrorString("prd_code__pay",errCode,userId); errString = itmDbAcess.getErrorString("prd_code__pay", errCode, userId, "", conn); //Modified By Dipesh on[13/08/2019][End] break; } } //Modified By Dipesh on[18/07/2019][Start] //stmt.close(); //rs.close(); if( rs != null ) { rs.close(); rs = null; } if( pstmt != null ) { pstmt.close(); pstmt = null; } //Modified By Dipesh on[18/07/2019][End] } else if((startDateStr ==null)) { errCode = "VEDAT2"; //Modified By Dipesh on[13/08/2019][Start] //errString = getErrorString("start_date",errCode,userId); errString = itmDbAcess.getErrorString("start_date", errCode, userId, "", conn); //Modified By Dipesh on[13/08/2019][End] break; } else if((endDateStr ==null)) { errCode = "VEDAT2"; //Modified By Dipesh on[13/08/2019][Start] //errString = getErrorString("end_date",errCode,userId); errString = itmDbAcess.getErrorString("end_date", errCode, userId, "", conn); //Modified By Dipesh on[13/08/2019][End] break; } else if((endDate.compareTo(startDate) <= 0)) { errCode = "VTDATE1"; //Modified By Dipesh on[13/08/2019][Start] //errString = getErrorString("end_date",errCode,userId); errString = itmDbAcess.getErrorString("end_date", errCode, userId, "", conn); //Modified By Dipesh on[13/08/2019][End] break; } //Modified By Dipesh on[18/07/2019][Start] //else if (childNodeName.equals("start_date") || childNodeName.equals("end_date")) else if (childNodeName.equalsIgnoreCase("start_date") || childNodeName.equalsIgnoreCase("end_date")) //Modified By Dipesh on[18/07/2019][End] if(editFlag.equalsIgnoreCase("E")) { java.sql.Date dbFrDate = new java.sql.Date(System.currentTimeMillis()); java.sql.Date dbToDate = new java.sql.Date(System.currentTimeMillis()); //Modified By Dipesh on[18/07/2019][Start] //sql = "SELECT START_DATE,END_DATE FROM WORK_TABLE WHERE WORK_TBLNO = '"+workTblNo+"' AND LINE_NO = "+lineNo+""; //System.out.println("SQL :: "+sql); //stmt = conn.createStatement(); //rs = stmt.executeQuery(sql); sql = "SELECT START_DATE,END_DATE FROM WORK_TABLE WHERE WORK_TBLNO = ? AND LINE_NO = ?"; System.out.println("SQL :: "+sql); pstmt = conn.prepareStatement(sql); pstmt.setString(1,workTblNo); pstmt.setInt(2,lineNo); rs = pstmt.executeQuery(); if(rs.next()) { dbFrDate = rs.getDate("START_DATE"); dbToDate = rs.getDate("END_DATE"); System.out.println("DomFrDate : "+startDate+" DbFromDate :"+dbFrDate+" DomEndDate :"+endDate+" dbEndDate :"+dbToDate); if(startDate.compareTo(new java.util.Date(dbFrDate.getTime())) == 0 && endDate.compareTo(new java.util.Date(dbToDate.getTime())) == 0){ break; } } //stmt.close(); if( rs != null ) { rs.close(); rs = null; } if( pstmt != null ) { pstmt.close(); pstmt = null; } //Modified By Dipesh on[18/07/2019][End] } int count = 0; java.sql.Date startSqlDate = new java.sql.Date(startDate.getTime()); java.sql.Date endSqlDate = new java.sql.Date(endDate.getTime()); System.out.println("Work Table No ::"+workTblNo); if(workTblNo != null && workTblNo.trim().length() > 0) { //Modified By Dipesh on[19/07/2019][Start] //sql = "SELECT COUNT(*) FROM WORK_TABLE WHERE WORK_TBLNO = '"+workTblNo+"'"; //System.out.println("SQL ::"+sql); //stmt = conn.createStatement(); //rs = stmt.executeQuery(sql); sql = "SELECT COUNT(*) as cnt FROM WORK_TABLE WHERE WORK_TBLNO = ?"; pstmt = conn.prepareStatement(sql); pstmt.setString(1,workTblNo); rs = pstmt.executeQuery(); if(rs.next()) { count = rs.getInt("cnt"); } if( rs != null ) { rs.close(); rs = null; } if( pstmt != null ) { pstmt.close(); pstmt = null; } //Modified By Dipesh on[19/07/2019][End] if(count > 0) { sql = "SELECT COUNT(*) FROM WORK_TABLE WHERE WORK_TBLNO = '"+workTblNo+"' "+ "AND ? BETWEEN START_DATE AND END_DATE AND LINE_NO != "+lineNo+""; System.out.println("SQL ::"+sql); pstmt = conn.prepareStatement(sql); pstmt.setTimestamp(1,Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(startDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); System.out.println("SET 1 "+Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(startDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); rs = pstmt.executeQuery(); if(rs.next()) { count = rs.getInt(1); } //Modified By Dipesh on[19/07/2019][Start] if( rs != null ) { rs.close(); rs = null; } if( pstmt != null ) { pstmt.close(); pstmt = null; } //Modified By Dipesh on[19/07/2019][End] System.out.println("Count ::"+count); if(count > 0) { errCode = "VTINVOT"; //Modified By Dipesh on[13/08/2019][Start] //errString = getErrorString("start_date",errCode,userId); errString = itmDbAcess.getErrorString("start_date", errCode, userId, "", conn); //Modified By Dipesh on[13/08/2019][End] break; } else if(count == 0) { sql = "SELECT COUNT(*) FROM WORK_TABLE WHERE WORK_TBLNO = '"+workTblNo+"' "+ "AND ? BETWEEN START_DATE AND END_DATE AND LINE_NO != "+lineNo+""; pstmt = conn.prepareStatement(sql); pstmt.setTimestamp(1,Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(endDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); System.out.println("SET 1 "+Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(endDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); rs = pstmt.executeQuery(); if(rs.next()) { count = rs.getInt(1); } //Modified By Dipesh on[19/07/2019][Start] if( rs != null ) { rs.close(); rs = null; } if( pstmt != null ) { pstmt.close(); pstmt = null; } //Modified By Dipesh on[19/07/2019][End] System.out.println("Count ::"+count); if(count > 0) { errCode = "VTINVOT"; //Modified By Dipesh on[13/08/2019][Start] //errString = getErrorString("end_date",errCode,userId); errString = itmDbAcess.getErrorString("end_date", errCode, userId, "", conn); //Modified By Dipesh on[13/08/2019][End] break; } else if(count == 0) { sql = "SELECT COUNT(*) FROM WORK_TABLE WHERE WORK_TBLNO = '"+workTblNo+"' "+ "AND START_DATE BETWEEN ? AND ? AND LINE_NO != "+lineNo+""; System.out.println("SQL ::"+sql); pstmt = conn.prepareStatement(sql); pstmt.setTimestamp(1,Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(startDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); pstmt.setTimestamp(2,Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(endDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); rs = pstmt.executeQuery(); if(rs.next()) { count = rs.getInt(1); } //Modified By Dipesh on[19/07/2019][Start] if( rs != null ) { rs.close(); rs = null; } if( pstmt != null ) { pstmt.close(); pstmt = null; } //Modified By Dipesh on[19/07/2019][End] System.out.println("Count ::"+count); if(count > 0) { errCode = "VTINVOT"; //Modified By Dipesh on[13/08/2019][Start] //errString = getErrorString("start_date",errCode,userId); errString = itmDbAcess.getErrorString("start_date", errCode, userId, "", conn); //Modified By Dipesh on[13/08/2019][End] break; } else if(count == 0) { sql = "SELECT COUNT(*) FROM WORK_TABLE WHERE WORK_TBLNO = '"+workTblNo+"' "+ "AND END_DATE BETWEEN ? AND ? AND LINE_NO != "+lineNo+""; System.out.println("SQL ::"+sql); pstmt = conn.prepareStatement(sql); pstmt.setTimestamp(1,Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(startDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); pstmt.setTimestamp(2,Timestamp.valueOf(genericUtility.getValidDateTimeString(simpleDateFormat.format(endDate),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()))); rs = pstmt.executeQuery(); if(rs.next()) { count = rs.getInt(1); } //Modified By Dipesh on[19/07/2019][Start] if( rs != null ) { rs.close(); rs = null; } if( pstmt != null ) { pstmt.close(); pstmt = null; } //Modified By Dipesh on[19/07/2019][End] System.out.println("Count ::"+count); if(count > 0) { errCode = "VTINVOT"; //Modified By Dipesh on[13/08/2019][Start] //errString = getErrorString("start_date",errCode,userId); errString = itmDbAcess.getErrorString("start_date", errCode, userId, "", conn); //Modified By Dipesh on[13/08/2019][End] break; } } } } } } }//End of Switch //Modified By Dipesh on[19/07/2019][Start] break; //Modified By Dipesh on[19/07/2019][End] } //Modified By Dipesh on[19/07/2019][Start] if (errList != null && errList.size() > 0) { System.out.println("errList==[" + errList + "]"); int errListSize = errList.size(); System.out.println("errListSize:::::::[" + errListSize + "]"); System.out.println("in error::::::::::"); for (int i = 0; i < errListSize; i++) { System.out.println("in error For:::::::::::::::"); String errCode1 = (String) errList.get(i); String errFldName = (String) errFields.get(i); System.out.println("errCode .........." + errCode1); //Modified By Dipesh on[13/08/2019][Start] errString = itmDbAcess.getErrorString(errFldName, errCode1, userId, "", conn); //Modified By Dipesh on[13/08/2019][End] System.out.println("errString is : ::::>>>> " + errString); String msgType = errorType(conn, errCode1); if (errString.length() > 0) { String bifurErrString = errString.substring(errString.indexOf("<Errors>") + 8,errString.indexOf("<trace>")); bifurErrString = bifurErrString + errString.substring(errString.indexOf("</trace>") + 8,errString.indexOf("</Errors>")); errStringXml.append(bifurErrString); System.out.println("errStringXml .........." + errStringXml); errString = ""; } if (msgType.equalsIgnoreCase("E")) { break; } } errList.clear(); errFields.clear(); } errStringXml.append("</Errors></Root>\r\n"); System.out.println("errStringXml.toString()---2= "+errStringXml.toString()); //Modified By Dipesh on[19/07/2019][End] } catch(Exception e) { System.out.println("Exception ::"+e); e.printStackTrace(); //Modified By Dipesh on[19/07/2019][Start] throw new ITMException(e); //Modified By Dipesh on[19/07/2019][End] } finally { try { if(stmt != null){ stmt.close(); stmt = null; } if(pstmt != null){ pstmt.close(); pstmt = null; } if(conn != null) { conn.close(); } } catch(Exception ex) { System.out.println("Exception ::"+ex.getMessage()); ex.printStackTrace(); //Modified By Dipesh on[19/07/2019][Start] throw new ITMException(ex); //Modified By Dipesh on[19/07/2019][End] } } return errString; } private String errorType(Connection conn, String errorCode) throws ITMException { String msgType = ""; PreparedStatement pstmt = null; ResultSet rs = null; try { if (conn == null) { System.out.println("Connection is null"); } else { System.out.println("Connection is not null"); } String sql = " SELECT MSG_TYPE FROM MESSAGES WHERE MSG_NO = ? "; pstmt = conn.prepareStatement(sql); pstmt.setString(1, errorCode); rs = pstmt.executeQuery(); if (rs.next()) { msgType = rs.getString("MSG_TYPE"); } if (rs != null) { rs.close(); rs = null; } if (pstmt != null) { pstmt.close(); pstmt = null; } } catch (Exception ex) { ex.printStackTrace(); throw new ITMException(ex); } finally { try { if (rs != null) { rs.close(); rs = null; } if (pstmt != null) { pstmt.close(); pstmt = null; } } catch (Exception e) { e.printStackTrace(); throw new ITMException(e); } } return msgType; } private String checkNull(String input) { if (input == null) { input = ""; } return input; } }
\ No newline at end of file \ No newline at end of file
......
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