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
------------------------------------------------------ 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 ');
update itm2menu set ICON_PATH='WorkShiftChange.png' , CLOSE_ICON='WorkShiftChangewht.png' where WIN_NAME='w_shift_chg';
----------------------------------------------------- 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',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
......@@ -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','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
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 ('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
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',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
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 ('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_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_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_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_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_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_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_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_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 ('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_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_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_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_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_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_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_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_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 ('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');
......@@ -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',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',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);
......@@ -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',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_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_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_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_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_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_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_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',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_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_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_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_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_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_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_default_ejb',8,'XTRA_PARAMS','I',null,'S',null,to_date('18-09-11','DD-MM-RR'),'Manohar ','Manohar',null);
----------------------------------------------------- MESSAGES
......@@ -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);
-------------------------------------------------------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"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>79741120</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>3</height>
<color>536870912</color>
</Footer>
<Detail>
<height>241</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>emp_code</name>
<dbname>emp_code</dbname>
</table_column>
<table_column>
<type size="60">char</type>
<updatewhereclause>no</updatewhereclause>
<name>emp_name</name>
<dbname>emp_name</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>no</updatewhereclause>
<name>site_code</name>
<dbname>site_code</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>no</updatewhereclause>
<name>from_dt</name>
<dbname>from_dt</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>no</updatewhereclause>
<name>to_dt</name>
<dbname>to_dt</dbname>
</table_column>
</TableDefinition>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Employee :</text>
<border>0</border>
<color>0</color>
<x>6</x>
<y>8</y>
<height>16</height>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Date From :</text>
<border>0</border>
<color>0</color>
<x>6</x>
<y>41</y>
<height>16</height>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>from_dt_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Date To :</text>
<border>0</border>
<color>0</color>
<x>335</x>
<y>41</y>
<height>16</height>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>to_dt_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>100</x>
<y>9</y>
<height>16</height>
<width>85</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>191</x>
<y>9</y>
<height>16</height>
<width>323</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>60</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>100</x>
<y>41</y>
<height>16</height>
<width>85</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>from_dt</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>429</x>
<y>41</y>
<height>16</height>
<width>85</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>to_dt</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>79741120</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>3</height>
<color>536870912</color>
</Footer>
<Detail>
<height>241</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>no</updatewhereclause>
<name>emp_code</name>
<dbname>emp_code</dbname>
</table_column>
<table_column>
<type size="60">char</type>
<updatewhereclause>no</updatewhereclause>
<name>emp_name</name>
<dbname>emp_name</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>no</updatewhereclause>
<name>site_code</name>
<dbname>site_code</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>no</updatewhereclause>
<name>from_dt</name>
<dbname>from_dt</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>no</updatewhereclause>
<name>to_dt</name>
<dbname>to_dt</dbname>
</table_column>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>2</border>
<color>33554432</color>
<x>5</x>
<y>4</y>
<height>100</height>
<width>522</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Employee :</text>
<border>0</border>
<color>0</color>
<x>13</x>
<y>28</y>
<height>16</height>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Date From :</text>
<border>0</border>
<color>0</color>
<x>13</x>
<y>61</y>
<height>16</height>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>from_dt_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Date To :</text>
<border>0</border>
<color>0</color>
<x>342</x>
<y>61</y>
<height>16</height>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>to_dt_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>107</x>
<y>29</y>
<height>16</height>
<width>85</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>198</x>
<y>29</y>
<height>16</height>
<width>323</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>60</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>106</x>
<y>61</y>
<height>16</height>
<width>85</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>from_dt</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>436</x>
<y>61</y>
<height>16</height>
<width>85</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>to_dt</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>79741120</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>20</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>21</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>emp_code</name>
<dbname>work_shift.emp_code</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>shift</name>
<dbname>work_shift.shift</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>workshft_descr</name>
<dbname>workshft.descr</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>from_dt</name>
<dbname>work_shift.from_dt</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>to_dt</name>
<dbname>work_shift.to_dt</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>emp_fname</name>
<dbname>employee.emp_fname</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>emp_lname</name>
<dbname>employee.emp_lname</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>dept_code</name>
<dbname>employee.dept_code</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>emp_site</name>
<dbname>employee.emp_site</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_date</name>
<dbname>work_shift.chg_date</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_user</name>
<dbname>work_shift.chg_user</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_term</name>
<dbname>work_shift.chg_term</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>real_shift</name>
<dbname>work_shift.real_shift</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>pattern_code</name>
<dbname>work_shift.pattern_code</dbname>
</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>
<update>work_shift</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
<name>ad_date_fr</name>
<type>datetime</type>
</argument>
<argument>
<name>ad_date_to</name>
<type>datetime</type>
</argument>
<argument>
<name>as_emp</name>
<type>string</type>
</argument>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Employee Code</text>
<border>6</border>
<color>0</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Shift</text>
<border>6</border>
<color>0</color>
<x>108</x>
<y>2</y>
<height>16</height>
<width>91</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>shift_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Description</text>
<border>6</border>
<color>0</color>
<x>201</x>
<y>2</y>
<height>16</height>
<width>238</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>workshft_descr_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>From Date</text>
<border>6</border>
<color>0</color>
<x>441</x>
<y>2</y>
<height>16</height>
<width>78</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>from_dt_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>To Date</text>
<border>6</border>
<color>0</color>
<x>521</x>
<y>2</y>
<height>16</height>
<width>70</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>to_dt_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>First Name</text>
<border>6</border>
<color>0</color>
<x>593</x>
<y>2</y>
<height>16</height>
<width>187</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_fname_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Last Name</text>
<border>6</border>
<color>0</color>
<x>782</x>
<y>2</y>
<height>16</height>
<width>198</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_lname_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Dept Code</text>
<border>6</border>
<color>0</color>
<x>982</x>
<y>2</y>
<height>16</height>
<width>61</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dept_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Site Code</text>
<border>6</border>
<color>0</color>
<x>1045</x>
<y>2</y>
<height>16</height>
<width>62</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_site_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Chg Date</text>
<border>6</border>
<color>0</color>
<x>1109</x>
<y>2</y>
<height>16</height>
<width>73</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Chg User</text>
<border>6</border>
<color>0</color>
<x>1184</x>
<y>2</y>
<height>16</height>
<width>76</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Chg Term</text>
<border>6</border>
<color>0</color>
<x>1262</x>
<y>2</y>
<height>16</height>
<width>70</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Real Shift</text>
<border>6</border>
<color>0</color>
<x>1334</x>
<y>2</y>
<height>16</height>
<width>63</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>real_shift_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Pattern Code</text>
<border>6</border>
<color>33554432</color>
<x>1399</x>
<y>2</y>
<height>16</height>
<width>86</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pattern_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>2</x>
<y>1</y>
<height>16</height>
<width>104</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>108</x>
<y>2</y>
<height>16</height>
<width>91</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>shift</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>upper</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>201</x>
<y>2</y>
<height>16</height>
<width>238</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>workshft_descr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>441</x>
<y>2</y>
<height>16</height>
<width>78</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>from_dt</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>521</x>
<y>2</y>
<height>16</height>
<width>70</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>to_dt</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>593</x>
<y>2</y>
<height>16</height>
<width>187</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_fname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>782</x>
<y>2</y>
<height>16</height>
<width>198</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_lname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>982</x>
<y>1</y>
<height>16</height>
<width>61</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dept_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>any</case>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1045</x>
<y>1</y>
<height>16</height>
<width>62</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_site</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1109</x>
<y>1</y>
<height>16</height>
<width>73</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1184</x>
<y>1</y>
<height>16</height>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1262</x>
<y>1</y>
<height>16</height>
<width>70</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1334</x>
<y>1</y>
<height>16</height>
<width>63</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>real_shift</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1399</x>
<y>1</y>
<height>16</height>
<width>86</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pattern_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>79741120</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>20</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>21</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>emp_code</name>
<dbname>work_shift.emp_code</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>shift</name>
<dbname>work_shift.shift</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>workshft_descr</name>
<dbname>workshft.descr</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>from_dt</name>
<dbname>work_shift.from_dt</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>to_dt</name>
<dbname>work_shift.to_dt</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>emp_fname</name>
<dbname>employee.emp_fname</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>emp_lname</name>
<dbname>employee.emp_lname</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>dept_code</name>
<dbname>employee.dept_code</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>emp_site</name>
<dbname>employee.emp_site</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_date</name>
<dbname>work_shift.chg_date</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_user</name>
<dbname>work_shift.chg_user</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_term</name>
<dbname>work_shift.chg_term</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>real_shift</name>
<dbname>work_shift.real_shift</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>pattern_code</name>
<dbname>work_shift.pattern_code</dbname>
</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>
<update>work_shift</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
<name>ad_date_fr</name>
<type>datetime</type>
</argument>
<argument>
<name>ad_date_to</name>
<type>datetime</type>
</argument>
<argument>
<name>as_emp</name>
<type>string</type>
</argument>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Employee Code</text>
<border>6</border>
<color>0</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Shift</text>
<border>6</border>
<color>0</color>
<x>108</x>
<y>2</y>
<height>16</height>
<width>91</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>shift_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Description</text>
<border>6</border>
<color>0</color>
<x>201</x>
<y>2</y>
<height>16</height>
<width>238</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>workshft_descr_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>From Date</text>
<border>6</border>
<color>0</color>
<x>441</x>
<y>2</y>
<height>16</height>
<width>78</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>from_dt_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>To Date</text>
<border>6</border>
<color>0</color>
<x>521</x>
<y>2</y>
<height>16</height>
<width>70</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>to_dt_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>First Name</text>
<border>6</border>
<color>0</color>
<x>593</x>
<y>2</y>
<height>16</height>
<width>187</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_fname_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Last Name</text>
<border>6</border>
<color>0</color>
<x>782</x>
<y>2</y>
<height>16</height>
<width>198</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_lname_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Dept Code</text>
<border>6</border>
<color>0</color>
<x>982</x>
<y>2</y>
<height>16</height>
<width>61</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dept_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Site Code</text>
<border>6</border>
<color>0</color>
<x>1045</x>
<y>2</y>
<height>16</height>
<width>62</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_site_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Chg Date</text>
<border>6</border>
<color>0</color>
<x>1109</x>
<y>2</y>
<height>16</height>
<width>73</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Chg User</text>
<border>6</border>
<color>0</color>
<x>1184</x>
<y>2</y>
<height>16</height>
<width>76</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Chg Term</text>
<border>6</border>
<color>0</color>
<x>1262</x>
<y>2</y>
<height>16</height>
<width>70</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Real Shift</text>
<border>6</border>
<color>0</color>
<x>1334</x>
<y>2</y>
<height>16</height>
<width>63</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>real_shift_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Pattern Code</text>
<border>6</border>
<color>33554432</color>
<x>1399</x>
<y>2</y>
<height>16</height>
<width>86</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pattern_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>2</x>
<y>1</y>
<height>16</height>
<width>104</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>108</x>
<y>2</y>
<height>16</height>
<width>91</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>shift</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>upper</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>201</x>
<y>2</y>
<height>16</height>
<width>238</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>workshft_descr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>441</x>
<y>2</y>
<height>16</height>
<width>78</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>from_dt</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>521</x>
<y>2</y>
<height>16</height>
<width>70</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>to_dt</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>593</x>
<y>2</y>
<height>16</height>
<width>187</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_fname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>782</x>
<y>2</y>
<height>16</height>
<width>198</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_lname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>982</x>
<y>1</y>
<height>16</height>
<width>61</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dept_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>any</case>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1045</x>
<y>1</y>
<height>16</height>
<width>62</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_site</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1109</x>
<y>1</y>
<height>16</height>
<width>73</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1184</x>
<y>1</y>
<height>16</height>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1262</x>
<y>1</y>
<height>16</height>
<width>70</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1334</x>
<y>1</y>
<height>16</height>
<width>63</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>real_shift</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1399</x>
<y>1</y>
<height>16</height>
<width>86</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pattern_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
$PBExportHeader$d_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;
import java.rmi.RemoteException;
//import java.util.*;
import java.util.Date;
//import java.text.*;
import java.sql.*;
import org.w3c.dom.*;
import ibase.system.config.*;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
//import javax.naming.InitialContext;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
......@@ -20,10 +14,21 @@ import java.util.ArrayList;
//import java.util.Date;
/*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
{
......@@ -39,8 +44,8 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
Document dom2 = null;
try
{
if (xmlString != null && xmlString.trim().length() > 0 )
{
dom = parseString(xmlString);
......@@ -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
{
System.out.println("[ShiftChangeIc][wfValData(Document,Document,String,string,editflag)] :==>\n");
String userId = "";
String userId = "";
String errorType = "";
String childNodeName = null;
String errCode = "";
......@@ -79,35 +84,35 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
String msgType="";
Date todt =null;
Date frdt =null;
int currentFormNo = 0;
int childNodeListLength;
int ctr=0;
int count = 0;
boolean flag = false;
NodeList parentNodeList = null;
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
ArrayList<String> errList = new ArrayList<String>();
ArrayList<String> errFields = new ArrayList<String>();
Connection conn = null;
PreparedStatement pstmt = null ;
ResultSet rs = null;
//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<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
{
genericUtility = new E12GenericUtility();
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");
//userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode");
conn=getConnection();
......@@ -117,9 +122,9 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
{
currentFormNo = Integer.parseInt(objContext);
}
System.out.println("Current Form No. :- "+currentFormNo);
switch(currentFormNo)
{
case 1 :
......@@ -127,7 +132,7 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
for(ctr = 0; ctr < childNodeListLength; ctr ++)
{
childNode = childNodeList.item(ctr);
......@@ -149,13 +154,13 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
else
{
flag = isRecordExist(conn," EMPLOYEE "," WHERE EMP_CODE ='"+empCode+"' AND STATUS = 'S' ");
if(flag == true)
{
errCode = "VPSHFTCH02";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn , "VPSHFTCH02" );
if ( msgType.equalsIgnoreCase("E"))
{
......@@ -163,13 +168,13 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
}
}
}
} //emp_code end
else if(childNodeName.equalsIgnoreCase("from_dt")) // From Date
{
fromDate = checkNull(genericUtility.getColumnValue("from_dt", curDom));
if(fromDate == null || fromDate.trim().length() == 0)
{
errCode = "VPSHFTCH03";
......@@ -185,7 +190,7 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
else if(childNodeName.equalsIgnoreCase("to_dt")) // Validation for role_code
{
toDate = checkNull(genericUtility.getColumnValue("to_dt", curDom));
System.out.println("toDate:::"+toDate);
if(toDate == null || toDate.trim().length() == 0)
{
errCode = "VPSHFTCH04";
......@@ -201,6 +206,8 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
{
todt = sdf.parse(toDate);
frdt = sdf.parse(fromDate);
System.out.println("todt::::"+todt);
System.out.println("frdt:::"+frdt);
if(frdt.compareTo(todt)>0)
{
errCode = "VPSHFTCH05";
......@@ -212,19 +219,18 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
break;
}
}
}
} // End of toDate
}
break;
break;
case 2:
parentNodeList = curDom.getElementsByTagName("Detail2");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
for(ctr = 0; ctr < childNodeListLength; ctr ++)
{
childNode = childNodeList.item(ctr);
......@@ -259,27 +265,22 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
break;
}
}
}
} //shift end
}
break;
break;
}
int errListSize = errList.size();
count = 0;
String errFldName = null;
ITMDBAccessEJB itmDbAccess = null;
//Added by Dipesh on[06/08/2019][Start]
/* AppConnectParm appConnect = new AppConnectParm();
/* AppConnectParm appConnect = new AppConnectParm();
InitialContext ctx = new InitialContext(appConnect.getProperty()) ;
ITMDBAccessLocal itmDBAccessEJB = (ITMDBAccessLocal)ctx.lookup("ibase/ITMDBAccessEJB/local"); */
itmDbAccess = new ITMDBAccessEJB();
//Added by Dipesh on[06/08/2019][End]
if(errList != null && errListSize > 0)
{
for(count = 0; count < errListSize; count ++)
......@@ -291,14 +292,14 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
//errString = itmDBAccessEJB.getErrorString(errFldName, errCode, userId);
errString = itmDbAccess.getErrorString(errFldName, errCode, userId, "", conn);
System.out.println("errString........"+errString);
//errString = itmDBAccessEJB.getErrorString("", errCode, userId);
errString = itmDbAccess.getErrorString("", errCode, userId, "", conn);
System.out.println("errString........"+errString);
//Added by Dipesh on[06/08/2019][End]
errorType = errorType(conn , errCode);
return errString;
}
errList.clear();
errList = null;
......@@ -321,7 +322,7 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
{
try
{
if(rs != null)
{
rs.close();
......@@ -337,7 +338,7 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
conn.close();
conn = null;
}
}
catch(Exception d)
{
......@@ -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
{
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String valueXmlString = "";
if (xmlString != null && xmlString.trim().length() > 0 )
{
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String valueXmlString = "";
if (xmlString != null && xmlString.trim().length() > 0 )
{
dom = parseString(xmlString);
System.out.println("In wfValData Current xmlString="+xmlString);
}
if (xmlString1 != null && xmlString1.trim().length() > 0 )
{
dom1 = parseString(xmlString1);
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;
dom = parseString(xmlString);
System.out.println("In wfValData Current xmlString="+xmlString);
}
if (xmlString1 != null && xmlString1.trim().length() > 0 )
{
dom1 = parseString(xmlString1);
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;
}
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");
......@@ -408,17 +409,17 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
try
{
genericUtility = new E12GenericUtility();
System.out.println("xtraParams===="+xtraParams);
siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSiteCode");
empCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode");
System.out.println("xtraParams===="+xtraParams);
siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSiteCode");
empCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode");
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();
//conn = connDriver.getConnectDB("DriverITM");
conn=getConnection();
//Added by Dipesh on[06/08/2019][End]
if(objContext != null && objContext.trim().length()>0)
{
currentFormNo = Integer.parseInt(objContext);
......@@ -429,18 +430,36 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
switch (currentFormNo)
{
case 1:
parentNodeList = dom1.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
ctr = 0;
childNodeListLength = childNodeList.getLength();
// valueXmlString.append("<Detail1>\r\n");
valueXmlString.append("<Detail>\r\n");
/*
case 1:
parentNodeList = dom1.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
ctr = 0;
childNodeListLength = childNodeList.getLength();
// 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"))
{
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, checkNull(empCode));
......@@ -451,232 +470,175 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
empName=rs.getString("EMP_NAME");
}
closePstmtRset(pstmt, rs);
valueXmlString.append("<emp_code><![CDATA[").append(empCode).append("]]></emp_code>");
valueXmlString.append("<emp_name><![CDATA[").append(empName).append("]]></emp_name>");
}
else if(currentColumn.equalsIgnoreCase("emp_code"))
*/
if(currentColumn.equalsIgnoreCase("emp_code"))
{
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
if(empCode != null && empCode.trim().length() > 0)
*/
if(currentColumn.equalsIgnoreCase("emp_code"))
{
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
System.out.println("empCode::::"+empCode);
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 = ? ";
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>");
empName=rs.getString("EMP_NAME");
}
else
{
valueXmlString.append("<emp_name><![CDATA[").append("<![CDATA[]]>").append("]]></emp_name>\r\n");
closePstmtRset(pstmt, rs);
System.out.println("Emp name :="+empName);
}//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>");
}
//valueXmlString.append("</Detail1>\r\n");
valueXmlString.append("</Detail>\r\n");
System.out.println("xml string ****** "+valueXmlString.toString());
break;
case 2 :
/* Searching the dom for the incoming column value start*/
parentNodeList = dom.getElementsByTagName("Detail2");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
ctr = 0;
childNodeListLength = childNodeList.getLength();
//valueXmlString.append("<Detail2>\r\n");
valueXmlString.append("<Detail>\r\n");
if (currentColumn == null || currentColumn.trim().length() == 0)
else
{
valueXmlString.append("<emp_name><![CDATA[").append("<![CDATA[]]>").append("]]></emp_name>\r\n");
}//end of empCode item change
}
//valueXmlString.append("</Detail1>\r\n");
valueXmlString.append("</Detail>\r\n");
System.out.println("xml string ****** "+valueXmlString.toString());
break;
case 2 :
/* Searching the dom for the incoming column value start*/
parentNodeList = dom.getElementsByTagName("Detail2");
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
{
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>");
closePstmtRset(pstmt, rs);
System.out.println("shift ::: :="+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.......");
valueXmlString.append("<workshft_descr><![CDATA[").append(checkNull(descr)).append("]]></workshft_descr>");
}
if(conn != null)
else
{
conn.close();
conn = null;
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("<workshft_descr><![CDATA[").append(checkNull(descr)).append("]]></workshft_descr>");
}//end of empCode item change
}
}
System.out.println("value returned is last **************************** "+ valueXmlString.toString());
return valueXmlString.toString();
//valueXmlString.append("</Detail2>\r\n");
valueXmlString.append("</Detail>\r\n");
break;
}
valueXmlString.append("</Root>\r\n");
}
catch(Exception e)
{
System.out.println("Exception :[ShiftChangeIc][itemChanged] BEFORE finally==>\n"+e.getMessage());
throw new ITMException(e);
}
private boolean isRecordExist(Connection conn , String tableName, String condition)
finally
{
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;
}
else
{
if(pstmt != null)
{
isExist=false;
pstmt.close();
pstmt = null;
System.out.println("finally pstmt Closed.......");
}
if(rs != null)
{
rs.close();
rs = null;
System.out.println("finally rs Closed.......");
}
if(pstmt != null)
if(conn != null)
{
pstmt.close();
pstmt = null;
conn.close();
conn = null;
System.out.println("finally Connection Closed.......");
}
}
catch(Exception ex)
catch(SQLException e)
{
ex.printStackTrace();
}
finally
System.out.println("Exception :[ShiftChangeIc][itemChanged::finally] :==>\n"+e.getMessage());
e.printStackTrace();
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
{
if(rs != null)
{
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)
recCount=rs.getInt(1);
}
if(recCount>0)
{
input = "";
}
isExist=true;
}
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
{
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)
{
rs.close();
......@@ -688,57 +650,106 @@ public class ShiftChangeIc extends ValidatorEJB implements ShiftChangeIcLocal ,
pstmt = null;
}
}
catch(Exception ex)
catch(Exception e)
{
ex.printStackTrace();
}
finally
e.printStackTrace();
}
}
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
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e)
{
e.printStackTrace();
}
msgType = rs.getString("MSG_TYPE");
}
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.........");
try
ex.printStackTrace();
}
finally
{
try
{
if (rset != null)
if(rs != null)
{
rset.close();
rset = null;
rs.close();
rs = null;
}
if (pstmt != null)
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch (Exception exp)
catch(Exception e)
{
exp.printStackTrace();
throw new Exception(exp);
e.printStackTrace();
}
}
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]
* */
\ No newline at end of file
......@@ -2,30 +2,28 @@ package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import java.util.*;
import java.text.*;
import java.sql.*;
import org.w3c.dom.*;
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.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import javax.naming.InitialContext;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
/*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]
//@javax.ejb.Stateless
......@@ -70,12 +68,12 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
}
return rtrStr;
}
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);
String errCode = "";
String errString = "";
String siteCode= "" ;
......@@ -88,7 +86,7 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
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");
boolean bappend = false ;
String frstrDate="";
String tostrDate="";
......@@ -97,9 +95,9 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
Date fromDate= null;
Date toDate= null;
ITMDBAccessEJB itmDbAccess = null;
java.sql.Timestamp jSqlFromDate = null;
java.sql.Timestamp jSqlToDate = null;
Timestamp jSqlFromDate = null;
Timestamp jSqlToDate = null;
System.out.println("jSqlToDate:::::"+jSqlToDate);
try
{
genericUtility = new E12GenericUtility();
......@@ -116,44 +114,52 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
//conn = connDriver.getConnectDB("DriverITM");
conn=getConnection();
//Added by Dipesh on[06/08/2019][End]
siteCode = checkNull(genericUtility.getColumnValue("site_code",headerDom));
empCode= checkNull(genericUtility.getColumnValue("emp_code",headerDom,"1"));
frstrDate= checkNull( genericUtility.getColumnValue("from_dt",headerDom,"1"));
tostrDate= checkNull( genericUtility.getColumnValue("to_dt",headerDom,"1"));
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 , "
+" WORK_SHIFT.SHIFT ,"
+" WORKSHFT.DESCR ,"
+" WORK_SHIFT.FROM_DT ,"
+" WORK_SHIFT.TO_DT ,"
+" EMPLOYEE.EMP_FNAME ,"
+" EMPLOYEE.EMP_LNAME ,"
+" EMPLOYEE.DEPT_CODE ,"
+" EMPLOYEE.EMP_SITE ,"
+" WORK_SHIFT.CHG_DATE ,"
+" WORK_SHIFT.CHG_USER ,"
+" WORK_SHIFT.CHG_TERM ,"
+" WORK_SHIFT.REAL_SHIFT ,"
+" WORK_SHIFT.PATTERN_CODE "
+" FROM EMPLOYEE ,"
+" WORK_SHIFT ,"
+" WORKSHFT "
+" WHERE WORK_SHIFT.EMP_CODE = EMPLOYEE.EMP_CODE AND "
+" WORK_SHIFT.SHIFT = WORKSHFT.SHIFT "
+" AND WORK_SHIFT.EMP_CODE = ? "
+" AND WORK_SHIFT.FROM_DT = ? "
+" AND WORK_SHIFT.TO_DT = ? "
+" ORDER BY EMPLOYEE.EMP_CODE ASC, "
+" WORK_SHIFT.FROM_DT ASC ,"
+" WORK_SHIFT.TO_DT ASC ";
+" WORK_SHIFT.SHIFT ,"
+" WORKSHFT.DESCR ,"
+" WORK_SHIFT.FROM_DT ,"
+" WORK_SHIFT.TO_DT ,"
+" EMPLOYEE.EMP_FNAME ,"
+" EMPLOYEE.EMP_LNAME ,"
+" EMPLOYEE.DEPT_CODE ,"
+" EMPLOYEE.EMP_SITE ,"
+" WORK_SHIFT.CHG_DATE ,"
+" WORK_SHIFT.CHG_USER ,"
+" WORK_SHIFT.CHG_TERM ,"
+" WORK_SHIFT.REAL_SHIFT ,"
+" WORK_SHIFT.PATTERN_CODE "
+" FROM EMPLOYEE ,"
+" WORK_SHIFT ,"
+" WORKSHFT "
+" WHERE WORK_SHIFT.EMP_CODE = EMPLOYEE.EMP_CODE AND "
+" WORK_SHIFT.SHIFT = WORKSHFT.SHIFT "
+" AND WORK_SHIFT.EMP_CODE = ? "
+" AND WORK_SHIFT.FROM_DT = ? "
+" AND WORK_SHIFT.TO_DT = ? "
+" ORDER BY EMPLOYEE.EMP_CODE ASC, "
+" WORK_SHIFT.FROM_DT ASC ,"
+" WORK_SHIFT.TO_DT ASC ";
pstmt = conn.prepareStatement(sql);
System.out.println("After prepareStatement ..." + sql);
......@@ -163,13 +169,14 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
rs = pstmt.executeQuery();
int cnt = 0;
int i = 0;
//int i = 0;
int i = 1;
if(rs.next())
{
frstrDate = genericUtility.getValidDateString(rs.getString("FROM_DT"), genericUtility.getDBDateFormat(), genericUtility.getApplDateFormat());
tostrDate = genericUtility.getValidDateString(rs.getString("TO_DT"), genericUtility.getDBDateFormat(), genericUtility.getApplDateFormat());
fromDate = simpleDateFormat.parse(frstrDate);
toDate = simpleDateFormat.parse(tostrDate);
......@@ -198,28 +205,28 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
retTabSepStrBuff.append("</Detail2>\r\n");
i++;
fromDate = addDays(fromDate, 1);
// increment the day by 1
}
retTabSepStrBuff.append("</Header0>\r\n");
retTabSepStrBuff.append("</group0>\r\n");
retTabSepStrBuff.append("</DocumentRoot>\r\n");
resultString = retTabSepStrBuff.toString();
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.
resultString = "";
System.out.println("Result String when tran id is wrong --->>>>>>" +resultString);
}
closePstmtRset(pstmt , rs);
}
catch (SQLException e)
{
......@@ -233,7 +240,7 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
}
finally
{
try
{
retTabSepStrBuff = null;
......@@ -242,12 +249,12 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
pstmt.close();
pstmt=null;
}
if(rs != null)
{
rs.close();
rs = null;
}
if(conn != null)
{
......@@ -266,328 +273,274 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
System.out.println("----Come here 2");
return resultString;
}
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException
{
System.out.println("xtraParams:::------->>>>>>>>>>>>>>"+ xtraParams );
System.out.println("xmlString:::------->>>>>>>>>>>>>>"+ xmlString );
System.out.println("xmlString2:::------->>>>>>>>>>>>>>"+ xmlString2 );
System.out.println("windowName:::------->>>>>>>>>>>>>>"+ windowName );
String retStr = "";
Document detailDom = null;
Document headerDom = null;
//GenericUtility genericUtility = GenericUtility.getInstance();
try
{
genericUtility = new E12GenericUtility();
if(xmlString != null && xmlString.trim().length()!=0)
{
headerDom = genericUtility.parseString(xmlString);
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);
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException
{
System.out.println("xtraParams:::------->>>>>>>>>>>>>>"+ xtraParams );
System.out.println("xmlString:::------->>>>>>>>>>>>>>"+ xmlString );
System.out.println("xmlString2:::------->>>>>>>>>>>>>>"+ xmlString2 );
System.out.println("windowName:::------->>>>>>>>>>>>>>"+ windowName );
String retStr = "";
Document detailDom = null;
Document headerDom = null;
//GenericUtility genericUtility = GenericUtility.getInstance();
try
{
genericUtility = new E12GenericUtility();
if(xmlString != null && xmlString.trim().length()!=0)
{
headerDom = genericUtility.parseString(xmlString);
System.out.println("headerDom" + headerDom);
}
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() + ":");
e.printStackTrace();
retStr = genericUtility.createErrorString(e);
throw new ITMException(e);
detailDom = genericUtility.parseString(xmlString2);
System.out.println("detailDom" + detailDom);
}
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("header Dom------------------->"+headerDom);
System.out.println("detailDom------------------->"+detailDom);
String childNodeName = "";
String siteCode = "";
String empCode = "";
String shift = "";
String workshftDescr = null;
String empFname = null;
String empLname= null;
String deptCode =null;
String empSite= null;
String chgDate=null;
String chgTerm= null;
String chgUser = "";
String realShift= null;
String patternCode=null;
String errString=null;
String userId="";
String fromDate = "";
String toDate = "";
Date tDate = null ;
Date fDate = null;
String retString = "VPSUCC1";
String prevSiteCode ="";
String prevTodate ="";
String PrevFromdate = "";
int counter = 0;
Connection conn = null;
ResultSet rs = null;
PreparedStatement pstmt = null;
String isql = "";
int updCnt = 0;
int parentNodeListLength = 0;
int childNodeListLength = 0;
NodeList parentList = null;
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
ArrayList <String> shiftArr = null;
ArrayList <String> frmDateArr = null;
ArrayList <String> toDateArr = null;
ArrayList <String> shiftValues = null;
HashMap<Integer, ArrayList<String>> insertMap = new HashMap<Integer, ArrayList<String>>() ;
PreparedStatement existCheckPstmt = null;
PreparedStatement existUpdatePstmt = null;
PreparedStatement insertPstmt = null;
ResultSet existCheckRs = null;
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();
System.out.println("Exception :ShiftChangePrc :process(String xmlString, String xmlString2, String windowName, String xtraParams):" + e.getMessage() + ":");
e.printStackTrace();
retStr = genericUtility.createErrorString(e);
throw new ITMException(e);
}
return retStr;
}
public String process(Document headerDom, Document detailDom, String windowName, String xtraParams) throws RemoteException,ITMException
{
System.out.println("ShiftChangePrc process(Document,Document,windowName,xtraParams CALLED..."+ windowName);
System.out.println("header Dom------------------->"+headerDom);
System.out.println("detailDom------------------->"+detailDom);
String childNodeName = "";
String siteCode = "";
String empCode = "";
String shift = "";
String workshftDescr = null;
String empFname = null;
String empLname= null;
String deptCode =null;
String empSite= null;
String chgDate=null;
String chgTerm= null;
String chgUser = "";
String realShift= null;
String patternCode=null;
String errString=null;
String userId="";
String fromDate = "";
String toDate = "";
Date tDate = null ;
Date fDate = null;
String retString = "VPSUCC1";
String prevSiteCode ="";
String prevTodate ="";
String PrevFromdate = "";
int counter = 0;
Connection conn = null;
ResultSet rs = null;
PreparedStatement pstmt = null;
String isql = "";
int updCnt = 0;
int parentNodeListLength = 0;
int childNodeListLength = 0;
NodeList parentList = null;
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
ArrayList <String> shiftArr = null;
ArrayList <String> frmDateArr = null;
ArrayList <String> toDateArr = null;
ArrayList <String> shiftValues = null;
HashMap<Integer, ArrayList<String>> insertMap = new HashMap<Integer, ArrayList<String>>() ;
PreparedStatement existCheckPstmt = null;
PreparedStatement existUpdatePstmt = null;
PreparedStatement insertPstmt = null;
ResultSet existCheckRs = null;
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());
ITMDBAccessLocal itmDBAccessEJB = (ITMDBAccessLocal)ctx.lookup("ibase/ITMDBAccessEJB/local");*/
itmDbAccess = new ITMDBAccessEJB();
//Added by Dipesh on[06/08/2019][End]
System.out.println(" I N S I D E C A S E ");
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"chgTerm"));
String empCodeDom = checkNull(genericUtility.getColumnValue("emp_code",headerDom));
String fromDateDom = checkNull(genericUtility.getColumnValue("from_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);
if(detailDom == null || genericUtility.getColumnValue("emp_code",headerDom) ==null || genericUtility.getColumnValue("from_dt",headerDom) ==null|| genericUtility.getColumnValue("to_dt",headerDom) ==null)
itmDbAccess = new ITMDBAccessEJB();
//Added by Dipesh on[06/08/2019][End]
System.out.println(" I N S I D E C A S E ");
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"chgTerm"));
String empCodeDom = checkNull(genericUtility.getColumnValue("emp_code",headerDom));
String fromDateDom = checkNull(genericUtility.getColumnValue("from_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);
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]
//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;
continue;
}
else if (childNode.getFirstChild() == null)
{
continue;
}
utilFromDate = simpleDateFormat.parse(fromDateDom);
utilToDate = simpleDateFormat.parse(toDateDom);
System.out.println("childNode----"+childNode+"Name ----= "+childNodeName+"Chid value----- ="+checkNull(childNode.getFirstChild().getNodeValue()));
//while(fromDate.before(toDate))
int noOfDaysBetweenDates = 0;
while(utilFromDate.compareTo(utilToDate) <= 0)
if(childNodeName.equalsIgnoreCase("shift"))
{
noOfDaysBetweenDates++;
utilFromDate = addDays(utilFromDate, 1);
shift = checkNull(childNode.getFirstChild().getNodeValue());
//shiftArr.add(checkNull(childNode.getFirstChild().getNodeValue().trim()));
}
//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)
else if(childNodeName.equalsIgnoreCase("from_dt"))
{
//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;
frDate = checkNull(childNode.getFirstChild().getNodeValue());
//frmDateArr.add(checkNull(childNode.getFirstChild().getNodeValue().trim()));
}
else if (parentNodeListLength != noOfDaysBetweenDates)
else if(childNodeName.equalsIgnoreCase("real_shift"))
{
//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;
realShift = checkNull(childNode.getFirstChild().getNodeValue() );
}
else if(childNodeName.equalsIgnoreCase("pattern_code"))
{
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();
if (previousShift == null || previousShift.trim().length() == 0)
{
previousShift = shift.trim();
shiftFromDate = frDate;
shiftToDate = frDate;
}
else
{
if (previousShift.equals(shift))
{
shiftToDate = frDate;
}
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;
}
} //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;
}
}
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
{
jSqlFromDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(shiftFromDate,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 ,
{
existCnt = existCheckRs.getInt(1);
}
if (existCheckRs != null)
{
existCheckRs.close();
existCheckRs = null;
existCheckPstmt.clearParameters();
}
existCheckRs.close();
existCheckRs = null;
existCheckPstmt.clearParameters();
if (existCnt > 0)
{
existUpdatePstmt.setString(1 , previousShift);
......@@ -614,7 +564,7 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
existUpdatePstmt.setTimestamp(4,jSqlFromDate);
existCnt = existUpdatePstmt.executeUpdate();
existUpdatePstmt.clearParameters();
System.out.println("existUpdatePstmt*----*"+existUpdatePstmt);
System.out.println("existUpdatePstmt----"+existUpdatePstmt);
}
else
{
......@@ -628,199 +578,276 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
insertPstmt.setString(8 , patternCode);
existCnt = insertPstmt.executeUpdate();
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 = null;
}*/
if (existCheckPstmt != null)
{
existCheckPstmt.close();
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 (existCheckPstmt != null)
{
existCheckPstmt.close();
existCheckPstmt = null;
}
catch (Exception e)
if (existUpdatePstmt != null)
{
try
{
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);
}
existUpdatePstmt.close();
existUpdatePstmt = null;
}
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();
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]
}
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();
rset = null;
rs.close();
rs = null;
}
if (pstmt != 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 + "] ");
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();
throw new Exception(exp);
pstmt.close();
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
{
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)
{
rs.close();
......@@ -831,36 +858,16 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
pstmt.close();
pstmt = null;
}
}
catch(Exception ex)
{
ex.printStackTrace();
}
finally
catch(Exception e)
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e)
{
e.printStackTrace();
}
}
System.out.print("---------Final--isExist-------"+isExist);
return isExist;
}
e.printStackTrace();
}
}
System.out.print("---------Final--isExist-------"+isExist);
return isExist;
}
}
/*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