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);
......@@ -3,7 +3,7 @@
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<units>0</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>1</processing>
......@@ -13,10 +13,10 @@
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
<left>110</left>
<right>110</right>
<top>96</top>
<bottom>96</bottom>
</margin>
<paper>
<source>0</source>
......@@ -32,7 +32,7 @@
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>19</height>
<height>80</height>
<color>536870912</color>
</Header>
<Summary>
......@@ -44,7 +44,7 @@
<color>536870912</color>
</Footer>
<Detail>
<height>18</height>
<height>92</height>
<color>536870912</color>
</Detail>
<TableDefinition>
......@@ -93,7 +93,7 @@
<dbname>work_table.chg_date</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<type size="300">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_term</name>
......@@ -106,246 +106,250 @@
<name>chg_user</name>
<dbname>work_table.chg_user</dbname>
</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>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
<name>work_tblno</name>
<type>string</type>
</argument>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Work Tblno</text>
<border>6</border>
<alignment>2</alignment>
<text>Work Table No</text>
<border>2</border>
<color>33554432</color>
<x>2</x>
<y>1</y>
<height>16</height>
<width>70</width>
<x>9</x>
<y>8</y>
<height>64</height>
<width>795</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>work_tblno_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<alignment>2</alignment>
<text>Line No</text>
<border>6</border>
<border>2</border>
<color>33554432</color>
<x>74</x>
<y>1</y>
<height>16</height>
<width>49</width>
<x>814</x>
<y>8</y>
<height>64</height>
<width>238</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<alignment>2</alignment>
<text>Start Date</text>
<border>6</border>
<border>2</border>
<color>33554432</color>
<x>125</x>
<y>1</y>
<height>16</height>
<width>53</width>
<x>1061</x>
<y>8</y>
<height>64</height>
<width>466</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>start_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<alignment>2</alignment>
<text>End Date</text>
<border>6</border>
<border>2</border>
<color>33554432</color>
<x>180</x>
<y>1</y>
<height>16</height>
<width>55</width>
<x>1536</x>
<y>8</y>
<height>64</height>
<width>430</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>end_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<alignment>2</alignment>
<text>Prd Code Pay</text>
<border>6</border>
<border>2</border>
<color>33554432</color>
<x>237</x>
<y>1</y>
<height>16</height>
<width>54</width>
<x>1975</x>
<y>8</y>
<height>64</height>
<width>503</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code__pay_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<alignment>2</alignment>
<text>Chg Date</text>
<border>6</border>
<border>2</border>
<color>33554432</color>
<x>293</x>
<y>1</y>
<height>16</height>
<width>57</width>
<x>2487</x>
<y>8</y>
<height>64</height>
<width>347</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<alignment>2</alignment>
<text>Chg Term</text>
<border>6</border>
<border>2</border>
<color>33554432</color>
<x>352</x>
<y>1</y>
<height>16</height>
<width>54</width>
<x>2843</x>
<y>8</y>
<height>64</height>
<width>315</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<alignment>2</alignment>
<text>Chg User</text>
<border>6</border>
<border>2</border>
<color>33554432</color>
<x>408</x>
<y>1</y>
<height>16</height>
<width>68</width>
<x>3168</x>
<y>8</y>
<height>64</height>
<width>329</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>2</x>
<y>1</y>
<height>16</height>
<width>70</width>
<x>9</x>
<y>8</y>
<height>76</height>
<width>795</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -353,36 +357,37 @@
<name>work_tblno</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>5</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<alignment>1</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>74</x>
<y>1</y>
<height>16</height>
<width>49</width>
<x>814</x>
<y>8</y>
<height>76</height>
<width>238</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -393,33 +398,34 @@
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>125</x>
<y>1</y>
<height>16</height>
<width>53</width>
<x>1061</x>
<y>8</y>
<height>76</height>
<width>466</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -430,33 +436,34 @@
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>40</tabsequence>
<border>5</border>
<color>33554432</color>
<x>180</x>
<y>1</y>
<height>16</height>
<width>55</width>
<x>1536</x>
<y>8</y>
<height>76</height>
<width>430</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -467,33 +474,34 @@
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>50</tabsequence>
<border>5</border>
<color>33554432</color>
<x>237</x>
<y>1</y>
<height>16</height>
<width>54</width>
<x>1975</x>
<y>8</y>
<height>76</height>
<width>503</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -501,23 +509,24 @@
<name>prd_code__pay</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>6</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
......@@ -527,10 +536,10 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>293</x>
<y>1</y>
<height>16</height>
<width>57</width>
<x>2487</x>
<y>8</y>
<height>76</height>
<width>347</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -541,20 +550,21 @@
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
......@@ -564,10 +574,10 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>352</x>
<y>1</y>
<height>16</height>
<width>54</width>
<x>2843</x>
<y>8</y>
<height>76</height>
<width>315</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -575,23 +585,24 @@
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>300</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
......@@ -601,10 +612,10 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>408</x>
<y>1</y>
<height>16</height>
<width>68</width>
<x>3168</x>
<y>8</y>
<height>76</height>
<width>329</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -612,23 +623,24 @@
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<HtmlTable>
......
......@@ -39,7 +39,7 @@
<color>536870912</color>
</Footer>
<Detail>
<height>166</height>
<height>331</height>
<color>536870912</color>
</Detail>
<TableDefinition>
......@@ -88,7 +88,7 @@
<dbname>work_table.chg_date</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<type size="300">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_term</name>
......@@ -101,7 +101,7 @@
<name>chg_user</name>
<dbname>work_table.chg_user</dbname>
</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>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
......@@ -114,58 +114,71 @@
<type>number</type>
</argument>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Other</text>
<border>2</border>
<color>33554432</color>
<x>11</x>
<y>144</y>
<height>46</height>
<width>522</width>
<name>gb_2</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</GroupBox>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>2</border>
<color>33554432</color>
<x>6</x>
<y>3</y>
<height>148</height>
<width>389</width>
<x>10</x>
<y>1</y>
<height>138</height>
<width>483</width>
<name>gb_1</name>
<tag></tag>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>553648127</color>
</background>
</GroupBox>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<alignment>1</alignment>
<text>Work Table No :</text>
<border>2</border>
<color>33554432</color>
<x>123</x>
<y>21</y>
<x>14</x>
<y>23</y>
<height>16</height>
<width>78</width>
<format>[general]</format>
<width>150</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>work_tblno</name>
<name>work_tblno_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
......@@ -173,34 +186,27 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<alignment>1</alignment>
<text>Line No:</text>
<border>2</border>
<color>33554432</color>
<x>123</x>
<y>44</y>
<x>14</x>
<y>46</y>
<height>16</height>
<width>78</width>
<format>dd/mm/yy</format>
<width>150</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>start_date</name>
<name>line_no_t</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
......@@ -208,37 +214,27 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<border>5</border>
<alignment>1</alignment>
<text>Start Date:</text>
<border>2</border>
<color>33554432</color>
<x>123</x>
<y>67</y>
<x>14</x>
<y>69</y>
<height>16</height>
<width>78</width>
<format>[general]</format>
<width>150</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code__pay</name>
<name>start_date_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>6</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
......@@ -246,37 +242,27 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>123</x>
<y>90</y>
<alignment>1</alignment>
<text>End Date:</text>
<border>2</border>
<color>33554432</color>
<x>14</x>
<y>92</y>
<height>16</height>
<width>78</width>
<format>[shortdate] [time]</format>
<width>150</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<visible>0</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<name>end_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
......@@ -284,37 +270,27 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>123</x>
<y>113</y>
<alignment>1</alignment>
<text>Period Code Pay :</text>
<border>2</border>
<color>33554432</color>
<x>14</x>
<y>115</y>
<height>16</height>
<width>78</width>
<format>[general]</format>
<width>150</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<visible>0</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<name>prd_code__pay_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
......@@ -322,30 +298,30 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Line No:</text>
<border>0</border>
<text>Chg Date:</text>
<border>2</border>
<color>33554432</color>
<x>225</x>
<y>21</y>
<x>15</x>
<y>165</y>
<height>16</height>
<width>54</width>
<width>80</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no_t</name>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
......@@ -357,23 +333,23 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>End Date:</text>
<border>0</border>
<text>Chg Term:</text>
<border>2</border>
<color>33554432</color>
<x>225</x>
<y>44</y>
<x>187</x>
<y>164</y>
<height>16</height>
<width>54</width>
<width>80</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>end_date_t</name>
<name>chg_term_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
......@@ -382,33 +358,23 @@
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>2</id>
<alignment>1</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<text>Chg User:</text>
<border>2</border>
<color>33554432</color>
<x>283</x>
<y>21</y>
<x>359</x>
<y>164</y>
<height>16</height>
<width>78</width>
<format>[general]</format>
<width>80</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no</name>
<name>chg_user_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
......@@ -416,34 +382,37 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<id>1</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>283</x>
<y>44</y>
<color>0</color>
<x>170</x>
<y>23</y>
<height>16</height>
<width>78</width>
<format>dd/mm/yy</format>
<width>80</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>end_date</name>
<name>work_tblno</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<EditStyle style="edit">
<limit>5</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
......@@ -455,53 +424,63 @@
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>1</alignment>
<text>Chg User:</text>
<border>0</border>
<color>33554432</color>
<x>225</x>
<y>92</y>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>170</x>
<y>46</y>
<height>16</height>
<width>54</width>
<width>80</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<visible>0</visible>
<name>line_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>30</tabsequence>
<border>5</border>
<color>255</color>
<x>283</x>
<y>92</y>
<color>0</color>
<x>170</x>
<y>69</y>
<height>16</height>
<width>78</width>
<format>[general]</format>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<visible>0</visible>
<name>start_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -509,7 +488,7 @@
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
......@@ -518,85 +497,115 @@
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Work Table:</text>
<border>0</border>
<color>33554432</color>
<x>44</x>
<y>21</y>
<id>4</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>0</color>
<x>170</x>
<y>92</y>
<height>16</height>
<width>73</width>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>work_tblno_t</name>
<name>end_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Start Date:</text>
<border>0</border>
<color>33554432</color>
<x>44</x>
<y>44</y>
<id>5</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<border>5</border>
<color>0</color>
<x>170</x>
<y>115</y>
<height>16</height>
<width>73</width>
<width>80</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>start_date_t</name>
<name>prd_code__pay</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>6</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Paid Preriod:</text>
<border>0</border>
<color>33554432</color>
<x>15</x>
<y>67</y>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>101</x>
<y>165</y>
<height>16</height>
<width>102</width>
<width>80</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code__pay_t</name>
<name>chg_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
......@@ -604,27 +613,37 @@
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Chg Date:</text>
<border>0</border>
<color>33554432</color>
<x>44</x>
<y>90</y>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>273</x>
<y>164</y>
<height>16</height>
<width>73</width>
<width>80</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<visible>0</visible>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>300</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
......@@ -632,27 +651,37 @@
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Chg Term:</text>
<border>0</border>
<color>33554432</color>
<x>44</x>
<y>113</y>
<id>8</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>445</x>
<y>164</y>
<height>16</height>
<width>73</width>
<width>80</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<visible>0</visible>
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
......@@ -660,7 +689,7 @@
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
......
$PBExportHeader$d_work_balance_edit.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
summary(height=194 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" )
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" )
......@@ -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=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" )
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" )
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" )
......@@ -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" )
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="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 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" )
......
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; }
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(); }
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(); 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); }
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; } }
\ No newline at end of file
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
......
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