Commit 8f4d45b3 authored by ysawant's avatar ysawant

*Migrated component of Tour Programme menu

AttendanceProcess.java
tour11.xml
tour12.xml
tour21.xml
tour22.xml
d_tour_brow.srd
d_tour_edit.srd
TourApprove.java
TourApproveErp.java
TourApproveErpLocal.java
TourApproveErpRemote.java
TourApproveLocal.java
TourApproveRemote.java
TourCnc.java
TourCncErp.java
TourCncErpLocal.java
TourCncErpRemote.java
TourCncLocal.java
TourCncRemote.java
TourIC.java
TourICLocal.java
TourICRemote.java
w_tour.sql
d_tourdet_brow.srd
d_tourdet_edit.srd
TourProgramme.png
TourProgrammewht.png


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@212571 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2f29226c
----------------------------------------------------- TRANSETUP
Insert into TRANSETUP (TRAN_WINDOW,SAVE_FLAG,VAL_FLAG,KEY_FLAG,KEY_STRING,UDF_1,UDF_2,UDF_3,UDF_4,UDF_5,REPEATE_ADD,CHG_DATE,CHG_USER,CHG_TERM,EDI_OPTION,SITE_ACC_COL,CONFIRM_COL,CONFIRM_VAL,REPEAT_ADD_DET,REPEATADDDET,LOAD_MODE,AUTO_CONFIRM,LEDG_POST_CONF,CHG_DATE_ON_CONF,TRAN_ID_COL,MAIL_OPTION,CONFIRM_MODE,GARBAGE_OPT,VAL_FLAG_EDI,VERIFY_PASSWORD,CUST_ACC_COL,SALES_PERS_ACC_COL,SUPP_ACC_COL,ITEM_SER_ACC_CODE,EMP_ACC_COL,ITEM_SER_ACC_COL,WORKFLOW_OPT,TABLE_NAME,APPLICATION,TABLE_DESC,TRAN_DATE_COL,TRAN_ID__FROM,TRAN_ID__TO,TABLE_NAME_DET1,TABLE_NAME_DET2,TABLE_NAME_DET3,MULTITIRE_OPT,REF_SER,VIEW_MODE,TAX_FORMS,SIGN_STATUS,USER_TRAN_WINDOW,CUSTOM_PREVIEW_OBJ,IGNOREERRLIST_ONLOAD,CHILDDATA_ARGOPT,EDIT_TMPLT,WRKFLW_INIT,EDITTAX,FORMAL_ARGS,AUDIT_TRAIL_OPT,EDIT_OPT,CACHE_OPT,OPTIMIZE_MODE,EDIT_EXPR,RATE_COL,QTY_COL,EDIT_EXPR_INP,RCP_CACHE_STATUS,PRINT_CONTROL,TRANSFER_MODE,PROFILE_ID__RES,TRAN_COMPL_MSG,PERIOD_OPTION,WRKFLW_PRIORITY,EXEC_TYPE,DISP_META_DATA,ALLOW_ATTACH,START_FORM,ISATTACHMENT,HEADER_FORM_NO,CONFIRM_DATE_COL,CONFIRM_BY_COL,MSG_ONSAVE,WF_STATUS,RESTART_FORM,CMS_PATH,BROW_DATA_DEF,DEF_VIEW,VIEW_OPTS,ISGWTINITIATED,DEFAULT_DATA_ROW,IN_WF_VAL,IN_WF_COL,CANCEL_VAL,CANCEL_COL,THUMB_ALT_COL,THUMB_IMAGE_COL,THUMB_OBJ,ATTACH_COUNT_MIN,FUNCTION_TYPE,COMPL_ACTION,DEFAULT_EDITOR,MSG_NO,OBJ_TYPE,STATUS_COL,ENABLE_EDITOR,OFFLINE_OPT,CLOSE_COL,CLOSE_VAL) values ('w_tour','2','2','A','_spwork_site,TO,_ppdate_from,seq04',null,null,null,null,null,'Y',to_date('26-05-99','DD-MM-RR'),'BASE ','1 ','0','EMPLOYEE.WORK_SITE','status','A',null,null,null,null,'N','N','tour_id','0','0',null,null,null,null,null,null,null,null,null,'0','TOUR','ADM',null,null,null,null,null,null,null,null,'E-TOUR','F',null,null,null,null,null,null,null,null,null,null,'0','3',null,null,' OR TOUR.STATUS IN( ''X'' , ''C'',''O'') OR TOUR.WRKFLW_STATUS IS NOT NULL',null,null,null,null,null,null,null,null,'W',null,null,null,null,null,null,null,null,null,null,null,null,null,'Y',null,null,null,null,null,null,'C','status',null,null,null,null,null,null,'compact',null,'C',null,'C',null,null,null);
----------------------------------------------------- OBJ_FORMS
Insert into OBJ_FORMS (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY,DUPLICATE_ADD,DEFAULT_ROW_CNT,FREEZE_COL_POS,IS_MANDATORY,TRAN_ID_COL,SELECTION_OPT,KEY_INFO,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,FORM_NAME,FORM_ICON,FORM_VIEW_OPTS,X_COLUMN,Y_COLUMN,ACTION_ARG) values ('w_tour','Tour','d_tour_brow','d_tour_edit',null,null,null,null,'1','F',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'DetailForm.png',null,null,null,null);
Insert into OBJ_FORMS (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY,DUPLICATE_ADD,DEFAULT_ROW_CNT,FREEZE_COL_POS,IS_MANDATORY,TRAN_ID_COL,SELECTION_OPT,KEY_INFO,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,FORM_NAME,FORM_ICON,FORM_VIEW_OPTS,X_COLUMN,Y_COLUMN,ACTION_ARG) values ('w_tour','Tour Detail','d_tourdet_brow','d_tourdet_edit',null,null,null,null,'2','T',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'DetailForm.png',null,null,null,null);
-----------------Update Quaries
update OBJ_FORMS set DISP_METADATA =
'<html>
<span style="white-space: normal !important; word-break: break-word; "><b>{emp_fname} {emp_lname}({emp_code})</b> <br/>
Tour ID :<b>({tour_id})</b> , Status :<b> ({status})</b> , Date From :<b>({date_from}) , Date To :<b>({date_to})</b>
</span>
</html>' where WIN_NAME= 'w_tour' and FORM_NO = '1';
update OBJ_FORMS set disp_metadata='
<html>
<span style="white-space: normal !important; word-break: break-word; ">
Tour ID :<b>({tour_id})</b> , Line No Place :<b>{line_no__plan}</b>
<br/>Station Code :<b>({stan_code})</b>, Place :<b>({to_place})</b>
</html>' where WIN_NAME='w_tour' and FORM_NO = '2';
------------------------------------------------------ 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 ('ADH',3,10,2,0,0,'w_tour','Tour Programme','Tour Programme','ADH.3.10.2.0.0','TourProgramme.png','TourProgrammewht.png',null,'T',null,null,null,'B',null,null,'B','0');
update ITM2MENU set ICON_PATH='TourProgramme.png', CLOSE_ICON='TourProgrammewht.png' where WIN_NAME='w_tour';
----------------------------------------------------- OBJ_ACTIONS
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,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,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA) values ('tour',5,'F','a','pre_confirm_erp','Confirmation','Approve','approve.gif','1','2',null,'U',null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,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,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA) values ('tour',6,'X','a','pre_cancel_erp','Cancellation','Cancel','cancel.gif','1','2',null,'U',null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,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,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA) values ('tour',1,'A','a','a','Adding New','Add','add.gif','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,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,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA) values ('tour',2,'E','a','a','Editing Existing Record','Edit','edit.gif','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,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,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA) values ('tour',21,'Q','1','audit_trail','View Audit Trail','View Audit','menu.bmp','1','1','1','U',null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,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,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA) values ('tour',22,'O','1','export_excel','Export Excel','Export','Download.gif','1','1','1','U',null,null,null,null,null,null,null,null,null,null,null,null);
-----------------Update Quaries
update OBJ_ACTIONS set IMAGE='ibase/resource/objaction/add.svg',DISPLAY_MODE='0' where OBJ_NAME='tour' and TITLE = 'Add';
update OBJ_ACTIONS set IMAGE='ibase/resource/objaction/edit.svg',DISPLAY_MODE='0' where OBJ_NAME='tour' and TITLE = 'Edit';
update OBJ_ACTIONS set IMAGE = 'ibase/resource/objaction/Audit-trail.svg',RIGHTS_CHAR = 'X',SHOW_IN_PANEL = '1' ,DISPLAY_MODE = '1' where OBJ_NAME = 'tour' and TITLE = 'View Audit';
update OBJ_ACTIONS set IMAGE = 'ibase/resource/objaction/exprtExl.svg', SERVICE_CODE = 'a',INTERACTIVE = 'a', RIGHTS_CHAR = 'B', TITLE = 'Export2XLS',SERVICE_HANDLER = null,PLACEMENT = null, ACTION_TYPE = 'S',DISPLAY_MODE = '1' where OBJ_NAME = 'tour' and (DESCRIPTION = 'Export Excel' OR DESCRIPTION = 'Export To Excel');
update OBJ_ACTIONS set IMAGE = 'ibase/resource/objaction/confirm.svg', DISPLAY_MODE = '1' where OBJ_NAME = 'tour' and TITLE = 'Approve';
update OBJ_ACTIONS set IMAGE='ibase/resource/objaction/cancel.svg', DISPLAY_MODE='1' where OBJ_NAME ='tour' and TITLE='Cancel';
----------------------------------------------------- OBJ_LINKS
Insert into OBJ_LINKS (OBJ_NAME,FORM_NO,FIELD_NAME,TARGET_OBJ_NAME,LINK_FORM_NAME,LINK_TITLE,LINK_URI,LINK_TYPE,LINK_ARG,UPDATE_FLAG,LINK_NAME,RIGHTS_CHAR,IMAGE,SHOW_IN_PANEL,SHORTCUT_CHAR,AUTO_INVOKE,SWIPE_POSITION,TITLE,DESCR,SHOW_CONFIRM,DISPLAY_MODE,LINE_NO,LINK_ID,REC_SPECIFIC) values ('tour','1','home_upload',' ',' ','Upload Utility','/ibase/webitm/jsp/E12UploadTemplate.jsp?reset=true','3','tour.String:OBJ_NAME,Tour Programme.String:OBJ_DESC,fromHomePage.String:FROM_HOMEPAGE',null,null,'U',null,'3',null,null,null,null,'Upload Utility',null,'3',1,null,1);
-----------------Update Quaries
update OBJ_LINKS set IMAGE='ibase/resource/objaction/ulpoad_utility.svg' where OBJ_NAME='tour' and LINK_TITLE='Upload Utility';
----------------------------------------------------- SYSTEM_EVENTS
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,OVERWRITE_CORE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('tour','audit_trail','1','project_audit_trail_adm',null,to_date('2018-02-14','RRRR-MM-DD'),'VAIBHAV ','VAIBHAV','2','0',null,null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,OVERWRITE_CORE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('tour','export_excel','1','export_excel_adm',null,to_date('2018-02-03','RRRR-MM-DD'),'VAIBHAV ','VAIBHAV',null,null,null,null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,OVERWRITE_CORE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('tour','post_item_change','1','poic_adm_default_1',null,to_date('2007-12-04','RRRR-MM-DD'),'Asutosh ','User6','2','0','WSR','nvo_bo_tour',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,OVERWRITE_CORE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('tour','act_cancel','1','prcm_default_1',null,to_date('2007-12-04','RRRR-MM-DD'),'Aviprash ','Base216','2','0','WSR','nvo_business_object_tour_cnc',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,OVERWRITE_CORE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('tour','pre_validate','1','prv_adm_default_1',null,to_date('2007-12-04','RRRR-MM-DD'),'Asutosh ','User6','2','0','WSR','nvo_bo_tour',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,OVERWRITE_CORE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('tour','post_validate','1','post_gen_val',null,to_date('2007-12-04','RRRR-MM-DD'),'system ','system','2','0','EJB','GenValidate',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,OVERWRITE_CORE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('tour','pre_approve','1','prcm_default_1',null,to_date('2007-12-04','RRRR-MM-DD'),'Base ','Base','2','0','WSR','nvo_business_object_tour_approve',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,OVERWRITE_CORE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('tour','pre_cancel','1','prcm_default_1',null,to_date('2007-12-04','RRRR-MM-DD'),'Aviprash ','Base216','2','0','WSR','nvo_business_object_tour_cnc',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,OVERWRITE_CORE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('tour','pre_confirm_erp','1','prcm_adm_default_1',null,to_date('2015-05-06','RRRR-MM-DD'),'BASE ','BASE','2','0','WSR','nvo_business_object_tour_approve_erp',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,OVERWRITE_CORE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('tour','pre_cancel_erp','1','prcm_adm_default_1',null,to_date('2015-05-06','RRRR-MM-DD'),'BASE ','BASE','2','0','WSR','nvo_business_object_tour_cnc_erp',null);
-----------------Update Quaries
update SYSTEM_EVENTS set SERVICE_CODE='prcm_default_ejb',COMP_TYPE='JB',COMP_NAME='ibase.webitm.ejb.adm.adv.TourCnc' where OBJ_NAME='tour' and EVENT_CODE='act_cancel';
update SYSTEM_EVENTS set SERVICE_CODE='poic_default_ejb',COMP_TYPE='JB',COMP_NAME='ibase.webitm.ejb.adm.TourIC' where OBJ_NAME='tour' and EVENT_CODE='post_item_change';
update SYSTEM_EVENTS set SERVICE_CODE='prcm_default_ejb',COMP_TYPE='JB',COMP_NAME='ibase.webitm.ejb.adm.adv.TourApprove' where OBJ_NAME='tour' and EVENT_CODE='pre_approve';
update SYSTEM_EVENTS set SERVICE_CODE='prcm_default_ejb',COMP_TYPE='JB',COMP_NAME='ibase.webitm.ejb.adm.adv.TourCnc' where OBJ_NAME='tour' and EVENT_CODE='pre_cancel';
update SYSTEM_EVENTS set SERVICE_CODE='prcm_adm_default_ejb',COMP_TYPE='JB',COMP_NAME='ibase.webitm.ejb.adm.adv.TourCncErp' where OBJ_NAME='tour' and EVENT_CODE='pre_cancel_erp';
update SYSTEM_EVENTS set SERVICE_CODE='prcm_adm_default_ejb',COMP_TYPE='JB',COMP_NAME='ibase.webitm.ejb.adm.adv.TourApproveErp' where OBJ_NAME='tour' and EVENT_CODE='pre_confirm_erp';
update SYSTEM_EVENTS set SERVICE_CODE='prv_default_ejb',COMP_TYPE='JB',COMP_NAME='ibase.webitm.ejb.adm.TourIC' where OBJ_NAME='tour' and EVENT_CODE='pre_validate';
---------------------------------------------------- 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 ('project_audit_trail','calling audit log jsp','/ibase/webitm/jsp/ITMAuditForms.jsp',null,'doPost',null,null,null,null,to_date('14-02-17','DD-MM-RR'),'BASE ','BASE','http://NvoServiceurl.org','doPostResult','http://NvoServiceurl.org/doPost');
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION) values ('export_excel','Calling Export To Excel','/ibase/jsp/E12ExportToExcel.jsp',null,'doPost',null,null,null,null,to_date('12-08-14','DD-MM-RR'),'DANISH ','Base143',null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION) values ('poic_default_ejb','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 ('prcm_default_ejb','Action To confirm indent requisition','http://localhost:9090/axis/services/ActionHandlerService','Base','confirm','String','S',null,null,to_date('24-01-18','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 ('prcm_adm_default_ejb','Action To confirm','http://localhost:9090/axis/services/ActionHandlerService','Base Information','actionHandler','String','S',null,null,to_date('12-11-08','DD-MM-RR'),'jaimin ','BASE207',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 ('project_audit_trail',1,'COMPONENT_TYPE','I',null,'S',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA','JB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('project_audit_trail',2,'COMPONENT_NAME','I',null,'S',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA','ibase.webitm.ejb.fin.adv.MiscPayAct');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('project_audit_trail',3,'XML_DATA','l',null,'S',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('project_audit_trail',4,'XML_DATA_1','l',null,'S',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('project_audit_trail',5,'XML_DATA_ALL','l',null,'S',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('project_audit_trail',6,'OBJ_CONTEXT','l',null,'S',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('project_audit_trail',7,'XTRA_PARAMS','l',null,'S',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('project_audit_trail',8,'DB_CONN','l',null,'S.Connection',null,to_date('22-11-16','DD-MM-RR'),'SFA ','SFA',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('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');
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',3,'XML_DATA','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',4,'XML_DATA_ALL','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',5,'XML_DATA_ALL','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',6,'OBJ_CONTEXT','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',7,'WIN_NAME','I',null,'S',null,to_date('21-05-16','DD-MM-RR'),'VAIBHAV ','VAIBHAV',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_gen_val',8,'XTRA_PARAMS','I',null,'S',null,to_date('21-05-16','DD-MM-RR'),'VAIBHAV ','VAIBHAV',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_gen_val',9,'ACTION','I',null,'S',null,to_date('19-05-15','DD-MM-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prcm_default_ejb',1,'COMPONENT_TYPE','I','Component Type','S',null,to_date('01-06-12','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 ('prcm_default_ejb',2,'COMPONENT_NAME','I','Component Name','S',null,to_date('01-06-12','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 ('prcm_default_ejb',3,'<tran_id>','I','tranid','B.String',null,to_date('01-06-12','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 ('prcm_default_ejb',4,'XTRA_PARAMS','I','Extra Arguments','S',null,to_date('01-06-12','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 ('prcm_default_ejb',5,'FORCED_FLAG','I','Forced Flag','S',null,to_date('01-06-12','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 ('prcm_adm_default_ejb',1,'COMPONENT_TYPE','I','Component Type','C.String',null,to_date('03-04-09','DD-MM-RR'),'skale ','Base34 ','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 ('prcm_adm_default_ejb',2,'COMPONENT_NAME','I','Component Name','C.String',null,to_date('03-04-09','DD-MM-RR'),'skale ','Base34 ','ibase.webitm.ejb.adm.adv.EmpMaritalStatusConf');
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 ('prcm_adm_default_ejb',3,'<tran_id>','I','tranid','C.String',null,to_date('03-04-09','DD-MM-RR'),'skale ','Base34 ',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 ('prcm_adm_default_ejb',4,'XTRA_PARAMS','I','Extra Arguments','S',null,to_date('03-04-09','DD-MM-RR'),'skale ','Base34 ',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 ('prcm_adm_default_ejb',5,'FORCED_FLAG','I','Forced Flag','S',null,to_date('03-04-09','DD-MM-RR'),'skale ','Base34 ',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);
----------------------------------------------------- OBJ_ITEMCHANGE
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('tour','1','date_from',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('tour','1','date_to',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('tour','1','emp_code',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('tour','1','emp_code__appr',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('tour','1','itm_default',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('tour','1','plan_id',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('tour','1','tour_ends','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('tour','1','tour_starts','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('tour','2','itm_default',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('tour','2','line_no__plan',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('tour','2','stan_code',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)
values ('EMP_CODE','W_TOUR','Select emp_code, emp_fname, emp_mname, emp_lname, dept_code from employee where emp_site = ''?'' and nvl(status,'' '') !=''S''',null,'Employee Code',null,null,to_date('2018-05-15','RRRR-MM-DD'),'VAIBHAV ','VAIBHAV ','0',null,':login_site',null,null,null,'0',null,null,null,'0',null,null,null,null,null,null);
update POPHELP set THUMB_IMAGE_COL = 'emp_code', THUMB_ALT_COL = 'emp_fname', THUMB_OBJ = 'EmpImages', AUTO_FILL_LEN = '3', HELP_OPTION = '2', AUTO_MIN_LENGTH = '2' where FIELD_NAME='EMP_CODE' and MOD_NAME = 'W_TOUR';
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 ('PLAN_ID','W_TOUR','SELECT PLAN_ID,EMP_CODE from TOURPLAN',null,'Plan ID',null,null,to_date('22-10-00','DD-MM-RR'),'SUN ','HDP ','1',null,null,null,null,null,null,null,null,null,'2',null,'3','EmpImages','PLAN_ID','EMP_CODE','2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('STAN_CODE','W_TOUR','select ''Enter minimum three characters of station name'' as descr, '' '' as STAN_CODE,'' '' as state_code from dual where ''?'' is null or length(''?'') < 3 union all SELECT DESCR,STAN_CODE,state_code FROM STATION WHERE (upper(DESCR) LIKE UPPER(''%?%'') or stan_code like ''%?%'') and length(''?'') >= 3 ',null,'Station Master',0,0,to_date('27-05-09','DD-MM-RR'),'VISHAL ','VISHAL ','0',null,':stan_code,:stan_code,:stan_code,:stan_code,:stan_code',2,null,null,null,null,null,null,'2',null,'4','StationImages','stan_code','descr','3 ',null,null,null,null,null,null,null);
------------------------------------------------------ MESSAGES
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VEDATE ','Invalid From/To Dt.','Pls enter both From Dates','E','Y',null,null,null,to_date('06-03-99','DD-MM-RR'),'SUN ','1 ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VMDTNUL1 ','Invalid Date !','Date can not be empty.','E','Y',null,null,null,to_date('22-10-00','DD-MM-RR'),'SUN ','HDP ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VMEMP1 ','Invalid employee code','The employee code entered does not exist in the employee master. First you have to define it in the master','E','Y',null,null,null,to_date('15-03-02','DD-MM-RR'),'SUN ','98COMPUTER ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VMPLANID ','Error !','Plan ID not correct.','E','Y',null,null,null,to_date('22-10-00','DD-MM-RR'),'SUN ','HDP ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VMPLANLINE','Error !','No such plan line number present in plan detail.','E','Y',null,null,null,to_date('22-10-00','DD-MM-RR'),'SUN ','HDP ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTDTFR1 ','InValid Date !','From Date must be between From Date and To Date of Header .','E','Y',null,null,null,to_date('22-10-00','DD-MM-RR'),'SUN ','HDP ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTEMPNF ','Error !','Employee is defferent from tour plan.','E','Y',null,null,null,to_date('22-10-00','DD-MM-RR'),'SUN ','HDP ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTRELDT ','Invalid tour to date','The tour date cannot be greater then the relieve date','E','Y',null,null,null,to_date('13-09-01','DD-MM-RR'),'ADMIN ','97NILESH12 ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTSEPEMP ','Invalid Employee','Cannot Process as Separation present','E','Y',null,null,null,to_date('13-09-01','DD-MM-RR'),'ADMIN ','97NILESH12 ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTTOUR ','Invalid tour','The Employee already has a tour for the specified period','E','Y',null,null,null,to_date('28-06-01','DD-MM-RR'),'SUN ','96NAVEENK ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTTOUR0003','Invalid No of Days!','No of days can not blank and should be grater then 0','E','Y',null,null,null,to_date('17-08-15','DD-MM-RR'),'BASE ','BASE ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTTOUR0004','Invalid Place!','Place can not be null or empty, please enter place','E','Y',null,null,null,to_date('17-08-15','DD-MM-RR'),'BASE ','BASE ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTTOUR1 ','No of days check failed','No of days doesn''t match with the range provided','E','Y',null,null,null,to_date('28-08-06','DD-MM-RR'),'VISHAL ','VISHAL ',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VTNODAYS ','No of days','No. ofdays is either 0 or -ve','E','Y',null,null,null,to_date('20-10-00','DD-MM-RR'),'SEJAL ','SEJAL ',null,null);
-------------------------------------------------------Table Structure of TOURPLAN
create table TOURPLAN(
PLAN_ID CHAR(10) NOT NULL,EMP_CODE CHAR(10) NOT NULL,DATE_FROM DATE,DATE_TO DATE,
TOUR_DETAILS VARCHAR2(250),REMARKS VARCHAR2(50),CHG_DATE DATE,CHG_USER CHAR(10),CHG_TERM CHAR(15));
-------------------------------------------------------Table Structure of TOURPLANDET
create table TOURPLANDET(
PLAN_ID CHAR(10) NOT NULL,
LINE_NO NUMBER(3) NOT NULL,
STAN_CODE CHAR(5),
TO_PLACE VARCHAR2(20) NOT NULL,
TEL_NO VARCHAR2(15),
DATE_FROM DATE NOT NULL,
DATE_TO DATE NOT NULL,
PURPOSE VARCHAR2(30)
);
......@@ -126,16 +126,16 @@
</values>
</table_column>
<table_column>
<type size="15">char</type>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>emp_fname</name>
<dbname>employee.emp_fname</dbname>
<dbname>emp_fname</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>emp_lname</name>
<dbname>employee.emp_lname</dbname>
<dbname>emp_lname</dbname>
</table_column>
<table_column>
<type size="5">char</type>
......@@ -199,7 +199,7 @@
<name>aprv_date</name>
<dbname>tour.aprv_date</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;tour&quot; ) TABLE(NAME=&quot;employee&quot; ) COLUMN(NAME=&quot;tour.tour_id&quot;) COLUMN(NAME=&quot;tour.emp_code&quot;) COLUMN(NAME=&quot;tour.plan_id&quot;) COLUMN(NAME=&quot;tour.date_from&quot;) COLUMN(NAME=&quot;tour.date_to&quot;) COLUMN(NAME=&quot;tour.no_days&quot;) COLUMN(NAME=&quot;tour.tour_details&quot;) COLUMN(NAME=&quot;tour.remarks&quot;) COLUMN(NAME=&quot;tour.emp_code__appr&quot;) COLUMN(NAME=&quot;tour.status&quot;) COLUMN(NAME=&quot;employee.emp_fname&quot;) COLUMN(NAME=&quot;employee.emp_lname&quot;) COLUMN(NAME=&quot;employee.work_site&quot;) COLUMN(NAME=&quot;tour.tour_starts&quot;) COLUMN(NAME=&quot;tour.tour_ends&quot;) COLUMN(NAME=&quot;tour.start_time&quot;) COLUMN(NAME=&quot;tour.end_time&quot;) COLUMN(NAME=&quot;tour.chg_date&quot;) COLUMN(NAME=&quot;tour.chg_user&quot;) COLUMN(NAME=&quot;tour.chg_term&quot;) COLUMN(NAME=&quot;tour.aprv_date&quot;) JOIN (LEFT=&quot;tour.emp_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee.emp_code&quot; )WHERE( EXP1 =&quot;tour.date_from&quot; OP =&quot;&gt;=&quot; EXP2 =&quot;:frdate&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;tour.date_from&quot; OP =&quot;&lt;=&quot; EXP2 =&quot;:todate&quot; ) ) ARG(NAME = &quot;frdate&quot; TYPE = datetime) ARG(NAME = &quot;todate&quot; TYPE = datetime) </retrieve>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;tour&quot; ) TABLE(NAME=&quot;employee&quot; ) COLUMN(NAME=&quot;tour.tour_id&quot;) COLUMN(NAME=&quot;tour.emp_code&quot;) COLUMN(NAME=&quot;tour.plan_id&quot;) COLUMN(NAME=&quot;tour.date_from&quot;) COLUMN(NAME=&quot;tour.date_to&quot;) COLUMN(NAME=&quot;tour.no_days&quot;) COLUMN(NAME=&quot;tour.tour_details&quot;) COLUMN(NAME=&quot;tour.remarks&quot;) COLUMN(NAME=&quot;tour.emp_code__appr&quot;) COLUMN(NAME=&quot;tour.status&quot;) COMPUTE(NAME=&quot;FN_GET_EMP_NAME (~&quot;TOUR~&quot;.~&quot;EMP_CODE~&quot;, &apos;F1&apos;) as emp_fname&quot;) COMPUTE(NAME=&quot;FN_GET_EMP_NAME (~&quot;TOUR~&quot;.~&quot;EMP_CODE~&quot;, &apos;L1&apos;) as emp_lname&quot;) COLUMN(NAME=&quot;employee.work_site&quot;) COLUMN(NAME=&quot;tour.tour_starts&quot;) COLUMN(NAME=&quot;tour.tour_ends&quot;) COLUMN(NAME=&quot;tour.start_time&quot;) COLUMN(NAME=&quot;tour.end_time&quot;) COLUMN(NAME=&quot;tour.chg_date&quot;) COLUMN(NAME=&quot;tour.chg_user&quot;) COLUMN(NAME=&quot;tour.chg_term&quot;) COLUMN(NAME=&quot;tour.aprv_date&quot;) JOIN (LEFT=&quot;tour.emp_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee.emp_code&quot; )WHERE( EXP1 =&quot;tour.date_from&quot; OP =&quot;&gt;=&quot; EXP2 =&quot;:frdate&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;tour.date_from&quot; OP =&quot;&lt;=&quot; EXP2 =&quot;:todate&quot; ) ) ARG(NAME = &quot;frdate&quot; TYPE = datetime) ARG(NAME = &quot;todate&quot; TYPE = datetime) </retrieve>
<update>tour</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
......@@ -305,7 +305,7 @@
<x>254</x>
<y>3</y>
<height>16</height>
<width>78</width>
<width>122</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -330,10 +330,10 @@
<text>Last Name</text>
<border>6</border>
<color>0</color>
<x>334</x>
<x>378</x>
<y>3</y>
<height>16</height>
<width>86</width>
<width>138</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -358,7 +358,7 @@
<text>Date From</text>
<border>6</border>
<color>0</color>
<x>422</x>
<x>518</x>
<y>3</y>
<height>16</height>
<width>76</width>
......@@ -386,7 +386,7 @@
<text>Date To</text>
<border>6</border>
<color>0</color>
<x>500</x>
<x>596</x>
<y>3</y>
<height>16</height>
<width>65</width>
......@@ -414,7 +414,7 @@
<text>Status</text>
<border>6</border>
<color>0</color>
<x>567</x>
<x>663</x>
<y>3</y>
<height>16</height>
<width>98</width>
......@@ -442,7 +442,7 @@
<text>Days</text>
<border>6</border>
<color>0</color>
<x>667</x>
<x>763</x>
<y>3</y>
<height>16</height>
<width>41</width>
......@@ -470,7 +470,7 @@
<text>Tour Starts</text>
<border>6</border>
<color>0</color>
<x>710</x>
<x>806</x>
<y>3</y>
<height>16</height>
<width>96</width>
......@@ -498,7 +498,7 @@
<text>Tour Ends</text>
<border>6</border>
<color>0</color>
<x>808</x>
<x>904</x>
<y>3</y>
<height>16</height>
<width>96</width>
......@@ -526,7 +526,7 @@
<text>Start Time</text>
<border>6</border>
<color>0</color>
<x>906</x>
<x>1002</x>
<y>3</y>
<height>16</height>
<width>84</width>
......@@ -554,7 +554,7 @@
<text>End Time</text>
<border>6</border>
<color>0</color>
<x>992</x>
<x>1088</x>
<y>3</y>
<height>16</height>
<width>84</width>
......@@ -582,7 +582,7 @@
<text>Tour Details </text>
<border>6</border>
<color>0</color>
<x>1078</x>
<x>1174</x>
<y>3</y>
<height>16</height>
<width>183</width>
......@@ -610,7 +610,7 @@
<text>Remarks</text>
<border>6</border>
<color>0</color>
<x>1263</x>
<x>1359</x>
<y>3</y>
<height>16</height>
<width>140</width>
......@@ -638,7 +638,7 @@
<text>Approved By</text>
<border>6</border>
<color>0</color>
<x>1405</x>
<x>1501</x>
<y>3</y>
<height>16</height>
<width>82</width>
......@@ -666,7 +666,7 @@
<text>Work Site</text>
<border>6</border>
<color>0</color>
<x>1827</x>
<x>1923</x>
<y>3</y>
<height>16</height>
<width>65</width>
......@@ -694,7 +694,7 @@
<text>Change Date</text>
<border>6</border>
<color>33554432</color>
<x>1578</x>
<x>1674</x>
<y>3</y>
<height>16</height>
<width>76</width>
......@@ -722,7 +722,7 @@
<text>Change User</text>
<border>6</border>
<color>33554432</color>
<x>1656</x>
<x>1752</x>
<y>3</y>
<height>16</height>
<width>82</width>
......@@ -750,7 +750,7 @@
<text>Change Term</text>
<border>6</border>
<color>33554432</color>
<x>1740</x>
<x>1836</x>
<y>3</y>
<height>16</height>
<width>85</width>
......@@ -778,7 +778,7 @@
<text>Approval Date</text>
<border>6</border>
<color>33554432</color>
<x>1489</x>
<x>1585</x>
<y>3</y>
<height>16</height>
<width>87</width>
......@@ -922,7 +922,7 @@
<x>254</x>
<y>1</y>
<height>17</height>
<width>78</width>
<width>122</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -955,10 +955,10 @@
<tabsequence>50</tabsequence>
<border>5</border>
<color>0</color>
<x>334</x>
<x>378</x>
<y>1</y>
<height>17</height>
<width>86</width>
<width>138</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -991,7 +991,7 @@
<tabsequence>60</tabsequence>
<border>5</border>
<color>0</color>
<x>422</x>
<x>518</x>
<y>1</y>
<height>17</height>
<width>76</width>
......@@ -1027,7 +1027,7 @@
<tabsequence>70</tabsequence>
<border>5</border>
<color>0</color>
<x>500</x>
<x>596</x>
<y>1</y>
<height>17</height>
<width>65</width>
......@@ -1064,7 +1064,7 @@
<tabsequence>80</tabsequence>
<border>5</border>
<color>0</color>
<x>567</x>
<x>663</x>
<y>1</y>
<height>17</height>
<width>98</width>
......@@ -1101,7 +1101,7 @@
<tabsequence>90</tabsequence>
<border>5</border>
<color>0</color>
<x>667</x>
<x>763</x>
<y>1</y>
<height>17</height>
<width>41</width>
......@@ -1139,7 +1139,7 @@
<tabsequence>140</tabsequence>
<border>5</border>
<color>0</color>
<x>1078</x>
<x>1174</x>
<y>1</y>
<height>17</height>
<width>183</width>
......@@ -1176,7 +1176,7 @@
<tabsequence>150</tabsequence>
<border>5</border>
<color>0</color>
<x>1263</x>
<x>1359</x>
<y>1</y>
<height>17</height>
<width>140</width>
......@@ -1213,7 +1213,7 @@
<tabsequence>130</tabsequence>
<border>5</border>
<color>0</color>
<x>992</x>
<x>1088</x>
<y>1</y>
<height>16</height>
<width>84</width>
......@@ -1248,7 +1248,7 @@
<tabsequence>120</tabsequence>
<border>5</border>
<color>0</color>
<x>906</x>
<x>1002</x>
<y>1</y>
<height>16</height>
<width>84</width>
......@@ -1283,7 +1283,7 @@
<tabsequence>110</tabsequence>
<border>5</border>
<color>0</color>
<x>808</x>
<x>904</x>
<y>1</y>
<height>16</height>
<width>96</width>
......@@ -1319,7 +1319,7 @@
<tabsequence>100</tabsequence>
<border>5</border>
<color>0</color>
<x>710</x>
<x>806</x>
<y>1</y>
<height>16</height>
<width>96</width>
......@@ -1355,7 +1355,7 @@
<tabsequence>160</tabsequence>
<border>5</border>
<color>0</color>
<x>1405</x>
<x>1501</x>
<y>1</y>
<height>17</height>
<width>82</width>
......@@ -1392,7 +1392,7 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1827</x>
<x>1923</x>
<y>1</y>
<height>17</height>
<width>65</width>
......@@ -1428,7 +1428,7 @@
<tabsequence>180</tabsequence>
<border>5</border>
<color>0</color>
<x>1578</x>
<x>1674</x>
<y>1</y>
<height>17</height>
<width>76</width>
......@@ -1463,7 +1463,7 @@
<tabsequence>190</tabsequence>
<border>5</border>
<color>0</color>
<x>1656</x>
<x>1752</x>
<y>1</y>
<height>17</height>
<width>82</width>
......@@ -1500,7 +1500,7 @@
<tabsequence>200</tabsequence>
<border>5</border>
<color>0</color>
<x>1740</x>
<x>1836</x>
<y>1</y>
<height>17</height>
<width>85</width>
......@@ -1537,7 +1537,7 @@
<tabsequence>170</tabsequence>
<border>5</border>
<color>0</color>
<x>1489</x>
<x>1585</x>
<y>1</y>
<height>17</height>
<width>87</width>
......
......@@ -79,19 +79,12 @@
<dbname>tourdet.stan_code</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<type size="60">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>to_place</name>
<dbname>tourdet.to_place</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>date_from</name>
<dbname>tourdet.date_from</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
......@@ -107,14 +100,21 @@
<dbname>tourdet.purpose</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<type size="50">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>mode_travel</name>
<dbname>tourdet.mode_travel</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;tourdet&quot; ) COLUMN(NAME=&quot;tourdet.tour_id&quot;) COLUMN(NAME=&quot;tourdet.line_no&quot;) COLUMN(NAME=&quot;tourdet.line_no__plan&quot;) COLUMN(NAME=&quot;tourdet.stan_code&quot;) COLUMN(NAME=&quot;tourdet.to_place&quot;) COLUMN(NAME=&quot;tourdet.date_from&quot;) COLUMN(NAME=&quot;tourdet.date_to&quot;) COLUMN(NAME=&quot;tourdet.purpose&quot;) COLUMN(NAME=&quot;tourdet.mode_travel&quot;)WHERE( EXP1 =&quot;tourdet.tour_id&quot; OP =&quot;=&quot; EXP2 =&quot;:mtour_id &quot; ) ) ARG(NAME = &quot;mtour_id&quot; TYPE = string) </retrieve>
<update>tourdet</update>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>date_from</name>
<dbname>tourdet.date_from</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;tourdet&quot; ) COLUMN(NAME=&quot;tourdet.tour_id&quot;) COLUMN(NAME=&quot;tourdet.line_no&quot;) COLUMN(NAME=&quot;tourdet.line_no__plan&quot;) COLUMN(NAME=&quot;tourdet.stan_code&quot;) COLUMN(NAME=&quot;tourdet.to_place&quot;) COLUMN(NAME=&quot;tourdet.date_to&quot;) COLUMN(NAME=&quot;tourdet.purpose&quot;) COLUMN(NAME=&quot;tourdet.mode_travel&quot;) COLUMN(NAME=&quot;tourdet.date_from&quot;)WHERE( EXP1 =&quot;tourdet.tour_id&quot; OP =&quot;=&quot; EXP2 =&quot;:mtour_id &quot; ) ) ARG(NAME = &quot;mtour_id&quot; TYPE = string) </retrieve>
<update>TOURDET</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
......@@ -180,7 +180,7 @@
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<alignment>0</alignment>
<text>Station Code</text>
<border>6</border>
<color>0</color>
......@@ -237,17 +237,17 @@
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Date From</text>
<text>Date To</text>
<border>6</border>
<color>0</color>
<x>369</x>
<y>2</y>
<height>16</height>
<width>65</width>
<width>67</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_from_t</name>
<name>date_to_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -265,17 +265,17 @@
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Date To</text>
<text>Purpose</text>
<border>6</border>
<color>0</color>
<x>436</x>
<x>438</x>
<y>2</y>
<height>16</height>
<width>67</width>
<width>174</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_to_t</name>
<name>purpose_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -293,17 +293,17 @@
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Purpose</text>
<text>Mode of Travel</text>
<border>6</border>
<color>0</color>
<x>505</x>
<x>614</x>
<y>2</y>
<height>16</height>
<width>174</width>
<width>92</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>purpose_t</name>
<name>mode_travel_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -321,17 +321,17 @@
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Mode of Travel</text>
<text>Tour Id</text>
<border>6</border>
<color>0</color>
<x>681</x>
<x>708</x>
<y>2</y>
<height>16</height>
<width>92</width>
<width>63</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>mode_travel_t</name>
<name>tour_id_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -348,18 +348,18 @@
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Tour Id</text>
<alignment>0</alignment>
<text>Date From</text>
<border>6</border>
<color>0</color>
<x>775</x>
<x>773</x>
<y>2</y>
<height>16</height>
<width>63</width>
<width>78</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tour_id_t</name>
<name>date_from_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -371,7 +371,7 @@
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
......@@ -416,7 +416,7 @@
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>55</x>
......@@ -454,7 +454,7 @@
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>138</x>
......@@ -492,7 +492,7 @@
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>225</x>
......@@ -530,24 +530,25 @@
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>40</tabsequence>
<border>5</border>
<color>0</color>
<x>369</x>
<y>1</y>
<height>16</height>
<width>65</width>
<width>67</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_from</name>
<name>date_to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -567,21 +568,21 @@
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>50</tabsequence>
<border>5</border>
<color>0</color>
<x>436</x>
<x>438</x>
<y>1</y>
<height>16</height>
<width>67</width>
<format>[shortdate] [time]</format>
<width>174</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_to</name>
<name>purpose</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>200</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -605,21 +606,21 @@
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>60</tabsequence>
<border>5</border>
<color>0</color>
<x>505</x>
<y>1</y>
<x>614</x>
<y>0</y>
<height>16</height>
<width>174</width>
<width>92</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>purpose</name>
<name>mode_travel</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>200</limit>
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -641,23 +642,23 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>681</x>
<y>1</y>
<x>708</x>
<y>0</y>
<height>16</height>
<width>92</width>
<width>63</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>mode_travel</name>
<name>tour_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -679,27 +680,25 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>70</tabsequence>
<border>5</border>
<color>0</color>
<x>775</x>
<y>1</y>
<x>773</x>
<y>0</y>
<height>16</height>
<width>63</width>
<format>[general]</format>
<width>78</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tour_id</name>
<name>date_from</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......
......@@ -39,7 +39,7 @@
<color>536870912</color>
</Footer>
<Detail>
<height>342</height>
<height>486</height>
<color>536870912</color>
</Detail>
<TableDefinition>
......@@ -143,28 +143,28 @@
<dbname>tour.chg_term</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>emp_fname</name>
<dbname>employee.emp_fname</dbname>
<dbname>emp_fname</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>emp_lname</name>
<dbname>employee.emp_lname</dbname>
<dbname>emp_lname</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>appr_by_fname</name>
<dbname>employee.emp_fname</dbname>
<dbname>appr_by_fname</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<type size="4000">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>appr_by_lname</name>
<dbname>employee.emp_lname</dbname>
<dbname>appr_by_lname</dbname>
</table_column>
<table_column>
<type size="5">char</type>
......@@ -217,8 +217,8 @@
<name>aprv_date</name>
<dbname>tour.aprv_date</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;tour&quot; ) TABLE(NAME=&quot;employee&quot; ALIAS=&quot;employee_a&quot; ) TABLE(NAME=&quot;employee&quot; ALIAS=&quot;employee_b&quot; ) COLUMN(NAME=&quot;tour.tour_id&quot;) COLUMN(NAME=&quot;tour.plan_id&quot;) COLUMN(NAME=&quot;tour.emp_code&quot;) COLUMN(NAME=&quot;tour.date_from&quot;) COLUMN(NAME=&quot;tour.date_to&quot;) COLUMN(NAME=&quot;tour.no_days&quot;) COLUMN(NAME=&quot;tour.tour_details&quot;) COLUMN(NAME=&quot;tour.remarks&quot;) COLUMN(NAME=&quot;tour.emp_code__appr&quot;) COLUMN(NAME=&quot;tour.status&quot;) COLUMN(NAME=&quot;tour.chg_date&quot;) COLUMN(NAME=&quot;tour.chg_user&quot;) COLUMN(NAME=&quot;tour.chg_term&quot;) COLUMN(NAME=&quot;employee_a.emp_fname&quot;) COLUMN(NAME=&quot;employee_a.emp_lname&quot;) COLUMN(NAME=&quot;employee_b.emp_fname&quot;) COLUMN(NAME=&quot;employee_b.emp_lname&quot;) COLUMN(NAME=&quot;employee_a.work_site&quot;) COLUMN(NAME=&quot;tour.tour_starts&quot;) COLUMN(NAME=&quot;tour.tour_ends&quot;) COLUMN(NAME=&quot;tour.start_time&quot;) COLUMN(NAME=&quot;tour.end_time&quot;) COLUMN(NAME=&quot;tour.aprv_date&quot;) JOIN (LEFT=&quot;tour.emp_code__appr&quot; OP =&quot;=&quot;RIGHT=&quot;employee_b.emp_code&quot; OUTER1 =&quot;tour.emp_code__appr&quot; ) JOIN (LEFT=&quot;tour.emp_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee_a.emp_code&quot; )WHERE( EXP1 =&quot;tour.tour_id&quot; OP =&quot;=&quot; EXP2 =&quot;:mtour_id &quot; ) ) ARG(NAME = &quot;mtour_id&quot; TYPE = string) </retrieve>
<update>tour</update>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;tour&quot; ) TABLE(NAME=&quot;employee&quot; ) COLUMN(NAME=&quot;tour.tour_id&quot;) COLUMN(NAME=&quot;tour.plan_id&quot;) COLUMN(NAME=&quot;tour.emp_code&quot;) COLUMN(NAME=&quot;tour.date_from&quot;) COLUMN(NAME=&quot;tour.date_to&quot;) COLUMN(NAME=&quot;tour.no_days&quot;) COLUMN(NAME=&quot;tour.tour_details&quot;) COLUMN(NAME=&quot;tour.remarks&quot;) COLUMN(NAME=&quot;tour.emp_code__appr&quot;) COLUMN(NAME=&quot;tour.status&quot;) COLUMN(NAME=&quot;tour.chg_date&quot;) COLUMN(NAME=&quot;tour.chg_user&quot;) COLUMN(NAME=&quot;tour.chg_term&quot;) COMPUTE(NAME=&quot;FN_GET_EMP_NAME (~&quot;TOUR~&quot;.~&quot;EMP_CODE~&quot;, &apos;F1&apos;) as emp_fname&quot;) COMPUTE(NAME=&quot;FN_GET_EMP_NAME (~&quot;TOUR~&quot;.~&quot;EMP_CODE~&quot;, &apos;L1&apos;) as emp_lname&quot;) COMPUTE(NAME=&quot;FN_GET_EMP_NAME (~&quot;TOUR~&quot;.~&quot;EMP_CODE__APPR~&quot;, &apos;F1&apos;) as appr_by_fname&quot;) COMPUTE(NAME=&quot;FN_GET_EMP_NAME (~&quot;TOUR~&quot;.~&quot;EMP_CODE__APPR~&quot;, &apos;L1&apos;) as appr_by_lname&quot;) COLUMN(NAME=&quot;employee.work_site&quot;) COLUMN(NAME=&quot;tour.tour_starts&quot;) COLUMN(NAME=&quot;tour.tour_ends&quot;) COLUMN(NAME=&quot;tour.start_time&quot;) COLUMN(NAME=&quot;tour.end_time&quot;) COLUMN(NAME=&quot;tour.aprv_date&quot;) JOIN (LEFT=&quot;tour.emp_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee.emp_code&quot; )WHERE( EXP1 =&quot;tour.tour_id&quot; OP =&quot;=&quot; EXP2 =&quot;:mtour_id &quot; ) ) ARG(NAME = &quot;mtour_id&quot; TYPE = string) </retrieve>
<update>TOUR</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
......@@ -228,18 +228,42 @@
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Tour</text>
<text>Other</text>
<border>2</border>
<color>0</color>
<x>7</x>
<y>7</y>
<height>331</height>
<width>523</width>
<color>33554432</color>
<x>21</x>
<y>316</y>
<height>83</height>
<width>603</width>
<name>gb_2</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-11</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</GroupBox>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>2</border>
<color>33554432</color>
<x>23</x>
<y>14</y>
<height>281</height>
<width>599</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<height>-11</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
......@@ -256,14 +280,14 @@
<text>Remarks :</text>
<border>0</border>
<color>0</color>
<x>18</x>
<y>132</y>
<x>67</x>
<y>141</y>
<height>16</height>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_1</name>
<name>remarks_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -281,17 +305,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tour Id :</text>
<text>Tour Starts :</text>
<border>0</border>
<color>0</color>
<x>18</x>
<y>37</y>
<x>67</x>
<y>166</y>
<height>16</height>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tour_id_t</name>
<name>tour_starts_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -309,17 +333,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Employee :</text>
<text>Tour Ends :</text>
<border>0</border>
<color>0</color>
<x>18</x>
<y>61</y>
<x>378</x>
<y>166</y>
<height>16</height>
<width>104</width>
<width>83</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code_t</name>
<name>tour_ends_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -337,17 +361,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Date From :</text>
<text>Approved By :</text>
<border>0</border>
<color>0</color>
<x>18</x>
<y>85</y>
<x>67</x>
<y>190</y>
<height>16</height>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_fr_t</name>
<name>emp_code__appr_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -365,17 +389,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Date To :</text>
<text>Status :</text>
<border>0</border>
<color>0</color>
<x>244</x>
<y>85</y>
<x>67</x>
<y>214</y>
<height>16</height>
<width>56</width>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_to_t</name>
<name>status_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -390,21 +414,30 @@
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Days :</text>
<border>0</border>
<color>0</color>
<x>427</x>
<y>85</y>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>175</x>
<y>214</y>
<height>16</height>
<width>44</width>
<width>98</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>no_days_t</name>
<name>status</name>
<tag>Status of the tour.</tag>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>no</allowedit>
<case>upper</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -414,25 +447,32 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tour Details :</text>
<border>0</border>
<color>0</color>
<x>18</x>
<y>109</y>
<id>23</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>481</x>
<y>214</y>
<height>16</height>
<width>104</width>
<width>82</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tour_details_t</name>
<name>aprv_date</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>
......@@ -442,24 +482,24 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Remarks :</text>
<text>Approval Date :</text>
<border>0</border>
<color>0</color>
<x>18</x>
<y>132</y>
<color>33554432</color>
<x>377</x>
<y>214</y>
<height>16</height>
<width>104</width>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks_t</name>
<name>aprv_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -470,33 +510,32 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<id>19</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<tabsequence>80</tabsequence>
<border>5</border>
<color>0</color>
<x>126</x>
<y>109</y>
<x>175</x>
<y>166</y>
<height>16</height>
<width>388</width>
<format>[general]</format>
<width>97</width>
<format></format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>details</name>
<name>tour_starts</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>250</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>no</allowedit>
<case>upper</case>
<useasborder>yes</useasborder>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -512,21 +551,31 @@
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tour Starts :</text>
<border>0</border>
<id>8</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>5</border>
<color>0</color>
<x>18</x>
<y>157</y>
<x>175</x>
<y>142</y>
<height>16</height>
<width>104</width>
<width>388</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tour_starts_t</name>
<name>remarks</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>50</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -536,25 +585,34 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tour Ends :</text>
<border>0</border>
<id>20</id>
<alignment>0</alignment>
<tabsequence>90</tabsequence>
<border>5</border>
<color>0</color>
<x>329</x>
<y>157</y>
<x>466</x>
<y>166</y>
<height>16</height>
<width>83</width>
<width>97</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tour_ends_t</name>
<name>tour_ends</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>no</allowedit>
<case>upper</case>
<useasborder>yes</useasborder>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -564,33 +622,31 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<id>16</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>126</x>
<y>181</y>
<x>261</x>
<y>190</y>
<height>16</height>
<width>127</width>
<width>148</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__appr</name>
<name>appr_by_fname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -606,21 +662,31 @@
<color>79741120</color>
</background>
</ColumnObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Approved By :</text>
<border>0</border>
<color>0</color>
<x>18</x>
<y>181</y>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>175</x>
<y>190</y>
<height>16</height>
<width>104</width>
<width>82</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__appr_t</name>
<name>emp_code__appr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -630,26 +696,26 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<id>17</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>256</x>
<y>181</y>
<x>414</x>
<y>190</y>
<height>16</height>
<width>127</width>
<width>149</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>appr_by_fname</name>
<name>appr_by_lname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -673,17 +739,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Status :</text>
<text>Work Site :</text>
<border>0</border>
<color>0</color>
<x>18</x>
<y>205</y>
<x>392</x>
<y>238</y>
<height>16</height>
<width>104</width>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status_t</name>
<name>work_site_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -697,59 +763,65 @@
<mode>1</mode>
<color>536870912</color>
</background>
<height.autosize>yes</height.autosize>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change User :</text>
<border>0</border>
<id>18</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>314</x>
<y>229</y>
<x>497</x>
<y>238</y>
<height>16</height>
<width>99</width>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<name>work_site</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<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>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>16777215</color>
</background>
<height.autosize>yes</height.autosize>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<id>21</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>126</x>
<y>205</y>
<x>175</x>
<y>237</y>
<height>16</height>
<width>98</width>
<format>[general]</format>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status</name>
<tag>Status of the tour.</tag>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>no</allowedit>
<case>upper</case>
<name>start_time</name>
<visible>0</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
......@@ -761,27 +833,26 @@
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<id>22</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>125</x>
<y>229</y>
<color>255</color>
<x>175</x>
<y>259</y>
<height>16</height>
<width>87</width>
<width>98</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<tag>User modified date, for internal purpose only.</tag>
<visible>1</visible>
<name>end_time</name>
<visible>0</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
......@@ -797,31 +868,31 @@
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<id>6</id>
<alignment>1</alignment>
<tabsequence>50</tabsequence>
<border>5</border>
<color>0</color>
<x>125</x>
<y>253</y>
<x>507</x>
<y>94</y>
<height>16</height>
<width>87</width>
<width>56</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<tag>User modified terminal, for internal purpose only.</tag>
<name>no_days</name>
<tag>Total no. of days.</tag>
<visible>1</visible>
<height.autosize>yes</height.autosize>
<EditStyle style="edit">
<limit>15</limit>
<limit>0</limit>
<case>any</case>
<format>##0.0</format>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
......@@ -843,17 +914,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Work Site :</text>
<text>Tour Id :</text>
<border>0</border>
<color>0</color>
<x>343</x>
<y>253</y>
<x>67</x>
<y>46</y>
<height>16</height>
<width>99</width>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>work_site_t</name>
<name>tour_id_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -867,23 +938,32 @@
<mode>1</mode>
<color>536870912</color>
</background>
<height.autosize>yes</height.autosize>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change Date :</text>
<border>0</border>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>18</x>
<y>229</y>
<x>175</x>
<y>46</y>
<height>16</height>
<width>104</width>
<width>82</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<name>tour_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -893,24 +973,24 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change Term :</text>
<text>Tour Plan Id :</text>
<border>0</border>
<color>0</color>
<x>18</x>
<y>253</y>
<x>393</x>
<y>46</y>
<height>16</height>
<width>104</width>
<width>83</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<name>plan_id_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -924,29 +1004,30 @@
<mode>1</mode>
<color>536870912</color>
</background>
<height.autosize>yes</height.autosize>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>10</tabsequence>
<border>5</border>
<color>255</color>
<x>387</x>
<y>181</y>
<color>0</color>
<x>481</x>
<y>46</y>
<height>16</height>
<width>127</width>
<width>82</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>appr_by_lname</name>
<name>plan_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -959,34 +1040,30 @@
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<id>15</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>417</x>
<y>229</y>
<color>255</color>
<x>414</x>
<y>70</y>
<height>16</height>
<width>97</width>
<width>149</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<tag>User modifying the record, for internal purpose only.</tag>
<name>emp_lname</name>
<visible>1</visible>
<height.autosize>yes</height.autosize>
<EditStyle style="edit">
<limit>10</limit>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -999,25 +1076,25 @@
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<color>79741120</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>448</x>
<y>253</y>
<color>255</color>
<x>263</x>
<y>70</y>
<height>16</height>
<width>66</width>
<width>146</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>work_site</name>
<name>emp_fname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -1035,25 +1112,26 @@
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<color>79741120</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>126</x>
<y>37</y>
<x>175</x>
<y>70</y>
<height>16</height>
<width>82</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tour_id</name>
<name>emp_code</name>
<tag>The code of the employee.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
......@@ -1076,28 +1154,21 @@
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<alignment>1</alignment>
<text>Employee :</text>
<border>0</border>
<color>0</color>
<x>126</x>
<y>85</y>
<x>67</x>
<y>70</y>
<height>16</height>
<width>82</width>
<format>dd/mm/yy</format>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_from</name>
<name>emp_code_t</name>
<visible>1</visible>
<EditStyle name="datetime" style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -1107,32 +1178,25 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<id>5</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<alignment>1</alignment>
<text>Date From :</text>
<border>0</border>
<color>0</color>
<x>305</x>
<y>85</y>
<x>67</x>
<y>94</y>
<height>16</height>
<width>82</width>
<format>dd/mm/yy</format>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_to</name>
<name>date_from_t</name>
<visible>1</visible>
<EditStyle name="datetime" style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -1142,34 +1206,31 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>4</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>432</x>
<y>37</y>
<x>175</x>
<y>94</y>
<height>16</height>
<width>82</width>
<format>[general]</format>
<format>dd/mm/yy</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>plan_id</name>
<name>date_from</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<EditStyle name="datetime" style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
......@@ -1186,25 +1247,28 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>23</id>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>60</tabsequence>
<border>5</border>
<color>255</color>
<x>432</x>
<y>205</y>
<color>0</color>
<x>175</x>
<y>118</y>
<height>16</height>
<width>82</width>
<format>[shortdate] [time]</format>
<width>388</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>aprv_date</name>
<name>details</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<EditStyle style="edit">
<limit>250</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
......@@ -1216,23 +1280,23 @@
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tour Plan Id :</text>
<text>Tour Details :</text>
<border>0</border>
<color>0</color>
<x>344</x>
<y>37</y>
<x>67</x>
<y>118</y>
<height>16</height>
<width>83</width>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>plan_id_t</name>
<name>details_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -1250,17 +1314,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Approval Date :</text>
<text>Date To :</text>
<border>0</border>
<color>33554432</color>
<x>328</x>
<y>205</y>
<color>0</color>
<x>293</x>
<y>94</y>
<height>16</height>
<width>99</width>
<width>56</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>aprv_date_t</name>
<name>date_to_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -1271,36 +1335,31 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>1</alignment>
<tabsequence>50</tabsequence>
<id>5</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>0</color>
<x>476</x>
<y>85</y>
<x>354</x>
<y>94</y>
<height>16</height>
<width>38</width>
<format>[general]</format>
<width>82</width>
<format>dd/mm/yy</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>no_days</name>
<tag>Total no. of days.</tag>
<name>date_to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<format>##0.0</format>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<EditStyle name="datetime" style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
......@@ -1315,30 +1374,21 @@
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>19</id>
<alignment>0</alignment>
<tabsequence>80</tabsequence>
<border>5</border>
<alignment>1</alignment>
<text>Days :</text>
<border>0</border>
<color>0</color>
<x>127</x>
<y>157</y>
<x>458</x>
<y>94</y>
<height>16</height>
<width>97</width>
<format></format>
<width>44</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tour_starts</name>
<name>no_days_t</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>no</allowedit>
<case>upper</case>
<useasborder>yes</useasborder>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -1348,34 +1398,32 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<id>11</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>126</x>
<y>133</y>
<x>174</x>
<y>345</y>
<height>16</height>
<width>388</width>
<format>[general]</format>
<width>87</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks</name>
<name>chg_date</name>
<tag>User modified date, for internal purpose only.</tag>
<visible>1</visible>
<EditStyle style="edit">
<limit>50</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
......@@ -1390,30 +1438,21 @@
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>20</id>
<alignment>0</alignment>
<tabsequence>90</tabsequence>
<border>5</border>
<alignment>1</alignment>
<text>Change Date :</text>
<border>0</border>
<color>0</color>
<x>417</x>
<y>157</y>
<x>66</x>
<y>345</y>
<height>16</height>
<width>97</width>
<format>[general]</format>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tour_ends</name>
<name>chg_date_t</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>no</allowedit>
<case>upper</case>
<useasborder>yes</useasborder>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -1423,36 +1462,25 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<alignment>1</alignment>
<text>Change Term :</text>
<border>0</border>
<color>0</color>
<x>126</x>
<y>61</y>
<x>66</x>
<y>369</y>
<height>16</height>
<width>82</width>
<format>[general]</format>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code</name>
<tag>The code of the employee.</tag>
<name>chg_term_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -1462,31 +1490,36 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<height.autosize>yes</height.autosize>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<id>13</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>214</x>
<y>61</y>
<color>0</color>
<x>174</x>
<y>369</y>
<height>16</height>
<width>146</width>
<width>87</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_fname</name>
<name>chg_term</name>
<tag>User modified terminal, for internal purpose only.</tag>
<visible>1</visible>
<height.autosize>yes</height.autosize>
<EditStyle style="edit">
<limit>0</limit>
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1499,32 +1532,24 @@
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>15</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>365</x>
<y>61</y>
<alignment>1</alignment>
<text>Change User :</text>
<border>0</border>
<color>0</color>
<x>362</x>
<y>345</y>
<height>16</height>
<width>149</width>
<format>[general]</format>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_lname</name>
<name>chg_user_t</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>
......@@ -1534,66 +1559,37 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<height.autosize>yes</height.autosize>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>22</id>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>333</x>
<y>296</y>
<color>0</color>
<x>465</x>
<y>345</y>
<height>16</height>
<width>90</width>
<format>[shortdate] [time]</format>
<width>97</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>end_time</name>
<visible>0</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<name>chg_user</name>
<tag>User modifying the record, for internal purpose only.</tag>
<visible>1</visible>
<height.autosize>yes</height.autosize>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<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>21</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>128</x>
<y>294</y>
<height>16</height>
<width>98</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>start_time</name>
<visible>0</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
......@@ -1605,7 +1601,7 @@
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable>
......
......@@ -39,7 +39,7 @@
<color>536870912</color>
</Footer>
<Detail>
<height>255</height>
<height>322</height>
<color>536870912</color>
</Detail>
<TableDefinition>
......@@ -74,19 +74,12 @@
<dbname>tourdet.stan_code</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<type size="60">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>to_place</name>
<dbname>tourdet.to_place</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>date_from</name>
<dbname>tourdet.date_from</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
......@@ -102,7 +95,7 @@
<dbname>tourdet.purpose</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<type size="50">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>mode_travel</name>
......@@ -115,20 +108,27 @@
<item display="Ship" data="Ship"/>
</values>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;tourdet&quot; ) COLUMN(NAME=&quot;tourdet.tour_id&quot;) COLUMN(NAME=&quot;tourdet.line_no&quot;) COLUMN(NAME=&quot;tourdet.line_no__plan&quot;) COLUMN(NAME=&quot;tourdet.stan_code&quot;) COLUMN(NAME=&quot;tourdet.to_place&quot;) COLUMN(NAME=&quot;tourdet.date_from&quot;) COLUMN(NAME=&quot;tourdet.date_to&quot;) COLUMN(NAME=&quot;tourdet.purpose&quot;) COLUMN(NAME=&quot;tourdet.mode_travel&quot;)) </retrieve>
<update>tourdet</update>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>date_from</name>
<dbname>tourdet.date_from</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;tourdet&quot; ) COLUMN(NAME=&quot;tourdet.tour_id&quot;) COLUMN(NAME=&quot;tourdet.line_no&quot;) COLUMN(NAME=&quot;tourdet.line_no__plan&quot;) COLUMN(NAME=&quot;tourdet.stan_code&quot;) COLUMN(NAME=&quot;tourdet.to_place&quot;) COLUMN(NAME=&quot;tourdet.date_to&quot;) COLUMN(NAME=&quot;tourdet.purpose&quot;) COLUMN(NAME=&quot;tourdet.mode_travel&quot;) COLUMN(NAME=&quot;tourdet.date_from&quot;)) </retrieve>
<update>TOURDET</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Tour Detail</text>
<text>Tour Details</text>
<border>2</border>
<color>0</color>
<x>6</x>
<y>6</y>
<height>235</height>
<width>580</width>
<x>12</x>
<y>25</y>
<height>211</height>
<width>571</width>
<name>gb_1</name>
<visible>1</visible>
<font>
......@@ -140,35 +140,25 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>553648127</color>
</background>
</GroupBox>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<alignment>1</alignment>
<text>Purpose :</text>
<border>0</border>
<color>0</color>
<x>138</x>
<y>79</y>
<x>26</x>
<y>129</y>
<height>16</height>
<width>74</width>
<format>[general]</format>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stan_code</name>
<name>purpose_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -179,23 +169,23 @@
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<color>79741120</color>
</background>
</ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Station Code :</text>
<text>Mode of Travel :</text>
<border>0</border>
<color>0</color>
<x>26</x>
<y>79</y>
<y>189</y>
<height>16</height>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stan_code_t</name>
<name>mode_travel_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -213,17 +203,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Date From :</text>
<text>Line No :</text>
<border>0</border>
<color>0</color>
<x>26</x>
<y>104</y>
<y>54</y>
<height>16</height>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_fr_t</name>
<name>line_no_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -238,21 +228,31 @@
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>1</alignment>
<text>Purpose :</text>
<border>0</border>
<color>0</color>
<x>26</x>
<y>129</y>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>134</x>
<y>54</y>
<height>16</height>
<width>104</width>
<width>42</width>
<format>[General]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>purpose_t</name>
<name>line_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -265,28 +265,32 @@
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<id>7</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<tabsequence>50</tabsequence>
<border>5</border>
<color>0</color>
<x>138</x>
<y>104</y>
<height>16</height>
<width>88</width>
<format>dd/mm/yy</format>
<x>134</x>
<y>129</y>
<height>51</height>
<width>393</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_from</name>
<name>purpose</name>
<visible>1</visible>
<EditStyle name="datetime" style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<EditStyle style="edit">
<limit>200</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autovscroll>yes</autovscroll>
<imemode>0</imemode>
<vscrollbar>yes</vscrollbar>
</EditStyle>
<font>
<face>Times New Roman</face>
......@@ -303,12 +307,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<id>8</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<tabsequence>60</tabsequence>
<border>5</border>
<color>0</color>
<x>138</x>
<x>134</x>
<y>189</y>
<height>16</height>
<width>91</width>
......@@ -337,59 +341,30 @@
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Mode of Travel :</text>
<border>0</border>
<color>0</color>
<x>26</x>
<y>189</y>
<height>16</height>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>mode_travel_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>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<id>5</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>138</x>
<y>129</y>
<height>51</height>
<width>393</width>
<x>427</x>
<y>79</y>
<height>16</height>
<width>98</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>purpose</name>
<name>to_place</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>200</limit>
<limit>20</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autovscroll>yes</autovscroll>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
<vscrollbar>yes</vscrollbar>
</EditStyle>
<font>
<face>Times New Roman</face>
......@@ -406,23 +381,23 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<id>3</id>
<alignment>1</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>443</x>
<y>104</y>
<x>427</x>
<y>54</y>
<height>16</height>
<width>88</width>
<format>dd/mm/yy</format>
<width>98</width>
<format>###</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_to</name>
<name>line_no__plan</name>
<visible>1</visible>
<EditStyle name="datetime" style="editmask">
<mask>dd/mm/yy</mask>
<EditStyle style="editmask">
<mask>###</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
......@@ -441,24 +416,24 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<id>4</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>429</x>
<x>134</x>
<y>79</y>
<height>16</height>
<width>102</width>
<width>74</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>to_place</name>
<name>stan_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>20</limit>
<case>any</case>
<limit>5</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
......@@ -477,31 +452,21 @@
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<alignment>1</alignment>
<text>Station Code :</text>
<border>0</border>
<color>0</color>
<x>443</x>
<y>189</y>
<x>26</x>
<y>79</y>
<height>16</height>
<width>88</width>
<format>[general]</format>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tour_id</name>
<name>stan_code_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -512,19 +477,47 @@
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<color>79741120</color>
</background>
</ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Line No Plan :</text>
<border>0</border>
<color>0</color>
<x>339</x>
<y>54</y>
<height>16</height>
<width>84</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no__plan_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>Detail</band>
<alignment>1</alignment>
<text>Place :</text>
<border>0</border>
<color>0</color>
<x>362</x>
<x>339</x>
<y>79</y>
<height>16</height>
<width>61</width>
<width>84</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -549,10 +542,10 @@
<text>Date To :</text>
<border>0</border>
<color>0</color>
<x>380</x>
<x>340</x>
<y>104</y>
<height>16</height>
<width>56</width>
<width>84</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -577,10 +570,10 @@
<text>Tour Id :</text>
<border>0</border>
<color>0</color>
<x>386</x>
<x>340</x>
<y>189</y>
<height>16</height>
<width>51</width>
<width>84</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -601,28 +594,25 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<id>6</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>255</color>
<x>138</x>
<y>54</y>
<color>0</color>
<x>428</x>
<y>104</y>
<height>16</height>
<width>42</width>
<format>[General]</format>
<width>98</width>
<format>dd/mm/yy</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no</name>
<name>date_to</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<EditStyle name="datetime" style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
......@@ -634,24 +624,34 @@
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Line No :</text>
<border>0</border>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>26</x>
<y>54</y>
<x>428</x>
<y>189</y>
<height>16</height>
<width>104</width>
<width>98</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no_t</name>
<name>tour_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -662,23 +662,23 @@
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<color>16777215</color>
</background>
</TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Line No Plan :</text>
<text>Date From :</text>
<border>0</border>
<color>0</color>
<x>397</x>
<y>54</y>
<x>26</x>
<y>103</y>
<height>16</height>
<width>86</width>
<width>104</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no__plan_t</name>
<name>date_from_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -690,30 +690,31 @@
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>1</alignment>
<tabsequence>10</tabsequence>
<id>9</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>5</border>
<color>0</color>
<x>489</x>
<y>54</y>
<color>255</color>
<x>134</x>
<y>103</y>
<height>16</height>
<width>42</width>
<format>###</format>
<width>55</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no__plan</name>
<name>date_from</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>###</mask>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
......@@ -725,7 +726,7 @@
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<color>79741120</color>
</background>
</ColumnObject>
<HtmlTable>
......
......@@ -16,8 +16,8 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tour_i
column=(type=char(50) update=yes updatewhereclause=yes name=remarks dbname="tour.remarks" )
column=(type=char(10) update=yes updatewhereclause=yes name=emp_code__appr dbname="tour.emp_code__appr" )
column=(type=char(1) update=yes updatewhereclause=yes name=status dbname="tour.status" values="Approved A/Unapproved U/Cancelled C/Open O/" )
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(4000) updatewhereclause=yes name=emp_fname dbname="emp_fname" )
column=(type=char(4000) updatewhereclause=yes name=emp_lname dbname="emp_lname" )
column=(type=char(5) updatewhereclause=yes name=work_site dbname="employee.work_site" )
column=(type=char(1) updatewhereclause=yes name=tour_starts dbname="tour.tour_starts" values="Between Day B/Start of Day S/" )
column=(type=char(1) updatewhereclause=yes name=tour_ends dbname="tour.tour_ends" values="Between Day B/End of Day E/" )
......@@ -27,49 +27,49 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tour_i
column=(type=char(10) updatewhereclause=yes name=chg_user dbname="tour.chg_user" )
column=(type=char(15) updatewhereclause=yes name=chg_term dbname="tour.chg_term" )
column=(type=datetime updatewhereclause=yes name=aprv_date dbname="tour.aprv_date" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"tour~" ) TABLE(NAME=~"employee~" ) COLUMN(NAME=~"tour.tour_id~") COLUMN(NAME=~"tour.emp_code~") COLUMN(NAME=~"tour.plan_id~") COLUMN(NAME=~"tour.date_from~") COLUMN(NAME=~"tour.date_to~") COLUMN(NAME=~"tour.no_days~") COLUMN(NAME=~"tour.tour_details~") COLUMN(NAME=~"tour.remarks~") COLUMN(NAME=~"tour.emp_code__appr~") COLUMN(NAME=~"tour.status~") COLUMN(NAME=~"employee.emp_fname~") COLUMN(NAME=~"employee.emp_lname~") COLUMN(NAME=~"employee.work_site~") COLUMN(NAME=~"tour.tour_starts~") COLUMN(NAME=~"tour.tour_ends~") COLUMN(NAME=~"tour.start_time~") COLUMN(NAME=~"tour.end_time~") COLUMN(NAME=~"tour.chg_date~") COLUMN(NAME=~"tour.chg_user~") COLUMN(NAME=~"tour.chg_term~") COLUMN(NAME=~"tour.aprv_date~") JOIN (LEFT=~"tour.emp_code~" OP =~"=~"RIGHT=~"employee.emp_code~" )WHERE( EXP1 =~"tour.date_from~" OP =~">=~" EXP2 =~":frdate~" LOGIC =~"and~" ) WHERE( EXP1 =~"tour.date_from~" OP =~"<=~" EXP2 =~":todate~" ) ) ARG(NAME = ~"frdate~" TYPE = datetime) ARG(NAME = ~"todate~" TYPE = datetime) " update="tour" updatewhere=1 updatekeyinplace=no arguments=(("frdate", datetime),("todate", datetime)) )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"tour~" ) TABLE(NAME=~"employee~" ) COLUMN(NAME=~"tour.tour_id~") COLUMN(NAME=~"tour.emp_code~") COLUMN(NAME=~"tour.plan_id~") COLUMN(NAME=~"tour.date_from~") COLUMN(NAME=~"tour.date_to~") COLUMN(NAME=~"tour.no_days~") COLUMN(NAME=~"tour.tour_details~") COLUMN(NAME=~"tour.remarks~") COLUMN(NAME=~"tour.emp_code__appr~") COLUMN(NAME=~"tour.status~") COMPUTE(NAME=~"FN_GET_EMP_NAME (~~~"TOUR~~~".~~~"EMP_CODE~~~", 'F1') as emp_fname~") COMPUTE(NAME=~"FN_GET_EMP_NAME (~~~"TOUR~~~".~~~"EMP_CODE~~~", 'L1') as emp_lname~") COLUMN(NAME=~"employee.work_site~") COLUMN(NAME=~"tour.tour_starts~") COLUMN(NAME=~"tour.tour_ends~") COLUMN(NAME=~"tour.start_time~") COLUMN(NAME=~"tour.end_time~") COLUMN(NAME=~"tour.chg_date~") COLUMN(NAME=~"tour.chg_user~") COLUMN(NAME=~"tour.chg_term~") COLUMN(NAME=~"tour.aprv_date~") JOIN (LEFT=~"tour.emp_code~" OP =~"=~"RIGHT=~"employee.emp_code~" )WHERE( EXP1 =~"tour.date_from~" OP =~">=~" EXP2 =~":frdate~" LOGIC =~"and~" ) WHERE( EXP1 =~"tour.date_from~" OP =~"<=~" EXP2 =~":todate~" ) ) ARG(NAME = ~"frdate~" TYPE = datetime) ARG(NAME = ~"todate~" TYPE = datetime) " update="tour" updatewhere=1 updatekeyinplace=no arguments=(("frdate", datetime),("todate", datetime)) )
text(band=header alignment="0" text="Tour Id" border="6" color="0" x="2" y="3" height="16" width="79" html.valueishtml="0" name=tour_id_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="0" text="Plan Id" border="6" color="0" x="83" y="3" height="16" width="79" html.valueishtml="0" name=plan_id_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="0" text="Employee Code" border="6" color="0" x="164" y="3" 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=header alignment="0" text="First Name" border="6" color="0" x="254" y="3" height="16" width="78" 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="0" text="Last Name" border="6" color="0" x="334" y="3" height="16" width="86" 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="553648127" )
text(band=header alignment="0" text="Date From" border="6" color="0" x="422" y="3" height="16" width="76" html.valueishtml="0" name=date_from_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="0" text="Date To" border="6" color="0" x="500" y="3" height="16" width="65" html.valueishtml="0" name=date_to_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="Status" border="6" color="0" x="567" y="3" height="16" width="98" html.valueishtml="0" name=status_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="1" text="Days" border="6" color="0" x="667" y="3" height="16" width="41" html.valueishtml="0" name=no_days_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="0" text="Tour Starts" border="6" color="0" x="710" y="3" height="16" width="96" html.valueishtml="0" name=tour_starts_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="0" text="Tour Ends" border="6" color="0" x="808" y="3" height="16" width="96" html.valueishtml="0" name=tour_ends_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="0" text="Start Time" border="6" color="0" x="906" y="3" height="16" width="84" html.valueishtml="0" name=start_time_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="0" text="End Time" border="6" color="0" x="992" y="3" height="16" width="84" html.valueishtml="0" name=end_time_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="0" text="Tour Details " border="6" color="0" x="1078" y="3" height="16" width="183" html.valueishtml="0" name=tour_details_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="0" text="Remarks" border="6" color="0" x="1263" y="3" height="16" width="140" html.valueishtml="0" name=remarks_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="0" text="Approved By" border="6" color="0" x="1405" y="3" height="16" width="82" html.valueishtml="0" name=emp_code__appr_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="Work Site" border="6" color="0" x="1827" y="3" height="16" width="65" html.valueishtml="0" name=work_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="0" text="Change Date" border="6" color="33554432" x="1578" y="3" height="16" width="76" 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="2" background.color="67108864" )
text(band=header alignment="0" text="Change User" border="6" color="33554432" x="1656" y="3" height="16" width="82" 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="2" background.color="67108864" )
text(band=header alignment="0" text="Change Term" border="6" color="33554432" x="1740" y="3" height="16" width="85" 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="2" background.color="67108864" )
text(band=header alignment="0" text="Approval Date" border="6" color="33554432" x="1489" y="3" height="16" width="87" html.valueishtml="0" name=aprv_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="2" background.color="67108864" )
text(band=header alignment="0" text="First Name" border="6" color="0" x="254" y="3" height="16" width="122" 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="0" text="Last Name" border="6" color="0" x="378" y="3" height="16" width="138" 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="553648127" )
text(band=header alignment="0" text="Date From" border="6" color="0" x="518" y="3" height="16" width="76" html.valueishtml="0" name=date_from_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="0" text="Date To" border="6" color="0" x="596" y="3" height="16" width="65" html.valueishtml="0" name=date_to_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="Status" border="6" color="0" x="663" y="3" height="16" width="98" html.valueishtml="0" name=status_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="1" text="Days" border="6" color="0" x="763" y="3" height="16" width="41" html.valueishtml="0" name=no_days_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="0" text="Tour Starts" border="6" color="0" x="806" y="3" height="16" width="96" html.valueishtml="0" name=tour_starts_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="0" text="Tour Ends" border="6" color="0" x="904" y="3" height="16" width="96" html.valueishtml="0" name=tour_ends_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="0" text="Start Time" border="6" color="0" x="1002" y="3" height="16" width="84" html.valueishtml="0" name=start_time_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="0" text="End Time" border="6" color="0" x="1088" y="3" height="16" width="84" html.valueishtml="0" name=end_time_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="0" text="Tour Details " border="6" color="0" x="1174" y="3" height="16" width="183" html.valueishtml="0" name=tour_details_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="0" text="Remarks" border="6" color="0" x="1359" y="3" height="16" width="140" html.valueishtml="0" name=remarks_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="0" text="Approved By" border="6" color="0" x="1501" y="3" height="16" width="82" html.valueishtml="0" name=emp_code__appr_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="Work Site" border="6" color="0" x="1923" y="3" height="16" width="65" html.valueishtml="0" name=work_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="0" text="Change Date" border="6" color="33554432" x="1674" y="3" height="16" width="76" 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="2" background.color="67108864" )
text(band=header alignment="0" text="Change User" border="6" color="33554432" x="1752" y="3" height="16" width="82" 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="2" background.color="67108864" )
text(band=header alignment="0" text="Change Term" border="6" color="33554432" x="1836" y="3" height="16" width="85" 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="2" background.color="67108864" )
text(band=header alignment="0" text="Approval Date" border="6" color="33554432" x="1585" y="3" height="16" width="87" html.valueishtml="0" name=aprv_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="2" background.color="67108864" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="0" x="2" y="1" height="17" width="79" format="[general]" html.valueishtml="0" name=tour_id visible="1" edit.limit=10 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=20 border="5" color="0" x="83" y="1" height="17" width="79" format="[general]" html.valueishtml="0" name=plan_id visible="1" edit.limit=10 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=30 border="5" color="0" x="164" y="1" height="17" width="88" format="[general]" html.valueishtml="0" name=emp_code tag="The code of the employee." visible="1" edit.limit=10 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=11 alignment="0" tabsequence=40 border="5" color="0" x="254" y="1" height="17" width="78" format="[general]" html.valueishtml="0" name=emp_fname 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=12 alignment="0" tabsequence=50 border="5" color="0" x="334" y="1" height="17" width="86" format="[general]" html.valueishtml="0" name=emp_lname 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=4 alignment="0" tabsequence=60 border="5" color="0" x="422" y="1" height="17" width="76" format="[shortdate] [time]" html.valueishtml="0" name=date_from 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=70 border="5" color="0" x="500" y="1" height="17" width="65" format="[shortdate] [time]" html.valueishtml="0" name=date_to visible="1" edit.limit=0 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=10 alignment="0" tabsequence=80 border="5" color="0" x="567" y="1" height="17" width="98" format="[general]" html.valueishtml="0" name=status tag="Status of the tour." visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.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="16777215" )
column(band=detail id=6 alignment="1" tabsequence=90 border="5" color="0" x="667" y="1" height="17" width="41" format="[general]" html.valueishtml="0" name=no_days tag="Total no. of days." visible="1" edit.limit=0 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="0" tabsequence=140 border="5" color="0" x="1078" y="1" height="17" width="183" format="[general]" html.valueishtml="0" name=tour_details visible="1" edit.limit=250 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="0" tabsequence=150 border="5" color="0" x="1263" y="1" height="17" width="140" format="[general]" html.valueishtml="0" name=remarks visible="1" edit.limit=50 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=17 alignment="0" tabsequence=130 border="5" color="0" x="992" y="1" height="16" width="84" format="[shortdate] [time]" html.valueishtml="0" name=end_time visible="1" editmask.mask="HH:MM:SS" 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="16777215" )
column(band=detail id=16 alignment="0" tabsequence=120 border="5" color="0" x="906" y="1" height="16" width="84" format="" html.valueishtml="0" name=start_time visible="1" editmask.mask=" HH:MM:SS" 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="16777215" )
column(band=detail id=15 alignment="0" tabsequence=110 border="5" color="0" x="808" y="1" height="16" width="96" format="" html.valueishtml="0" name=tour_ends visible="1" ddlb.limit=1 ddlb.allowedit=no ddlb.case=any ddlb.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="16777215" )
column(band=detail id=14 alignment="0" tabsequence=100 border="5" color="0" x="710" y="1" height="16" width="96" format="" html.valueishtml="0" name=tour_starts visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.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="16777215" )
column(band=detail id=9 alignment="0" tabsequence=160 border="5" color="0" x="1405" y="1" height="17" width="82" format="[general]" html.valueishtml="0" name=emp_code__appr visible="1" edit.limit=10 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=13 alignment="0" tabsequence=32766 border="5" color="0" x="1827" y="1" height="17" width="65" format="[general]" html.valueishtml="0" name=work_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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=18 alignment="0" tabsequence=180 border="5" color="0" x="1578" y="1" height="17" width="76" format="dd/mm/yy" html.valueishtml="0" name=chg_date visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=19 alignment="0" tabsequence=190 border="5" color="0" x="1656" y="1" height="17" width="82" format="[general]" html.valueishtml="0" name=chg_user visible="1" edit.limit=0 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="16777215" )
column(band=detail id=20 alignment="0" tabsequence=200 border="5" color="0" x="1740" y="1" height="17" width="85" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=0 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="16777215" )
column(band=detail id=21 alignment="0" tabsequence=170 border="5" color="0" x="1489" y="1" height="17" width="87" format="dd/mm/yy" html.valueishtml="0" name=aprv_date visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=11 alignment="0" tabsequence=40 border="5" color="0" x="254" y="1" height="17" width="122" format="[general]" html.valueishtml="0" name=emp_fname 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=12 alignment="0" tabsequence=50 border="5" color="0" x="378" y="1" height="17" width="138" format="[general]" html.valueishtml="0" name=emp_lname 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=4 alignment="0" tabsequence=60 border="5" color="0" x="518" y="1" height="17" width="76" format="[shortdate] [time]" html.valueishtml="0" name=date_from 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=70 border="5" color="0" x="596" y="1" height="17" width="65" format="[shortdate] [time]" html.valueishtml="0" name=date_to visible="1" edit.limit=0 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=10 alignment="0" tabsequence=80 border="5" color="0" x="663" y="1" height="17" width="98" format="[general]" html.valueishtml="0" name=status tag="Status of the tour." visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.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="16777215" )
column(band=detail id=6 alignment="1" tabsequence=90 border="5" color="0" x="763" y="1" height="17" width="41" format="[general]" html.valueishtml="0" name=no_days tag="Total no. of days." visible="1" edit.limit=0 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="0" tabsequence=140 border="5" color="0" x="1174" y="1" height="17" width="183" format="[general]" html.valueishtml="0" name=tour_details visible="1" edit.limit=250 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="0" tabsequence=150 border="5" color="0" x="1359" y="1" height="17" width="140" format="[general]" html.valueishtml="0" name=remarks visible="1" edit.limit=50 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=17 alignment="0" tabsequence=130 border="5" color="0" x="1088" y="1" height="16" width="84" format="[shortdate] [time]" html.valueishtml="0" name=end_time visible="1" editmask.mask="HH:MM:SS" 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="16777215" )
column(band=detail id=16 alignment="0" tabsequence=120 border="5" color="0" x="1002" y="1" height="16" width="84" format="" html.valueishtml="0" name=start_time visible="1" editmask.mask=" HH:MM:SS" 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="16777215" )
column(band=detail id=15 alignment="0" tabsequence=110 border="5" color="0" x="904" y="1" height="16" width="96" format="" html.valueishtml="0" name=tour_ends visible="1" ddlb.limit=1 ddlb.allowedit=no ddlb.case=any ddlb.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="16777215" )
column(band=detail id=14 alignment="0" tabsequence=100 border="5" color="0" x="806" y="1" height="16" width="96" format="" html.valueishtml="0" name=tour_starts visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.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="16777215" )
column(band=detail id=9 alignment="0" tabsequence=160 border="5" color="0" x="1501" y="1" height="17" width="82" format="[general]" html.valueishtml="0" name=emp_code__appr visible="1" edit.limit=10 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=13 alignment="0" tabsequence=32766 border="5" color="0" x="1923" y="1" height="17" width="65" format="[general]" html.valueishtml="0" name=work_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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=18 alignment="0" tabsequence=180 border="5" color="0" x="1674" y="1" height="17" width="76" format="dd/mm/yy" html.valueishtml="0" name=chg_date visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=19 alignment="0" tabsequence=190 border="5" color="0" x="1752" y="1" height="17" width="82" format="[general]" html.valueishtml="0" name=chg_user visible="1" edit.limit=0 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="16777215" )
column(band=detail id=20 alignment="0" tabsequence=200 border="5" color="0" x="1836" y="1" height="17" width="85" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=0 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="16777215" )
column(band=detail id=21 alignment="0" tabsequence=170 border="5" color="0" x="1585" y="1" height="17" width="87" format="dd/mm/yy" html.valueishtml="0" name=aprv_date visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
......
......@@ -18,17 +18,17 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tour_i
column=(type=datetime update=yes updatewhereclause=yes name=chg_date dbname="tour.chg_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=chg_user dbname="tour.chg_user" )
column=(type=char(15) update=yes updatewhereclause=yes name=chg_term dbname="tour.chg_term" )
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(15) updatewhereclause=yes name=appr_by_fname dbname="employee.emp_fname" )
column=(type=char(15) updatewhereclause=yes name=appr_by_lname dbname="employee.emp_lname" )
column=(type=char(4000) updatewhereclause=yes name=emp_fname dbname="emp_fname" )
column=(type=char(4000) updatewhereclause=yes name=emp_lname dbname="emp_lname" )
column=(type=char(4000) updatewhereclause=yes name=appr_by_fname dbname="appr_by_fname" )
column=(type=char(4000) updatewhereclause=yes name=appr_by_lname dbname="appr_by_lname" )
column=(type=char(5) updatewhereclause=yes name=work_site dbname="employee.work_site" )
column=(type=char(1) update=yes updatewhereclause=yes name=tour_starts dbname="tour.tour_starts" initial="S" values="Between Day B/Start of Day S/" )
column=(type=char(1) update=yes updatewhereclause=yes name=tour_ends dbname="tour.tour_ends" initial="E" values="Between Day B/End of Day E/" )
column=(type=datetime update=yes updatewhereclause=yes name=start_time dbname="tour.start_time" )
column=(type=datetime update=yes updatewhereclause=yes name=end_time dbname="tour.end_time" )
column=(type=datetime update=yes updatewhereclause=yes name=aprv_date dbname="tour.aprv_date" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"tour~" ) TABLE(NAME=~"employee~" ALIAS=~"employee_a~" ) TABLE(NAME=~"employee~" ALIAS=~"employee_b~" ) COLUMN(NAME=~"tour.tour_id~") COLUMN(NAME=~"tour.plan_id~") COLUMN(NAME=~"tour.emp_code~") COLUMN(NAME=~"tour.date_from~") COLUMN(NAME=~"tour.date_to~") COLUMN(NAME=~"tour.no_days~") COLUMN(NAME=~"tour.tour_details~") COLUMN(NAME=~"tour.remarks~") COLUMN(NAME=~"tour.emp_code__appr~") COLUMN(NAME=~"tour.status~") COLUMN(NAME=~"tour.chg_date~") COLUMN(NAME=~"tour.chg_user~") COLUMN(NAME=~"tour.chg_term~") COLUMN(NAME=~"employee_a.emp_fname~") COLUMN(NAME=~"employee_a.emp_lname~") COLUMN(NAME=~"employee_b.emp_fname~") COLUMN(NAME=~"employee_b.emp_lname~") COLUMN(NAME=~"employee_a.work_site~") COLUMN(NAME=~"tour.tour_starts~") COLUMN(NAME=~"tour.tour_ends~") COLUMN(NAME=~"tour.start_time~") COLUMN(NAME=~"tour.end_time~") COLUMN(NAME=~"tour.aprv_date~") JOIN (LEFT=~"tour.emp_code__appr~" OP =~"=~"RIGHT=~"employee_b.emp_code~" OUTER1 =~"tour.emp_code__appr~" ) JOIN (LEFT=~"tour.emp_code~" OP =~"=~"RIGHT=~"employee_a.emp_code~" )WHERE( EXP1 =~"tour.tour_id~" OP =~"=~" EXP2 =~":mtour_id ~" ) ) ARG(NAME = ~"mtour_id~" TYPE = string) " update="tour" updatewhere=0 updatekeyinplace=no arguments=(("mtour_id", string)) )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"tour~" ) TABLE(NAME=~"employee~" ) COLUMN(NAME=~"tour.tour_id~") COLUMN(NAME=~"tour.plan_id~") COLUMN(NAME=~"tour.emp_code~") COLUMN(NAME=~"tour.date_from~") COLUMN(NAME=~"tour.date_to~") COLUMN(NAME=~"tour.no_days~") COLUMN(NAME=~"tour.tour_details~") COLUMN(NAME=~"tour.remarks~") COLUMN(NAME=~"tour.emp_code__appr~") COLUMN(NAME=~"tour.status~") COLUMN(NAME=~"tour.chg_date~") COLUMN(NAME=~"tour.chg_user~") COLUMN(NAME=~"tour.chg_term~") COMPUTE(NAME=~"FN_GET_EMP_NAME (~~~"TOUR~~~".~~~"EMP_CODE~~~", 'F1') as emp_fname~") COMPUTE(NAME=~"FN_GET_EMP_NAME (~~~"TOUR~~~".~~~"EMP_CODE~~~", 'L1') as emp_lname~") COMPUTE(NAME=~"FN_GET_EMP_NAME (~~~"TOUR~~~".~~~"EMP_CODE__APPR~~~", 'F1') as appr_by_fname~") COMPUTE(NAME=~"FN_GET_EMP_NAME (~~~"TOUR~~~".~~~"EMP_CODE__APPR~~~", 'L1') as appr_by_lname~") COLUMN(NAME=~"employee.work_site~") COLUMN(NAME=~"tour.tour_starts~") COLUMN(NAME=~"tour.tour_ends~") COLUMN(NAME=~"tour.start_time~") COLUMN(NAME=~"tour.end_time~") COLUMN(NAME=~"tour.aprv_date~") JOIN (LEFT=~"tour.emp_code~" OP =~"=~"RIGHT=~"employee.emp_code~" )WHERE( EXP1 =~"tour.tour_id~" OP =~"=~" EXP2 =~":mtour_id ~" ) ) ARG(NAME = ~"mtour_id~" TYPE = string) " update="tour" updatewhere=0 updatekeyinplace=no arguments=(("mtour_id", string)) )
groupbox(band=detail text="Tour"border="2" color="0" x="7" y="7" height="331" width="523" name=gb_1 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="553648127" )
text(band=detail alignment="1" text="Remarks :" border="0" color="0" x="18" y="132" height="16" width="104" html.valueishtml="0" name=t_1 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="Tour Id :" border="0" color="0" x="18" y="37" height="16" width="104" html.valueishtml="0" name=tour_id_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" )
......@@ -41,9 +41,7 @@ text(band=detail alignment="1" text="Remarks :" border="0" color="0" x="18" y="1
column(band=detail id=7 alignment="0" tabsequence=60 border="5" color="0" x="126" y="109" height="16" width="388" format="[general]" html.valueishtml="0" name=details visible="1" edit.limit=250 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Tour Starts :" border="0" color="0" x="18" y="157" height="16" width="104" html.valueishtml="0" name=tour_starts_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="Tour Ends :" border="0" color="0" x="329" y="157" height="16" width="83" html.valueishtml="0" name=tour_ends_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=9 alignment="0" tabsequence=32766 border="5" color="255" x="126" y="181" height="16" width="127" format="[general]" html.valueishtml="0" name=emp_code__appr visible="1" edit.limit=10 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Approved By :" border="0" color="0" x="18" y="181" height="16" width="104" html.valueishtml="0" name=emp_code__appr_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=16 alignment="0" tabsequence=32766 border="5" color="255" x="256" y="181" height="16" width="127" format="[general]" html.valueishtml="0" name=appr_by_fname 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Status :" border="0" color="0" x="18" y="205" height="16" width="104" html.valueishtml="0" name=status_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="Change User :" border="0" color="0" x="314" y="229" height="16" width="99" 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" height.autosize=yes)
column(band=detail id=10 alignment="0" tabsequence=32766 border="5" color="255" x="126" y="205" height="16" width="98" format="[general]" html.valueishtml="0" name=status tag="Status of the tour." visible="1" ddlb.limit=1 ddlb.allowedit=no ddlb.case=upper ddlb.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="79741120" )
......@@ -52,7 +50,6 @@ column(band=detail id=13 alignment="0" tabsequence=32766 border="5" color="0" x=
text(band=detail alignment="1" text="Work Site :" border="0" color="0" x="343" y="253" height="16" width="99" html.valueishtml="0" name=work_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" height.autosize=yes)
text(band=detail alignment="1" text="Change Date :" border="0" color="0" x="18" y="229" height="16" width="104" 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=detail alignment="1" text="Change Term :" border="0" color="0" x="18" y="253" height="16" width="104" 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" height.autosize=yes)
column(band=detail id=17 alignment="0" tabsequence=32766 border="5" color="255" x="387" y="181" height="16" width="127" format="[general]" html.valueishtml="0" name=appr_by_lname 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=12 alignment="0" tabsequence=32766 border="5" color="0" x="417" y="229" height="16" width="97" format="[general]" html.valueishtml="0" name=chg_user tag="User modifying the record, for internal purpose only." visible="1" height.autosize=yes edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=18 alignment="0" tabsequence=32766 border="5" color="0" x="448" y="253" height="16" width="66" format="[general]" html.valueishtml="0" name=work_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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="0" x="126" y="37" height="16" width="82" format="[general]" html.valueishtml="0" name=tour_id visible="1" edit.limit=10 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
......@@ -66,11 +63,14 @@ column(band=detail id=6 alignment="1" tabsequence=50 border="5" color="0" x="476
column(band=detail id=19 alignment="0" tabsequence=80 border="5" color="0" x="127" y="157" height="16" width="97" format="" html.valueishtml="0" name=tour_starts visible="1" ddlb.limit=1 ddlb.allowedit=no ddlb.case=upper ddlb.useasborder=yes ddlb.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="16777215" )
column(band=detail id=8 alignment="0" tabsequence=70 border="5" color="0" x="126" y="133" height="16" width="388" format="[general]" html.valueishtml="0" name=remarks visible="1" edit.limit=50 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=20 alignment="0" tabsequence=90 border="5" color="0" x="417" y="157" height="16" width="97" format="[general]" html.valueishtml="0" name=tour_ends visible="1" ddlb.limit=1 ddlb.allowedit=no ddlb.case=upper ddlb.useasborder=yes ddlb.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="16777215" )
column(band=detail id=3 alignment="0" tabsequence=20 border="5" color="0" x="126" y="61" height="16" width="82" format="[general]" html.valueishtml="0" name=emp_code tag="The code of the employee." visible="1" edit.limit=10 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=14 alignment="0" tabsequence=32766 border="5" color="255" x="214" y="61" height="16" width="146" format="[general]" html.valueishtml="0" name=emp_fname 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=15 alignment="0" tabsequence=32766 border="5" color="255" x="365" y="61" height="16" width="149" format="[general]" html.valueishtml="0" name=emp_lname 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=22 alignment="0" tabsequence=32766 border="5" color="255" x="333" y="296" height="16" width="90" format="[shortdate] [time]" html.valueishtml="0" name=end_time visible="0" 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=21 alignment="0" tabsequence=32766 border="5" color="255" x="128" y="294" height="16" width="98" format="[shortdate] [time]" html.valueishtml="0" name=start_time visible="0" 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=14 alignment="0" tabsequence=32766 border="5" color="255" x="214" y="61" height="16" width="146" format="[general]" html.valueishtml="0" name=emp_fname 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=16 alignment="0" tabsequence=32766 border="5" color="255" x="214" y="181" height="16" width="146" format="[general]" html.valueishtml="0" name=appr_by_fname 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=3 alignment="0" tabsequence=20 border="5" color="0" x="126" y="61" height="16" width="82" format="[general]" html.valueishtml="0" name=emp_code tag="The code of the employee." visible="1" edit.limit=10 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=9 alignment="0" tabsequence=32766 border="5" color="255" x="126" y="181" height="16" width="82" format="[general]" html.valueishtml="0" name=emp_code__appr visible="1" edit.limit=10 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=15 alignment="0" tabsequence=32766 border="5" color="255" x="365" y="61" height="16" width="149" format="[general]" html.valueishtml="0" name=emp_lname 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=17 alignment="0" tabsequence=32766 border="5" color="255" x="365" y="181" height="16" width="149" format="[general]" html.valueishtml="0" name=appr_by_lname 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
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 )
......
$PBExportHeader$d_tourdet_brow.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=19 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=20 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tour_id dbname="tourdet.tour_id" )
column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=line_no dbname="tourdet.line_no" )
column=(type=decimal(0) update=yes updatewhereclause=yes name=line_no__plan dbname="tourdet.line_no__plan" )
column=(type=char(5) update=yes updatewhereclause=yes name=stan_code dbname="tourdet.stan_code" )
column=(type=char(60) update=yes updatewhereclause=yes name=to_place dbname="tourdet.to_place" )
column=(type=datetime update=yes updatewhereclause=yes name=date_to dbname="tourdet.date_to" )
column=(type=char(200) update=yes updatewhereclause=yes name=purpose dbname="tourdet.purpose" )
column=(type=char(50) update=yes updatewhereclause=yes name=mode_travel dbname="tourdet.mode_travel" )
column=(type=datetime update=yes updatewhereclause=yes name=date_from dbname="tourdet.date_from" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"tourdet~" ) COLUMN(NAME=~"tourdet.tour_id~") COLUMN(NAME=~"tourdet.line_no~") COLUMN(NAME=~"tourdet.line_no__plan~") COLUMN(NAME=~"tourdet.stan_code~") COLUMN(NAME=~"tourdet.to_place~") COLUMN(NAME=~"tourdet.date_to~") COLUMN(NAME=~"tourdet.purpose~") COLUMN(NAME=~"tourdet.mode_travel~") COLUMN(NAME=~"tourdet.date_from~")WHERE( EXP1 =~"tourdet.tour_id~" OP =~"=~" EXP2 =~":mtour_id ~" ) ) ARG(NAME = ~"mtour_id~" TYPE = string) " update="TOURDET" updatewhere=0 updatekeyinplace=no arguments=(("mtour_id", string)) )
text(band=header alignment="0" text="Line No" border="6" color="0" x="2" y="2" height="16" width="51" html.valueishtml="0" name=line_no_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="0" text="Line No Plan" border="6" color="0" x="55" y="2" height="16" width="81" html.valueishtml="0" name=line_no__plan_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="Station Code" border="6" color="0" x="138" y="2" height="16" width="85" html.valueishtml="0" name=stan_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="79741120" )
text(band=header alignment="0" text="Place" border="6" color="0" x="225" y="2" height="16" width="142" html.valueishtml="0" name=to_place_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="0" text="Date To" border="6" color="0" x="370" y="2" height="16" width="67" html.valueishtml="0" name=date_to_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="0" text="Purpose" border="6" color="0" x="439" y="2" height="16" width="174" html.valueishtml="0" name=purpose_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="0" text="Mode of Travel" border="6" color="0" x="615" y="2" height="16" width="92" html.valueishtml="0" name=mode_travel_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="Tour Id" border="6" color="0" x="709" y="2" height="16" width="63" html.valueishtml="0" name=tour_id_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" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="0" x="2" y="1" height="16" width="51" format="#,##,##,###.####" html.valueishtml="0" name=line_no visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=10 border="5" color="0" x="55" y="1" height="16" width="81" format="#,##,##,###.####" html.valueishtml="0" name=line_no__plan visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=4 alignment="0" tabsequence=20 border="5" color="0" x="138" y="1" height="16" width="85" format="[general]" html.valueishtml="0" name=stan_code visible="1" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=30 border="5" color="0" x="225" y="1" height="16" width="142" format="[general]" html.valueishtml="0" name=to_place visible="1" edit.limit=20 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=6 alignment="0" tabsequence=40 border="5" color="0" x="370" y="1" height="16" width="67" format="[shortdate] [time]" html.valueishtml="0" name=date_to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="0" tabsequence=50 border="5" color="0" x="439" y="1" height="16" width="174" format="[general]" html.valueishtml="0" name=purpose visible="1" edit.limit=200 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="0" tabsequence=60 border="5" color="0" x="615" y="0" height="16" width="92" format="[general]" html.valueishtml="0" name=mode_travel visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="0" x="709" y="0" height="16" width="63" format="[general]" html.valueishtml="0" name=tour_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=9 alignment="0" tabsequence=70 border="5" color="0" x="775" y="0" height="16" width="72" html.valueishtml="0" name=date_from 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="16777215" )
text(band=header alignment="2" text="Date From" border="6" color="0" x="774" y="1" height="16" width="73" html.valueishtml="0" name=date_from_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" )
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_tourdet_edit.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=0 color="536870912" )
detail(height=322 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tour_id dbname="tourdet.tour_id" )
column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=line_no dbname="tourdet.line_no" )
column=(type=decimal(0) update=yes updatewhereclause=yes name=line_no__plan dbname="tourdet.line_no__plan" )
column=(type=char(5) update=yes updatewhereclause=yes name=stan_code dbname="tourdet.stan_code" )
column=(type=char(60) update=yes updatewhereclause=yes name=to_place dbname="tourdet.to_place" )
column=(type=datetime update=yes updatewhereclause=yes name=date_to dbname="tourdet.date_to" )
column=(type=char(200) update=yes updatewhereclause=yes name=purpose dbname="tourdet.purpose" )
column=(type=char(50) update=yes updatewhereclause=yes name=mode_travel dbname="tourdet.mode_travel" initial="Road" values="Air Air/Road Road/Train Train/Ship Ship/" )
column=(type=datetime update=yes updatewhereclause=yes name=date_from dbname="tourdet.date_from" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"tourdet~" ) COLUMN(NAME=~"tourdet.tour_id~") COLUMN(NAME=~"tourdet.line_no~") COLUMN(NAME=~"tourdet.line_no__plan~") COLUMN(NAME=~"tourdet.stan_code~") COLUMN(NAME=~"tourdet.to_place~") COLUMN(NAME=~"tourdet.date_to~") COLUMN(NAME=~"tourdet.purpose~") COLUMN(NAME=~"tourdet.mode_travel~") COLUMN(NAME=~"tourdet.date_from~")) " update="TOURDET" updatewhere=0 updatekeyinplace=no )
groupbox(band=detail text="Tour Details"border="2" color="0" x="12" y="25" height="211" width="571" name=gb_1 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="553648127" )
text(band=detail alignment="1" text="Purpose :" border="0" color="0" x="26" y="129" height="16" width="104" html.valueishtml="0" name=purpose_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=detail alignment="1" text="Mode of Travel :" border="0" color="0" x="26" y="189" height="16" width="104" html.valueishtml="0" name=mode_travel_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=detail alignment="1" text="Line No :" border="0" color="0" x="26" y="54" height="16" width="104" html.valueishtml="0" name=line_no_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" )
column(band=detail id=2 alignment="1" tabsequence=32766 border="5" color="255" x="134" y="54" height="16" width="42" format="[General]" html.valueishtml="0" name=line_no visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=7 alignment="0" tabsequence=50 border="5" color="0" x="134" y="129" height="51" width="393" format="[general]" html.valueishtml="0" name=purpose visible="1" edit.limit=200 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autovscroll=yes edit.imemode=0 edit.vscrollbar=yes 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="16777215" )
column(band=detail id=8 alignment="0" tabsequence=60 border="5" color="0" x="134" y="189" height="16" width="91" format="[general]" html.valueishtml="0" name=mode_travel visible="1" ddlb.limit=1 ddlb.allowedit=no ddlb.case=upper ddlb.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="16777215" )
column(band=detail id=5 alignment="0" tabsequence=30 border="5" color="0" x="427" y="79" height="16" width="98" format="[general]" html.valueishtml="0" name=to_place visible="1" edit.limit=20 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="1" tabsequence=10 border="5" color="0" x="427" y="54" height="16" width="98" format="###" html.valueishtml="0" name=line_no__plan visible="1" editmask.mask="###" 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="16777215" )
column(band=detail id=4 alignment="0" tabsequence=20 border="5" color="0" x="134" y="79" height="16" width="74" format="[general]" html.valueishtml="0" name=stan_code visible="1" edit.limit=5 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Station Code :" border="0" color="0" x="26" y="79" height="16" width="104" html.valueishtml="0" name=stan_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="79741120" )
text(band=detail alignment="1" text="Line No Plan :" border="0" color="0" x="339" y="54" height="16" width="84" html.valueishtml="0" name=line_no__plan_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=detail alignment="1" text="Place :" border="0" color="0" x="339" y="79" height="16" width="84" html.valueishtml="0" name=to_place_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=detail alignment="1" text="Date To :" border="0" color="0" x="340" y="104" height="16" width="84" html.valueishtml="0" name=date_to_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=detail alignment="1" text="Tour Id :" border="0" color="0" x="340" y="189" height="16" width="84" html.valueishtml="0" name=tour_id_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" )
column(band=detail id=6 alignment="0" tabsequence=40 border="5" color="0" x="428" y="104" height="16" width="98" format="dd/mm/yy" html.valueishtml="0" name=date_to visible="1" edit.name="datetime" 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="16777215" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="0" x="428" y="189" height="16" width="98" format="[general]" html.valueishtml="0" name=tour_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Date From :" border="0" color="0" x="26" y="103" height="16" width="104" html.valueishtml="0" name=date_from_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=9 alignment="0" tabsequence=70 border="5" color="255" x="134" y="103" height="16" width="55" format="[shortdate] [time]" html.valueishtml="0" name=date_from 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="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
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
......@@ -46,7 +46,7 @@ public class AttendanceProcess extends ValidatorEJB
int ilRemMin1 = 0;
public String isProcFrom = "MANUAL";
public String gbfAutoAttdProc(String asEmpCode, Timestamp adFromDate, Timestamp adToDate, int aiCommit, String xtraParams)throws RemoteException, ITMException
public String gbfAutoAttdProc(String asEmpCode, Timestamp adFromDate, Timestamp adToDate, int aiCommit, String xtraParams , Connection conn)throws RemoteException, ITMException
{
String[] lsPrdCode = new String[10];
String lsErrCode = ""; String lsPrd = ""; String lsWorkSite = ""; String lsProcGroup = "";
......@@ -55,7 +55,6 @@ public class AttendanceProcess extends ValidatorEJB
Timestamp ldCutOffDate = null; Timestamp ldFrDt = null; Timestamp ldToDt = null;
Timestamp[] ldFr = new Timestamp[10];
Timestamp[] ldTo = new Timestamp[10];
Connection conn = null;
PreparedStatement pstmt = null;
PreparedStatement pstmtAttdMnth = null;
ResultSet rs = null;
......@@ -70,7 +69,7 @@ public class AttendanceProcess extends ValidatorEJB
userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId"));
conn = getConnection();
//conn = getConnection();
lsAuto = admCommon.getEnv("999999", "AUTOLVEAPRV", conn);
String str1;
......
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
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.ValidatorEJB;
import ibase.webitm.ejb.fin.FinCommon;
import ibase.webitm.ejb.sys.UtilMethods;
import ibase.webitm.utility.ITMException;
public class TourIC extends ValidatorEJB implements TourICLocal,TourICRemote
{
AdmCommon admCommon = new AdmCommon();
FinCommon finCommon = new FinCommon();
E12GenericUtility genericUtility = new E12GenericUtility();
UtilMethods utilmethod = new UtilMethods();
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext,
String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException
{
Document dom1 = null;
Document dom = null;
Document dom2 = null;
String valueXmlString = "";
E12GenericUtility genericUtility = null;
try
{
genericUtility = new E12GenericUtility();
if (xmlString != null && xmlString.trim().length() != 0)
{
dom = genericUtility.parseString(xmlString);
}
if (xmlString1 != null && xmlString1.trim().length() != 0)
{
dom1 = genericUtility.parseString(xmlString1);
}
if (xmlString2 != null && xmlString2.trim().length() != 0)
{
dom2 = genericUtility.parseString(xmlString2);
}
valueXmlString = itemChanged(dom, dom1, dom2, objContext, currentColumn, editFlag, xtraParams);
System.out.println("valueXmlString::::::::::"+valueXmlString);
}
catch (Exception e)
{
System.out.println("Exception :TourIC :itemChanged(String,String):" + e.getMessage() + ":");
valueXmlString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e);
}
System.out.println("returning from TourIC itemChanged");
return valueXmlString;
}
public String itemChanged(Document dom , Document dom1, Document dom2, String objContext, String currentColumn,
String editFlag, String xtraParams) throws RemoteException, ITMException
{
PreparedStatement pstmt = null;
String sql = "";
ResultSet rs = null;
Connection conn = null;
StringBuffer valueXmlString = null;
int currentFormNo = 0;
int ctr=0;
int childNodeListLength = 0;
NodeList parentNodeList = null;
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
String childNodeName = null;
String userId="";
String loginSite="";
String todayDateStr = "";
Timestamp mDate1 = null;
Timestamp mDate2 = null;
Timestamp mdtfr = null;
Timestamp mdtto = null;
String mCode = "";
String mCode1 = "";
String empFname = "",empLname = "";
String empCode = "",mTourDet = "",mRemrk = "";
String reportTo = "",lsSite = "";
String mdescr = "",mstancd = "",mplace = "";
String mpurpose = "",mroad = "";
String tourStarts = "",tourEnds = "";
String empFnameLong = "",empLnameLong = "";
int mLevl = 0;
String mDate1Str = "";
String mDate2Str = "";
double noDays = 0.0;
String noDaysStr ="";
String tourId = "";
String lineStr = "";
String mdtfrStr = "";
String mdttoStr = "";
long liLine = 0;
try
{
conn = getConnection();
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
loginSite = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
System.out.println("User Id ---> "+userId);
System.out.println("Login Site ---> "+loginSite);
todayDateStr=sdf.format(new java.util.Date());
mroad = admCommon.getEnv("999999", "T_MODE", conn);
sql = "select usr_lev from users where code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, userId);
rs = pstmt.executeQuery();
if(rs.next())
{
mLevl = rs.getInt("usr_lev");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
System.out.println("currentFormNo...." + currentFormNo);
conn = getConnection();
if (objContext != null && objContext.trim().length() > 0)
{
currentFormNo = Integer.parseInt(objContext);
}
valueXmlString = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root>\r\n<Header>\r\n<editFlag>");
valueXmlString.append(editFlag).append("</editFlag>\r\n</Header>\r\n");
System.out.println("current form no: " + currentFormNo);
switch (currentFormNo)
{
case 1:
{
System.out.println("****************Inside Case 1 of ItemChange*********************");
parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
valueXmlString.append("<Detail1>\r\n");
childNodeListLength = childNodeList.getLength();
do
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
ctr++;
}
while ((ctr < childNodeListLength) && (!childNodeName.equals(currentColumn)));
if(currentColumn.trim().equalsIgnoreCase("itm_default"))
{
System.out.println("::::Inside itm_default::::");
valueXmlString.append("<date_from>").append("<![CDATA["+todayDateStr+"]]>").append("</date_from>");
valueXmlString.append("<date_to>").append("<![CDATA["+todayDateStr+"]]>").append("</date_to>");
valueXmlString.append("<no_days>").append("<![CDATA[1]]>").append("</no_days>");
valueXmlString.append("<start_time>").append("<![CDATA["+todayDateStr+"]]>").append("</start_time>");
valueXmlString.append("<end_time>").append("<![CDATA["+todayDateStr+"]]>").append("</end_time>");
valueXmlString.append("<status>").append("<![CDATA[U]]>").append("</status>");
valueXmlString.append("<tour_starts>").append("<![CDATA[S]]>").append("</tour_starts>");
valueXmlString.append("<tour_ends>").append("<![CDATA[E]]>").append("</tour_ends>");
}
else if(currentColumn.trim().equalsIgnoreCase("plan_id"))
{
System.out.println("::::Inside plan_id::::");
mCode = checkNull(genericUtility.getColumnValue("plan_id", dom));
if(mCode != null && mCode.trim().length() > 0)
{
sql= "select emp_code,date_from,date_to,tour_details,remarks from tourplan where plan_id = ?";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1, mCode);
rs = pstmt.executeQuery();
if(rs.next())
{
empCode = checkNull(rs.getString("emp_code"));
mDate1 = rs.getTimestamp("date_from");
mDate2 = rs.getTimestamp("date_to");
mTourDet = checkNull(rs.getString("tour_details"));
mRemrk = checkNull(rs.getString("remarks"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<emp_code protect=\"1\" >").append("<![CDATA["+empCode+"]]>").append("</emp_code>");
sql = "Select emp_fname,emp_lname,work_site,emp_fname_long,emp_lname_long"+
" from employee where emp_code = ? and work_site = (case when ? > 1 then ? else work_site end)";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,empCode);
pstmt.setInt(2,mLevl);
pstmt.setString(3,loginSite);
rs = pstmt.executeQuery();
if(rs.next())
{
empFname = checkNull(rs.getString("emp_fname"));
empLname = checkNull(rs.getString("emp_lname"));
lsSite = checkNull(rs.getString("work_site"));
empFnameLong = checkNull(rs.getString("emp_fname_long"));
empLnameLong = checkNull(rs.getString("emp_lname_long"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(empFnameLong != null && empFnameLong.trim().length() > 0)
{
empFname = empFnameLong;
}
if(empLnameLong != null && empLnameLong.trim().length() > 0)
{
empLname = empLnameLong;
}
if(mDate1 != null)
{
mDate1Str = genericUtility.getValidDateString(mDate1, genericUtility.getApplDateFormat());
}
if(mDate2 != null)
{
mDate2Str = genericUtility.getValidDateString(mDate2, genericUtility.getApplDateFormat());
}
valueXmlString.append("<emp_fname>").append("<![CDATA["+empFname+"]]>").append("</emp_fname>");
valueXmlString.append("<emp_lname>").append("<![CDATA["+empLname+"]]>").append("</emp_lname>");
valueXmlString.append("<work_site>").append("<![CDATA["+lsSite+"]]>").append("</work_site>");
valueXmlString.append("<date_from>").append("<![CDATA["+mDate1Str+"]]>").append("</date_from>");
valueXmlString.append("<date_to>").append("<![CDATA["+mDate2Str+"]]>").append("</date_to>");
valueXmlString.append("<details>").append("<![CDATA["+mTourDet+"]]>").append("</details>");
valueXmlString.append("<remarks>").append("<![CDATA["+mRemrk+"]]>").append("</remarks>");
valueXmlString.append("<start_time>").append("<![CDATA["+mDate1Str+"]]>").append("</start_time>");
valueXmlString.append("<end_time>").append("<![CDATA["+mDate2Str+"]]>").append("</end_time>");
if(mDate1 != null && mDate2 != null)
{
noDays = utilmethod.DaysAfter(mDate1, mDate2)+1;
}
valueXmlString.append("<no_days>").append("<![CDATA["+noDays+"]]>").append("</no_days>");
}
}
else if(currentColumn.trim().equalsIgnoreCase("emp_code"))
{
System.out.println("::::Inside emp_code::::");
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
sql = "select emp_fname,emp_lname,report_to, work_site, emp_fname_long, emp_lname_long from employee where emp_code = ?";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,empCode);
rs = pstmt.executeQuery();
if(rs.next())
{
empFname = checkNull(rs.getString("emp_fname"));
empLname = checkNull(rs.getString("emp_lname"));
reportTo = checkNull(rs.getString("report_to"));
lsSite = checkNull(rs.getString("work_site"));
empFnameLong = checkNull(rs.getString("emp_fname_long"));
empLnameLong = checkNull(rs.getString("emp_lname_long"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(empFnameLong != null && empFnameLong.trim().length() > 0)
{
empFname = empFnameLong;
}
if(empLnameLong != null && empLnameLong.trim().length() > 0)
{
empLname = empLnameLong;
}
valueXmlString.append("<emp_fname>").append("<![CDATA["+empFname+"]]>").append("</emp_fname>");
valueXmlString.append("<emp_lname>").append("<![CDATA["+empLname+"]]>").append("</emp_lname>");
valueXmlString.append("<work_site>").append("<![CDATA["+lsSite+"]]>").append("</work_site>");
}
else if(currentColumn.trim().equalsIgnoreCase("emp_code__appr"))
{
System.out.println("::::Inside emp_code__appr::::");
mCode = checkNull(genericUtility.getColumnValue("emp_code__appr", dom));
sql = "select emp_fname, emp_lname, emp_fname_long, emp_lname_long from employee where emp_code = ?";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,mCode);
rs = pstmt.executeQuery();
if(rs.next())
{
empFname = checkNull(rs.getString("emp_fname"));
empLname = checkNull(rs.getString("emp_lname"));
empFnameLong = checkNull(rs.getString("emp_fname_long"));
empLnameLong = checkNull(rs.getString("emp_lname_long"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(empFnameLong != null && empFnameLong.trim().length() > 0)
{
empFname = empFnameLong;
}
if(empLnameLong != null && empLnameLong.trim().length() > 0)
{
empLname = empLnameLong;
}
valueXmlString.append("<appr_by_fname>").append("<![CDATA["+empFname+"]]>").append("</appr_by_fname>");
valueXmlString.append("<appr_by_lname>").append("<![CDATA["+empLname+"]]>").append("</appr_by_lname>");
}
else if(currentColumn.trim().equalsIgnoreCase("date_from"))
{
System.out.println("::::Inside date_from::::");
mDate1Str = checkNull(genericUtility.getColumnValue("date_from", dom));
System.out.println("mDate1Str ========"+mDate1Str);
if(mDate1Str != null && mDate1Str.trim().length() > 0)
{
mDate1 = Timestamp.valueOf(genericUtility.getValidDateString(mDate1Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
System.out.println("mDate1 ========"+mDate1);
}
mDate2Str = checkNull(genericUtility.getColumnValue("date_to", dom));
if(mDate2Str != null && mDate2Str.trim().length() > 0)
{
mDate2 = Timestamp.valueOf(genericUtility.getValidDateString(mDate2Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
tourStarts = checkNull(genericUtility.getColumnValue("tour_starts", dom));
tourEnds = checkNull(genericUtility.getColumnValue("tour_ends", dom));
valueXmlString.append("<start_time>").append("<![CDATA["+mDate1Str+"]]>").append("</start_time>");
if("B".equalsIgnoreCase(tourStarts) || "B".equalsIgnoreCase(tourEnds))
{
if(mDate1 != null && mDate2 != null)
{
if(noDays != utilmethod.DaysAfter(mDate1, mDate2) + 1)
{
if("B".equalsIgnoreCase(tourStarts) && "B".equalsIgnoreCase(tourEnds))
{
noDays = utilmethod.DaysAfter(mDate1, mDate2) + 1 - 1;
}
else
{
noDays = utilmethod.DaysAfter(mDate1, mDate2) + 1 - 0.5;
}
}
else
{
if("B".equalsIgnoreCase(tourStarts) && "B".equalsIgnoreCase(tourEnds))
{
noDays = noDays - 1;
}
else
{
noDays = noDays - 0.5;
}
}
}
}
else
{
if(mDate1 != null && mDate2 != null)
{
if(noDays != utilmethod.DaysAfter(mDate1, mDate2) + 1)
{
noDays = utilmethod.DaysAfter(mDate1, mDate2) + 1;
}
else
{
noDays = noDays + 0.5;
}
}
}
if(mDate1 != null && mDate2 != null)
{
if(mDate1.after(mDate2))
{
noDays = utilmethod.DaysAfter(mDate1, mDate2) + 1;
}
}
if(String.valueOf(noDays) == null ||noDays < 0)
{
noDays = 0;
}
valueXmlString.append("<no_days>").append("<![CDATA["+noDays+"]]>").append("</no_days>");
}
else if(currentColumn.trim().equalsIgnoreCase("date_to"))
{
System.out.println("::::Inside date_to::::");
mDate1Str = checkNull(genericUtility.getColumnValue("date_from", dom));
if(mDate1Str != null && mDate1Str.trim().length() > 0)
{
mDate1 = Timestamp.valueOf(genericUtility.getValidDateString(mDate1Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
mDate2Str = checkNull(genericUtility.getColumnValue("date_to", dom));
if(mDate2Str != null && mDate2Str.trim().length() > 0)
{
mDate2 = Timestamp.valueOf(genericUtility.getValidDateString(mDate2Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
tourStarts = checkNull(genericUtility.getColumnValue("tour_starts", dom));
tourEnds = checkNull(genericUtility.getColumnValue("tour_ends", dom));
valueXmlString.append("<end_time>").append("<![CDATA["+mDate2Str+"]]>").append("</end_time>");
if("B".equalsIgnoreCase(tourStarts) || "B".equalsIgnoreCase(tourEnds))
{
if(mDate1 != null && mDate2 != null)
{
if(noDays != utilmethod.DaysAfter(mDate1, mDate2) + 1)
{
if("B".equalsIgnoreCase(tourStarts) && "B".equalsIgnoreCase(tourEnds))
{
noDays = utilmethod.DaysAfter(mDate1, mDate2) + 1 - 1;
}
else
{
noDays = utilmethod.DaysAfter(mDate1, mDate2) + 1 - 0.5;
}
}
else
{
if("B".equalsIgnoreCase(tourStarts) && "B".equalsIgnoreCase(tourEnds))
{
noDays = noDays - 1;
}
else
{
noDays = noDays - 0.5;
}
}
}
}
else
{
if(mDate1 != null && mDate2 != null)
{
if(noDays != utilmethod.DaysAfter(mDate1, mDate2) + 1)
{
noDays = utilmethod.DaysAfter(mDate1, mDate2) + 1;
}
else
{
noDays = noDays + 0.5;
}
}
}
if(mDate1 != null && mDate2 != null)
{
if(mDate2.before(mDate1))
{
noDays = utilmethod.DaysAfter(mDate1, mDate2) + 1;
}
}
if(String.valueOf(noDays) == null ||noDays < 0)
{
noDays = 0;
}
valueXmlString.append("<no_days>").append("<![CDATA["+noDays+"]]>").append("</no_days>");
}
else if(currentColumn.trim().equalsIgnoreCase("tour_starts"))
{
System.out.println("::::Inside tour_starts::::");
tourStarts = checkNull(genericUtility.getColumnValue("tour_starts", dom));
noDaysStr = checkNull(genericUtility.getColumnValue("no_days", dom));
if(noDaysStr != null && noDaysStr.trim().length()>0)
{
noDays = Double.parseDouble(noDaysStr);
}
mDate1Str = checkNull(genericUtility.getColumnValue("date_from", dom));
if(mDate1Str != null && mDate1Str.trim().length() > 0)
{
mDate1 = Timestamp.valueOf(genericUtility.getValidDateString(mDate1Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
mDate2Str = checkNull(genericUtility.getColumnValue("date_to", dom));
if(mDate2Str != null && mDate2Str.trim().length() > 0)
{
mDate2 = Timestamp.valueOf(genericUtility.getValidDateString(mDate2Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
if(mDate1 != null && mDate2 != null)
{
if(mDate1.before(mDate2) || mDate1.equals(mDate2))
{
if("B".equalsIgnoreCase(tourStarts))
{
if(noDays != utilmethod.DaysAfter(mDate1, mDate2) + 1)
{
noDays = noDays - 0.5;
}
else
{
noDays = utilmethod.DaysAfter(mDate1, mDate2) + 1 - 0.5;
}
}
else
{
if(noDays != utilmethod.DaysAfter(mDate1, mDate2) + 1)
{
noDays = noDays + 0.5;
}
else
{
noDays = utilmethod.DaysAfter(mDate1, mDate2) + 1;
}
}
}
else
{
noDays = utilmethod.DaysAfter(mDate1, mDate2) + 1;
}
}
if(String.valueOf(noDays) == null ||noDays < 0)
{
noDays = 0;
}
valueXmlString.append("<no_days>").append("<![CDATA["+noDays+"]]>").append("</no_days>");
}
else if(currentColumn.trim().equalsIgnoreCase("tour_ends"))
{
System.out.println("::::Inside tour_ends::::");
tourEnds = checkNull(genericUtility.getColumnValue("tour_ends", dom));
noDaysStr = checkNull(genericUtility.getColumnValue("no_days", dom));
if(noDaysStr != null && noDaysStr.trim().length()>0)
{
noDays = Double.parseDouble(noDaysStr);
}
mDate1Str = checkNull(genericUtility.getColumnValue("date_from", dom));
if(mDate1Str != null && mDate1Str.trim().length() > 0)
{
mDate1 = Timestamp.valueOf(genericUtility.getValidDateString(mDate1Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
mDate2Str = checkNull(genericUtility.getColumnValue("date_to", dom));
if(mDate2Str != null && mDate2Str.trim().length() > 0)
{
mDate2 = Timestamp.valueOf(genericUtility.getValidDateString(mDate2Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
if(mDate1 != null && mDate2 != null)
{
if(mDate2.after(mDate1) || mDate2.equals(mDate1))
{
if("B".equalsIgnoreCase(tourEnds))
{
if(noDays != utilmethod.DaysAfter(mDate1, mDate2) + 1)
{
noDays = noDays - 0.5;
}
else
{
noDays = utilmethod.DaysAfter(mDate1, mDate2) + 1 - 0.5;
}
}
else
{
if(noDays != utilmethod.DaysAfter(mDate1, mDate2) + 1)
{
noDays = noDays + 0.5;
}
else
{
noDays = utilmethod.DaysAfter(mDate1, mDate2) + 1;
}
}
}
else
{
noDays = utilmethod.DaysAfter(mDate1, mDate2) + 1;
}
}
if(String.valueOf(noDays) == null || noDays < 0)
{
noDays = 0;
}
valueXmlString.append("<no_days>").append("<![CDATA["+noDays+"]]>").append("</no_days>");
}
valueXmlString.append ("</Detail1>\r\n");
}
break;
case 2:
{
System.out.println("****************Inside Case 2 of ItemChange*********************");
parentNodeList = dom.getElementsByTagName("Detail2");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
valueXmlString.append("<Detail2>\r\n");
childNodeListLength = childNodeList.getLength();
do
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
ctr++;
}
while ((ctr < childNodeListLength) && (!childNodeName.equals(currentColumn)));
if(currentColumn.trim().equalsIgnoreCase("itm_default"))
{
System.out.println("::::Inside itm_default case 2::::");
System.out.println("xtraParams ==="+xtraParams);
tourId = checkNull(genericUtility.getColumnValue("tour_id", dom));
System.out.println("tourId---->"+tourId);
valueXmlString.append("<tour_id>").append("<![CDATA["+tourId+"]]>").append("</tour_id>");
lineStr = checkNull(genericUtility.getColumnValue("line_no", dom));
System.out.println("lineStr---->"+lineStr);
if(lineStr != null && lineStr.trim().length() > 0)
{
liLine = Long.parseLong(lineStr);
}
if(liLine > 0)
{
valueXmlString.append("<line_no>").append("<![CDATA["+liLine+"]]>").append("</line_no>");
}
valueXmlString.append("<mode_travel>").append("<![CDATA[Road]]>").append("</mode_travel>");
}
else if(currentColumn.trim().equalsIgnoreCase("line_no__plan"))
{
System.out.println("::::Inside line_no__plan::::");
mCode = checkNull(genericUtility.getColumnValue("plan_id", dom1));
System.out.println("plan_id dom:::::"+mCode);
mCode1 = checkNull(genericUtility.getColumnValue("line_no__plan", dom));
System.out.println("line_no__plan:::::"+mCode1);
sql = "select stan_code,to_place,date_from,date_to,purpose from tourplandet where plan_id = ? and line_no = ?";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,mCode);
pstmt.setString(2,mCode1);
rs = pstmt.executeQuery();
if(rs.next())
{
mstancd = checkNull(rs.getString("stan_code"));
mplace = checkNull(rs.getString("to_place"));
mdtfr = rs.getTimestamp("date_from");
mdtto = rs.getTimestamp("date_to");
mpurpose = checkNull(rs.getString("purpose"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<stan_code>").append("<![CDATA["+mstancd+"]]>").append("</stan_code>");
valueXmlString.append("<to_place>").append("<![CDATA["+mplace+"]]>").append("</to_place>");
if(mdtfr != null)
{
mdtfrStr = genericUtility.getValidDateString(mdtfr, genericUtility.getApplDateFormat());
}
valueXmlString.append("<date_from>").append("<![CDATA["+mdtfrStr+"]]>").append("</date_from>");
if(mdtto != null)
{
mdttoStr = genericUtility.getValidDateString(mdtto, genericUtility.getApplDateFormat());
}
valueXmlString.append("<date_to>").append("<![CDATA["+mdttoStr+"]]>").append("</date_to>");
valueXmlString.append("<purpose>").append("<![CDATA["+mpurpose+"]]>").append("</purpose>");
valueXmlString.append("<mode_travel>").append("<![CDATA["+mroad+"]]>").append("</mode_travel>");
}
else if(currentColumn.trim().equalsIgnoreCase("stan_code"))
{
System.out.println("::::Inside stan_code::::");
mCode = checkNull(genericUtility.getColumnValue("stan_code", dom));
sql = "select descr from station where stan_code = ?";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,mCode);
rs = pstmt.executeQuery();
if(rs.next())
{
mdescr = checkNull(rs.getString("descr"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<to_place>").append("<![CDATA["+mdescr+"]]>").append("</to_place>");
}
valueXmlString.append ("</Detail2>\r\n");
}
break;
}
valueXmlString.append("</Root>");
}
catch (Exception e)
{
e.printStackTrace();
System.out.println("Exception :TourIC [itemChanged(String xmlString)] : ==>\n" + e.getMessage());
throw new ITMException(e);
}
finally
{
try
{
if (conn != null)
{
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
conn.close();
conn = null;
}
}
catch (Exception e)
{
System.out.println("Exception ::" + e);
e.printStackTrace();
throw new ITMException(e);
}
}
return valueXmlString.toString();
}
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext, String editFlag,
String xtraParams) throws RemoteException, ITMException
{
System.out.println("xmlString::::::::::::"+xmlString);
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String errString = "";
E12GenericUtility genericUtility = null;
try
{
genericUtility = new E12GenericUtility();
if (xmlString != null && xmlString.trim().length() != 0)
{
dom = genericUtility.parseString(xmlString);
System.out.println("Print dom>>>> " + dom);
}
if (xmlString1 != null && xmlString1.trim().length() != 0)
{
dom1 = genericUtility.parseString(xmlString1);
}
if (xmlString2 != null && xmlString2.trim().length() != 0)
{
dom2 = genericUtility.parseString(xmlString2);
}
errString = wfValData(dom, dom1, dom2, objContext, editFlag, xtraParams);
System.out.println("ErrString :" + errString);
}
catch (Exception e)
{
System.out.println("Exception :TourIC :wfValData(String xmlString):" + e.getMessage() + ":");
errString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e);
}
System.out.println("returning from TourIC wfvaldata");
return errString;
}
public String wfValData(Document dom, Document dom1, Document dom2,String objContext, String editFlag, String xtraParams)
throws RemoteException, ITMException
{
NodeList parentNodeList = null;
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
String userId="";
String errString = "";
int mLevl = 0;
String childNodeName = null,childNodeValue = null;
int cnt = 0,currentFormNo = 0,childNodeListLength = 0,ctr=0;
String sql= "";
String errCode = "",msgType= "";
ArrayList<String> errList = new ArrayList<String>();
ArrayList<String> errFields = new ArrayList<String>();
String errorType = "";
String errFldName="";
String loginSiteCode = "";
StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>");
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
String lsStatus = "";
String mtpemp = "";
String empCode = "";
String mVal = "";
String planId = "";
String noDays = "";
String mDate1Str = "";
String mDate2Str = "";
String mDate3Str = "";
String tourStarts = "";
String tourEnds = "";
String lsSite = "";
String lineNo = "";
Timestamp mDate = null;
Timestamp mDate1 = null;
Timestamp mDate2 = null;
Timestamp mDate3 = null;
Timestamp ldRel = null;
double lval = 0.0;
double lval1 = 0.0;
try
{
conn = getConnection();
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
loginSiteCode = this.genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
if(objContext != null && objContext.trim().length()>0)
{
currentFormNo = Integer.parseInt(objContext);
}
System.out.println(" ***********Validation for Tour "+currentFormNo + " ***********");
sql = "select usr_lev from users where code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, userId);
rs = pstmt.executeQuery();
if(rs.next())
{
mLevl = rs.getInt("usr_lev");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
switch(currentFormNo)
{
case 1 :
{
System.out.println("Validation for Detail 1 Loans Opening..........");
parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
System.out.println("child Node List Length::::::"+childNodeListLength);
for(ctr = 0; ctr < childNodeListLength; ctr++)
{
childNode = childNodeList.item(ctr);
System.out.println("childNode"+childNode);
if( childNode.getNodeType() != Node.ELEMENT_NODE )
{
continue;
}
childNodeName = childNode.getNodeName();
if(childNode.getFirstChild()!= null)
{
childNodeValue = childNode.getFirstChild().getNodeValue();
}
if(childNodeName.equalsIgnoreCase("emp_code"))
{
System.out.println(":::Inside emp_code Validation:::");
empCode = genericUtility.getColumnValue("emp_code", dom);
sql = "select count(*) as cnt from employee where emp_code = ? and work_site = (case when ? > 1 then ? else work_site end)";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,empCode);
pstmt.setInt(2,mLevl);
pstmt.setString(3,loginSiteCode);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errList.add("VMEMP1");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VMEMP1");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
sql = "select status from employee where emp_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,empCode);
rs = pstmt.executeQuery();
if (rs.next())
{
lsStatus = checkNull(rs.getString("status"));
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if("S".equalsIgnoreCase(lsStatus))
{
errList.add("VTSEPEMP");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VTSEPEMP");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
planId = genericUtility.getColumnValue("plan_id", dom);
if(planId != null && planId.trim().length() > 0)
{
sql = "select emp_code from tourplan where plan_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,planId);
rs = pstmt.executeQuery();
if (rs.next())
{
mtpemp = checkNull(rs.getString("emp_code"));
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
System.out.println("planId :::"+planId);
System.out.println("emp_code :::"+mtpemp);
if(!planId.equalsIgnoreCase(mtpemp))
{
errList.add("VTEMPNF");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VTEMPNF");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
}
}
else if(childNodeName.equalsIgnoreCase("emp_code__appr"))
{
System.out.println(":::Inside emp_code__appr Validation:::");
mVal = genericUtility.getColumnValue("emp_code__appr", dom);
cnt = 0;
if(mVal != null && mVal.trim().length() > 0)
{
sql = "select count(*) as cnt from employee where emp_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,mVal);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errList.add("VMEMP1");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VMEMP1");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
}
}
else if(childNodeName.equalsIgnoreCase("no_days"))
{
System.out.println(":::Inside no_days Validation:::");
noDays =checkNull(genericUtility.getColumnValue("no_days", dom));
if(noDays != null && noDays.trim().length() > 0)
{
lval = Double.parseDouble(noDays);
}
if(lval <= 0)
{
errList.add("VTTOUR0003");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VTTOUR0003");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
else
{
mDate1Str = checkNull(genericUtility.getColumnValue("date_from", dom));
if(mDate1Str != null && mDate1Str.trim().length() > 0)
{
mDate1 = Timestamp.valueOf(genericUtility.getValidDateString(mDate1Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
mDate2Str = checkNull(genericUtility.getColumnValue("date_to", dom));
if(mDate2Str != null && mDate2Str.trim().length() > 0)
{
mDate2 = Timestamp.valueOf(genericUtility.getValidDateString(mDate2Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
tourStarts = checkNull(genericUtility.getColumnValue("tour_starts", dom));
tourEnds = checkNull(genericUtility.getColumnValue("tour_ends", dom));
if("B".equalsIgnoreCase(tourStarts) && "B".equalsIgnoreCase(tourEnds))
{
if(mDate1 != null && mDate2 != null)
{
lval1 = utilmethod.DaysAfter(mDate1, mDate2) - 1;
}
}
else if("B".equalsIgnoreCase(tourStarts) || "B".equalsIgnoreCase(tourEnds))
{
if(mDate1 != null && mDate2 != null)
{
lval1 = utilmethod.DaysAfter(mDate1, mDate2) - 0.5;
}
}
else
{
if(mDate1 != null && mDate2 != null)
{
lval1 = utilmethod.DaysAfter(mDate1, mDate2);
}
}
if(lval <= lval1 || lval > lval1 +1)
{
errList.add("VTTOUR1");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VTTOUR1");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
else if(lval == 0)
{
errList.add("VTNODAYS");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VTNODAYS");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
}
}
else if(childNodeName.equalsIgnoreCase("plan_id"))
{
System.out.println(":::Inside plan_id Validation:::");
planId = checkNull(genericUtility.getColumnValue("plan_id", dom));
if(planId != null && planId.trim().length() > 0)
{
sql = "select count(*) as cnt from tourplan where plan_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,planId);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errList.add("VMPLANID");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VMPLANID");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
}
}
else if(childNodeName.equalsIgnoreCase("date_to"))
{
System.out.println(":::Inside date_to Validation:::");
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
mDate2Str = checkNull(genericUtility.getColumnValue("date_to", dom));
System.out.println("mDate2Str---->"+mDate2Str);
if(mDate2Str != null && mDate2Str.trim().length() > 0)
{
mDate2 = Timestamp.valueOf(genericUtility.getValidDateString(mDate2Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
System.out.println("mDate2---->"+mDate2);
}
sql = "select relieve_date from employee where emp_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,empCode);
rs = pstmt.executeQuery();
if (rs.next())
{
ldRel = rs.getTimestamp("relieve_date");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(ldRel != null && mDate2 != null && mDate2.after(ldRel))
{
errList.add("VTRELDT");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VTRELDT");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
System.out.println("--after relive date---");
mDate1Str = checkNull(genericUtility.getColumnValue("date_from", dom));
if(mDate1Str != null && mDate1Str.trim().length() > 0)
{
mDate1 = Timestamp.valueOf(genericUtility.getValidDateString(mDate1Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
System.out.println("mDate1---->"+mDate1);
}
if(mDate1 == null || mDate2 == null)
{
errList.add("VEDATE");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VEDATE");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
else
{
mDate = mDate1;
cnt = 0;
do
{
sql = "select count(*) as cnt from tour where emp_code = ? and ? between date_from and date_to and status = 'A'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,empCode);
pstmt.setTimestamp(2,mDate);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt > 0)
{
errList.add("VTTOUR");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VTTOUR");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
if(mDate != null && mDate2 != null)
{
if(mDate.after(mDate2) || mDate.equals(mDate2)) //if mdate >= mdate2 then
{
break;
}
mDate = utilmethod.RelativeDate(mDate, 1);
}
} while (true);
}
}
}
break;
}
case 2:
{
System.out.println("Validation for Detail 2 Loans Opening..........");
parentNodeList = dom.getElementsByTagName("Detail2");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
for(ctr = 0; ctr < childNodeListLength; ctr++)
{
childNode = childNodeList.item(ctr);
System.out.println("childNode"+childNode);
if( childNode.getNodeType() != Node.ELEMENT_NODE )
{
continue;
}
childNodeName = childNode.getNodeName();
if(childNodeName.equalsIgnoreCase("to_place"))
{
System.out.println(":::Inside to_place Validation:::");
mVal = checkNull(genericUtility.getColumnValue("to_place", dom));
if(mVal == null || mVal.trim().length() == 0)
{
errList.add("VTTOUR0004");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VTTOUR0004");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
}
else if(childNodeName.equalsIgnoreCase("date_from"))
{
System.out.println(":::Inside date_from Validation:::");
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
sql = "select work_site from employee where emp_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,empCode);
rs = pstmt.executeQuery();
if (rs.next())
{
lsSite = checkNull(rs.getString("work_site"));
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
mDate1Str = checkNull(genericUtility.getColumnValue("date_from", dom));
System.out.println("mDate1Str---->>"+mDate1Str);
if(mDate1Str != null && mDate1Str.trim().length() > 0)
{
mDate1 = Timestamp.valueOf(genericUtility.getValidDateString(mDate1Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
errCode = finCommon.nfCheckPeriod("ADM", mDate1, lsSite, conn);
}
if(errCode == null || errCode.trim().length() == 0)
{
if(mDate1 == null)
{
mDate2Str = checkNull(genericUtility.getColumnValue("date_from", dom));
mDate1 = Timestamp.valueOf(genericUtility.getValidDateString(mDate2Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
mDate3Str = checkNull(genericUtility.getColumnValue("date_to", dom));
mDate3 = Timestamp.valueOf(genericUtility.getValidDateString(mDate3Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
if(mDate1.after(mDate2) || mDate1.equals(mDate2))
{
if(mDate1.after(mDate3))
{
errList.add("VTDTFR1");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VTDTFR1");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
}
else
{
errList.add("VTDTFR1");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VTDTFR1");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
}
else
{
errList.add("VMDTNUL1");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VMDTNUL1");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
}
}
else if(childNodeName.equalsIgnoreCase("line_no__plan"))
{
System.out.println(":::Inside line_no__plan Validation:::");
lineNo = checkNull(genericUtility.getColumnValue("line_no__plan", dom));
System.out.println("lineNo -->"+lineNo);
if(lineNo != null && lineNo.trim().length() > 0)
{
lval = Double.parseDouble(lineNo);
}
planId = checkNull(genericUtility.getColumnValue("plan_id", dom1));
System.out.println("planId -->"+planId);
if(String.valueOf(lval) != null)
{
sql = "select count(*) as cnt from Tourplandet where plan_id = ? and line_no = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,planId);
pstmt.setDouble(2,lval);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errList.add("VMPLANLINE");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VMPLANLINE");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
}
}
else if(childNodeName.equalsIgnoreCase("date_to"))
{
System.out.println(":::Inside date_to Validation form 2:::");
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
mDate2Str = checkNull(genericUtility.getColumnValue("date_to", dom));
System.out.println("Dom 1 mDate2Str --> "+mDate2Str);
if(mDate2Str != null && mDate2Str.trim().length() > 0)
{
mDate2 = Timestamp.valueOf(genericUtility.getValidDateString(mDate2Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
mDate1Str = checkNull(genericUtility.getColumnValue("date_to", dom1));
System.out.println("mDate1Str --> "+mDate1Str);
if(mDate1Str != null && mDate1Str.trim().length() > 0)
{
mDate1 = Timestamp.valueOf(genericUtility.getValidDateString(mDate1Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
sql = "select work_site from employee where emp_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,empCode);
rs = pstmt.executeQuery();
if (rs.next())
{
lsSite = checkNull(rs.getString("work_site"));
if(mDate1 != null)
{
errCode = admCommon.gbfEmp(empCode, mDate1, lsSite, loginSiteCode, conn);
}
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(mDate1 != null && mDate2 != null)
{
mDate3Str = checkNull(genericUtility.getColumnValue("date_from", dom));
if(mDate3Str != null && mDate3Str.trim().length() > 0)
{
mDate3 = Timestamp.valueOf(genericUtility.getValidDateString(mDate3Str, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
if(mDate1.before(mDate2) || mDate1.equals(mDate2) && mDate3 != null)
{
if(mDate1.before(mDate3))
{
errList.add("VTDTFR1");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VTDTFR1");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
}
else
{
errList.add("VTDTFR1");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VTDTFR1");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
}
else
{
errList.add("VMDTNUL1");
errFields.add(childNodeName.toLowerCase());
errorType = errorType(conn, "VMDTNUL1");
if(errorType.equalsIgnoreCase("E"))
{
break;
}
}
}
}
break;
}
}
int errListSize = errList.size();
System.out.println("errListSize:::::::["+errListSize+"]");
if ( errList != null && errListSize > 0 )
{
System.out.println("in error::::::::::");
for (int i = 0; i < errListSize; i++ )
{
System.out.println("in error For:::::::::::::::");
errCode = (String)errList.get(i);
errFldName = (String)errFields.get(i);
System.out.println("errCode .........."+errCode);
errString = getErrorString( errFldName, errCode, userId );
System.out.println("errString is : ::::>>>> " + errString);
msgType = errorType( conn , errCode );
if ( errString.length() > 0)
{
String bifurErrString = errString.substring( errString.indexOf("<Errors>") + 8,errString.indexOf("<trace>"));
bifurErrString =bifurErrString+errString.substring( errString.indexOf("</trace>") + 8,errString.indexOf("</Errors>"));
errStringXml.append(bifurErrString);
System.out.println("errStringXml .........."+errStringXml);
errString = "";
}
if ( msgType.equalsIgnoreCase("E"))
{
break;
}
}
errList.clear();
errList = null;
errFields.clear();
errFields = null;
errStringXml.append("</Errors></Root>\r\n");
}
else
{
errStringXml = new StringBuffer( "" );
}
errString = errStringXml.toString();
}
catch (Exception e)
{
System.out.println("Exception :: " + e);
e.printStackTrace();
errString=e.getMessage();
throw new ITMException(e);
}
finally
{
try
{
if(conn != null)
{
conn.close();
conn = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception d)
{
d.printStackTrace();
}
System.out.println("TourIC Validation End and Connection is Closed");
}
return errString;
}
private String errorType(Connection conn, String errorCode) throws ITMException
{
String msgType = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
if (conn == null)
{
System.out.println("Connection is null");
} else
{
System.out.println("Connection is not null");
}
String sql = " SELECT MSG_TYPE FROM MESSAGES WHERE MSG_NO = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, errorCode);
rs = pstmt.executeQuery();
if (rs.next())
{
msgType = rs.getString("MSG_TYPE");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch (Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex);
}
finally
{
try
{
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
}
return msgType;
}
private String checkNull(String input)
{
return input == null ? "" : input;
}
}
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import org.w3c.dom.Document;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
public interface TourICLocal extends ValidatorLocal
{
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag,String xtraParams) throws RemoteException,ITMException ;
public String wfValData(Document dom, Document dom1, Document dom2,String objContext, String editFlag, String xtraParams)throws RemoteException, ITMException;
}
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import org.w3c.dom.Document;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
public interface TourICRemote extends ValidatorRemote
{
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag,String xtraParams) throws RemoteException,ITMException ;
public String wfValData(Document dom, Document dom1, Document dom2,String objContext, String editFlag, String xtraParams)throws RemoteException, ITMException;
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.adm.AttendanceProcess;
import ibase.webitm.ejb.sys.UtilMethods;
import ibase.webitm.utility.ITMException;
public class TourApprove extends ActionHandlerEJB implements TourApproveLocal,TourActRemote
{
E12GenericUtility genericUtility = new E12GenericUtility();
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
UtilMethods utilMethod = new UtilMethods();
String userId = "";
AttendanceProcess AtProcess = new AttendanceProcess();
public String gbfPostLogic(String asTranidFr, String asTranidTo,int aiCommit, String xtraParams, Connection conn)
throws ITMException
{
ResultSet rs = null;
PreparedStatement pstmt = null;
String sql = null;
String errString = "";
String lsTranid = "";
Timestamp ldDate = null;
Timestamp fdate = null;
Timestamp tdate = null;
Timestamp mtoday = null;
Timestamp mdate = null;
Timestamp ldFr = null;
Timestamp ldTo = null;
String mprd = "";
String empCode = "";
String mVal = "";
String status = "";
String lsTourStarts = "";
String lsTourEnds = "";
String termId = "";
String loginEmpCode = "";
int cnt = 0;
int row = 0;
double lcNoDays = 0.0;
try
{
System.out.println("***********Inside Post Logic Method**************");
userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
termId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId"));
loginEmpCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode"));
mtoday = utilMethod.dateTime(utilMethod.today(), utilMethod.now());
System.out.println("mtoday ===> "+mtoday);
if(asTranidFr.equalsIgnoreCase(asTranidTo))
{
lsTranid = asTranidFr;
}
do
{
sql = "select emp_code, emp_code__appr, status, date_from, date_to, tour_starts, tour_ends from tour where tour_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rs = pstmt.executeQuery();
if (rs.next())
{
empCode = checkNull(rs.getString("emp_code"));
mVal = checkNull(rs.getString("emp_code__appr"));
status = checkNull(rs.getString("status"));
fdate = rs.getTimestamp("date_from");
tdate = rs.getTimestamp("date_to");
lsTourStarts = checkNull(rs.getString("tour_starts"));
lsTourEnds = checkNull(rs.getString("tour_ends"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
System.out.println("status--->"+status);
if(!"U".equalsIgnoreCase(status))
{
System.out.println("status if not U--->"+status);
if("C".equalsIgnoreCase(status))
{
System.out.println("status if C--->"+status);
errString=checkNull(itmDBAccess.getErrorString("", "VTCANC02", userId, "", conn));
break;
}
else
{
errString=checkNull(itmDBAccess.getErrorString("", "VTAPPR02", userId, "", conn));
break;
}
}
ldDate = fdate;
do
{
sql = "select count(*) as cnt from tour where emp_code = ? and ? between date_from and date_to and status = 'A'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,empCode);
pstmt.setTimestamp(2,ldDate);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt > 0)
{
errString=checkNull(itmDBAccess.getErrorString("", "VTTOUR", userId, "", conn));
break;
}
if(ldDate.equals(tdate))
{
break;
}
ldDate = utilMethod.RelativeDate(ldDate, 1);
} while (true);
if(errString != null && errString.trim().length() > 0)
{
return errString;
}
mdate = fdate;
do
{
sql = "select code, fr_date, to_date from period where fr_date <= ? and to_date >= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1,mdate);
pstmt.setTimestamp(2,mdate);
rs = pstmt.executeQuery();
if (rs.next())
{
mprd = checkNull(rs.getString("code"));
ldFr = rs.getTimestamp("fr_date");
ldTo = rs.getTimestamp("to_date");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(ldTo.after(tdate))
{
ldTo = tdate;
}
lcNoDays = utilMethod.DaysAfter(mdate, ldTo) + 1;
if((mdate.equals(fdate)) && ("B".equalsIgnoreCase(lsTourStarts)));
{
lcNoDays = lcNoDays - 0.5;
}
if((ldTo.equals(tdate)) && ("B".equalsIgnoreCase(lsTourEnds)));
{
lcNoDays = lcNoDays - 0.5;
}
sql = "insert into tour_summary (emp_code, fr_date, to_date, no_days, prd_code, chg_date, chg_user, chg_term)"
+" values ( ? , ? , ? , ? , ? , ? , ? , ?)";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,empCode);
pstmt.setTimestamp(2,fdate);
pstmt.setTimestamp(3,tdate);
pstmt.setDouble(4,lcNoDays);
pstmt.setString(5,mprd);
pstmt.setTimestamp(6,mtoday);
pstmt.setString(7,userId);
pstmt.setString(8,termId);
row = pstmt.executeUpdate();
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
mdate = utilMethod.RelativeDate(ldTo, 1);
} while (mdate.before(tdate) || mdate.equals(tdate));
if(errString != null && errString.trim().length() > 0)
{
return errString;
}
row = 0;
sql = "update tour set status = 'A', emp_code__appr = ?, aprv_date = ? where tour_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,loginEmpCode);
pstmt.setTimestamp(2,mtoday);
pstmt.setString(3,lsTranid);
row = pstmt.executeUpdate();
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(row == 0)
{
errString=checkNull(itmDBAccess.getErrorString("", "DS000NR", userId, "", conn));
break;
}
errString = AtProcess.gbfAutoAttdProc(empCode, fdate, tdate, 2 ,xtraParams, conn);
System.out.println("----After errString----");
if(utilMethod.pos(errString, "<Errors") > 0)
{
return errString;
}
else
{
errString = "";
break;
}
} while (true);
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e1)
{
e1.printStackTrace();
}
}
return errString;
}
private String checkNull(String input)
{
if (input == null)
{
input = "";
}
return input;
}
}
package ibase.webitm.ejb.adm.adv;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.sys.UtilMethods;
import ibase.webitm.utility.ITMException;
public class TourApproveErp extends ActionHandlerEJB implements TourApproveErpLocal,TourApproveErpRemote
{
TourApprove tourApprove = new TourApprove();
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
UtilMethods utilMethod = new UtilMethods();
String userId = "";
public String actionHandler(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException
{
String retString = null;
String retErrString = "";
int aiCommit = 0;
Connection conn = null;
try
{
conn = getConnection();
System.out.println("Conn==>[" + conn + "]");
retErrString = gbfPostLogic(tranId, tranId, aiCommit, xtraParams, conn);
System.out.println("returning String from TourApproveErp :actionHandler():==>[" + retErrString + "]");
if(retErrString == null || retErrString.trim().length() == 0)
{
conn.commit();
retString = itmDBAccess.getErrorString("", "VTAPPROVE", userId, "", conn);
}
else
{
conn.rollback();
retString = retErrString;
return retString;
}
}
catch(Exception e)
{
System.out.println("Exception :TourApproveErp :actionHandler() :" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(conn != null)
{
conn.close();
conn = null;
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
return retString;
}
public String gbfPostLogic(String asTranidFr, String asTranidTo, int aiCommit, String xtraParams, Connection conn)
throws ITMException
{
ResultSet rs = null;
PreparedStatement pstmt = null;
String sql = null;
String errString = "";
String lsTranid = "";
String status = "";
String isErrxml = "";
Timestamp ldtCurrdate = null;
int cnt = 0;
int rowCnt = 0;
try
{
System.out.println("***********Inside Post Logic Method of TourApproveErp**************");
if(asTranidFr.equalsIgnoreCase(asTranidTo))
{
lsTranid = asTranidFr;
sql = "select status from tour where tour_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rs = pstmt.executeQuery();
if (rs.next())
{
status = checkNull(rs.getString("status"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if("C".equalsIgnoreCase(status) || "X".equalsIgnoreCase(status))
{
errString=checkNull(itmDBAccess.getErrorString("", "VTCANC02", userId, "", conn));
return errString;
}
if("O".equalsIgnoreCase(status))
{
errString=checkNull(itmDBAccess.getErrorString("", "VTTOUR0001", userId, "", conn));
return errString;
}
if("A".equalsIgnoreCase(status))
{
errString=checkNull(itmDBAccess.getErrorString("", "VTAPPR02", userId, "", conn));
return errString;
}
isErrxml = tourApprove.gbfPostLogic(asTranidFr, asTranidTo, aiCommit, xtraParams, conn);
sql = "select status from tour where tour_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rs = pstmt.executeQuery();
if (rs.next())
{
status = checkNull(rs.getString("status"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if("A".equalsIgnoreCase(status))
{
ldtCurrdate = utilMethod.dateTime(utilMethod.today(), utilMethod.now());
sql = "select count(1) as cnt from wf_prc_status where ref_ser in ('E-TOUR','E-TURP') and ref_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt > 0)
{
sql = "update obj_sign_trans set SIGN_DATE = ? , SIGN_STATUS = 'S' , SIGN_REMARKS = 'Tour Approved' "+
"where ref_ser in ('E-TOUR','E-TURP') and ref_id = ? and sign_status = 'U'";
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1,ldtCurrdate);
pstmt.setString(2,lsTranid);
rowCnt = pstmt.executeUpdate();
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rowCnt > 0)
{
rowCnt = 0;
sql = "update wf_prc_status set process_status = '9' , status_remarks = 'Tour is approved from ERP' "+
"where ref_ser in ('E-TOUR','E-TURP') and ref_id = ? and process_status < 3";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rowCnt = pstmt.executeUpdate();
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rowCnt > 0)
{
rowCnt = 0;
sql = "update tour set WRKFLW_STATUS = 'ZZ' where tour_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rowCnt = pstmt.executeUpdate();
}
else
{
errString=checkNull(itmDBAccess.getErrorString("", "DS000", userId, "", conn));
return errString;
}
}
else
{
errString=checkNull(itmDBAccess.getErrorString("", "DS000", userId, "", conn));
return errString;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(errString.trim().length() > 0)
{
conn.rollback();
}
else
{
conn.commit();
}
}
}
}
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e1)
{
e1.printStackTrace();
}
}
return isErrxml;
}
private String checkNull(String input)
{
if (input == null)
{
input = "";
}
return input;
}
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import ibase.webitm.ejb.ActionHandlerLocal;
import ibase.webitm.utility.ITMException;
public interface TourApproveErpLocal extends ActionHandlerLocal
{
public String gbfPostLogic(String asTranidFr, String asTranidTo,int aiCommit, String xtraParams,Connection conn) throws ITMException;
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import ibase.webitm.ejb.ActionHandlerRemote;
import ibase.webitm.utility.ITMException;
public interface TourApproveErpRemote extends ActionHandlerRemote
{
public String gbfPostLogic(String asTranidFr, String asTranidTo,int aiCommit, String xtraParams,Connection conn) throws ITMException;
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import ibase.webitm.ejb.ActionHandlerLocal;
import ibase.webitm.utility.ITMException;
public interface TourApproveLocal extends ActionHandlerLocal
{
public String gbfPostLogic(String asTranidFr, String asTranidTo,int aiCommit, String xtraParams,Connection conn) throws ITMException;
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import ibase.webitm.ejb.ActionHandlerRemote;
import ibase.webitm.utility.ITMException;
public interface TourApproveRemote extends ActionHandlerRemote
{
public String gbfPostLogic(String asTranidFr, String asTranidTo,int aiCommit, String xtraParams,Connection conn) throws ITMException;
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.adm.AttendanceProcess;
import ibase.webitm.ejb.sys.UtilMethods;
import ibase.webitm.utility.ITMException;
public class TourCnc extends ActionHandlerEJB implements TourCncLocal,TourCncRemote
{
E12GenericUtility genericUtility = new E12GenericUtility();
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
UtilMethods utilMethod = new UtilMethods();
AttendanceProcess AtProcess = new AttendanceProcess();
String userId = "";
public String gbfPostLogic(String asTranidFr, String asTranidTo, int aiCommit, String xtraParams, Connection conn)
throws ITMException
{
ResultSet rs = null;
PreparedStatement pstmt = null;
String sql = null;
String errString = "";
String lsTourId = "";
String empCode = "";
String status = "";
Timestamp ldFr = null;
Timestamp ldTo = null;
int row = 0;
try
{
System.out.println("*********** Inside Post Logic Method of TourCnc **************");
userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
if(asTranidFr.equalsIgnoreCase(asTranidTo))
{
lsTourId = asTranidFr;
}
sql = "select emp_code, date_from, date_to, status from tour where tour_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTourId);
rs = pstmt.executeQuery();
if (rs.next())
{
empCode = checkNull(rs.getString("emp_code"));
ldFr = rs.getTimestamp("date_from");
ldTo = rs.getTimestamp("date_to");
status = checkNull(rs.getString("status"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if("A".equalsIgnoreCase(status))
{
sql = "delete from tour_summary where emp_code = ? and fr_date = ? and to_date = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,empCode);
pstmt.setTimestamp(2,ldFr);
pstmt.setTimestamp(3,ldTo);
row = pstmt.executeUpdate();
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
else if("C".equalsIgnoreCase(status))
{
errString=checkNull(itmDBAccess.getErrorString("", "VTCANC02", userId, "", conn));
return errString;
}
row = 0;
sql = "update tour set status = 'C' where tour_id = ? and emp_code = ? and date_from = ? and date_to = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTourId);
pstmt.setString(2,empCode);
pstmt.setTimestamp(3,ldFr);
pstmt.setTimestamp(4,ldTo);
row = pstmt.executeUpdate();
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(row == 0)
{
errString=checkNull(itmDBAccess.getErrorString("", "DS000NR", userId, "", conn));
return errString;
}
else if("A".equalsIgnoreCase(status))
{
errString = AtProcess.gbfAutoAttdProc(empCode, ldFr, ldTo, 2 ,xtraParams, conn);
if(utilMethod.pos(errString, "<Errors") > 0)
{
return errString;
}
else
{
errString = "";
}
}
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e1)
{
e1.printStackTrace();
}
}
return null;
}
private String checkNull(String input)
{
if (input == null)
{
input = "";
}
return input;
}
}
package ibase.webitm.ejb.adm.adv;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.adm.AttendanceProcess;
import ibase.webitm.ejb.sys.UtilMethods;
import ibase.webitm.utility.ITMException;
public class TourCncErp extends ActionHandlerEJB implements TourCncErpLocal,TourCncErpRemote
{
TourCnc tourCnc = new TourCnc();
E12GenericUtility genericUtility = new E12GenericUtility();
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
UtilMethods utilMethod = new UtilMethods();
AttendanceProcess AtProcess = new AttendanceProcess();
String userId = "";
public String actionHandler(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException
{
String retString = null;
String retErrString = "";
int aiCommit = 0;
Connection conn = null;
try
{
conn = getConnection();
System.out.println("Conn==>[" + conn + "]");
retErrString = gbfPostLogic(tranId, tranId, aiCommit, xtraParams, conn);
System.out.println("returning String from TourCncErp :actionHandler():==>[" + retErrString + "]");
if(retErrString == null || retErrString.trim().length() == 0)
{
conn.commit();
retString = itmDBAccess.getErrorString("", "VTMCAN", userId, "", conn);
}
else
{
conn.rollback();
retString = retErrString;
return retString;
}
}
catch(Exception e)
{
System.out.println("Exception :TourCncErp :actionHandler() :" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(conn != null)
{
conn.close();
conn = null;
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
return retString;
}
public String gbfPostLogic(String asTranidFr, String asTranidTo, int aiCommit , String xtraParams, Connection conn)
throws ITMException
{
ResultSet rs = null;
PreparedStatement pstmt = null;
String sql = null;
String errString = "";
String lsTranid = "";
String status = "";
String isErrxml = "";
Timestamp ldtCurrdate = null;
int cnt = 0;
int rowCnt = 0;
try
{
System.out.println("***********Inside Post Logic Method of TourCncErp**************");
if(asTranidFr.equalsIgnoreCase(asTranidTo))
{
lsTranid = asTranidFr;
sql = "select status from tour where tour_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rs = pstmt.executeQuery();
if (rs.next())
{
status = checkNull(rs.getString("status"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if("C".equalsIgnoreCase(status) || "X".equalsIgnoreCase(status))
{
errString=checkNull(itmDBAccess.getErrorString("", "VTCANC02", userId, "", conn));
return errString;
}
isErrxml = tourCnc.gbfPostLogic(asTranidFr, asTranidTo, aiCommit, xtraParams, conn);
sql = "select status from tour where tour_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rs = pstmt.executeQuery();
if (rs.next())
{
status = checkNull(rs.getString("status"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if("C".equalsIgnoreCase(status) || "X".equalsIgnoreCase(status))
{
ldtCurrdate = utilMethod.dateTime(utilMethod.today(), utilMethod.now());
sql = "select count(1) as cnt from wf_prc_status where ref_ser in ('E-TOUR','E-TURP') and ref_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt > 0)
{
sql = "update obj_sign_trans set SIGN_DATE = ? , SIGN_STATUS = 'S' , SIGN_REMARKS = 'Tour Cancelled' "+
"where ref_ser in ('E-TOUR','E-TURP') and ref_id = ? and sign_status = 'U'";
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1,ldtCurrdate);
pstmt.setString(2,lsTranid);
rowCnt = pstmt.executeUpdate();
if(rowCnt > 0)
{
rowCnt = 0;
sql = "update wf_prc_status set process_status = '9' , status_remarks = 'Tour is cancelled from ERP' "+
"where ref_ser in ('E-TOUR','E-TURP') and ref_id = ? and process_status < 3";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rowCnt = pstmt.executeUpdate();
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rowCnt > 0)
{
rowCnt = 0;
sql = "update tour set WRKFLW_STATUS = 'ZZ' where tour_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rowCnt = pstmt.executeUpdate();
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
else
{
errString=checkNull(itmDBAccess.getErrorString("", "DS000", userId, "", conn));
return errString;
}
}
else
{
errString=checkNull(itmDBAccess.getErrorString("", "DS000", userId, "", conn));
return errString;
}
if(errString.trim().length() > 0)
{
conn.rollback();
}
else
{
conn.commit();
}
}
}
}
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e1)
{
e1.printStackTrace();
}
}
return isErrxml;
}
private String checkNull(String input)
{
if (input == null)
{
input = "";
}
return input;
}
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import ibase.webitm.ejb.ActionHandlerLocal;
import ibase.webitm.utility.ITMException;
public interface TourCncErpLocal extends ActionHandlerLocal
{
public String gbfPostLogic(String asTranidFr, String asTranidTo,int aiCommit , String xtraParams,Connection conn) throws ITMException;
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import ibase.webitm.ejb.ActionHandlerRemote;
import ibase.webitm.utility.ITMException;
public interface TourCncErpRemote extends ActionHandlerRemote
{
public String gbfPostLogic(String asTranidFr, String asTranidTo, int aiCommit , String xtraParams,Connection conn) throws ITMException;
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import ibase.webitm.ejb.ActionHandlerLocal;
import ibase.webitm.utility.ITMException;
public interface TourCncLocal extends ActionHandlerLocal
{
public String gbfPostLogic(String asTranidFr, String asTranidTo, int aiCommit, String xtraParams,Connection conn) throws ITMException;
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import ibase.webitm.ejb.ActionHandlerRemote;
import ibase.webitm.utility.ITMException;
public interface TourCncRemote extends ActionHandlerRemote
{
public String gbfPostLogic(String asTranidFr, String asTranidTo, int aiCommit, String xtraParams,Connection conn) throws ITMException;
}
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