Commit 633f006d authored by dpingle's avatar dpingle

* change done in src file of ShiftChange

shift_chg11.xml
shift_chg12.xml
w_shift_chg.sql
ShiftChangeIc.java
ShiftChangePrc.java
d_shift_chg11.srd
d_shift_chg12.srd


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@215393 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d4b20207
...@@ -7,12 +7,19 @@ Insert into OBJ_FORMS (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_E ...@@ -7,12 +7,19 @@ Insert into OBJ_FORMS (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_E
------------------------------------------------------ ITM2MENU ------------------------------------------------------ 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,60,0,0,0,'w_shift_chg','Work shift Change',null,'ADP.4.60.0.0.0','e12_logo.gif',null,null,'P',null,null,null,'B',null,null,'B','0 '); 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,60,0,0,0,'w_shift_chg','Work shift Change',null,'ADP.4.60.0.0.0','e12_logo.gif',null,null,'P',null,null,null,'B',null,null,'B','0 ');
update itm2menu set ICON_PATH='WorkShiftChange.png' , CLOSE_ICON='WorkShiftChangewht.png' where WIN_NAME='w_shift_chg';
----------------------------------------------------- OBJ_ACTIONS ----------------------------------------------------- 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 ('shift_chg',1,'vdata~normal.gif','Action to get data','get_data','a','V','View Data','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 ('shift_chg',1,'vdata~normal.gif','Action to get data','get_data','a','V','View Data','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 ('shift_chg',2,null,'Action to process data','process','a','P','Process','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 ('shift_chg',2,null,'Action to process data','process','a','P','Process','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);
----------------------------------------------------- OBJ_ACTIONS
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shift_chg','1','emp_code','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shift_chg','1','itm_default','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shift_chg','2','shift','Y');
----------------------------------------------------- SYSTEM_EVENTS ----------------------------------------------------- SYSTEM_EVENTS
...@@ -22,18 +29,21 @@ Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD ...@@ -22,18 +29,21 @@ Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD
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 ('shift_chg','pre_validate','1','prv_shift_chg',null,'0',to_date('24-09-14','DD-MM-RR'),'BASE ','BASE','2','JB','ibase.webitm.ejb.adm.ShiftChangeIc',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 ('shift_chg','pre_validate','1','prv_shift_chg',null,'0',to_date('24-09-14','DD-MM-RR'),'BASE ','BASE','2','JB','ibase.webitm.ejb.adm.ShiftChangeIc',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 ('shift_chg','process','1','pr_shift_chg',null,'0',to_date('24-09-14','DD-MM-RR'),'BASE ','BASE','2','JB','ibase.webitm.ejb.adm.ShiftChangePrc',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 ('shift_chg','process','1','pr_shift_chg',null,'0',to_date('24-09-14','DD-MM-RR'),'BASE ','BASE','2','JB','ibase.webitm.ejb.adm.ShiftChangePrc',null);
update system_events set service_code = 'poic_default_ejb' where event_code = 'post_item_change' and obj_name = 'shift_chg';
update system_events set service_code = 'prv_default_ejb' where event_code = 'pre_validate' and obj_name = 'shift_chg';
---------------------------------------------------- SYSTEM_EVENT_SERVICES ---------------------------------------------------- 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 ('gd_shift_chg','Action To get the Data','http://localhost:9090/axis/services/ValidatorService',null,'getData','String','S',null,null,to_date('24-09-14','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 ('gd_shift_chg','Action To get the Data','http://localhost:9090/axis/services/ValidatorService',null,'getData','String','S',null,null,to_date('24-09-14','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 ('poic_shift_chg','itemchanged','http://localhost:9090/axis/services/ValidatorService',null,'itemChanged','String','S',null,null,to_date('24-09-14','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 ('poic_default_ejb','Item Changed','http://localhost:9090/axis/services/ValidatorService',null,'itemChanged','String','S',null,null,to_date('28-08-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 ('post_gen_val','validation','http://localhost:9090/axis/services/ValidatorService','BASE iformation','wfValData','String','S',null,null,to_date('21-05-16','DD-MM-RR'),'BASE ','VAIBHAV',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 ('post_gen_val','validation','http://localhost:9090/axis/services/ValidatorService','BASE iformation','wfValData','String','S',null,null,to_date('21-05-16','DD-MM-RR'),'BASE ','VAIBHAV',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 ('prv_shift_chg','Action To validate the Data','http://localhost:9090/axis/services/ValidatorService',null,'wfValData','String','S',null,null,to_date('24-09-14','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 ('pr_shift_chg','Action To process the Data','http://localhost:9090/axis/services/ValidatorService',null,'process','String','S',null,null,to_date('24-09-14','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 ('prv_default_ejb','method for validation','http://localhost:9090/axis/services/ValidatorService','BASE','wfValData','String','S',null,null,to_date('28-08-19','DD-MM-RR'),'BASE ','BASE',null,null,null);
---------------------------------------------------- SYSTEM_SERVICE_ARGS ---------------------------------------------------- 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 ('gd_shift_chg',1,'COMPONENT_TYPE','I',null,'S',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE','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 ('gd_shift_chg',1,'COMPONENT_TYPE','I',null,'S',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE','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 ('gd_shift_chg',2,'COMPONENT_NAME','l',null,'C.String',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE','ibase.webitm.ejb.adm.ShiftChangePrc'); 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 ('gd_shift_chg',2,'COMPONENT_NAME','l',null,'C.String',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE','ibase.webitm.ejb.adm.ShiftChangePrc');
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 ('gd_shift_chg',3,'XML_DATA','l',null,'S',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE',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 ('gd_shift_chg',3,'XML_DATA','l',null,'S',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE',null);
...@@ -41,17 +51,15 @@ Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,AR ...@@ -41,17 +51,15 @@ Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,AR
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 ('gd_shift_chg',5,'WINDOW_NAME ','l',null,'S',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE',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 ('gd_shift_chg',5,'WINDOW_NAME ','l',null,'S',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE',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 ('gd_shift_chg',6,'XTRA_PARAMS','l',null,'S',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE',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 ('gd_shift_chg',6,'XTRA_PARAMS','l',null,'S',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE',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',1,'COMPONENT_TYPE','I',null,'S',null,to_date('01-06-19','DD-MM-RR'),'HRISHIKESH','HRISHIKESH','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_shift_chg',1,'COMPONENT_TYPE','I',null,'C.String',null,to_date('25-09-14','DD-MM-RR'),'BASE ','BASE','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,to_date('01-06-19','DD-MM-RR'),'HRISHIKESH','HRISHIKESH',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_shift_chg',2,'COMPONENT_NAME','I',null,'C.String',null,to_date('25-09-14','DD-MM-RR'),'BASE ','BASE','ibase.webitm.ejb.adm.ShiftChangeIc'); 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,to_date('18-09-11','DD-MM-RR'),'Manohar ','This ',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_shift_chg',3,'XML_DATA','I',null,'S',null,to_date('25-09-14','DD-MM-RR'),'BASE ','BASE',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,to_date('18-09-11','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 ('poic_shift_chg',4,'XML_DATA_1','I',null,'S',null,to_date('25-09-14','DD-MM-RR'),'BASE ','BASE',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,to_date('18-09-11','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 ('poic_shift_chg',5,'XML_DATA_ALL','I',null,'S',null,to_date('25-09-14','DD-MM-RR'),'BASE ','BASE',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,to_date('18-09-11','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 ('poic_shift_chg',6,'OBJ_CONTEXT','I',null,'S',null,to_date('25-09-14','DD-MM-RR'),'BASE ','BASE',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,to_date('18-09-11','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 ('poic_shift_chg',7,'FOCUSED_COLUMN','I',null,'S',null,to_date('25-09-14','DD-MM-RR'),'BASE ','BASE',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,to_date('18-09-11','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 ('poic_shift_chg',8,'EDIT_FLAG','I',null,'S',null,to_date('25-09-14','DD-MM-RR'),'BASE ','BASE',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,to_date('18-09-11','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 ('poic_shift_chg',9,'XTRA_PARAMS','I',null,'S',null,to_date('25-09-14','DD-MM-RR'),'BASE ','BASE',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 ('post_gen_val',1,'COMPONENT_TYPE','I',null,'C.String',null,to_date('21-05-16','DD-MM-RR'),'VAIBHAV ','VAIBHAV','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 ('post_gen_val',1,'COMPONENT_TYPE','I',null,'C.String',null,to_date('21-05-16','DD-MM-RR'),'VAIBHAV ','VAIBHAV','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 ('post_gen_val',2,'COMPONENT_NAME','I',null,'C.String',null,to_date('21-05-16','DD-MM-RR'),'VAIBHAV ','VAIBHAV','ibase.webitm.ejb.sys.GenValidate'); 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 ('post_gen_val',2,'COMPONENT_NAME','I',null,'C.String',null,to_date('21-05-16','DD-MM-RR'),'VAIBHAV ','VAIBHAV','ibase.webitm.ejb.sys.GenValidate');
...@@ -63,7 +71,6 @@ Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,AR ...@@ -63,7 +71,6 @@ Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,AR
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 ('post_gen_val',8,'XTRA_PARAMS','I',null,'S',null,to_date('21-05-16','DD-MM-RR'),'VAIBHAV ','VAIBHAV',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 ('post_gen_val',8,'XTRA_PARAMS','I',null,'S',null,to_date('21-05-16','DD-MM-RR'),'VAIBHAV ','VAIBHAV',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 ('post_gen_val',9,'ACTION','I',null,'S',null,to_date('19-05-15','DD-MM-RR'),'BASE ','BASE',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 ('post_gen_val',9,'ACTION','I',null,'S',null,to_date('19-05-15','DD-MM-RR'),'BASE ','BASE',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 ('pr_shift_chg',1,'COMPONENT_TYPE','I',null,'S',null,to_date('10-10-14','DD-MM-RR'),'BASE ','BASE','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 ('pr_shift_chg',1,'COMPONENT_TYPE','I',null,'S',null,to_date('10-10-14','DD-MM-RR'),'BASE ','BASE','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 ('pr_shift_chg',2,'COMPONENT_NAME','l','Component Name','S',null,to_date('10-10-14','DD-MM-RR'),'BASE ','BASE','ibase.webitm.ejb.adm.ShiftChangePrc'); 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 ('pr_shift_chg',2,'COMPONENT_NAME','l','Component Name','S',null,to_date('10-10-14','DD-MM-RR'),'BASE ','BASE','ibase.webitm.ejb.adm.ShiftChangePrc');
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 ('pr_shift_chg',3,'XML_DATA_1','l','XML data of form no 1 ','S',null,to_date('10-10-14','DD-MM-RR'),'BASE ','BASE',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 ('pr_shift_chg',3,'XML_DATA_1','l','XML data of form no 1 ','S',null,to_date('10-10-14','DD-MM-RR'),'BASE ','BASE',null);
...@@ -71,17 +78,14 @@ Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,AR ...@@ -71,17 +78,14 @@ Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,AR
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 ('pr_shift_chg',5,'WINDOW_NAME','l',null,'S',null,to_date('10-10-14','DD-MM-RR'),'BASE ','BASE',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 ('pr_shift_chg',5,'WINDOW_NAME','l',null,'S',null,to_date('10-10-14','DD-MM-RR'),'BASE ','BASE',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 ('pr_shift_chg',6,'XTRA_PARAMS','l',null,'S',null,to_date('10-10-14','DD-MM-RR'),'BASE ','BASE',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 ('pr_shift_chg',6,'XTRA_PARAMS','l',null,'S',null,to_date('10-10-14','DD-MM-RR'),'BASE ','BASE',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('18-09-11','DD-MM-RR'),'Manohar ','Manohar','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 ('prv_shift_chg',1,'COMPONENT_TYPE','I',null,'S',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE','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 ('prv_default_ejb',2,'COMPONENT_NAME','I',null,'S',null,to_date('18-09-11','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_shift_chg',2,'COMPONENT_NAME','l','Component Name','S',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE','ibase.webitm.ejb.adm.ShiftChangeIc'); 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('18-09-11','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_shift_chg',3,'XML_DATA','l','XML data of form no 1 ','S',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE',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('18-09-11','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_shift_chg',4,'XML_DATA_1','l','XML data of form no 2 ','S',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE',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('18-09-11','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_shift_chg',5,'XML_DATA_ALL ','l','XML data of form all','S',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE',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('18-09-11','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_shift_chg',6,'OBJ_CONTEXT ','l',null,'S',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE',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('18-09-11','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_shift_chg',7,'XTRA_PARAMS','l',null,'S',null,to_date('24-09-14','DD-MM-RR'),'BASE ','BASE',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('18-09-11','DD-MM-RR'),'Manohar ','Manohar',null);
----------------------------------------------------- MESSAGES ----------------------------------------------------- MESSAGES
...@@ -94,6 +98,10 @@ Insert into MSG_NO (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR ...@@ -94,6 +98,10 @@ Insert into MSG_NO (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR
Insert into MSG_NO (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 ('VPSHFTCH07','Invalid Shift!','Enterd shift is not defined in master, enter valid shift','E','Y',null,null,null,to_date('17-08-15','DD-MM-RR'),'BASE ','BASE ',null,null); Insert into MSG_NO (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 ('VPSHFTCH07','Invalid Shift!','Enterd shift is not defined in master, enter valid shift','E','Y',null,null,null,to_date('17-08-15','DD-MM-RR'),'BASE ','BASE ',null,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 ('SHIFT','W_SHIFT_CHG','SELECT FLD_VALUE as shift,DESCR as shift_descr FROM GENCODES WHERE MOD_NAME = ''W_TOUR_PORTAL_WIZ''',null,null,0,0,to_date('27-05-00','DD-MM-RR'),'SUN ','CLIENT1 ','0',null,null,1,null,null,null,null,null,null,'2',null,'3','shift_descr','shiftImage','shift','2 ',null,null,null,null,null,null,null);
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow> <!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow> <Sybase_eDataWindow>
<Release>9</Release> <Release>9</Release>
<BaseDefinition> <BaseDefinition>
<units>1</units> <units>1</units>
<timer_interval>0</timer_interval> <timer_interval>0</timer_interval>
<color>79741120</color> <color>79741120</color>
<processing>0</processing> <processing>0</processing>
<HTMLDW>no</HTMLDW> <HTMLDW>no</HTMLDW>
<print> <print>
<documentname></documentname> <documentname></documentname>
<printername></printername> <printername></printername>
<orientation>0</orientation> <orientation>0</orientation>
<margin> <margin>
<left>24</left> <left>24</left>
<right>24</right> <right>24</right>
<top>24</top> <top>24</top>
<bottom>24</bottom> <bottom>24</bottom>
</margin> </margin>
<paper> <paper>
<source>0</source> <source>0</source>
<size>0</size> <size>0</size>
</paper> </paper>
<prompt>no</prompt> <prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter> <canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons> <buttons>no</buttons>
<preview.buttons>no</preview.buttons> <preview.buttons>no</preview.buttons>
<cliptext>no</cliptext> <cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob> <overrideprintjob>no</overrideprintjob>
</print> </print>
</BaseDefinition> </BaseDefinition>
<Summary> <Summary>
<height>0</height> <height>0</height>
<color>536870912</color> <color>536870912</color>
</Summary> </Summary>
<Footer> <Footer>
<height>3</height> <height>3</height>
<color>536870912</color> <color>536870912</color>
</Footer> </Footer>
<Detail> <Detail>
<height>241</height> <height>241</height>
<color>536870912</color> <color>536870912</color>
</Detail> </Detail>
<TableDefinition> <TableDefinition>
<table_column> <table_column>
<type size="10">char</type> <type size="10">char</type>
<updatewhereclause>no</updatewhereclause> <updatewhereclause>no</updatewhereclause>
<name>emp_code</name> <name>emp_code</name>
<dbname>emp_code</dbname> <dbname>emp_code</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="60">char</type> <type size="60">char</type>
<updatewhereclause>no</updatewhereclause> <updatewhereclause>no</updatewhereclause>
<name>emp_name</name> <name>emp_name</name>
<dbname>emp_name</dbname> <dbname>emp_name</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="5">char</type> <type size="5">char</type>
<updatewhereclause>no</updatewhereclause> <updatewhereclause>no</updatewhereclause>
<name>site_code</name> <name>site_code</name>
<dbname>site_code</dbname> <dbname>site_code</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type>datetime</type> <type>datetime</type>
<updatewhereclause>no</updatewhereclause> <updatewhereclause>no</updatewhereclause>
<name>from_dt</name> <name>from_dt</name>
<dbname>from_dt</dbname> <dbname>from_dt</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type>datetime</type> <type>datetime</type>
<updatewhereclause>no</updatewhereclause> <updatewhereclause>no</updatewhereclause>
<name>to_dt</name> <name>to_dt</name>
<dbname>to_dt</dbname> <dbname>to_dt</dbname>
</table_column> </table_column>
</TableDefinition> </TableDefinition>
<TextObject> <GroupBox>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <text>Basic</text>
<text>Employee :</text> <border>2</border>
<border>0</border> <color>33554432</color>
<color>0</color> <x>5</x>
<x>6</x> <y>4</y>
<y>8</y> <height>100</height>
<height>16</height> <width>522</width>
<width>88</width> <name>gb_1</name>
<html> <visible>1</visible>
<valueishtml>0</valueishtml> <font>
</html> <face>Arial</face>
<name>emp_code_t</name> <height>-11</height>
<visible>1</visible> <weight>400</weight>
<font> <family>2</family>
<face>Times New Roman</face> <pitch>2</pitch>
<height>-10</height> <charset>0</charset>
<weight>400</weight> </font>
<family>1</family> <background>
<pitch>2</pitch> <mode>1</mode>
<charset>0</charset> <color>553648127</color>
</font> </background>
<background> </GroupBox>
<mode>1</mode> <TextObject>
<color>536870912</color> <band>Detail</band>
</background> <alignment>1</alignment>
</TextObject> <text>Employee :</text>
<TextObject> <border>0</border>
<band>Detail</band> <color>0</color>
<alignment>1</alignment> <x>13</x>
<text>Date From :</text> <y>28</y>
<border>0</border> <height>16</height>
<color>0</color> <width>88</width>
<x>6</x> <html>
<y>41</y> <valueishtml>0</valueishtml>
<height>16</height> </html>
<width>88</width> <name>emp_code_t</name>
<html> <visible>1</visible>
<valueishtml>0</valueishtml> <font>
</html> <face>Times New Roman</face>
<name>from_dt_t</name> <height>-10</height>
<visible>1</visible> <weight>400</weight>
<font> <family>1</family>
<face>Times New Roman</face> <pitch>2</pitch>
<height>-10</height> <charset>0</charset>
<weight>400</weight> </font>
<family>1</family> <background>
<pitch>2</pitch> <mode>1</mode>
<charset>0</charset> <color>536870912</color>
</font> </background>
<background> </TextObject>
<mode>1</mode> <TextObject>
<color>536870912</color> <band>Detail</band>
</background> <alignment>1</alignment>
</TextObject> <text>Date From :</text>
<TextObject> <border>0</border>
<band>Detail</band> <color>0</color>
<alignment>1</alignment> <x>13</x>
<text>Date To :</text> <y>61</y>
<border>0</border> <height>16</height>
<color>0</color> <width>88</width>
<x>335</x> <html>
<y>41</y> <valueishtml>0</valueishtml>
<height>16</height> </html>
<width>88</width> <name>from_dt_t</name>
<html> <visible>1</visible>
<valueishtml>0</valueishtml> <font>
</html> <face>Times New Roman</face>
<name>to_dt_t</name> <height>-10</height>
<visible>1</visible> <weight>400</weight>
<font> <family>1</family>
<face>Times New Roman</face> <pitch>2</pitch>
<height>-10</height> <charset>0</charset>
<weight>400</weight> </font>
<family>1</family> <background>
<pitch>2</pitch> <mode>1</mode>
<charset>0</charset> <color>536870912</color>
</font> </background>
<background> </TextObject>
<mode>1</mode> <TextObject>
<color>536870912</color> <band>Detail</band>
</background> <alignment>1</alignment>
</TextObject> <text>Date To :</text>
<ColumnObject> <border>0</border>
<band>Detail</band> <color>0</color>
<id>1</id> <x>342</x>
<alignment>0</alignment> <y>61</y>
<tabsequence>32766</tabsequence> <height>16</height>
<border>5</border> <width>88</width>
<color>255</color> <html>
<x>100</x> <valueishtml>0</valueishtml>
<y>9</y> </html>
<height>16</height> <name>to_dt_t</name>
<width>85</width> <visible>1</visible>
<format>[general]</format> <font>
<html> <face>Times New Roman</face>
<valueishtml>0</valueishtml> <height>-10</height>
</html> <weight>400</weight>
<name>emp_code</name> <family>1</family>
<visible>1</visible> <pitch>2</pitch>
<EditStyle style="edit"> <charset>0</charset>
<limit>10</limit> </font>
<case>upper</case> <background>
<focusrectangle>no</focusrectangle> <mode>1</mode>
<autoselect>no</autoselect> <color>536870912</color>
<imemode>0</imemode> </background>
</EditStyle> </TextObject>
<font> <ColumnObject>
<face>Times New Roman</face> <band>Detail</band>
<height>-10</height> <id>1</id>
<weight>400</weight> <alignment>0</alignment>
<family>1</family> <tabsequence>32766</tabsequence>
<pitch>2</pitch> <border>5</border>
<charset>0</charset> <color>255</color>
</font> <x>107</x>
<background> <y>29</y>
<mode>2</mode> <height>16</height>
<color>67108864</color> <width>85</width>
</background> <format>[general]</format>
</ColumnObject> <html>
<ColumnObject> <valueishtml>0</valueishtml>
<band>Detail</band> </html>
<id>2</id> <name>emp_code</name>
<alignment>0</alignment> <visible>1</visible>
<tabsequence>32766</tabsequence> <EditStyle style="edit">
<border>5</border> <limit>10</limit>
<color>255</color> <case>upper</case>
<x>191</x> <focusrectangle>no</focusrectangle>
<y>9</y> <autoselect>no</autoselect>
<height>16</height> <imemode>0</imemode>
<width>323</width> </EditStyle>
<format>[general]</format> <font>
<html> <face>Times New Roman</face>
<valueishtml>0</valueishtml> <height>-10</height>
</html> <weight>400</weight>
<name>emp_name</name> <family>1</family>
<visible>1</visible> <pitch>2</pitch>
<EditStyle style="edit"> <charset>0</charset>
<limit>60</limit> </font>
<case>any</case> <background>
<focusrectangle>no</focusrectangle> <mode>2</mode>
<autoselect>no</autoselect> <color>67108864</color>
<imemode>0</imemode> </background>
</EditStyle> </ColumnObject>
<font> <ColumnObject>
<face>Times New Roman</face> <band>Detail</band>
<height>-10</height> <id>2</id>
<weight>400</weight> <alignment>0</alignment>
<family>1</family> <tabsequence>32766</tabsequence>
<pitch>2</pitch> <border>5</border>
<charset>0</charset> <color>255</color>
</font> <x>198</x>
<background> <y>29</y>
<mode>2</mode> <height>16</height>
<color>67108864</color> <width>323</width>
</background> <format>[general]</format>
</ColumnObject> <html>
<ColumnObject> <valueishtml>0</valueishtml>
<band>Detail</band> </html>
<id>4</id> <name>emp_name</name>
<alignment>0</alignment> <visible>1</visible>
<tabsequence>32766</tabsequence> <EditStyle style="edit">
<border>5</border> <limit>60</limit>
<color>255</color> <case>any</case>
<x>100</x> <focusrectangle>no</focusrectangle>
<y>41</y> <autoselect>no</autoselect>
<height>16</height> <imemode>0</imemode>
<width>85</width> </EditStyle>
<format>[shortdate] [time]</format> <font>
<html> <face>Times New Roman</face>
<valueishtml>0</valueishtml> <height>-10</height>
</html> <weight>400</weight>
<name>from_dt</name> <family>1</family>
<visible>1</visible> <pitch>2</pitch>
<EditStyle style="editmask"> <charset>0</charset>
<mask>dd/mm/yy</mask> </font>
<imemode>0</imemode> <background>
<focusrectangle>no</focusrectangle> <mode>2</mode>
</EditStyle> <color>67108864</color>
<font> </background>
<face>Times New Roman</face> </ColumnObject>
<height>-10</height> <ColumnObject>
<weight>400</weight> <band>Detail</band>
<family>1</family> <id>4</id>
<pitch>2</pitch> <alignment>0</alignment>
<charset>0</charset> <tabsequence>32766</tabsequence>
</font> <border>5</border>
<background> <color>255</color>
<mode>2</mode> <x>106</x>
<color>67108864</color> <y>61</y>
</background> <height>16</height>
</ColumnObject> <width>85</width>
<ColumnObject> <format>[shortdate] [time]</format>
<band>Detail</band> <html>
<id>5</id> <valueishtml>0</valueishtml>
<alignment>0</alignment> </html>
<tabsequence>32766</tabsequence> <name>from_dt</name>
<border>5</border> <visible>1</visible>
<color>255</color> <EditStyle style="editmask">
<x>429</x> <mask>dd/mm/yy</mask>
<y>41</y> <imemode>0</imemode>
<height>16</height> <focusrectangle>no</focusrectangle>
<width>85</width> </EditStyle>
<format>[shortdate] [time]</format> <font>
<html> <face>Times New Roman</face>
<valueishtml>0</valueishtml> <height>-10</height>
</html> <weight>400</weight>
<name>to_dt</name> <family>1</family>
<visible>1</visible> <pitch>2</pitch>
<EditStyle style="editmask"> <charset>0</charset>
<mask>dd/mm/yy</mask> </font>
<imemode>0</imemode> <background>
<focusrectangle>no</focusrectangle> <mode>2</mode>
</EditStyle> <color>67108864</color>
<font> </background>
<face>Times New Roman</face> </ColumnObject>
<height>-10</height> <ColumnObject>
<weight>400</weight> <band>Detail</band>
<family>1</family> <id>5</id>
<pitch>2</pitch> <alignment>0</alignment>
<charset>0</charset> <tabsequence>32766</tabsequence>
</font> <border>5</border>
<background> <color>255</color>
<mode>2</mode> <x>436</x>
<color>67108864</color> <y>61</y>
</background> <height>16</height>
</ColumnObject> <width>85</width>
<HtmlTable> <format>[shortdate] [time]</format>
<border>1</border> <html>
</HtmlTable> <valueishtml>0</valueishtml>
<HtmlGen> </html>
<clientevents>1</clientevents> <name>to_dt</name>
<clientvalidation>1</clientvalidation> <visible>1</visible>
<clientcomputedfields>1</clientcomputedfields> <EditStyle style="editmask">
<clientformatting>0</clientformatting> <mask>dd/mm/yy</mask>
<clientscriptable>0</clientscriptable> <imemode>0</imemode>
<generatejavascript>1</generatejavascript> <focusrectangle>no</focusrectangle>
<encodeselflinkargs>1</encodeselflinkargs> </EditStyle>
<netscapelayers>0</netscapelayers> <font>
</HtmlGen> <face>Times New Roman</face>
<Export.XML> <height>-10</height>
<headgroups>1</headgroups> <weight>400</weight>
<includewhitespace>0</includewhitespace> <family>1</family>
<metadatatype>0</metadatatype> <pitch>2</pitch>
<savemetadata>0</savemetadata> <charset>0</charset>
</Export.XML> </font>
<Import.XML> <background>
</Import.XML> <mode>2</mode>
<Export.PDF> <color>67108864</color>
<method>0</method> </background>
<distill.custompostscript>0</distill.custompostscript> </ColumnObject>
<xslfop.print>0</xslfop.print> <HtmlTable>
</Export.PDF> <border>1</border>
</Sybase_eDataWindow> </HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow> <!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow> <Sybase_eDataWindow>
<Release>9</Release> <Release>9</Release>
<BaseDefinition> <BaseDefinition>
<units>1</units> <units>1</units>
<timer_interval>0</timer_interval> <timer_interval>0</timer_interval>
<color>79741120</color> <color>79741120</color>
<processing>1</processing> <processing>1</processing>
<HTMLDW>no</HTMLDW> <HTMLDW>no</HTMLDW>
<print> <print>
<documentname></documentname> <documentname></documentname>
<printername></printername> <printername></printername>
<orientation>0</orientation> <orientation>0</orientation>
<margin> <margin>
<left>24</left> <left>24</left>
<right>24</right> <right>24</right>
<top>24</top> <top>24</top>
<bottom>24</bottom> <bottom>24</bottom>
</margin> </margin>
<paper> <paper>
<source>0</source> <source>0</source>
<size>0</size> <size>0</size>
</paper> </paper>
<prompt>no</prompt> <prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter> <canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons> <buttons>no</buttons>
<preview.buttons>no</preview.buttons> <preview.buttons>no</preview.buttons>
<cliptext>no</cliptext> <cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob> <overrideprintjob>no</overrideprintjob>
</print> </print>
<grid.lines>0</grid.lines> <grid.lines>0</grid.lines>
</BaseDefinition> </BaseDefinition>
<Header> <Header>
<height>20</height> <height>20</height>
<color>536870912</color> <color>536870912</color>
</Header> </Header>
<Summary> <Summary>
<height>0</height> <height>0</height>
<color>536870912</color> <color>536870912</color>
</Summary> </Summary>
<Footer> <Footer>
<height>0</height> <height>0</height>
<color>536870912</color> <color>536870912</color>
</Footer> </Footer>
<Detail> <Detail>
<height>21</height> <height>21</height>
<color>536870912</color> <color>536870912</color>
</Detail> </Detail>
<TableDefinition> <TableDefinition>
<table_column> <table_column>
<type size="10">char</type> <type size="10">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<key>yes</key> <key>yes</key>
<name>emp_code</name> <name>emp_code</name>
<dbname>work_shift.emp_code</dbname> <dbname>work_shift.emp_code</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="5">char</type> <type size="5">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>shift</name> <name>shift</name>
<dbname>work_shift.shift</dbname> <dbname>work_shift.shift</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="20">char</type> <type size="20">char</type>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>workshft_descr</name> <name>workshft_descr</name>
<dbname>workshft.descr</dbname> <dbname>workshft.descr</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type>datetime</type> <type>datetime</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<key>yes</key> <key>yes</key>
<name>from_dt</name> <name>from_dt</name>
<dbname>work_shift.from_dt</dbname> <dbname>work_shift.from_dt</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type>datetime</type> <type>datetime</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<key>yes</key> <key>yes</key>
<name>to_dt</name> <name>to_dt</name>
<dbname>work_shift.to_dt</dbname> <dbname>work_shift.to_dt</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="15">char</type> <type size="15">char</type>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>emp_fname</name> <name>emp_fname</name>
<dbname>employee.emp_fname</dbname> <dbname>employee.emp_fname</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="15">char</type> <type size="15">char</type>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>emp_lname</name> <name>emp_lname</name>
<dbname>employee.emp_lname</dbname> <dbname>employee.emp_lname</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="5">char</type> <type size="5">char</type>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>dept_code</name> <name>dept_code</name>
<dbname>employee.dept_code</dbname> <dbname>employee.dept_code</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="5">char</type> <type size="5">char</type>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>emp_site</name> <name>emp_site</name>
<dbname>employee.emp_site</dbname> <dbname>employee.emp_site</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type>datetime</type> <type>datetime</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>chg_date</name> <name>chg_date</name>
<dbname>work_shift.chg_date</dbname> <dbname>work_shift.chg_date</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="15">char</type> <type size="15">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>chg_user</name> <name>chg_user</name>
<dbname>work_shift.chg_user</dbname> <dbname>work_shift.chg_user</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="10">char</type> <type size="10">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>chg_term</name> <name>chg_term</name>
<dbname>work_shift.chg_term</dbname> <dbname>work_shift.chg_term</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="5">char</type> <type size="5">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>real_shift</name> <name>real_shift</name>
<dbname>work_shift.real_shift</dbname> <dbname>work_shift.real_shift</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="10">char</type> <type size="10">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>pattern_code</name> <name>pattern_code</name>
<dbname>work_shift.pattern_code</dbname> <dbname>work_shift.pattern_code</dbname>
</table_column> </table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;employee&quot; ) TABLE(NAME=&quot;work_shift&quot; ) TABLE(NAME=&quot;workshft&quot; ) COLUMN(NAME=&quot;work_shift.emp_code&quot;) COLUMN(NAME=&quot;work_shift.shift&quot;) COLUMN(NAME=&quot;workshft.descr&quot;) COLUMN(NAME=&quot;work_shift.from_dt&quot;) COLUMN(NAME=&quot;work_shift.to_dt&quot;) COLUMN(NAME=&quot;employee.emp_fname&quot;) COLUMN(NAME=&quot;employee.emp_lname&quot;) COLUMN(NAME=&quot;employee.dept_code&quot;) COLUMN(NAME=&quot;employee.emp_site&quot;) COLUMN(NAME=&quot;work_shift.chg_date&quot;) COLUMN(NAME=&quot;work_shift.chg_user&quot;) COLUMN(NAME=&quot;work_shift.chg_term&quot;) COLUMN(NAME=&quot;work_shift.real_shift&quot;) COLUMN(NAME=&quot;work_shift.pattern_code&quot;) JOIN (LEFT=&quot;work_shift.emp_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee.emp_code&quot; ) JOIN (LEFT=&quot;work_shift.shift&quot; OP =&quot;=&quot;RIGHT=&quot;workshft.shift&quot; )WHERE( EXP1 =&quot;( workshft.day_no&quot; OP =&quot;=&quot; EXP2 =&quot;1 )&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;(( work_shift.from_dt&quot; OP =&quot;between&quot; EXP2 =&quot;:ad_date_fr and :ad_date_to )&quot; LOGIC =&quot;or&quot; ) WHERE( EXP1 =&quot;( :ad_date_fr&quot; OP =&quot;between&quot; EXP2 =&quot;work_shift.from_dt and work_shift.to_dt ))&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;( work_shift.emp_code&quot; OP =&quot;=&quot; EXP2 =&quot;:as_emp )&quot; ) ) ORDER(NAME=&quot;employee.emp_code&quot; ASC=yes ) ORDER(NAME=&quot;work_shift.from_dt&quot; ASC=yes ) ORDER(NAME=&quot;work_shift.to_dt&quot; ASC=yes ) ARG(NAME = &quot;ad_date_fr&quot; TYPE = datetime) ARG(NAME = &quot;ad_date_to&quot; TYPE = datetime) ARG(NAME = &quot;as_emp&quot; TYPE = string) </retrieve> <retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;employee&quot; ) TABLE(NAME=&quot;work_shift&quot; ) TABLE(NAME=&quot;workshft&quot; ) COLUMN(NAME=&quot;work_shift.emp_code&quot;) COLUMN(NAME=&quot;work_shift.shift&quot;) COLUMN(NAME=&quot;workshft.descr&quot;) COLUMN(NAME=&quot;work_shift.from_dt&quot;) COLUMN(NAME=&quot;work_shift.to_dt&quot;) COLUMN(NAME=&quot;employee.emp_fname&quot;) COLUMN(NAME=&quot;employee.emp_lname&quot;) COLUMN(NAME=&quot;employee.dept_code&quot;) COLUMN(NAME=&quot;employee.emp_site&quot;) COLUMN(NAME=&quot;work_shift.chg_date&quot;) COLUMN(NAME=&quot;work_shift.chg_user&quot;) COLUMN(NAME=&quot;work_shift.chg_term&quot;) COLUMN(NAME=&quot;work_shift.real_shift&quot;) COLUMN(NAME=&quot;work_shift.pattern_code&quot;) JOIN (LEFT=&quot;work_shift.emp_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee.emp_code&quot; ) JOIN (LEFT=&quot;work_shift.shift&quot; OP =&quot;=&quot;RIGHT=&quot;workshft.shift&quot; )WHERE( EXP1 =&quot;( workshft.day_no&quot; OP =&quot;=&quot; EXP2 =&quot;1 )&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;(( work_shift.from_dt&quot; OP =&quot;between&quot; EXP2 =&quot;:ad_date_fr and :ad_date_to )&quot; LOGIC =&quot;or&quot; ) WHERE( EXP1 =&quot;( :ad_date_fr&quot; OP =&quot;between&quot; EXP2 =&quot;work_shift.from_dt and work_shift.to_dt ))&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;( work_shift.emp_code&quot; OP =&quot;=&quot; EXP2 =&quot;:as_emp )&quot; ) ) ORDER(NAME=&quot;employee.emp_code&quot; ASC=yes ) ORDER(NAME=&quot;work_shift.from_dt&quot; ASC=yes ) ORDER(NAME=&quot;work_shift.to_dt&quot; ASC=yes ) ARG(NAME = &quot;ad_date_fr&quot; TYPE = datetime) ARG(NAME = &quot;ad_date_to&quot; TYPE = datetime) ARG(NAME = &quot;as_emp&quot; TYPE = string) </retrieve>
<update>work_shift</update> <update>work_shift</update>
<updatewhere>0</updatewhere> <updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace> <updatekeyinplace>no</updatekeyinplace>
<argument> <argument>
<name>ad_date_fr</name> <name>ad_date_fr</name>
<type>datetime</type> <type>datetime</type>
</argument> </argument>
<argument> <argument>
<name>ad_date_to</name> <name>ad_date_to</name>
<type>datetime</type> <type>datetime</type>
</argument> </argument>
<argument> <argument>
<name>as_emp</name> <name>as_emp</name>
<type>string</type> <type>string</type>
</argument> </argument>
</TableDefinition> </TableDefinition>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>Employee Code</text> <text>Employee Code</text>
<border>6</border> <border>6</border>
<color>0</color> <color>0</color>
<x>2</x> <x>2</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>104</width> <width>104</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>emp_code_t</name> <name>emp_code_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>1</mode>
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>Shift</text> <text>Shift</text>
<border>6</border> <border>6</border>
<color>0</color> <color>0</color>
<x>108</x> <x>108</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>91</width> <width>91</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>shift_t</name> <name>shift_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>1</mode>
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>Description</text> <text>Description</text>
<border>6</border> <border>6</border>
<color>0</color> <color>0</color>
<x>201</x> <x>201</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>238</width> <width>238</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>workshft_descr_t</name> <name>workshft_descr_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>79741120</color> <color>79741120</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>From Date</text> <text>From Date</text>
<border>6</border> <border>6</border>
<color>0</color> <color>0</color>
<x>441</x> <x>441</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>78</width> <width>78</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>from_dt_t</name> <name>from_dt_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>1</mode>
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>To Date</text> <text>To Date</text>
<border>6</border> <border>6</border>
<color>0</color> <color>0</color>
<x>521</x> <x>521</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>70</width> <width>70</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>to_dt_t</name> <name>to_dt_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>1</mode>
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>First Name</text> <text>First Name</text>
<border>6</border> <border>6</border>
<color>0</color> <color>0</color>
<x>593</x> <x>593</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>187</width> <width>187</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>emp_fname_t</name> <name>emp_fname_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>1</mode>
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>Last Name</text> <text>Last Name</text>
<border>6</border> <border>6</border>
<color>0</color> <color>0</color>
<x>782</x> <x>782</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>198</width> <width>198</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>emp_lname_t</name> <name>emp_lname_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>1</mode>
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>Dept Code</text> <text>Dept Code</text>
<border>6</border> <border>6</border>
<color>0</color> <color>0</color>
<x>982</x> <x>982</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>61</width> <width>61</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>dept_code_t</name> <name>dept_code_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>1</mode>
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>Site Code</text> <text>Site Code</text>
<border>6</border> <border>6</border>
<color>0</color> <color>0</color>
<x>1045</x> <x>1045</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>62</width> <width>62</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>emp_site_t</name> <name>emp_site_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>1</mode>
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>Chg Date</text> <text>Chg Date</text>
<border>6</border> <border>6</border>
<color>0</color> <color>0</color>
<x>1109</x> <x>1109</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>73</width> <width>73</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>chg_date_t</name> <name>chg_date_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>1</mode>
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>Chg User</text> <text>Chg User</text>
<border>6</border> <border>6</border>
<color>0</color> <color>0</color>
<x>1184</x> <x>1184</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>76</width> <width>76</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>chg_user_t</name> <name>chg_user_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>1</mode>
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>Chg Term</text> <text>Chg Term</text>
<border>6</border> <border>6</border>
<color>0</color> <color>0</color>
<x>1262</x> <x>1262</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>70</width> <width>70</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>chg_term_t</name> <name>chg_term_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>1</mode>
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>Real Shift</text> <text>Real Shift</text>
<border>6</border> <border>6</border>
<color>0</color> <color>0</color>
<x>1334</x> <x>1334</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>63</width> <width>63</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>real_shift_t</name> <name>real_shift_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>1</mode> <mode>1</mode>
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>2</alignment> <alignment>2</alignment>
<text>Pattern Code</text> <text>Pattern Code</text>
<border>6</border> <border>6</border>
<color>33554432</color> <color>33554432</color>
<x>1399</x> <x>1399</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>86</width> <width>86</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>pattern_code_t</name> <name>pattern_code_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>1</family> <family>1</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>67108864</color> <color>67108864</color>
</background> </background>
</TextObject> </TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>1</id> <id>1</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>2</x> <x>2</x>
<y>1</y> <y>1</y>
<height>16</height> <height>16</height>
<width>104</width> <width>104</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>emp_code</name> <name>emp_code</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
<case>any</case> <case>any</case>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>1090519039</color> <color>1090519039</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>2</id> <id>2</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>10</tabsequence> <tabsequence>10</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>108</x> <x>108</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>91</width> <width>91</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>shift</name> <name>shift</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>5</limit> <limit>5</limit>
<case>upper</case> <case>upper</case>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>1090519039</color> <color>1090519039</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>3</id> <id>3</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>201</x> <x>201</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>238</width> <width>238</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>workshft_descr</name> <name>workshft_descr</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
<case>any</case> <case>any</case>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>1090519039</color> <color>1090519039</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>4</id> <id>4</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>441</x> <x>441</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>78</width> <width>78</width>
<format>[shortdate] [time]</format> <format>[shortdate] [time]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>from_dt</name> <name>from_dt</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="editmask"> <EditStyle style="editmask">
<mask>dd/mm/yy</mask> <mask>dd/mm/yy</mask>
<imemode>0</imemode> <imemode>0</imemode>
<focusrectangle>no</focusrectangle> <focusrectangle>no</focusrectangle>
</EditStyle> </EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>1090519039</color> <color>1090519039</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>5</id> <id>5</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>521</x> <x>521</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>70</width> <width>70</width>
<format>[shortdate] [time]</format> <format>[shortdate] [time]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>to_dt</name> <name>to_dt</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="editmask"> <EditStyle style="editmask">
<mask>dd/mm/yy</mask> <mask>dd/mm/yy</mask>
<imemode>0</imemode> <imemode>0</imemode>
<focusrectangle>no</focusrectangle> <focusrectangle>no</focusrectangle>
</EditStyle> </EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>1090519039</color> <color>1090519039</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>6</id> <id>6</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>593</x> <x>593</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>187</width> <width>187</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>emp_fname</name> <name>emp_fname</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>15</limit> <limit>15</limit>
<case>any</case> <case>any</case>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
<autohscroll>yes</autohscroll> <autohscroll>yes</autohscroll>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>1090519039</color> <color>1090519039</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>7</id> <id>7</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>782</x> <x>782</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>198</width> <width>198</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>emp_lname</name> <name>emp_lname</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>15</limit> <limit>15</limit>
<case>any</case> <case>any</case>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
<autohscroll>yes</autohscroll> <autohscroll>yes</autohscroll>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>1090519039</color> <color>1090519039</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>8</id> <id>8</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>982</x> <x>982</x>
<y>1</y> <y>1</y>
<height>16</height> <height>16</height>
<width>61</width> <width>61</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>dept_code</name> <name>dept_code</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>5</limit> <limit>5</limit>
<case>any</case> <case>any</case>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
<autohscroll>yes</autohscroll> <autohscroll>yes</autohscroll>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>1090519039</color> <color>1090519039</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>9</id> <id>9</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>1045</x> <x>1045</x>
<y>1</y> <y>1</y>
<height>16</height> <height>16</height>
<width>62</width> <width>62</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>emp_site</name> <name>emp_site</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
<case>any</case> <case>any</case>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>1090519039</color> <color>1090519039</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>10</id> <id>10</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>1109</x> <x>1109</x>
<y>1</y> <y>1</y>
<height>16</height> <height>16</height>
<width>73</width> <width>73</width>
<format>[shortdate] [time]</format> <format>[shortdate] [time]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>chg_date</name> <name>chg_date</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
<case>any</case> <case>any</case>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>1090519039</color> <color>1090519039</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>11</id> <id>11</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>1184</x> <x>1184</x>
<y>1</y> <y>1</y>
<height>16</height> <height>16</height>
<width>76</width> <width>76</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>chg_user</name> <name>chg_user</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
<case>any</case> <case>any</case>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>1090519039</color> <color>1090519039</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>12</id> <id>12</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>1262</x> <x>1262</x>
<y>1</y> <y>1</y>
<height>16</height> <height>16</height>
<width>70</width> <width>70</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>chg_term</name> <name>chg_term</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
<case>any</case> <case>any</case>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>1090519039</color> <color>1090519039</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>13</id> <id>13</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>1334</x> <x>1334</x>
<y>1</y> <y>1</y>
<height>16</height> <height>16</height>
<width>63</width> <width>63</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>real_shift</name> <name>real_shift</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>0</limit> <limit>0</limit>
<case>any</case> <case>any</case>
<autoselect>yes</autoselect> <autoselect>yes</autoselect>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>1090519039</color> <color>1090519039</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>14</id> <id>14</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>1399</x> <x>1399</x>
<y>1</y> <y>1</y>
<height>16</height> <height>16</height>
<width>86</width> <width>86</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>pattern_code</name> <name>pattern_code</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit"> <EditStyle style="edit">
<limit>10</limit> <limit>10</limit>
<case>upper</case> <case>upper</case>
<focusrectangle>no</focusrectangle> <focusrectangle>no</focusrectangle>
<autoselect>no</autoselect> <autoselect>no</autoselect>
<imemode>0</imemode> <imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
<weight>400</weight> <weight>400</weight>
<family>2</family> <family>2</family>
<pitch>2</pitch> <pitch>2</pitch>
<charset>0</charset> <charset>0</charset>
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>1090519039</color> <color>1090519039</color>
</background> </background>
</ColumnObject> </ColumnObject>
<HtmlTable> <HtmlTable>
<border>1</border> <border>1</border>
</HtmlTable> </HtmlTable>
<HtmlGen> <HtmlGen>
<clientevents>1</clientevents> <clientevents>1</clientevents>
<clientvalidation>1</clientvalidation> <clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields> <clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting> <clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable> <clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript> <generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs> <encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers> <netscapelayers>0</netscapelayers>
</HtmlGen> </HtmlGen>
<Export.XML> <Export.XML>
<headgroups>1</headgroups> <headgroups>1</headgroups>
<includewhitespace>0</includewhitespace> <includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype> <metadatatype>0</metadatatype>
<savemetadata>0</savemetadata> <savemetadata>0</savemetadata>
</Export.XML> </Export.XML>
<Import.XML> <Import.XML>
</Import.XML> </Import.XML>
<Export.PDF> <Export.PDF>
<method>0</method> <method>0</method>
<distill.custompostscript>0</distill.custompostscript> <distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print> <xslfop.print>0</xslfop.print>
</Export.PDF> </Export.PDF>
</Sybase_eDataWindow> </Sybase_eDataWindow>
$PBExportHeader$d_shift_chg11.srd
release 9;
datawindow(units=1 timer_interval=0 color=79741120 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=3 color="536870912" )
detail(height=241 color="536870912" )
table(column=(type=char(10) updatewhereclause=no name=emp_code dbname="emp_code" )
column=(type=char(60) updatewhereclause=no name=emp_name dbname="emp_name" )
column=(type=char(5) updatewhereclause=no name=site_code dbname="site_code" )
column=(type=datetime updatewhereclause=no name=from_dt dbname="from_dt" )
column=(type=datetime updatewhereclause=no name=to_dt dbname="to_dt" )
)
groupbox(band=detail text="Basic"border="2" color="33554432" x="5" y="4" height="100" width="522" name=gb_1 visible="1" font.face="Arial" font.height="-11" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Employee :" border="0" color="0" x="13" y="28" height="16" width="88" html.valueishtml="0" name=emp_code_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="Date From :" border="0" color="0" x="13" y="61" height="16" width="88" html.valueishtml="0" name=from_dt_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="Date To :" border="0" color="0" x="342" y="61" height="16" width="88" html.valueishtml="0" name=to_dt_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" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="255" x="107" y="29" height="16" width="85" format="[general]" html.valueishtml="0" name=emp_code visible="1" edit.limit=10 edit.case=upper edit.focusrectangle=no edit.autoselect=no edit.imemode=0 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=2 alignment="0" tabsequence=32766 border="5" color="255" x="198" y="29" height="16" width="323" format="[general]" html.valueishtml="0" name=emp_name visible="1" edit.limit=60 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 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=4 alignment="0" tabsequence=32766 border="5" color="255" x="106" y="61" height="16" width="85" format="[shortdate] [time]" html.valueishtml="0" name=from_dt 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=5 alignment="0" tabsequence=32766 border="5" color="255" x="436" y="61" height="16" width="85" format="[shortdate] [time]" html.valueishtml="0" name=to_dt 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
$PBExportHeader$d_shift_chg12.srd
release 9;
datawindow(units=1 timer_interval=0 color=79741120 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=20 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=21 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=emp_code dbname="work_shift.emp_code" )
column=(type=char(5) update=yes updatewhereclause=yes name=shift dbname="work_shift.shift" )
column=(type=char(20) updatewhereclause=yes name=workshft_descr dbname="workshft.descr" )
column=(type=datetime update=yes updatewhereclause=yes key=yes name=from_dt dbname="work_shift.from_dt" )
column=(type=datetime update=yes updatewhereclause=yes key=yes name=to_dt dbname="work_shift.to_dt" )
column=(type=char(15) updatewhereclause=yes name=emp_fname dbname="employee.emp_fname" )
column=(type=char(15) updatewhereclause=yes name=emp_lname dbname="employee.emp_lname" )
column=(type=char(5) updatewhereclause=yes name=dept_code dbname="employee.dept_code" )
column=(type=char(5) updatewhereclause=yes name=emp_site dbname="employee.emp_site" )
column=(type=datetime update=yes updatewhereclause=yes name=chg_date dbname="work_shift.chg_date" )
column=(type=char(15) update=yes updatewhereclause=yes name=chg_user dbname="work_shift.chg_user" )
column=(type=char(10) update=yes updatewhereclause=yes name=chg_term dbname="work_shift.chg_term" )
column=(type=char(5) update=yes updatewhereclause=yes name=real_shift dbname="work_shift.real_shift" )
column=(type=char(10) update=yes updatewhereclause=yes name=pattern_code dbname="work_shift.pattern_code" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"employee~" ) TABLE(NAME=~"work_shift~" ) TABLE(NAME=~"workshft~" ) COLUMN(NAME=~"work_shift.emp_code~") COLUMN(NAME=~"work_shift.shift~") COLUMN(NAME=~"workshft.descr~") COLUMN(NAME=~"work_shift.from_dt~") COLUMN(NAME=~"work_shift.to_dt~") COLUMN(NAME=~"employee.emp_fname~") COLUMN(NAME=~"employee.emp_lname~") COLUMN(NAME=~"employee.dept_code~") COLUMN(NAME=~"employee.emp_site~") COLUMN(NAME=~"work_shift.chg_date~") COLUMN(NAME=~"work_shift.chg_user~") COLUMN(NAME=~"work_shift.chg_term~") COLUMN(NAME=~"work_shift.real_shift~") COLUMN(NAME=~"work_shift.pattern_code~") JOIN (LEFT=~"work_shift.emp_code~" OP =~"=~"RIGHT=~"employee.emp_code~" ) JOIN (LEFT=~"work_shift.shift~" OP =~"=~"RIGHT=~"workshft.shift~" )WHERE( EXP1 =~"( workshft.day_no~" OP =~"=~" EXP2 =~"1 )~" LOGIC =~"and~" ) WHERE( EXP1 =~"(( work_shift.from_dt~" OP =~"between~" EXP2 =~":ad_date_fr and :ad_date_to )~" LOGIC =~"or~" ) WHERE( EXP1 =~"( :ad_date_fr~" OP =~"between~" EXP2 =~"work_shift.from_dt and work_shift.to_dt ))~" LOGIC =~"and~" ) WHERE( EXP1 =~"( work_shift.emp_code~" OP =~"=~" EXP2 =~":as_emp )~" ) ) ORDER(NAME=~"employee.emp_code~" ASC=yes ) ORDER(NAME=~"work_shift.from_dt~" ASC=yes ) ORDER(NAME=~"work_shift.to_dt~" ASC=yes ) ARG(NAME = ~"ad_date_fr~" TYPE = datetime) ARG(NAME = ~"ad_date_to~" TYPE = datetime) ARG(NAME = ~"as_emp~" TYPE = string) " update="work_shift" updatewhere=0 updatekeyinplace=no arguments=(("ad_date_fr", datetime),("ad_date_to", datetime),("as_emp", string)) )
text(band=header alignment="2" text="Employee Code" border="6" color="0" x="2" y="2" height="16" width="104" html.valueishtml="0" name=emp_code_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=header alignment="2" text="Shift" border="6" color="0" x="108" y="2" height="16" width="91" html.valueishtml="0" name=shift_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=header alignment="2" text="Description" border="6" color="0" x="201" y="2" height="16" width="238" html.valueishtml="0" name=workshft_descr_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="2" background.color="79741120" )
text(band=header alignment="2" text="From Date" border="6" color="0" x="441" y="2" height="16" width="78" html.valueishtml="0" name=from_dt_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=header alignment="2" text="To Date" border="6" color="0" x="521" y="2" height="16" width="70" html.valueishtml="0" name=to_dt_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=header alignment="2" text="First Name" border="6" color="0" x="593" y="2" height="16" width="187" html.valueishtml="0" name=emp_fname_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=header alignment="2" text="Last Name" border="6" color="0" x="782" y="2" height="16" width="198" html.valueishtml="0" name=emp_lname_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=header alignment="2" text="Dept Code" border="6" color="0" x="982" y="2" height="16" width="61" html.valueishtml="0" name=dept_code_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=header alignment="2" text="Site Code" border="6" color="0" x="1045" y="2" height="16" width="62" html.valueishtml="0" name=emp_site_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=header alignment="2" text="Chg Date" border="6" color="0" x="1109" y="2" height="16" width="73" html.valueishtml="0" name=chg_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=header alignment="2" text="Chg User" border="6" color="0" x="1184" y="2" height="16" width="76" html.valueishtml="0" name=chg_user_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=header alignment="2" text="Chg Term" border="6" color="0" x="1262" y="2" height="16" width="70" html.valueishtml="0" name=chg_term_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=header alignment="2" text="Real Shift" border="6" color="0" x="1334" y="2" height="16" width="63" html.valueishtml="0" name=real_shift_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=header alignment="2" text="Pattern Code" border="6" color="33554432" x="1399" y="2" height="16" width="86" html.valueishtml="0" name=pattern_code_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="2" background.color="67108864" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="0" x="2" y="1" height="16" width="104" format="[general]" html.valueishtml="0" name=emp_code visible="1" edit.limit=0 edit.case=any edit.autoselect=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="1090519039" )
column(band=detail id=2 alignment="0" tabsequence=10 border="5" color="0" x="108" y="2" height="16" width="91" format="[general]" html.valueishtml="0" name=shift visible="1" edit.limit=5 edit.case=upper edit.autoselect=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="1090519039" )
column(band=detail id=3 alignment="0" tabsequence=32766 border="5" color="0" x="201" y="2" height="16" width="238" format="[general]" html.valueishtml="0" name=workshft_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=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="1090519039" )
column(band=detail id=4 alignment="0" tabsequence=32766 border="5" color="0" x="441" y="2" height="16" width="78" format="[shortdate] [time]" html.valueishtml="0" name=from_dt 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="1090519039" )
column(band=detail id=5 alignment="0" tabsequence=32766 border="5" color="0" x="521" y="2" height="16" width="70" format="[shortdate] [time]" html.valueishtml="0" name=to_dt 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="1090519039" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="0" x="593" y="2" height="16" width="187" format="[general]" html.valueishtml="0" name=emp_fname visible="1" edit.limit=15 edit.case=any 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="1090519039" )
column(band=detail id=7 alignment="0" tabsequence=32766 border="5" color="0" x="782" y="2" height="16" width="198" format="[general]" html.valueishtml="0" name=emp_lname visible="1" edit.limit=15 edit.case=any 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="1090519039" )
column(band=detail id=8 alignment="0" tabsequence=32766 border="5" color="0" x="982" y="1" height="16" width="61" format="[general]" html.valueishtml="0" name=dept_code visible="1" edit.limit=5 edit.case=any 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="1090519039" )
column(band=detail id=9 alignment="0" tabsequence=32766 border="5" color="0" x="1045" y="1" height="16" width="62" format="[general]" html.valueishtml="0" name=emp_site visible="1" edit.limit=0 edit.case=any edit.autoselect=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="1090519039" )
column(band=detail id=10 alignment="0" tabsequence=32766 border="5" color="0" x="1109" y="1" height="16" width="73" format="[shortdate] [time]" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 edit.case=any edit.autoselect=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="1090519039" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="5" color="0" x="1184" y="1" height="16" width="76" format="[general]" html.valueishtml="0" name=chg_user visible="1" edit.limit=0 edit.case=any edit.autoselect=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="1090519039" )
column(band=detail id=12 alignment="0" tabsequence=32766 border="5" color="0" x="1262" y="1" height="16" width="70" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=0 edit.case=any edit.autoselect=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="1090519039" )
column(band=detail id=13 alignment="0" tabsequence=32766 border="5" color="0" x="1334" y="1" height="16" width="63" format="[general]" html.valueishtml="0" name=real_shift visible="1" edit.limit=0 edit.case=any edit.autoselect=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="1090519039" )
column(band=detail id=14 alignment="0" tabsequence=32766 border="5" color="0" x="1399" y="1" height="16" width="86" format="[general]" html.valueishtml="0" name=pattern_code visible="1" edit.limit=10 edit.case=upper edit.focusrectangle=no edit.autoselect=no 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="1090519039" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
...@@ -2,17 +2,11 @@ package ibase.webitm.ejb.adm; ...@@ -2,17 +2,11 @@ package ibase.webitm.ejb.adm;
import java.rmi.RemoteException; import java.rmi.RemoteException;
//import java.util.*;
import java.util.Date;
//import java.text.*; //import java.text.*;
import java.sql.*; import java.sql.Connection;
import java.sql.PreparedStatement;
import org.w3c.dom.*; import java.sql.ResultSet;
import ibase.system.config.*; import java.sql.SQLException;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
//import javax.naming.InitialContext; //import javax.naming.InitialContext;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -20,10 +14,21 @@ import java.util.ArrayList; ...@@ -20,10 +14,21 @@ import java.util.ArrayList;
//import java.util.Date; //import java.util.Date;
/*Created by Chetna on [04/09/2014] For Shift Rotate Change [Start] /*Created by Chetna on [04/09/2014] For Shift Rotate Change [Start]
* */ * */
//import java.util.*;
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;
@javax.ejb.Stateless
//Added by Dipesh on[06/08/2019][Start]
//@javax.ejb.Stateless
//Added by Dipesh on[06/08/2019][End]
public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,ShiftChangeIcRemote public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,ShiftChangeIcRemote
{ {
...@@ -39,8 +44,8 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -39,8 +44,8 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
Document dom2 = null; Document dom2 = null;
try try
{ {
if (xmlString != null && xmlString.trim().length() > 0 ) if (xmlString != null && xmlString.trim().length() > 0 )
{ {
dom = parseString(xmlString); dom = parseString(xmlString);
...@@ -67,7 +72,7 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -67,7 +72,7 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
public String wfValData(Document curDom, Document hdrDom, Document allDom, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException public String wfValData(Document curDom, Document hdrDom, Document allDom, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException
{ {
System.out.println("[ShiftChangeIc][wfValData(Document,Document,String,string,editflag)] :==>\n"); System.out.println("[ShiftChangeIc][wfValData(Document,Document,String,string,editflag)] :==>\n");
String userId = ""; String userId = "";
String errorType = ""; String errorType = "";
String childNodeName = null; String childNodeName = null;
String errCode = ""; String errCode = "";
...@@ -79,35 +84,35 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -79,35 +84,35 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
String msgType=""; String msgType="";
Date todt =null; Date todt =null;
Date frdt =null; Date frdt =null;
int currentFormNo = 0; int currentFormNo = 0;
int childNodeListLength; int childNodeListLength;
int ctr=0; int ctr=0;
int count = 0; int count = 0;
boolean flag = false; boolean flag = false;
NodeList parentNodeList = null; NodeList parentNodeList = null;
NodeList childNodeList = null; NodeList childNodeList = null;
Node parentNode = null; Node parentNode = null;
Node childNode = null; Node childNode = null;
ArrayList<String> errList = new ArrayList<String>(); ArrayList<String> errList = new ArrayList<String>();
ArrayList<String> errFields = new ArrayList<String>(); ArrayList<String> errFields = new ArrayList<String>();
Connection conn = null; Connection conn = null;
PreparedStatement pstmt = null ; PreparedStatement pstmt = null ;
ResultSet rs = null; ResultSet rs = null;
//ConnDriver connDriver = new ConnDriver(); //ConnDriver connDriver = new ConnDriver();
//StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>"); //StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>");
StringBuffer errStringXml = new StringBuffer("<?xml version=\"1.0\"?>\r\n<DocumentRoot>\r\n<description>Datawindow Root</description>\r\n<group0>\r\n<description>Group0 description</description>\r\n<Header0>\r\n<description>Header0 members</description>\r\n"); StringBuffer errStringXml = new StringBuffer("<?xml version=\"1.0\"?>\r\n<DocumentRoot>\r\n<description>Datawindow Root</description>\r\n<group0>\r\n<description>Group0 description</description>\r\n<Header0>\r\n<description>Header0 members</description>\r\n");
try try
{ {
genericUtility = new E12GenericUtility(); genericUtility = new E12GenericUtility();
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
//Added by Dipesh on[06/08/2019][Start] //Added by Dipesh on[06/08/2019][Start]
//conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");
//userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode"); //userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode");
conn=getConnection(); conn=getConnection();
...@@ -117,9 +122,9 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -117,9 +122,9 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
{ {
currentFormNo = Integer.parseInt(objContext); currentFormNo = Integer.parseInt(objContext);
} }
System.out.println("Current Form No. :- "+currentFormNo); System.out.println("Current Form No. :- "+currentFormNo);
switch(currentFormNo) switch(currentFormNo)
{ {
case 1 : case 1 :
...@@ -127,7 +132,7 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -127,7 +132,7 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
parentNode = parentNodeList.item(0); parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength(); childNodeListLength = childNodeList.getLength();
for(ctr = 0; ctr < childNodeListLength; ctr ++) for(ctr = 0; ctr < childNodeListLength; ctr ++)
{ {
childNode = childNodeList.item(ctr); childNode = childNodeList.item(ctr);
...@@ -149,13 +154,13 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -149,13 +154,13 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
else else
{ {
flag = isRecordExist(conn," EMPLOYEE "," WHERE EMP_CODE ='"+empCode+"' AND STATUS = 'S' "); flag = isRecordExist(conn," EMPLOYEE "," WHERE EMP_CODE ='"+empCode+"' AND STATUS = 'S' ");
if(flag == true) if(flag == true)
{ {
errCode = "VPSHFTCH02"; errCode = "VPSHFTCH02";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn , "VPSHFTCH02" ); msgType = errorType(conn , "VPSHFTCH02" );
if ( msgType.equalsIgnoreCase("E")) if ( msgType.equalsIgnoreCase("E"))
{ {
...@@ -163,13 +168,13 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -163,13 +168,13 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
} }
} }
} }
} //emp_code end } //emp_code end
else if(childNodeName.equalsIgnoreCase("from_dt")) // From Date else if(childNodeName.equalsIgnoreCase("from_dt")) // From Date
{ {
fromDate = checkNull(genericUtility.getColumnValue("from_dt", curDom)); fromDate = checkNull(genericUtility.getColumnValue("from_dt", curDom));
if(fromDate == null || fromDate.trim().length() == 0) if(fromDate == null || fromDate.trim().length() == 0)
{ {
errCode = "VPSHFTCH03"; errCode = "VPSHFTCH03";
...@@ -185,7 +190,7 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -185,7 +190,7 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
else if(childNodeName.equalsIgnoreCase("to_dt")) // Validation for role_code else if(childNodeName.equalsIgnoreCase("to_dt")) // Validation for role_code
{ {
toDate = checkNull(genericUtility.getColumnValue("to_dt", curDom)); toDate = checkNull(genericUtility.getColumnValue("to_dt", curDom));
System.out.println("toDate:::"+toDate);
if(toDate == null || toDate.trim().length() == 0) if(toDate == null || toDate.trim().length() == 0)
{ {
errCode = "VPSHFTCH04"; errCode = "VPSHFTCH04";
...@@ -201,6 +206,8 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -201,6 +206,8 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
{ {
todt = sdf.parse(toDate); todt = sdf.parse(toDate);
frdt = sdf.parse(fromDate); frdt = sdf.parse(fromDate);
System.out.println("todt::::"+todt);
System.out.println("frdt:::"+frdt);
if(frdt.compareTo(todt)>0) if(frdt.compareTo(todt)>0)
{ {
errCode = "VPSHFTCH05"; errCode = "VPSHFTCH05";
...@@ -212,19 +219,18 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -212,19 +219,18 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
break; break;
} }
} }
} }
} // End of toDate } // End of toDate
} }
break;
break;
case 2: case 2:
parentNodeList = curDom.getElementsByTagName("Detail2"); parentNodeList = curDom.getElementsByTagName("Detail2");
parentNode = parentNodeList.item(0); parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength(); childNodeListLength = childNodeList.getLength();
for(ctr = 0; ctr < childNodeListLength; ctr ++) for(ctr = 0; ctr < childNodeListLength; ctr ++)
{ {
childNode = childNodeList.item(ctr); childNode = childNodeList.item(ctr);
...@@ -259,27 +265,22 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -259,27 +265,22 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
break; break;
} }
} }
} }
} //shift end } //shift end
} }
break; break;
} }
int errListSize = errList.size(); int errListSize = errList.size();
count = 0; count = 0;
String errFldName = null; String errFldName = null;
ITMDBAccessEJB itmDbAccess = null; ITMDBAccessEJB itmDbAccess = null;
//Added by Dipesh on[06/08/2019][Start] //Added by Dipesh on[06/08/2019][Start]
/* AppConnectParm appConnect = new AppConnectParm(); /* AppConnectParm appConnect = new AppConnectParm();
InitialContext ctx = new InitialContext(appConnect.getProperty()) ; InitialContext ctx = new InitialContext(appConnect.getProperty()) ;
ITMDBAccessLocal itmDBAccessEJB = (ITMDBAccessLocal)ctx.lookup("ibase/ITMDBAccessEJB/local"); */ ITMDBAccessLocal itmDBAccessEJB = (ITMDBAccessLocal)ctx.lookup("ibase/ITMDBAccessEJB/local"); */
itmDbAccess = new ITMDBAccessEJB(); itmDbAccess = new ITMDBAccessEJB();
//Added by Dipesh on[06/08/2019][End] //Added by Dipesh on[06/08/2019][End]
if(errList != null && errListSize > 0) if(errList != null && errListSize > 0)
{ {
for(count = 0; count < errListSize; count ++) for(count = 0; count < errListSize; count ++)
...@@ -291,14 +292,14 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -291,14 +292,14 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
//errString = itmDBAccessEJB.getErrorString(errFldName, errCode, userId); //errString = itmDBAccessEJB.getErrorString(errFldName, errCode, userId);
errString = itmDbAccess.getErrorString(errFldName, errCode, userId, "", conn); errString = itmDbAccess.getErrorString(errFldName, errCode, userId, "", conn);
System.out.println("errString........"+errString); System.out.println("errString........"+errString);
//errString = itmDBAccessEJB.getErrorString("", errCode, userId); //errString = itmDBAccessEJB.getErrorString("", errCode, userId);
errString = itmDbAccess.getErrorString("", errCode, userId, "", conn); errString = itmDbAccess.getErrorString("", errCode, userId, "", conn);
System.out.println("errString........"+errString); System.out.println("errString........"+errString);
//Added by Dipesh on[06/08/2019][End] //Added by Dipesh on[06/08/2019][End]
errorType = errorType(conn , errCode); errorType = errorType(conn , errCode);
return errString; return errString;
} }
errList.clear(); errList.clear();
errList = null; errList = null;
...@@ -321,7 +322,7 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -321,7 +322,7 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
{ {
try try
{ {
if(rs != null) if(rs != null)
{ {
rs.close(); rs.close();
...@@ -337,7 +338,7 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -337,7 +338,7 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
conn.close(); conn.close();
conn = null; conn = null;
} }
} }
catch(Exception d) catch(Exception d)
{ {
...@@ -350,33 +351,33 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -350,33 +351,33 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
} }
public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException 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 = "";
if (xmlString != null && xmlString.trim().length() > 0 )
{ {
Document dom = null; dom = parseString(xmlString);
Document dom1 = null; System.out.println("In wfValData Current xmlString="+xmlString);
Document dom2 = null; }
String valueXmlString = ""; if (xmlString1 != null && xmlString1.trim().length() > 0 )
if (xmlString != null && xmlString.trim().length() > 0 ) {
{ dom1 = parseString(xmlString1);
dom = parseString(xmlString); System.out.println("In wfValData Header xmlString1="+xmlString1);
System.out.println("In wfValData Current xmlString="+xmlString); }
} if (xmlString2 != null && xmlString2.trim().length() > 0 )
if (xmlString1 != null && xmlString1.trim().length() > 0 ) {
{ dom2 = parseString(xmlString2);
dom1 = parseString(xmlString1); System.out.println("In wfValData All xmlString2="+xmlString2);
System.out.println("In wfValData Header xmlString1="+xmlString1);
}
if (xmlString2 != null && xmlString2.trim().length() > 0 )
{
dom2 = parseString(xmlString2);
System.out.println("In wfValData All xmlString2="+xmlString2);
}
valueXmlString = itemChanged(dom,dom1,dom2,objContext,currentColumn,editFlag,xtraParams);
return valueXmlString;
} }
valueXmlString = itemChanged(dom,dom1,dom2,objContext,currentColumn,editFlag,xtraParams);
return valueXmlString;
}
public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
{ {
System.out.println("[ShiftChangeIc][itemChanged(Document,Document,String,string,editflag)] :==>\n"); System.out.println("[ShiftChangeIc][itemChanged(Document,Document,String,string,editflag)] :==>\n");
...@@ -408,17 +409,17 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -408,17 +409,17 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
try try
{ {
genericUtility = new E12GenericUtility(); genericUtility = new E12GenericUtility();
System.out.println("xtraParams===="+xtraParams); System.out.println("xtraParams===="+xtraParams);
siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSiteCode"); siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSiteCode");
empCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode"); empCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode");
System.out.println("**empCode**"+empCode); System.out.println("**empCode**"+empCode);
//Added by Dipesh on[06/08/2019][Start] //Added by Dipesh on[06/08/2019][Start]
//ConnDriver connDriver = new ConnDriver(); //ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");
conn=getConnection(); conn=getConnection();
//Added by Dipesh on[06/08/2019][End] //Added by Dipesh on[06/08/2019][End]
if(objContext != null && objContext.trim().length()>0) if(objContext != null && objContext.trim().length()>0)
{ {
currentFormNo = Integer.parseInt(objContext); currentFormNo = Integer.parseInt(objContext);
...@@ -429,18 +430,36 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -429,18 +430,36 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
switch (currentFormNo) switch (currentFormNo)
{ {
case 1: case 1:
parentNodeList = dom1.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0); parentNodeList = dom1.getElementsByTagName("Detail1");
childNodeList = parentNode.getChildNodes(); parentNode = parentNodeList.item(0);
ctr = 0; childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength(); ctr = 0;
// valueXmlString.append("<Detail1>\r\n"); childNodeListLength = childNodeList.getLength();
valueXmlString.append("<Detail>\r\n"); // valueXmlString.append("<Detail1>\r\n");
/* valueXmlString.append("<Detail>\r\n");
do
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
if (childNodeName.equals(currentColumn))
{
if (childNode.getFirstChild() != null)
{
columnValue = childNode.getFirstChild().getNodeValue().trim();
}
}
ctr++;
}
while (ctr < childNodeListLength && !childNodeName.equals(currentColumn));
System.out.println("current form::::::::::::" + currentFormNo);
/*
if (currentColumn.trim().equalsIgnoreCase("itm_default")) if (currentColumn.trim().equalsIgnoreCase("itm_default"))
{ {
sql="SELECT TRIM(EMP_FNAME) || ' ' || (CASE WHEN EMP_MNAME IS NOT NULL THEN TRIM(EMP_MNAME) ELSE '' END) || ' ' || TRIM(EMP_LNAME) AS EMP_NAME FROM EMPLOYEE WHERE EMP_CODE = ? "; sql="SELECT TRIM(EMP_FNAME) || ' ' || (CASE WHEN EMP_MNAME IS NOT NULL THEN TRIM(EMP_MNAME) ELSE '' END) || ' ' || TRIM(EMP_LNAME) AS EMP_NAME FROM EMPLOYEE WHERE EMP_CODE = ? ";
pstmt =conn.prepareStatement(sql); pstmt =conn.prepareStatement(sql);
pstmt.setString(1, checkNull(empCode)); pstmt.setString(1, checkNull(empCode));
...@@ -451,232 +470,175 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -451,232 +470,175 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
empName=rs.getString("EMP_NAME"); empName=rs.getString("EMP_NAME");
} }
closePstmtRset(pstmt, rs); closePstmtRset(pstmt, rs);
valueXmlString.append("<emp_code><![CDATA[").append(empCode).append("]]></emp_code>"); valueXmlString.append("<emp_code><![CDATA[").append(empCode).append("]]></emp_code>");
valueXmlString.append("<emp_name><![CDATA[").append(empName).append("]]></emp_name>"); valueXmlString.append("<emp_name><![CDATA[").append(empName).append("]]></emp_name>");
} }
else if(currentColumn.equalsIgnoreCase("emp_code")) else if(currentColumn.equalsIgnoreCase("emp_code"))
*/ */
if(currentColumn.equalsIgnoreCase("emp_code")) if(currentColumn.equalsIgnoreCase("emp_code"))
{ {
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom)); System.out.println("empCode::::"+empCode);
if(empCode != null && empCode.trim().length() > 0)
if(empCode != null && empCode.trim().length() > 0) {
sql="SELECT TRIM(EMP_FNAME) || ' ' || (CASE WHEN EMP_MNAME IS NOT NULL THEN TRIM(EMP_MNAME) ELSE '' END) || ' ' || TRIM(EMP_LNAME) AS EMP_NAME FROM EMPLOYEE WHERE EMP_CODE = ? ";
pstmt =conn.prepareStatement(sql);
pstmt.setString(1, empCode);
System.out.println("Emp Name SQL" + sql);
rs = pstmt.executeQuery();
while (rs.next())
{ {
sql="SELECT TRIM(EMP_FNAME) || ' ' || (CASE WHEN EMP_MNAME IS NOT NULL THEN TRIM(EMP_MNAME) ELSE '' END) || ' ' || TRIM(EMP_LNAME) AS EMP_NAME FROM EMPLOYEE WHERE EMP_CODE = ? "; empName=rs.getString("EMP_NAME");
pstmt =conn.prepareStatement(sql);
pstmt.setString(1, empCode);
System.out.println("Emp Name SQL" + sql);
rs = pstmt.executeQuery();
while (rs.next())
{
empName=rs.getString("EMP_NAME");
}
closePstmtRset(pstmt, rs);
System.out.println("Emp name :="+empName);
valueXmlString.append("<emp_code><![CDATA[").append(empCode).append("]]></emp_code>");
valueXmlString.append("<emp_name><![CDATA[").append(empName).append("]]></emp_name>");
} }
else closePstmtRset(pstmt, rs);
{ System.out.println("Emp name :="+empName);
valueXmlString.append("<emp_name><![CDATA[").append("<![CDATA[]]>").append("]]></emp_name>\r\n");
}//end of empCode item change valueXmlString.append("<emp_code><![CDATA[").append(empCode).append("]]></emp_code>");
valueXmlString.append("<emp_name><![CDATA[").append(empName).append("]]></emp_name>");
} }
else
//valueXmlString.append("</Detail1>\r\n"); {
valueXmlString.append("</Detail>\r\n"); valueXmlString.append("<emp_name><![CDATA[").append("<![CDATA[]]>").append("]]></emp_name>\r\n");
System.out.println("xml string ****** "+valueXmlString.toString());
break; }//end of empCode item change
}
case 2 : //valueXmlString.append("</Detail1>\r\n");
/* Searching the dom for the incoming column value start*/ valueXmlString.append("</Detail>\r\n");
parentNodeList = dom.getElementsByTagName("Detail2"); System.out.println("xml string ****** "+valueXmlString.toString());
parentNode = parentNodeList.item(0); break;
childNodeList = parentNode.getChildNodes();
ctr = 0; case 2 :
childNodeListLength = childNodeList.getLength();
//valueXmlString.append("<Detail2>\r\n"); /* Searching the dom for the incoming column value start*/
valueXmlString.append("<Detail>\r\n"); parentNodeList = dom.getElementsByTagName("Detail2");
if (currentColumn == null || currentColumn.trim().length() == 0) parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
ctr = 0;
childNodeListLength = childNodeList.getLength();
//valueXmlString.append("<Detail2>\r\n");
valueXmlString.append("<Detail>\r\n");
if(currentColumn.trim().equalsIgnoreCase("shift")) //Item change for shift_code
{
shift = checkNull(genericUtility.getColumnValue("shift", dom));
if(shift != null && shift.trim().length() > 0)
{
sql="SELECT DESCR FROM WORKSHFT WHERE SHIFT = ? ";
pstmt =conn.prepareStatement(sql);
pstmt.setString(1, shift);
System.out.println("Emp shift SQL" + sql);
rs = pstmt.executeQuery();
while (rs.next())
{ {
currentColumn = "shift"; descr = rs.getString("DESCR");
} }
if(currentColumn.trim().equalsIgnoreCase("shift")) //Item change for shift_code closePstmtRset(pstmt, rs);
{ System.out.println("shift ::: :="+descr);
shift = checkNull(genericUtility.getColumnValue("shift", dom));
if(shift != null && shift.trim().length() > 0)
{
sql="SELECT DESCR FROM WORKSHFT WHERE SHIFT = ? ";
pstmt =conn.prepareStatement(sql);
pstmt.setString(1, shift);
System.out.println("Emp shift SQL" + sql);
rs = pstmt.executeQuery();
while (rs.next())
{
descr = rs.getString("DESCR");
}
closePstmtRset(pstmt, rs);
System.out.println("shift ::: :="+descr);
valueXmlString.append("<workshft_descr><![CDATA[").append(checkNull(descr)).append("]]></workshft_descr>");
}
else
{
valueXmlString.append("<workshft_descr><![CDATA[").append(checkNull(descr)).append("]]></workshft_descr>");
valueXmlString.append("<workshft_descr><![CDATA[").append(checkNull(descr)).append("]]></workshft_descr>");
}//end of empCode item change
}
//valueXmlString.append("</Detail2>\r\n");
valueXmlString.append("</Detail>\r\n");
break;
} //eof switch
valueXmlString.append("</Root>\r\n");
} //eof try
catch(Exception e)
{
System.out.println("Exception :[ShiftChangeIc][itemChanged] BEFORE finally==>\n"+e.getMessage());
throw new ITMException(e);
}
finally
{
try
{
if(pstmt != null)
{
pstmt.close();
pstmt = null;
System.out.println("finally pstmt Closed.......");
}
if(rs != null)
{
rs.close();
rs = null;
System.out.println("finally rs Closed.......");
} }
if(conn != null) else
{ {
conn.close(); valueXmlString.append("<workshft_descr><![CDATA[").append(checkNull(descr)).append("]]></workshft_descr>");
conn = null; }//end of empCode item change
System.out.println("finally Connection Closed.......");
}
}
catch(SQLException e)
{
System.out.println("Exception :[ShiftChangeIc][itemChanged::finally] :==>\n"+e.getMessage());
e.printStackTrace();
throw new ITMException(e);
} }
} //valueXmlString.append("</Detail2>\r\n");
System.out.println("value returned is last **************************** "+ valueXmlString.toString()); valueXmlString.append("</Detail>\r\n");
return valueXmlString.toString(); break;
}
valueXmlString.append("</Root>\r\n");
}
catch(Exception e)
{
System.out.println("Exception :[ShiftChangeIc][itemChanged] BEFORE finally==>\n"+e.getMessage());
throw new ITMException(e);
} }
finally
private boolean isRecordExist(Connection conn , String tableName, String condition)
{ {
PreparedStatement pstmt = null ;
ResultSet rs = null;
String sql="";
boolean isExist=false;
int recCount=0;
try try
{ {
if(pstmt != null)
sql = " SELECT COUNT(*) FROM "+tableName +" "+condition;
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
if(rs.next())
{
recCount=rs.getInt(1);
}
if(recCount>0)
{
isExist=true;
}
else
{ {
isExist=false; pstmt.close();
pstmt = null;
System.out.println("finally pstmt Closed.......");
} }
if(rs != null) if(rs != null)
{ {
rs.close(); rs.close();
rs = null; rs = null;
System.out.println("finally rs Closed.......");
} }
if(pstmt != null) if(conn != null)
{ {
pstmt.close(); conn.close();
pstmt = null; conn = null;
System.out.println("finally Connection Closed.......");
} }
} }
catch(Exception ex) catch(SQLException e)
{ {
ex.printStackTrace(); System.out.println("Exception :[ShiftChangeIc][itemChanged::finally] :==>\n"+e.getMessage());
} e.printStackTrace();
finally throw new ITMException(e);
}
}
System.out.println("value returned is last **************************** "+ valueXmlString.toString());
return valueXmlString.toString();
}
private boolean isRecordExist(Connection conn , String tableName, String condition)
{
PreparedStatement pstmt = null ;
ResultSet rs = null;
String sql="";
boolean isExist=false;
int recCount=0;
try
{
sql = " SELECT COUNT(*) FROM "+tableName +" "+condition;
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
if(rs.next())
{ {
try recCount=rs.getInt(1);
{
if(rs != null) }
{ if(recCount>0)
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e)
{
e.printStackTrace();
}
}
System.out.print("---------Final--isExist-------"+isExist);
return isExist;
}
private String checkNull(String input)
{
if (input == null)
{ {
input = ""; isExist=true;
}
}
else else
{ {
input = input.trim(); isExist=false;
}
if(rs != null)
{
rs.close();
rs = null;
} }
return input; if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
} }
private String errorType(Connection conn , String errorCode) catch(Exception ex)
{
ex.printStackTrace();
}
finally
{ {
String msgType = "";
PreparedStatement pstmt = null ;
ResultSet rs = null;
try try
{ {
String sql = "SELECT MSG_TYPE FROM MESSAGES WHERE MSG_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,errorCode);
rs = pstmt.executeQuery();
while(rs.next())
{
msgType = rs.getString("MSG_TYPE");
}
if(rs != null) if(rs != null)
{ {
rs.close(); rs.close();
...@@ -688,57 +650,106 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal , ...@@ -688,57 +650,106 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
pstmt = null; pstmt = null;
} }
} }
catch(Exception ex) catch(Exception e)
{ {
ex.printStackTrace(); e.printStackTrace();
} }
finally }
System.out.print("---------Final--isExist-------"+isExist);
return isExist;
}
private String checkNull(String input)
{
if (input == null)
{
input = "";
}
else
{
input = input.trim();
}
return input;
}
private String errorType(Connection conn , String errorCode)
{
String msgType = "";
PreparedStatement pstmt = null ;
ResultSet rs = null;
try
{
String sql = "SELECT MSG_TYPE FROM MESSAGES WHERE MSG_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,errorCode);
rs = pstmt.executeQuery();
while(rs.next())
{ {
try msgType = rs.getString("MSG_TYPE");
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e)
{
e.printStackTrace();
}
} }
return msgType;
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
} }
private void closePstmtRset(PreparedStatement pstmt, ResultSet rset )throws Exception catch(Exception ex)
{ {
System.out.println("Closing PreparedStatement and result........."); ex.printStackTrace();
try }
finally
{
try
{ {
if (rset != null) if(rs != null)
{ {
rset.close(); rs.close();
rset = null; rs = null;
} }
if (pstmt != null) if(pstmt != null)
{ {
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
} }
catch (Exception exp) catch(Exception e)
{ {
exp.printStackTrace(); e.printStackTrace();
throw new Exception(exp);
} }
} }
return msgType;
}
private void closePstmtRset(PreparedStatement pstmt, ResultSet rset )throws Exception
{
System.out.println("Closing PreparedStatement and result.........");
try
{
if (rset != null)
{
rset.close();
rset = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch (Exception exp)
{
exp.printStackTrace();
throw new Exception(exp);
}
}
} }
/*Created by Chetna on [25/08/2014] For Shift Rotate Change [END] /*Created by Chetna on [25/08/2014] For Shift Rotate Change [END]
* */ * */
\ No newline at end of file
...@@ -2,30 +2,28 @@ package ibase.webitm.ejb.adm; ...@@ -2,30 +2,28 @@ package ibase.webitm.ejb.adm;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import java.util.*; import java.sql.Connection;
import java.text.*; import java.sql.PreparedStatement;
import java.sql.*; import java.sql.ResultSet;
import java.sql.SQLException;
import org.w3c.dom.*; import java.sql.Timestamp;
import javax.xml.parsers.*;
import javax.ejb.*;
import ibase.webitm.utility.*;
import ibase.system.config.*;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
import ibase.system.config.*;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import javax.naming.InitialContext; import java.util.ArrayList;
import java.util.Calendar; import java.util.Calendar;
import java.util.Date; import java.util.Date;
import java.util.GregorianCalendar; import java.util.GregorianCalendar;
/*Created by Chetna on [25/08/2014] For Shift Rotate Change [Start] /*Created by Chetna on [25/08/2014] For Shift Rotate Change [Start]
* */ * */
import java.util.HashMap;
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.ProcessEJB;
import ibase.webitm.utility.ITMException;
//Added by Dipesh on[06/08/2019][Start] //Added by Dipesh on[06/08/2019][Start]
//@javax.ejb.Stateless //@javax.ejb.Stateless
...@@ -70,12 +68,12 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal , ...@@ -70,12 +68,12 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
} }
return rtrStr; return rtrStr;
} }
public String getData(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException public String getData(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException
{ {
System.out.println("ShiftChangePrc getData(headerDom,detailDom,windowName,xtraParams CALLED..."+ windowName); System.out.println("ShiftChangePrc getData(headerDom,detailDom,windowName,xtraParams CALLED..."+ windowName);
String errCode = ""; String errCode = "";
String errString = ""; String errString = "";
String siteCode= "" ; String siteCode= "" ;
...@@ -88,7 +86,7 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal , ...@@ -88,7 +86,7 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
StringBuffer retTabSepStrBuff = new StringBuffer("<?xml version=\"1.0\"?>\r\n<DocumentRoot>\r\n<description>Datawindow Root</description>\r\n<group0>\r\n<description>Group0 description</description>\r\n<Header0>\r\n<description>Header0 members</description>\r\n"); StringBuffer retTabSepStrBuff = new StringBuffer("<?xml version=\"1.0\"?>\r\n<DocumentRoot>\r\n<description>Datawindow Root</description>\r\n<group0>\r\n<description>Group0 description</description>\r\n<Header0>\r\n<description>Header0 members</description>\r\n");
boolean bappend = false ; boolean bappend = false ;
String frstrDate=""; String frstrDate="";
String tostrDate=""; String tostrDate="";
...@@ -97,9 +95,9 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal , ...@@ -97,9 +95,9 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
Date fromDate= null; Date fromDate= null;
Date toDate= null; Date toDate= null;
ITMDBAccessEJB itmDbAccess = null; ITMDBAccessEJB itmDbAccess = null;
java.sql.Timestamp jSqlFromDate = null; Timestamp jSqlFromDate = null;
java.sql.Timestamp jSqlToDate = null; Timestamp jSqlToDate = null;
System.out.println("jSqlToDate:::::"+jSqlToDate);
try try
{ {
genericUtility = new E12GenericUtility(); genericUtility = new E12GenericUtility();
...@@ -116,44 +114,52 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal , ...@@ -116,44 +114,52 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
//conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");
conn=getConnection(); conn=getConnection();
//Added by Dipesh on[06/08/2019][End] //Added by Dipesh on[06/08/2019][End]
siteCode = checkNull(genericUtility.getColumnValue("site_code",headerDom)); siteCode = checkNull(genericUtility.getColumnValue("site_code",headerDom));
empCode= checkNull(genericUtility.getColumnValue("emp_code",headerDom,"1")); empCode= checkNull(genericUtility.getColumnValue("emp_code",headerDom,"1"));
frstrDate= checkNull( genericUtility.getColumnValue("from_dt",headerDom,"1")); frstrDate= checkNull( genericUtility.getColumnValue("from_dt",headerDom,"1"));
tostrDate= checkNull( genericUtility.getColumnValue("to_dt",headerDom,"1")); tostrDate= checkNull( genericUtility.getColumnValue("to_dt",headerDom,"1"));
System.out.println("Emp CODE ["+ empCode+"] From Date ["+ frstrDate+"] To Date ["+ tostrDate + "]"); System.out.println("Emp CODE ["+ empCode+"] From Date ["+ frstrDate+"] To Date ["+ tostrDate + "]");
//jSqlFromDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(frstrDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()));
jSqlFromDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(frstrDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())); //jSqlToDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(tostrDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()));
if(frstrDate != null && frstrDate.trim().length() > 0)
{
jSqlFromDate = Timestamp.valueOf(genericUtility.getValidDateString(frstrDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
if(tostrDate != null && tostrDate.trim().length() > 0)
{
jSqlToDate = Timestamp.valueOf(genericUtility.getValidDateString(tostrDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
jSqlToDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(tostrDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()));
sql =" SELECT WORK_SHIFT.EMP_CODE , " sql =" SELECT WORK_SHIFT.EMP_CODE , "
+" WORK_SHIFT.SHIFT ," +" WORK_SHIFT.SHIFT ,"
+" WORKSHFT.DESCR ," +" WORKSHFT.DESCR ,"
+" WORK_SHIFT.FROM_DT ," +" WORK_SHIFT.FROM_DT ,"
+" WORK_SHIFT.TO_DT ," +" WORK_SHIFT.TO_DT ,"
+" EMPLOYEE.EMP_FNAME ," +" EMPLOYEE.EMP_FNAME ,"
+" EMPLOYEE.EMP_LNAME ," +" EMPLOYEE.EMP_LNAME ,"
+" EMPLOYEE.DEPT_CODE ," +" EMPLOYEE.DEPT_CODE ,"
+" EMPLOYEE.EMP_SITE ," +" EMPLOYEE.EMP_SITE ,"
+" WORK_SHIFT.CHG_DATE ," +" WORK_SHIFT.CHG_DATE ,"
+" WORK_SHIFT.CHG_USER ," +" WORK_SHIFT.CHG_USER ,"
+" WORK_SHIFT.CHG_TERM ," +" WORK_SHIFT.CHG_TERM ,"
+" WORK_SHIFT.REAL_SHIFT ," +" WORK_SHIFT.REAL_SHIFT ,"
+" WORK_SHIFT.PATTERN_CODE " +" WORK_SHIFT.PATTERN_CODE "
+" FROM EMPLOYEE ," +" FROM EMPLOYEE ,"
+" WORK_SHIFT ," +" WORK_SHIFT ,"
+" WORKSHFT " +" WORKSHFT "
+" WHERE WORK_SHIFT.EMP_CODE = EMPLOYEE.EMP_CODE AND " +" WHERE WORK_SHIFT.EMP_CODE = EMPLOYEE.EMP_CODE AND "
+" WORK_SHIFT.SHIFT = WORKSHFT.SHIFT " +" WORK_SHIFT.SHIFT = WORKSHFT.SHIFT "
+" AND WORK_SHIFT.EMP_CODE = ? " +" AND WORK_SHIFT.EMP_CODE = ? "
+" AND WORK_SHIFT.FROM_DT = ? " +" AND WORK_SHIFT.FROM_DT = ? "
+" AND WORK_SHIFT.TO_DT = ? " +" AND WORK_SHIFT.TO_DT = ? "
+" ORDER BY EMPLOYEE.EMP_CODE ASC, " +" ORDER BY EMPLOYEE.EMP_CODE ASC, "
+" WORK_SHIFT.FROM_DT ASC ," +" WORK_SHIFT.FROM_DT ASC ,"
+" WORK_SHIFT.TO_DT ASC "; +" WORK_SHIFT.TO_DT ASC ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
System.out.println("After prepareStatement ..." + sql); System.out.println("After prepareStatement ..." + sql);
...@@ -163,13 +169,14 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal , ...@@ -163,13 +169,14 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
int cnt = 0; int cnt = 0;
int i = 0; //int i = 0;
int i = 1;
if(rs.next()) if(rs.next())
{ {
frstrDate = genericUtility.getValidDateString(rs.getString("FROM_DT"), genericUtility.getDBDateFormat(), genericUtility.getApplDateFormat()); frstrDate = genericUtility.getValidDateString(rs.getString("FROM_DT"), genericUtility.getDBDateFormat(), genericUtility.getApplDateFormat());
tostrDate = genericUtility.getValidDateString(rs.getString("TO_DT"), genericUtility.getDBDateFormat(), genericUtility.getApplDateFormat()); tostrDate = genericUtility.getValidDateString(rs.getString("TO_DT"), genericUtility.getDBDateFormat(), genericUtility.getApplDateFormat());
fromDate = simpleDateFormat.parse(frstrDate); fromDate = simpleDateFormat.parse(frstrDate);
toDate = simpleDateFormat.parse(tostrDate); toDate = simpleDateFormat.parse(tostrDate);
...@@ -198,28 +205,28 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal , ...@@ -198,28 +205,28 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
retTabSepStrBuff.append("</Detail2>\r\n"); retTabSepStrBuff.append("</Detail2>\r\n");
i++; i++;
fromDate = addDays(fromDate, 1); fromDate = addDays(fromDate, 1);
// increment the day by 1 // increment the day by 1
} }
retTabSepStrBuff.append("</Header0>\r\n"); retTabSepStrBuff.append("</Header0>\r\n");
retTabSepStrBuff.append("</group0>\r\n"); retTabSepStrBuff.append("</group0>\r\n");
retTabSepStrBuff.append("</DocumentRoot>\r\n"); retTabSepStrBuff.append("</DocumentRoot>\r\n");
resultString = retTabSepStrBuff.toString(); resultString = retTabSepStrBuff.toString();
System.out.println("ResultString....." + resultString); System.out.println("ResultString....." + resultString);
} }
else else
{ {
// HERE WHEN WE DOES resultString = "", THEN IT RETURN BLANK TO GET DATA METHOD WHEN WE ARE PUTTIING WRONG TRAN ID THEN IT WILL REFRESS ALL DISPLATY BROW WINDOW INPLACE OF RETURN ERROR MESSAGE. // HERE WHEN WE DOES resultString = "", THEN IT RETURN BLANK TO GET DATA METHOD WHEN WE ARE PUTTIING WRONG TRAN ID THEN IT WILL REFRESS ALL DISPLATY BROW WINDOW INPLACE OF RETURN ERROR MESSAGE.
resultString = ""; resultString = "";
System.out.println("Result String when tran id is wrong --->>>>>>" +resultString); System.out.println("Result String when tran id is wrong --->>>>>>" +resultString);
} }
closePstmtRset(pstmt , rs); closePstmtRset(pstmt , rs);
} }
catch (SQLException e) catch (SQLException e)
{ {
...@@ -233,7 +240,7 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal , ...@@ -233,7 +240,7 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
} }
finally finally
{ {
try try
{ {
retTabSepStrBuff = null; retTabSepStrBuff = null;
...@@ -242,12 +249,12 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal , ...@@ -242,12 +249,12 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
pstmt.close(); pstmt.close();
pstmt=null; pstmt=null;
} }
if(rs != null) if(rs != null)
{ {
rs.close(); rs.close();
rs = null; rs = null;
} }
if(conn != null) if(conn != null)
{ {
...@@ -266,328 +273,274 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal , ...@@ -266,328 +273,274 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
System.out.println("----Come here 2"); System.out.println("----Come here 2");
return resultString; return resultString;
} }
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException
{ {
System.out.println("xtraParams:::------->>>>>>>>>>>>>>"+ xtraParams ); System.out.println("xtraParams:::------->>>>>>>>>>>>>>"+ xtraParams );
System.out.println("xmlString:::------->>>>>>>>>>>>>>"+ xmlString ); System.out.println("xmlString:::------->>>>>>>>>>>>>>"+ xmlString );
System.out.println("xmlString2:::------->>>>>>>>>>>>>>"+ xmlString2 ); System.out.println("xmlString2:::------->>>>>>>>>>>>>>"+ xmlString2 );
System.out.println("windowName:::------->>>>>>>>>>>>>>"+ windowName ); System.out.println("windowName:::------->>>>>>>>>>>>>>"+ windowName );
String retStr = ""; String retStr = "";
Document detailDom = null; Document detailDom = null;
Document headerDom = null; Document headerDom = null;
//GenericUtility genericUtility = GenericUtility.getInstance(); //GenericUtility genericUtility = GenericUtility.getInstance();
try try
{ {
genericUtility = new E12GenericUtility(); genericUtility = new E12GenericUtility();
if(xmlString != null && xmlString.trim().length()!=0) if(xmlString != null && xmlString.trim().length()!=0)
{ {
headerDom = genericUtility.parseString(xmlString); headerDom = genericUtility.parseString(xmlString);
System.out.println("headerDom" + headerDom); System.out.println("headerDom" + headerDom);
}
if(xmlString2 != null && xmlString2.trim().length()!=0)
{
detailDom = genericUtility.parseString(xmlString2);
System.out.println("detailDom" + detailDom);
}
retStr = process(headerDom, detailDom, windowName, xtraParams);
} }
catch (Exception e) if(xmlString2 != null && xmlString2.trim().length()!=0)
{ {
System.out.println("Exception :ShiftChangePrc :process(String xmlString, String xmlString2, String windowName, String xtraParams):" + e.getMessage() + ":"); detailDom = genericUtility.parseString(xmlString2);
e.printStackTrace(); System.out.println("detailDom" + detailDom);
retStr = genericUtility.createErrorString(e);
throw new ITMException(e);
} }
return retStr;
retStr = process(headerDom, detailDom, windowName, xtraParams);
} }
public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException catch (Exception e)
{ {
System.out.println("ShiftChangePrc process(Document,Document,windowName,xtraParams CALLED..."+ windowName); System.out.println("Exception :ShiftChangePrc :process(String xmlString, String xmlString2, String windowName, String xtraParams):" + e.getMessage() + ":");
System.out.println("header Dom------------------->"+headerDom); e.printStackTrace();
System.out.println("detailDom------------------->"+detailDom); retStr = genericUtility.createErrorString(e);
throw new ITMException(e);
String childNodeName = ""; }
String siteCode = ""; return retStr;
String empCode = ""; }
String shift = ""; public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException
String workshftDescr = null; {
String empFname = null; System.out.println("ShiftChangePrc process(Document,Document,windowName,xtraParams CALLED..."+ windowName);
String empLname= null; System.out.println("header Dom------------------->"+headerDom);
String deptCode =null; System.out.println("detailDom------------------->"+detailDom);
String empSite= null;
String chgDate=null; String childNodeName = "";
String chgTerm= null; String siteCode = "";
String chgUser = ""; String empCode = "";
String realShift= null; String shift = "";
String patternCode=null; String workshftDescr = null;
String errString=null; String empFname = null;
String userId=""; String empLname= null;
String fromDate = ""; String deptCode =null;
String toDate = ""; String empSite= null;
Date tDate = null ; String chgDate=null;
Date fDate = null; String chgTerm= null;
String retString = "VPSUCC1"; String chgUser = "";
String realShift= null;
String prevSiteCode =""; String patternCode=null;
String prevTodate =""; String errString=null;
String PrevFromdate = ""; String userId="";
int counter = 0; String fromDate = "";
String toDate = "";
Connection conn = null; Date tDate = null ;
ResultSet rs = null; Date fDate = null;
PreparedStatement pstmt = null; String retString = "VPSUCC1";
String isql = "";
String prevSiteCode ="";
int updCnt = 0; String prevTodate ="";
int parentNodeListLength = 0; String PrevFromdate = "";
int childNodeListLength = 0; int counter = 0;
NodeList parentList = null;
NodeList childNodeList = null; Connection conn = null;
Node parentNode = null; ResultSet rs = null;
Node childNode = null; PreparedStatement pstmt = null;
String isql = "";
ArrayList <String> shiftArr = null;
ArrayList <String> frmDateArr = null; int updCnt = 0;
ArrayList <String> toDateArr = null; int parentNodeListLength = 0;
ArrayList <String> shiftValues = null; int childNodeListLength = 0;
HashMap<Integer, ArrayList<String>> insertMap = new HashMap<Integer, ArrayList<String>>() ; NodeList parentList = null;
NodeList childNodeList = null;
PreparedStatement existCheckPstmt = null; Node parentNode = null;
PreparedStatement existUpdatePstmt = null; Node childNode = null;
PreparedStatement insertPstmt = null;
ResultSet existCheckRs = null; ArrayList <String> shiftArr = null;
java.sql.Timestamp jSqlFromDate = null; ArrayList <String> frmDateArr = null;
java.sql.Timestamp jSqlToDate = null; ArrayList <String> toDateArr = null;
Date utilFromDate = null; ArrayList <String> shiftValues = null;
Date utilToDate = null; HashMap<Integer, ArrayList<String>> insertMap = new HashMap<Integer, ArrayList<String>>() ;
ITMDBAccessEJB itmDbAccess = null;
PreparedStatement existCheckPstmt = null;
try PreparedStatement existUpdatePstmt = null;
{ PreparedStatement insertPstmt = null;
//Added by Dipesh on[06/08/2019][Start] ResultSet existCheckRs = null;
/*AppConnectParm appConnect = new AppConnectParm(); java.sql.Timestamp jSqlFromDate = null;
java.sql.Timestamp jSqlToDate = null;
Date utilFromDate = null;
Date utilToDate = null;
ITMDBAccessEJB itmDbAccess = null;
try
{
//Added by Dipesh on[06/08/2019][Start]
/*AppConnectParm appConnect = new AppConnectParm();
InitialContext ctx = new InitialContext(appConnect.getProperty()); InitialContext ctx = new InitialContext(appConnect.getProperty());
ITMDBAccessLocal itmDBAccessEJB = (ITMDBAccessLocal)ctx.lookup("ibase/ITMDBAccessEJB/local");*/ ITMDBAccessLocal itmDBAccessEJB = (ITMDBAccessLocal)ctx.lookup("ibase/ITMDBAccessEJB/local");*/
itmDbAccess = new ITMDBAccessEJB(); itmDbAccess = new ITMDBAccessEJB();
//Added by Dipesh on[06/08/2019][End] //Added by Dipesh on[06/08/2019][End]
System.out.println(" I N S I D E C A S E "); System.out.println(" I N S I D E C A S E ");
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode")); userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"chgTerm")); chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"chgTerm"));
String empCodeDom = checkNull(genericUtility.getColumnValue("emp_code",headerDom)); String empCodeDom = checkNull(genericUtility.getColumnValue("emp_code",headerDom));
String fromDateDom = checkNull(genericUtility.getColumnValue("from_dt",headerDom)); String fromDateDom = checkNull(genericUtility.getColumnValue("from_dt",headerDom));
String toDateDom = checkNull( genericUtility.getColumnValue("to_dt",headerDom)); String toDateDom = checkNull( genericUtility.getColumnValue("to_dt",headerDom));
System.out.println("Emp Code PK"+empCodeDom+"From date PK"+fromDateDom+"To Date PK"+toDateDom); System.out.println("Emp Code PK"+empCodeDom+"From date PK"+fromDateDom+"To Date PK"+toDateDom);
if(detailDom == null || genericUtility.getColumnValue("emp_code",headerDom) ==null || genericUtility.getColumnValue("from_dt",headerDom) ==null|| genericUtility.getColumnValue("to_dt",headerDom) ==null) if(detailDom == null || genericUtility.getColumnValue("emp_code",headerDom) ==null || genericUtility.getColumnValue("from_dt",headerDom) ==null|| genericUtility.getColumnValue("to_dt",headerDom) ==null)
{
//Added by Dipesh on[06/08/2019][Start]
//errString = itmDBAccessEJB.getErrorString("emp_code","VTTRANID03",userId);
errString = itmDbAccess.getErrorString("emp_code", "VTTRANID03", userId, "", conn);
//Added by Dipesh on[06/08/2019][End]
return errString;
}
utilFromDate = simpleDateFormat.parse(fromDateDom);
utilToDate = simpleDateFormat.parse(toDateDom);
//while(fromDate.before(toDate))
int noOfDaysBetweenDates = 0;
while(utilFromDate.compareTo(utilToDate) <= 0)
{
noOfDaysBetweenDates++;
utilFromDate = addDays(utilFromDate, 1);
}
//Added by Dipesh on[06/08/2019][Start]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn=getConnection();
//Added by Dipesh on[06/08/2019][Start]
conn.setAutoCommit(false);
String existCheckSql = "SELECT COUNT(1) FROM WORK_SHIFT WHERE EMP_CODE = ? AND FROM_DT = ?";
existCheckPstmt = conn.prepareStatement(existCheckSql);
String existUpdateSql = "UPDATE WORK_SHIFT SET SHIFT = ? , TO_DT = ? WHERE EMP_CODE = ? AND FROM_DT = ?";
existUpdatePstmt = conn.prepareStatement(existUpdateSql);
String insertSql = "INSERT INTO WORK_SHIFT (EMP_CODE , SHIFT , FROM_DT, TO_DT , CHG_DATE , CHG_USER , CHG_TERM , REAL_SHIFT , PATTERN_CODE) VALUES (? , ? , ? , ? , fn_sysdate() , ? , ? , ? , ?)";
insertPstmt = conn.prepareStatement(insertSql);
parentList = detailDom.getElementsByTagName("Detail2");
parentNodeListLength = parentList.getLength();
System.out.println(" ShiftChange parentList.getLength() ["+parentList.getLength()+"]");
String frDate = "";
String shiftFromDate = "";
String shiftToDate = "";
String previousShift = "";
System.out.println("parentNodeListLength ["+parentNodeListLength+"] noOfDaysBetweenDates ["+noOfDaysBetweenDates+" ]");
if (parentNodeListLength == 0)
{
//Added by Dipesh on[06/08/2019][Start]
//errString = itmDBAccessEJB.getErrorString("shift","VPSHFTCH08",userId);
errString = itmDbAccess.getErrorString("shift", "VPSHFTCH08", userId, "", conn);
//Added by Dipesh on[06/08/2019][End]
return errString;
}
else if (parentNodeListLength != noOfDaysBetweenDates)
{
//Added by Dipesh on[06/08/2019][Start]
//errString = itmDBAccessEJB.getErrorString("shift","VPSHFTCH09",userId);
errString = itmDbAccess.getErrorString("shift", "VPSHFTCH09", userId, "", conn);
//Added by Dipesh on[06/08/2019][End]
return errString;
}
System.out.println(" parentNodeListLength----"+parentNodeListLength+"]");
for (int prntCtr = 0; prntCtr < parentNodeListLength; prntCtr++ )
{
parentNode = parentList.item(prntCtr);
childNodeList = parentNode.getChildNodes();
System.out.println(" ShiftChange childList.getLength() ["+childNodeList.getLength()+"]");
for (int ctr = 0; ctr < childNodeList.getLength(); ctr++)
{
childNode = childNodeList.item(ctr);
childNodeName = checkNull(childNode.getNodeName());
if(childNode.getNodeType() != Node.ELEMENT_NODE)
{ {
//Added by Dipesh on[06/08/2019][Start] continue;
//errString = itmDBAccessEJB.getErrorString("emp_code","VTTRANID03",userId); }
errString = itmDbAccess.getErrorString("emp_code", "VTTRANID03", userId, "", conn); else if (childNode.getFirstChild() == null)
//Added by Dipesh on[06/08/2019][End] {
return errString; continue;
} }
utilFromDate = simpleDateFormat.parse(fromDateDom); System.out.println("childNode----"+childNode+"Name ----= "+childNodeName+"Chid value----- ="+checkNull(childNode.getFirstChild().getNodeValue()));
utilToDate = simpleDateFormat.parse(toDateDom);
//while(fromDate.before(toDate)) if(childNodeName.equalsIgnoreCase("shift"))
int noOfDaysBetweenDates = 0;
while(utilFromDate.compareTo(utilToDate) <= 0)
{ {
noOfDaysBetweenDates++; shift = checkNull(childNode.getFirstChild().getNodeValue());
utilFromDate = addDays(utilFromDate, 1); //shiftArr.add(checkNull(childNode.getFirstChild().getNodeValue().trim()));
} }
else if(childNodeName.equalsIgnoreCase("from_dt"))
//Added by Dipesh on[06/08/2019][Start]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn=getConnection();
//Added by Dipesh on[06/08/2019][Start]
conn.setAutoCommit(false);
String existCheckSql = "SELECT COUNT(1) FROM WORK_SHIFT WHERE EMP_CODE = ? AND FROM_DT = ?";
existCheckPstmt = conn.prepareStatement(existCheckSql);
String existUpdateSql = "UPDATE WORK_SHIFT SET SHIFT = ? , TO_DT = ? WHERE EMP_CODE = ? AND FROM_DT = ?";
existUpdatePstmt = conn.prepareStatement(existUpdateSql);
String insertSql = "INSERT INTO WORK_SHIFT (EMP_CODE , SHIFT , FROM_DT, TO_DT , CHG_DATE , CHG_USER , CHG_TERM , REAL_SHIFT , PATTERN_CODE) VALUES (? , ? , ? , ? , fn_sysdate() , ? , ? , ? , ?)";
insertPstmt = conn.prepareStatement(insertSql);
parentList = detailDom.getElementsByTagName("Detail2");
parentNodeListLength = parentList.getLength();
System.out.println(" ShiftChange parentList.getLength() ["+parentList.getLength()+"]");
String frDate = "";
String shiftFromDate = "";
String shiftToDate = "";
String previousShift = "";
System.out.println("parentNodeListLength ["+parentNodeListLength+"] noOfDaysBetweenDates ["+noOfDaysBetweenDates+" ]");
if (parentNodeListLength == 0)
{ {
//Added by Dipesh on[06/08/2019][Start] frDate = checkNull(childNode.getFirstChild().getNodeValue());
//errString = itmDBAccessEJB.getErrorString("shift","VPSHFTCH08",userId); //frmDateArr.add(checkNull(childNode.getFirstChild().getNodeValue().trim()));
errString = itmDbAccess.getErrorString("shift", "VPSHFTCH08", userId, "", conn);
//Added by Dipesh on[06/08/2019][End]
return errString;
} }
else if (parentNodeListLength != noOfDaysBetweenDates) else if(childNodeName.equalsIgnoreCase("real_shift"))
{ {
//Added by Dipesh on[06/08/2019][Start] realShift = checkNull(childNode.getFirstChild().getNodeValue() );
//errString = itmDBAccessEJB.getErrorString("shift","VPSHFTCH09",userId); }
errString = itmDbAccess.getErrorString("shift", "VPSHFTCH09", userId, "", conn); else if(childNodeName.equalsIgnoreCase("pattern_code"))
//Added by Dipesh on[06/08/2019][End] {
return errString; patternCode = checkNull(childNode.getFirstChild().getNodeValue() );
System.out.println("patternCode----"+patternCode);
}
else
{
continue;
} }
System.out.println(" parentNodeListLength----"+parentNodeListLength+"]");
for (int prntCtr = 0; prntCtr < parentNodeListLength; prntCtr++ )
{
parentNode = parentList.item(prntCtr);
childNodeList = parentNode.getChildNodes();
System.out.println(" ShiftChange childList.getLength() ["+childNodeList.getLength()+"]");
for (int ctr = 0; ctr < childNodeList.getLength(); ctr++)
{
childNode = childNodeList.item(ctr);
childNodeName = checkNull(childNode.getNodeName());
if(childNode.getNodeType() != Node.ELEMENT_NODE)
{
continue;
}
else if (childNode.getFirstChild() == null)
{
continue;
}
System.out.println("childNode----"+childNode+"Name ----= "+childNodeName+"Chid value----- ="+checkNull(childNode.getFirstChild().getNodeValue()));
if(childNodeName.equalsIgnoreCase("shift"))
{
shift = checkNull(childNode.getFirstChild().getNodeValue());
//shiftArr.add(checkNull(childNode.getFirstChild().getNodeValue().trim()));
}
else if(childNodeName.equalsIgnoreCase("from_dt"))
{
frDate = checkNull(childNode.getFirstChild().getNodeValue());
//frmDateArr.add(checkNull(childNode.getFirstChild().getNodeValue().trim()));
}
else if(childNodeName.equalsIgnoreCase("real_shift"))
{
realShift = checkNull(childNode.getFirstChild().getNodeValue() );
}
else if(childNodeName.equalsIgnoreCase("pattern_code"))
{
patternCode = checkNull(childNode.getFirstChild().getNodeValue() );
System.out.println("patternCode----"+patternCode);
}
else
{
continue;
}
} //fOR childNodeList
if(shift == null || shift.trim().length() == 0)
{
//Added by Dipesh on[06/08/2019][Start]
//errString = itmDBAccessEJB.getErrorString("shift","VPSHFTCH06",userId);
errString = itmDbAccess.getErrorString("shift", "VPSHFTCH06", userId, "", conn);
//Added by Dipesh on[06/08/2019][End]
break;
}
else
{
boolean flag = isRecordExist(conn," WORKSHFT "," WHERE SHIFT ='"+shift+"' AND DAY_NO = 1");
if(flag == false)
{
//Added by Dipesh on[06/08/2019][Start]
//errString = itmDBAccessEJB.getErrorString("shift","VPSHFTCH07",userId);
errString = itmDbAccess.getErrorString("shift", "VPSHFTCH07", userId, "", conn);
//Added by Dipesh on[06/08/2019][End]
break;
}
}
shift = shift.trim(); } //fOR childNodeList
if (previousShift == null || previousShift.trim().length() == 0) if(shift == null || shift.trim().length() == 0)
{ {
previousShift = shift.trim(); //Added by Dipesh on[06/08/2019][Start]
shiftFromDate = frDate; //errString = itmDBAccessEJB.getErrorString("shift","VPSHFTCH06",userId);
shiftToDate = frDate; errString = itmDbAccess.getErrorString("shift", "VPSHFTCH06", userId, "", conn);
} //Added by Dipesh on[06/08/2019][End]
else break;
{ }
if (previousShift.equals(shift)) else
{ {
shiftToDate = frDate; boolean flag = isRecordExist(conn," WORKSHFT "," WHERE SHIFT ='"+shift+"' AND DAY_NO = 1");
}
else
{
jSqlFromDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(shiftFromDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()));
jSqlToDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(shiftToDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()));
existCheckPstmt.setString(1 , empCodeDom);
existCheckPstmt.setTimestamp(2,jSqlFromDate);
existCheckRs = existCheckPstmt.executeQuery();
int existCnt = 0;
if (existCheckRs.next())
{
existCnt = existCheckRs.getInt(1);
}
existCheckRs.close();
existCheckRs = null;
existCheckPstmt.clearParameters();
if (existCnt > 0)
{
existUpdatePstmt.setString(1 , previousShift);
existUpdatePstmt.setTimestamp(2,jSqlToDate);
existUpdatePstmt.setString(3 , empCodeDom);
existUpdatePstmt.setTimestamp(4,jSqlFromDate);
existCnt = existUpdatePstmt.executeUpdate();
existUpdatePstmt.clearParameters();
System.out.println("existUpdatePstmt----"+existUpdatePstmt);
}
else
{
insertPstmt.setString(1 , empCodeDom);
insertPstmt.setString(2 , previousShift);
insertPstmt.setTimestamp(3 , jSqlFromDate);
insertPstmt.setTimestamp(4 , jSqlToDate);
insertPstmt.setString(5 , userId);
insertPstmt.setString(6 , chgTerm);
insertPstmt.setString(7 , realShift);
insertPstmt.setString(8 , patternCode);
existCnt = insertPstmt.executeUpdate();
insertPstmt.clearParameters();
System.out.println("insertPstmt----"+insertPstmt);
}
previousShift = shift.trim();
shiftFromDate = frDate;
shiftToDate = frDate;
}
} if(flag == false)
{
//Added by Dipesh on[06/08/2019][Start]
//errString = itmDBAccessEJB.getErrorString("shift","VPSHFTCH07",userId);
errString = itmDbAccess.getErrorString("shift", "VPSHFTCH07", userId, "", conn);
//Added by Dipesh on[06/08/2019][End]
break;
} }
}
if (errString != null && errString.trim().length() > 0) shift = shift.trim();
if (previousShift == null || previousShift.trim().length() == 0)
{
previousShift = shift.trim();
shiftFromDate = frDate;
shiftToDate = frDate;
}
else
{
if (previousShift.equals(shift))
{ {
conn.rollback(); shiftToDate = frDate;
} }
else else
{ {
jSqlFromDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(shiftFromDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())); jSqlFromDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(shiftFromDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()));
jSqlToDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(shiftToDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())); jSqlToDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(shiftToDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()));
...@@ -600,12 +553,9 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal , ...@@ -600,12 +553,9 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
{ {
existCnt = existCheckRs.getInt(1); existCnt = existCheckRs.getInt(1);
} }
if (existCheckRs != null) existCheckRs.close();
{ existCheckRs = null;
existCheckRs.close(); existCheckPstmt.clearParameters();
existCheckRs = null;
existCheckPstmt.clearParameters();
}
if (existCnt > 0) if (existCnt > 0)
{ {
existUpdatePstmt.setString(1 , previousShift); existUpdatePstmt.setString(1 , previousShift);
...@@ -614,7 +564,7 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal , ...@@ -614,7 +564,7 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
existUpdatePstmt.setTimestamp(4,jSqlFromDate); existUpdatePstmt.setTimestamp(4,jSqlFromDate);
existCnt = existUpdatePstmt.executeUpdate(); existCnt = existUpdatePstmt.executeUpdate();
existUpdatePstmt.clearParameters(); existUpdatePstmt.clearParameters();
System.out.println("existUpdatePstmt*----*"+existUpdatePstmt); System.out.println("existUpdatePstmt----"+existUpdatePstmt);
} }
else else
{ {
...@@ -628,199 +578,276 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal , ...@@ -628,199 +578,276 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
insertPstmt.setString(8 , patternCode); insertPstmt.setString(8 , patternCode);
existCnt = insertPstmt.executeUpdate(); existCnt = insertPstmt.executeUpdate();
insertPstmt.clearParameters(); insertPstmt.clearParameters();
System.out.println("insertPstmt*----*"+insertPstmt); System.out.println("insertPstmt----"+insertPstmt);
} }
/*if (existCheckRs != null) previousShift = shift.trim();
shiftFromDate = frDate;
shiftToDate = frDate;
}
}
}
if (errString != null && errString.trim().length() > 0)
{
conn.rollback();
}
else
{
jSqlFromDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(shiftFromDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()));
jSqlToDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(shiftToDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()));
existCheckPstmt.setString(1 , empCodeDom);
existCheckPstmt.setTimestamp(2,jSqlFromDate);
existCheckRs = existCheckPstmt.executeQuery();
int existCnt = 0;
if (existCheckRs.next())
{
existCnt = existCheckRs.getInt(1);
}
if (existCheckRs != null)
{
existCheckRs.close();
existCheckRs = null;
existCheckPstmt.clearParameters();
}
if (existCnt > 0)
{
existUpdatePstmt.setString(1 , previousShift);
existUpdatePstmt.setTimestamp(2,jSqlToDate);
existUpdatePstmt.setString(3 , empCodeDom);
existUpdatePstmt.setTimestamp(4,jSqlFromDate);
existCnt = existUpdatePstmt.executeUpdate();
existUpdatePstmt.clearParameters();
System.out.println("existUpdatePstmt*----*"+existUpdatePstmt);
}
else
{
insertPstmt.setString(1 , empCodeDom);
insertPstmt.setString(2 , previousShift);
insertPstmt.setTimestamp(3 , jSqlFromDate);
insertPstmt.setTimestamp(4 , jSqlToDate);
insertPstmt.setString(5 , userId);
insertPstmt.setString(6 , chgTerm);
insertPstmt.setString(7 , realShift);
insertPstmt.setString(8 , patternCode);
existCnt = insertPstmt.executeUpdate();
insertPstmt.clearParameters();
System.out.println("insertPstmt*----*"+insertPstmt);
}
/*if (existCheckRs != null)
{ {
existCheckRs.close(); existCheckRs.close();
existCheckRs = null; existCheckRs = null;
}*/ }*/
if (existCheckPstmt != null) if (existCheckPstmt != null)
{ {
existCheckPstmt.close(); existCheckPstmt.close();
existCheckPstmt = null; existCheckPstmt = null;
}
if (existUpdatePstmt != null)
{
existUpdatePstmt.close();
existUpdatePstmt = null;
}
if (insertPstmt != null)
{
insertPstmt.close();
insertPstmt = null;
}
conn.commit();
//Added by Dipesh on[06/08/2019][Start]
//errString = itmDBAccessEJB.getErrorString("shift","VPSUCC1",userId);
errString = itmDbAccess.getErrorString("shift", "VPSUCC1", userId, "", conn);
//Added by Dipesh on[06/08/2019][End]
}
} }
if (existUpdatePstmt != null)
catch (Exception e)
{ {
try existUpdatePstmt.close();
{ existUpdatePstmt = null;
conn.rollback();
System.out.println("Exception " + e.getMessage());
e.printStackTrace();
throw new ITMException(e);
}
catch (Exception e1)
{
e1.printStackTrace();
throw new ITMException(e1);
}
} finally {
try {
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if (existCheckRs != null)
{
existCheckRs.close();
existCheckRs = null;
}
if (existCheckPstmt != null)
{
existCheckPstmt.close();
existCheckPstmt = null;
}
if (existUpdatePstmt != null)
{
existUpdatePstmt.close();
existUpdatePstmt = null;
}
if (insertPstmt != null)
{
insertPstmt.close();
insertPstmt = null;
}
if (conn != null)
{
conn.close();
conn = null;
}
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
} }
System.out.println(" retString.. [" + errString + "] "); if (insertPstmt != null)
return errString; {
insertPstmt.close();
insertPstmt = null;
} }
/** conn.commit();
* add days to date in java //Added by Dipesh on[06/08/2019][Start]
* @param date //errString = itmDBAccessEJB.getErrorString("shift","VPSUCC1",userId);
* @param days errString = itmDbAccess.getErrorString("shift", "VPSUCC1", userId, "", conn);
* @return //Added by Dipesh on[06/08/2019][End]
*/
public static Date addDays(Date date, int days) {
System.out.println("ShiftChangePrc addDays(date,days ) Called date ="+date +"day = "+days);
GregorianCalendar cal = new GregorianCalendar();
cal.setTime(date);
cal.add(Calendar.DATE, days);
System.out.println("ShiftChangePrc addDays(date,days ) return date = "+cal.getTime());
return cal.getTime();
}
/**
* subtract days to date in java
* @param date
* @param days
* @return
*/
public static Date subtractDays(Date date, int days)
{
System.out.println("ShiftChangePrc subtractDays(date,days ) Called date ="+date +"day = "+days);
GregorianCalendar cal = new GregorianCalendar();
cal.setTime(date);
cal.add(Calendar.DATE, -days);
System.out.println("ShiftChangePrc subtractDays(date,days ) return date = "+cal.getTime());
return cal.getTime();
}
private String checkNull(String input)
{
if (input == null) {
input = "";
} else {
input = input.trim();
} }
return input;
} }
private void closePstmtRset(PreparedStatement pstmt, ResultSet rset )throws Exception
catch (Exception e)
{ {
System.out.println("Closing PreparedStatement and result........."); try
try
{ {
if (rset != null) conn.rollback();
System.out.println("Exception " + e.getMessage());
e.printStackTrace();
throw new ITMException(e);
}
catch (Exception e1)
{
e1.printStackTrace();
throw new ITMException(e1);
}
} finally {
try {
if (rs != null)
{ {
rset.close(); rs.close();
rset = null; rs = null;
} }
if (pstmt != null) if (pstmt != null)
{ {
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
if (existCheckRs != null)
{
existCheckRs.close();
existCheckRs = null;
}
if (existCheckPstmt != null)
{
existCheckPstmt.close();
existCheckPstmt = null;
}
if (existUpdatePstmt != null)
{
existUpdatePstmt.close();
existUpdatePstmt = null;
}
if (insertPstmt != null)
{
insertPstmt.close();
insertPstmt = null;
}
if (conn != null)
{
conn.close();
conn = null;
}
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
}
System.out.println(" retString.. [" + errString + "] ");
return errString;
}
/**
* add days to date in java
* @param date
* @param days
* @return
*/
public static Date addDays(Date date, int days) {
System.out.println("ShiftChangePrc addDays(date,days ) Called date ="+date +"day = "+days);
GregorianCalendar cal = new GregorianCalendar();
cal.setTime(date);
cal.add(Calendar.DATE, days);
System.out.println("ShiftChangePrc addDays(date,days ) return date = "+cal.getTime());
return cal.getTime();
}
/**
* subtract days to date in java
* @param date
* @param days
* @return
*/
public static Date subtractDays(Date date, int days)
{
System.out.println("ShiftChangePrc subtractDays(date,days ) Called date ="+date +"day = "+days);
GregorianCalendar cal = new GregorianCalendar();
cal.setTime(date);
cal.add(Calendar.DATE, -days);
System.out.println("ShiftChangePrc subtractDays(date,days ) return date = "+cal.getTime());
return cal.getTime();
}
private String checkNull(String input)
{
if (input == null) {
input = "";
} else {
input = input.trim();
}
return input;
}
private void closePstmtRset(PreparedStatement pstmt, ResultSet rset )throws Exception
{
System.out.println("Closing PreparedStatement and result.........");
try
{
if (rset != null)
{
rset.close();
rset = null;
} }
catch (Exception exp) if (pstmt != null)
{ {
exp.printStackTrace(); pstmt.close();
throw new Exception(exp); pstmt = null;
} }
} }
catch (Exception exp)
{
exp.printStackTrace();
throw new Exception(exp);
}
}
private boolean isRecordExist(Connection conn , String tableName, String condition)
{
PreparedStatement pstmt = null ;
ResultSet rs = null;
String sql="";
boolean isExist=false;
int recCount=0;
try
{
sql = " SELECT COUNT(*) FROM "+tableName +" "+condition;
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
if(rs.next())
{
recCount=rs.getInt(1);
}
if(recCount>0)
{
isExist=true;
private boolean isRecordExist(Connection conn , String tableName, String condition) }
else
{
isExist=false;
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception ex)
{
ex.printStackTrace();
}
finally
{ {
PreparedStatement pstmt = null ;
ResultSet rs = null;
String sql="";
boolean isExist=false;
int recCount=0;
try try
{ {
sql = " SELECT COUNT(*) FROM "+tableName +" "+condition;
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
if(rs.next())
{
recCount=rs.getInt(1);
}
if(recCount>0)
{
isExist=true;
}
else
{
isExist=false;
}
if(rs != null) if(rs != null)
{ {
rs.close(); rs.close();
...@@ -831,36 +858,16 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal , ...@@ -831,36 +858,16 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
} }
catch(Exception ex) catch(Exception e)
{
ex.printStackTrace();
}
finally
{ {
try e.printStackTrace();
{ }
if(rs != null) }
{
rs.close(); System.out.print("---------Final--isExist-------"+isExist);
rs = null; return isExist;
} }
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e)
{
e.printStackTrace();
}
}
System.out.print("---------Final--isExist-------"+isExist);
return isExist;
}
} }
/*Created by Chetna on [25/08/2014] For Shift Rotate Change [END] /*Created by Chetna on [25/08/2014] For Shift Rotate Change [END]
......
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