Commit 0af38ac9 authored by sgadve's avatar sgadve

-Migrate the pb to java component for attd_mon form with merge sql,xml and java component .

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@205714 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0e37fc5e
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_attd_mon','2','2','M','seq10',null,null,null,null,null,'N',sysdate,'BASE','1','0','EMPLOYEE.WORK_SITE',null,null,null,null,null,null,'N','N','prd_code,emp_code','0','0',null,null,null,null,null,null,null,null,null,'0','ATENDANCE_MON','ADM',null,null,null,null,null,null,null,null,null,'F',null,null,null,null,null,null,null,null,null,null,'0',null,null,null,null,null,null,null,null,null,null,null,null,'M',null,null,null,null,null,null,null,null,null,null,null,null,null,'Y','L',null,null,null,null,null,null,null,'emp_fname','emp_code','EmpImages',null,null,null,'compact',null,'C',null,'C',null,null,null);
Insert into ITM2MENU (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY,DEFAULT_STATE,DEF_ACTION,MOB_DEPLY,ENT_TYPES) values ('ADP',4,13,2,0,0,'w_attd_mon','Monthly','Monthly','ADP.4.13.2.0.0','monthly.png','monthlywht.png',null,'T',null,null,null,'B',null,null,'B','0 ');
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_attd_mon','Monthly Attendance','d_attd_mon_brow','d_attd_mon',null,null,null,null,'1','F',null,null,null,null,null,null,null,null,null,null,null,null,'<html><b>{emp_fname}&nbsp;{emp_lname}[&nbsp;{emp_code}&nbsp;]</b>&nbsp;&nbsp;Period:&nbsp;<b>{prd_code}</b><br>Days Worked:&nbsp;<b>{work_days}</b>&nbsp;&nbsp;Days Paid:&nbsp;<b>{paid_days}</b>&nbsp;&nbsp;Leaves Taken:&nbsp;<b>{lves_taken}</b></html>',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'EmpImages','emp_code','emp_fname',null,'DetailForm.png',null,null,null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('attd_mon','post_item_change','1','poic_default_1',null,'0',sysdate,'Asutosh ','User6','2','WSR','nvo_bo_attd_mon',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('attd_mon','pre_validate','1','prv_default_1',null,'0',sysdate,'Asutosh ','User6','2','WSR','nvo_bo_attd_mon',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 ('VDEMP1 ','Duplicate employee code','The employee code that you are referring to, already exists for the same transaction.','E','Y',null,null,null,sysdate,'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 ('VMEMPV ','Employee relieved','Employee is relieved ( for voucher )','E','Y',null,null,null,to_date('20-12-01','DD-MM-RR'),'SUN ','97HDP2 ',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 ('VSENVAR1 ','Environment var. not defined','All the environment variables have not been defined for this period. Please ensure that all the required environment variables are defined.','E','Y',null,'alarm.wav',null,sysdate,'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 ('VTATTDMON1','Error !','Paid days are more than actual days.','E','Y',null,null,null,sysdate,'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 ('VTMONATD01','Invalid Employee Code!','Employee code can not be empty, please enter employee code','E','Y',null,null,null,sysdate,'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 ('VTMONATD02','Invalid Employee Code!','Entered employee code does not existing in master, please enter correct employee code','E','Y',null,null,null,sysdate,'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 ('VTMONATD03','Invalid work days!','Work days can not be blank, please enter work days','E','Y',null,null,null,sysdate,'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 ('VTMONATD04','Invalid work days!','Work days must be grater then or equal to 0','E','Y',null,null,null,sysdate,'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 ('VTMONATD05','Invalid weekly off days!','Weekly off days can not be blank, please enter weekly off days','E','Y',null,null,null,sysdate,'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 ('VTMONATD06','Invalid weekly off days!','Weekly off days must be grater then or equal to 0','E','Y',null,null,null,sysdate,'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 ('VTMONATD07','Invalid leave days!','Leave taken days can not be blank, please enter Leave taken days','E','Y',null,null,null,sysdate,'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 ('VTMONATD08','Invalid leave days!','Leave taken days must be grater then or equal to 0','E','Y',null,null,null,sysdate,'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 ('VTMONATD09','Invalid period code!','Period code can not be empty, please specify period code','E','Y',null,null,null,sysdate,'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 ('VTMONATD10','Invalid period code!','Entered period code not defined in master, please enter valid period code','E','Y',null,null,null,sysdate,'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 ('VTPAID ','Invalid paid days','Paid days cannot be greater than proportionate days','E','Y',null,null,null,sysdate,'SUN ','HDP ',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 ('EMP_CODE','W_ATTD_MON','select a.emp_fname||'' ''||a.emp_mname||'' ''||a.emp_lname as Name, a.emp_code as Code from employee a where a.relieve_date is null and UPPER(trim(a.emp_fname)||'' ''||trim(a.emp_mname)||'' ''||trim(a.emp_lname)) like UPPER(TRIM(''%?%'')) and length(trim(''?'')) >= 3 union all select ''Please enter minimum 3 characters of employee name'' as Name, '' '' as Code from dual where ''?'' is null or length(trim(''?'')) < 3',null,'Employee Code',0,0,sysdate,'SUN','CLIENT1','0',null,':emp_code,:emp_code,:emp_code,:emp_code',2,null,null,null,null,null,null,'2',null,'3','EmpImages','emp_code','emp_fname','2 ',null,null,null,null,null,null,null);
update system_events set Comp_Name='ibase.webitm.ejb.adm.AttdMonIC',Comp_Type='JB', Service_Code='poic_default_ejb' where Service_Code='poic_default_1' and Obj_Name='attd_mon';
update system_events set Comp_Name='ibase.webitm.ejb.adm.AttdMonIC',Comp_Type='JB', Service_Code='prv_default_ejb' where Service_Code='prv_default_1' and Obj_Name='attd_mon';
......@@ -78,18 +78,21 @@
</table_column>
<table_column>
<type precision="2">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>work_days</name>
<dbname>attendance_mon.work_days</dbname>
</table_column>
<table_column>
<type precision="2">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>paid_days</name>
<dbname>attendance_mon.paid_days</dbname>
</table_column>
<table_column>
<type precision="2">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>woff_days</name>
<dbname>attendance_mon.woff_days</dbname>
......@@ -108,24 +111,28 @@
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>lves_taken</name>
<dbname>attendance_mon.lves_taken</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_date</name>
<dbname>attendance_mon.chg_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_user</name>
<dbname>attendance_mon.chg_user</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_term</name>
<dbname>attendance_mon.chg_term</dbname>
......@@ -162,18 +169,20 @@
</table_column>
<table_column>
<type precision="2">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>work_hour</name>
<dbname>attendance_mon.work_hour</dbname>
</table_column>
<table_column>
<type precision="2">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>paid_hour</name>
<dbname>attendance_mon.paid_hour</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;attendance_mon&quot; ) TABLE(NAME=&quot;employee&quot; ) COLUMN(NAME=&quot;attendance_mon.prd_code&quot;) COLUMN(NAME=&quot;attendance_mon.emp_code&quot;) COLUMN(NAME=&quot;employee.emp_lname&quot;) COLUMN(NAME=&quot;employee.emp_fname&quot;) COLUMN(NAME=&quot;attendance_mon.work_days&quot;) COLUMN(NAME=&quot;attendance_mon.paid_days&quot;) COLUMN(NAME=&quot;attendance_mon.woff_days&quot;) COLUMN(NAME=&quot;employee.pf_no&quot;) COLUMN(NAME=&quot;employee.work_site&quot;) COLUMN(NAME=&quot;attendance_mon.lves_taken&quot;) COLUMN(NAME=&quot;attendance_mon.chg_date&quot;) COLUMN(NAME=&quot;attendance_mon.chg_user&quot;) COLUMN(NAME=&quot;attendance_mon.chg_term&quot;) COLUMN(NAME=&quot;employee.with_held&quot;) COLUMN(NAME=&quot;employee.date_join&quot;) COLUMN(NAME=&quot;employee.relieve_date&quot;) COLUMN(NAME=&quot;attendance_mon.addon_days&quot;) COLUMN(NAME=&quot;attendance_mon.proc_window&quot;) COLUMN(NAME=&quot;attendance_mon.work_hour&quot;) COLUMN(NAME=&quot;attendance_mon.paid_hour&quot;) JOIN (LEFT=&quot;attendance_mon.emp_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee.emp_code&quot; )WHERE( EXP1 =&quot;attendance_mon.prd_code&quot; OP =&quot;=&quot; EXP2 =&quot;:prd_code&quot; ) ) ARG(NAME = &quot;prd_code&quot; TYPE = string) </retrieve>
<update>attendance_mon</update>
<update>ATTENDANCE_MON</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
......@@ -209,128 +218,16 @@
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Last Name</text>
<border>6</border>
<color>0</color>
<x>99</x>
<y>3</y>
<height>16</height>
<width>111</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_lname_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>First Name</text>
<border>6</border>
<color>0</color>
<x>212</x>
<y>3</y>
<height>16</height>
<width>113</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_fname_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Joining Date</text>
<border>6</border>
<color>0</color>
<x>327</x>
<y>3</y>
<height>16</height>
<width>79</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_join_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Days Worked</text>
<border>6</border>
<color>0</color>
<x>408</x>
<y>3</y>
<height>16</height>
<width>88</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>work_days_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Days Paid</text>
<border>6</border>
<color>0</color>
<x>498</x>
<x>497</x>
<y>3</y>
<height>16</height>
<width>62</width>
<width>61</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -355,10 +252,10 @@
<text>Weekly Offs</text>
<border>6</border>
<color>0</color>
<x>562</x>
<x>560</x>
<y>3</y>
<height>16</height>
<width>78</width>
<width>77</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -383,10 +280,10 @@
<text>Leave Taken</text>
<border>6</border>
<color>0</color>
<x>642</x>
<x>639</x>
<y>3</y>
<height>16</height>
<width>77</width>
<width>76</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -411,10 +308,10 @@
<text>Work Hour</text>
<border>6</border>
<color>0</color>
<x>721</x>
<x>717</x>
<y>3</y>
<height>16</height>
<width>70</width>
<width>69</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -439,10 +336,10 @@
<text>Paid Hour</text>
<border>6</border>
<color>0</color>
<x>793</x>
<x>788</x>
<y>3</y>
<height>16</height>
<width>61</width>
<width>60</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -467,7 +364,7 @@
<text>Work Site</text>
<border>6</border>
<color>0</color>
<x>856</x>
<x>850</x>
<y>3</y>
<height>16</height>
<width>66</width>
......@@ -495,7 +392,7 @@
<text>PF No.</text>
<border>6</border>
<color>0</color>
<x>1257</x>
<x>1251</x>
<y>3</y>
<height>16</height>
<width>77</width>
......@@ -523,7 +420,7 @@
<text>Change Date</text>
<border>6</border>
<color>0</color>
<x>999</x>
<x>993</x>
<y>3</y>
<height>16</height>
<width>79</width>
......@@ -551,7 +448,7 @@
<text>Period Code</text>
<border>6</border>
<color>0</color>
<x>924</x>
<x>918</x>
<y>3</y>
<height>16</height>
<width>73</width>
......@@ -579,7 +476,7 @@
<text>Change User</text>
<border>6</border>
<color>0</color>
<x>1080</x>
<x>1074</x>
<y>3</y>
<height>16</height>
<width>75</width>
......@@ -607,7 +504,7 @@
<text>Change Terminal</text>
<border>6</border>
<color>0</color>
<x>1157</x>
<x>1151</x>
<y>3</y>
<height>16</height>
<width>98</width>
......@@ -635,7 +532,7 @@
<text>Relieve Date</text>
<border>6</border>
<color>0</color>
<x>1336</x>
<x>1330</x>
<y>3</y>
<height>16</height>
<width>77</width>
......@@ -663,10 +560,10 @@
<text>Addon Days</text>
<border>6</border>
<color>0</color>
<x>1574</x>
<x>1568</x>
<y>3</y>
<height>16</height>
<width>79</width>
<width>78</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -691,7 +588,7 @@
<text>Withheld </text>
<border>6</border>
<color>0</color>
<x>1415</x>
<x>1409</x>
<y>3</y>
<height>16</height>
<width>60</width>
......@@ -719,7 +616,7 @@
<text>Process Window</text>
<border>6</border>
<color>0</color>
<x>1477</x>
<x>1471</x>
<y>3</y>
<height>16</height>
<width>95</width>
......@@ -780,26 +677,27 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<id>6</id>
<alignment>1</alignment>
<tabsequence>60</tabsequence>
<border>5</border>
<color>0</color>
<x>99</x>
<x>497</x>
<y>1</y>
<height>16</height>
<width>111</width>
<format>[general]</format>
<width>61</width>
<format>#0.00</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_lname</name>
<name>paid_days</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<limit>5</limit>
<case>any</case>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<format>#0.0</format>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -817,26 +715,27 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<id>7</id>
<alignment>1</alignment>
<tabsequence>70</tabsequence>
<border>5</border>
<color>0</color>
<x>212</x>
<x>560</x>
<y>1</y>
<height>16</height>
<width>113</width>
<format>[general]</format>
<width>77</width>
<format>#0.00</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_fname</name>
<name>woff_days</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<limit>5</limit>
<case>any</case>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<format>#0.00</format>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -854,25 +753,27 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<id>10</id>
<alignment>1</alignment>
<tabsequence>80</tabsequence>
<border>5</border>
<color>0</color>
<x>327</x>
<x>639</x>
<y>1</y>
<height>16</height>
<width>79</width>
<format>dd/mm/yyyy</format>
<width>76</width>
<format>#0.00</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_join</name>
<name>lves_taken</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>5</limit>
<case>any</case>
<autoselect>yes</autoselect>
<format>#0.0</format>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -890,25 +791,25 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<id>19</id>
<alignment>1</alignment>
<tabsequence>50</tabsequence>
<tabsequence>90</tabsequence>
<border>5</border>
<color>0</color>
<x>409</x>
<y>1</y>
<x>717</x>
<y>2</y>
<height>16</height>
<width>87</width>
<format>#0.00</format>
<width>69</width>
<format>##0.00</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>work_days</name>
<name>work_hour</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<limit>6</limit>
<case>any</case>
<format>#0.0</format>
<format>##0.0</format>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
......@@ -928,25 +829,25 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<id>20</id>
<alignment>1</alignment>
<tabsequence>60</tabsequence>
<tabsequence>100</tabsequence>
<border>5</border>
<color>0</color>
<x>499</x>
<y>1</y>
<x>788</x>
<y>2</y>
<height>16</height>
<width>61</width>
<format>#0.00</format>
<width>60</width>
<format>##0.00</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>paid_days</name>
<name>paid_hour</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<limit>6</limit>
<case>any</case>
<format>#0.0</format>
<format>##0.0</format>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
......@@ -966,27 +867,25 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>1</alignment>
<tabsequence>70</tabsequence>
<id>9</id>
<alignment>0</alignment>
<tabsequence>110</tabsequence>
<border>5</border>
<color>0</color>
<x>563</x>
<x>850</x>
<y>1</y>
<height>16</height>
<width>77</width>
<format>#0.00</format>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>woff_days</name>
<name>work_site</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<limit>0</limit>
<case>any</case>
<format>#0.00</format>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1004,27 +903,26 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>1</alignment>
<tabsequence>80</tabsequence>
<id>16</id>
<alignment>0</alignment>
<tabsequence>160</tabsequence>
<border>5</border>
<color>0</color>
<x>643</x>
<x>1330</x>
<y>1</y>
<height>16</height>
<width>76</width>
<format>#0.00</format>
<width>77</width>
<format>dd/mm/yyyy</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lves_taken</name>
<name>relieve_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<limit>0</limit>
<case>any</case>
<format>#0.0</format>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1042,27 +940,25 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<alignment>1</alignment>
<tabsequence>90</tabsequence>
<id>8</id>
<alignment>0</alignment>
<tabsequence>150</tabsequence>
<border>5</border>
<color>0</color>
<x>722</x>
<y>2</y>
<x>1251</x>
<y>1</y>
<height>16</height>
<width>69</width>
<format>##0.00</format>
<width>77</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>work_hour</name>
<name>pf_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>6</limit>
<limit>0</limit>
<case>any</case>
<format>##0.0</format>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1080,27 +976,25 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>20</id>
<alignment>1</alignment>
<tabsequence>100</tabsequence>
<id>11</id>
<alignment>0</alignment>
<tabsequence>120</tabsequence>
<border>5</border>
<color>0</color>
<x>794</x>
<y>2</y>
<x>993</x>
<y>1</y>
<height>16</height>
<width>60</width>
<format>##0.00</format>
<width>79</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>paid_hour</name>
<name>chg_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>6</limit>
<limit>0</limit>
<case>any</case>
<format>##0.0</format>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1118,20 +1012,20 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<id>1</id>
<alignment>0</alignment>
<tabsequence>110</tabsequence>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>856</x>
<x>918</x>
<y>1</y>
<height>16</height>
<width>66</width>
<width>73</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>work_site</name>
<name>prd_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -1143,7 +1037,7 @@
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
......@@ -1154,26 +1048,25 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<id>12</id>
<alignment>0</alignment>
<tabsequence>160</tabsequence>
<tabsequence>130</tabsequence>
<border>5</border>
<color>0</color>
<x>1336</x>
<x>1074</x>
<y>1</y>
<height>16</height>
<width>77</width>
<format>dd/mm/yyyy</format>
<width>75</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>relieve_date</name>
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1191,20 +1084,20 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<id>13</id>
<alignment>0</alignment>
<tabsequence>150</tabsequence>
<tabsequence>140</tabsequence>
<border>5</border>
<color>0</color>
<x>1257</x>
<x>1151</x>
<y>1</y>
<height>16</height>
<width>77</width>
<width>98</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>pf_no</name>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -1227,20 +1120,20 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<id>14</id>
<alignment>0</alignment>
<tabsequence>120</tabsequence>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>999</x>
<y>1</y>
<x>1409</x>
<y>2</y>
<height>16</height>
<width>79</width>
<format>[shortdate] [time]</format>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<name>with_held</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -1263,20 +1156,20 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<id>18</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>924</x>
<y>1</y>
<x>1471</x>
<y>2</y>
<height>16</height>
<width>73</width>
<width>95</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code</name>
<name>proc_window</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -1288,7 +1181,7 @@
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
......@@ -1299,25 +1192,27 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<id>17</id>
<alignment>0</alignment>
<tabsequence>130</tabsequence>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>1080</x>
<y>1</y>
<x>1568</x>
<y>2</y>
<height>16</height>
<width>75</width>
<format>[general]</format>
<width>78</width>
<format>#0</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<name>addon_days</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>2</limit>
<case>any</case>
<autoselect>yes</autoselect>
<format>#0</format>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1333,27 +1228,140 @@
<color>16777215</color>
</background>
</ColumnObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Last Name</text>
<border>6</border>
<color>0</color>
<x>99</x>
<y>3</y>
<height>16</height>
<width>111</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_lname_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>First Name</text>
<border>6</border>
<color>0</color>
<x>212</x>
<y>3</y>
<height>16</height>
<width>113</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_fname_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Joining Date</text>
<border>6</border>
<color>0</color>
<x>327</x>
<y>3</y>
<height>16</height>
<width>79</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_join_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>1</alignment>
<text>Days Worked</text>
<border>6</border>
<color>0</color>
<x>408</x>
<y>3</y>
<height>16</height>
<width>87</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>work_days_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>13</id>
<id>3</id>
<alignment>0</alignment>
<tabsequence>140</tabsequence>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>1157</x>
<x>99</x>
<y>1</y>
<height>16</height>
<width>98</width>
<width>111</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<name>emp_lname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>15</limit>
<case>any</case>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1371,25 +1379,26 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>1415</x>
<y>2</y>
<x>212</x>
<y>1</y>
<height>16</height>
<width>60</width>
<width>113</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>with_held</name>
<name>emp_fname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>15</limit>
<case>any</case>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1407,20 +1416,20 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<id>15</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>40</tabsequence>
<border>5</border>
<color>0</color>
<x>1477</x>
<y>2</y>
<x>327</x>
<y>1</y>
<height>16</height>
<width>95</width>
<format>[general]</format>
<width>79</width>
<format>dd/mm/yyyy</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>proc_window</name>
<name>date_join</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -1443,25 +1452,25 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<id>5</id>
<alignment>1</alignment>
<tabsequence>50</tabsequence>
<border>5</border>
<color>0</color>
<x>1575</x>
<y>2</y>
<x>408</x>
<y>1</y>
<height>16</height>
<width>78</width>
<format>#0</format>
<width>87</width>
<format>#0.00</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>addon_days</name>
<name>work_days</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>2</limit>
<limit>5</limit>
<case>any</case>
<format>#0</format>
<format>#0.0</format>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
......
......@@ -5,7 +5,7 @@
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>79741120</color>
<color>67108864</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
......@@ -31,7 +31,7 @@
</print>
</BaseDefinition>
<Summary>
<height>1</height>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
......@@ -39,7 +39,7 @@
<color>536870912</color>
</Footer>
<Detail>
<height>358</height>
<height>629</height>
<color>536870912</color>
</Detail>
<TableDefinition>
......@@ -68,16 +68,28 @@
<initial>0</initial>
</table_column>
<table_column>
<type size="15">char</type>
<type precision="2">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>emp_lname</name>
<dbname>employee.emp_lname</dbname>
<name>paid_days</name>
<dbname>attendance_mon.paid_days</dbname>
<initial>0</initial>
</table_column>
<table_column>
<type size="15">char</type>
<type precision="2">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>emp_fname</name>
<dbname>employee.emp_fname</dbname>
<name>woff_days</name>
<dbname>attendance_mon.woff_days</dbname>
<initial>0</initial>
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>lves_taken</name>
<dbname>attendance_mon.lves_taken</dbname>
<initial>0</initial>
</table_column>
<table_column>
<type>datetime</type>
......@@ -94,88 +106,78 @@
<dbname>attendance_mon.chg_user</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<type size="300">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_term</name>
<dbname>attendance_mon.chg_term</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<type precision="0">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>with_held</name>
<dbname>employee.with_held</dbname>
<name>addon_days</name>
<dbname>attendance_mon.addon_days</dbname>
</table_column>
<table_column>
<type>datetime</type>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>date_join</name>
<dbname>employee.date_join</dbname>
<name>proc_window</name>
<dbname>attendance_mon.proc_window</dbname>
</table_column>
<table_column>
<type precision="2">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>paid_days</name>
<dbname>attendance_mon.paid_days</dbname>
<initial>0</initial>
<name>work_hour</name>
<dbname>attendance_mon.work_hour</dbname>
</table_column>
<table_column>
<type precision="2">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>woff_days</name>
<dbname>attendance_mon.woff_days</dbname>
<initial>0</initial>
<name>paid_hour</name>
<dbname>attendance_mon.paid_hour</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<type size="15">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>lves_taken</name>
<dbname>attendance_mon.lves_taken</dbname>
<initial>0</initial>
<name>emp_lname</name>
<dbname>employee.emp_lname</dbname>
</table_column>
<table_column>
<type>datetime</type>
<type size="15">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>relieve_date</name>
<dbname>employee.relieve_date</dbname>
<name>emp_fname</name>
<dbname>employee.emp_fname</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>status</name>
<dbname>employee.status</dbname>
<name>date_join</name>
<dbname>employee.date_join</dbname>
</table_column>
<table_column>
<type precision="0">decimal</type>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>addon_days</name>
<dbname>attendance_mon.addon_days</dbname>
<name>relieve_date</name>
<dbname>employee.relieve_date</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>proc_window</name>
<dbname>attendance_mon.proc_window</dbname>
</table_column>
<table_column>
<type precision="2">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>work_hour</name>
<dbname>attendance_mon.work_hour</dbname>
<name>with_held</name>
<dbname>employee.with_held</dbname>
</table_column>
<table_column>
<type precision="2">decimal</type>
<update>yes</update>
<type size="1">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>paid_hour</name>
<dbname>attendance_mon.paid_hour</dbname>
<name>status</name>
<dbname>employee.status</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;attendance_mon&quot; ) TABLE(NAME=&quot;employee&quot; ) COLUMN(NAME=&quot;attendance_mon.prd_code&quot;) COLUMN(NAME=&quot;attendance_mon.emp_code&quot;) COLUMN(NAME=&quot;attendance_mon.work_days&quot;) COLUMN(NAME=&quot;employee.emp_lname&quot;) COLUMN(NAME=&quot;employee.emp_fname&quot;) COLUMN(NAME=&quot;attendance_mon.chg_date&quot;) COLUMN(NAME=&quot;attendance_mon.chg_user&quot;) COLUMN(NAME=&quot;attendance_mon.chg_term&quot;) COLUMN(NAME=&quot;employee.with_held&quot;) COLUMN(NAME=&quot;employee.date_join&quot;) COLUMN(NAME=&quot;attendance_mon.paid_days&quot;) COLUMN(NAME=&quot;attendance_mon.woff_days&quot;) COLUMN(NAME=&quot;attendance_mon.lves_taken&quot;) COLUMN(NAME=&quot;employee.relieve_date&quot;) COLUMN(NAME=&quot;employee.status&quot;) COLUMN(NAME=&quot;attendance_mon.addon_days&quot;) COLUMN(NAME=&quot;attendance_mon.proc_window&quot;) COLUMN(NAME=&quot;attendance_mon.work_hour&quot;) COLUMN(NAME=&quot;attendance_mon.paid_hour&quot;) JOIN (LEFT=&quot;attendance_mon.emp_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee.emp_code&quot; )WHERE( EXP1 =&quot;attendance_mon.prd_code&quot; OP =&quot;=&quot; EXP2 =&quot;:prd_code&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;attendance_mon.emp_code&quot; OP =&quot;=&quot; EXP2 =&quot;:emp_code&quot; ) ) ARG(NAME = &quot;prd_code&quot; TYPE = string) ARG(NAME = &quot;emp_code&quot; TYPE = string) </retrieve>
<update>attendance_mon</update>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;attendance_mon&quot; ) TABLE(NAME=&quot;employee&quot; ) COLUMN(NAME=&quot;attendance_mon.prd_code&quot;) COLUMN(NAME=&quot;attendance_mon.emp_code&quot;) COLUMN(NAME=&quot;attendance_mon.work_days&quot;) COLUMN(NAME=&quot;attendance_mon.paid_days&quot;) COLUMN(NAME=&quot;attendance_mon.woff_days&quot;) COLUMN(NAME=&quot;attendance_mon.lves_taken&quot;) COLUMN(NAME=&quot;attendance_mon.chg_date&quot;) COLUMN(NAME=&quot;attendance_mon.chg_user&quot;) COLUMN(NAME=&quot;attendance_mon.chg_term&quot;) COLUMN(NAME=&quot;attendance_mon.addon_days&quot;) COLUMN(NAME=&quot;attendance_mon.proc_window&quot;) COLUMN(NAME=&quot;attendance_mon.work_hour&quot;) COLUMN(NAME=&quot;attendance_mon.paid_hour&quot;) COLUMN(NAME=&quot;employee.emp_lname&quot;) COLUMN(NAME=&quot;employee.emp_fname&quot;) COLUMN(NAME=&quot;employee.date_join&quot;) COLUMN(NAME=&quot;employee.relieve_date&quot;) COLUMN(NAME=&quot;employee.with_held&quot;) COLUMN(NAME=&quot;employee.status&quot;) JOIN (LEFT=&quot;attendance_mon.emp_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee.emp_code&quot; )WHERE( EXP1 =&quot;~&quot;ATTENDANCE_MON~&quot;.~&quot;PRD_CODE~&quot;&quot; OP =&quot;=&quot; EXP2 =&quot;:prd_code&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;~&quot;ATTENDANCE_MON~&quot;.~&quot;EMP_CODE~&quot;&quot; OP =&quot;=&quot; EXP2 =&quot;:emp_code&quot; ) ) ARG(NAME = &quot;prd_code&quot; TYPE = string) ARG(NAME = &quot;emp_code&quot; TYPE = string) </retrieve>
<update>ATTENDANCE_MON</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
......@@ -191,107 +193,97 @@
<band>Detail</band>
<text>Others</text>
<border>2</border>
<color>0</color>
<x>8</x>
<y>154</y>
<height>193</height>
<width>553</width>
<color>33554432</color>
<x>11</x>
<y>138</y>
<height>170</height>
<width>586</width>
<name>gb_2</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Liberation Sans</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>553648127</color>
</background>
</GroupBox>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>2</border>
<color>0</color>
<x>7</x>
<y>4</y>
<height>141</height>
<width>554</width>
<color>33554432</color>
<x>9</x>
<y>5</y>
<height>125</height>
<width>590</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Liberation Sans</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>553648127</color>
</background>
</GroupBox>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>268</x>
<y>36</y>
<height>19</height>
<width>115</width>
<format>[general]</format>
<alignment>1</alignment>
<text>Period Code:</text>
<border>0</border>
<color>33554432</color>
<x>24</x>
<y>28</y>
<height>15</height>
<width>121</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_lname</name>
<name>prd_code_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>388</x>
<y>36</y>
<height>19</height>
<width>115</width>
<tabsequence>10</tabsequence>
<border>0</border>
<color>33554432</color>
<x>151</x>
<y>27</y>
<height>18</height>
<width>56</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_fname</name>
<name>prd_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<limit>6</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -299,280 +291,246 @@
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>13</id>
<alignment>1</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>441</x>
<y>63</y>
<height>19</height>
<width>62</width>
<format>##.0</format>
<text>Change Term:</text>
<border>0</border>
<color>33554432</color>
<x>24</x>
<y>254</y>
<height>15</height>
<width>81</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lves_taken</name>
<name>chg_term_t</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>##.0</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<id>11</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>441</x>
<y>90</y>
<height>19</height>
<width>62</width>
<format>0.00</format>
<text>Change Date:</text>
<border>0</border>
<color>33554432</color>
<x>24</x>
<y>230</y>
<height>15</height>
<width>81</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>paid_days</name>
<name>chg_date_t</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>##.00</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>194</x>
<y>291</y>
<height>19</height>
<width>62</width>
<format>[general]</format>
<alignment>1</alignment>
<text>Addon Days:</text>
<border>0</border>
<color>33554432</color>
<x>24</x>
<y>207</y>
<height>15</height>
<width>81</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<name>addon_days_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<id>10</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>194</x>
<y>182</y>
<height>19</height>
<width>62</width>
<format>dd/mm/yy</format>
<text>Relieve Date:</text>
<border>0</border>
<color>33554432</color>
<x>24</x>
<y>184</y>
<height>15</height>
<width>81</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_join</name>
<name>relieve_date_t</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>441</x>
<y>182</y>
<height>19</height>
<width>62</width>
<format>[general]</format>
<alignment>1</alignment>
<text>Date Of Join:</text>
<border>0</border>
<color>33554432</color>
<x>24</x>
<y>158</y>
<height>15</height>
<width>81</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>with_held</name>
<name>date_join_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>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>1</alignment>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>194</x>
<y>209</y>
<height>19</height>
<width>62</width>
<format>dd/mm/yy</format>
<border>0</border>
<color>33554432</color>
<x>109</x>
<y>254</y>
<height>18</height>
<width>177</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>relieve_date</name>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<EditStyle style="edit">
<limit>300</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>441</x>
<y>209</y>
<height>19</height>
<width>62</width>
<format>[general]</format>
<border>0</border>
<color>33554432</color>
<x>109</x>
<y>230</y>
<height>18</height>
<width>176</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status</name>
<name>chg_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<id>10</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>194</x>
<y>237</y>
<height>19</height>
<width>62</width>
<format>[General]</format>
<border>0</border>
<color>33554432</color>
<x>109</x>
<y>207</y>
<height>18</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -581,20 +539,22 @@
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
......@@ -602,321 +562,312 @@
<id>17</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>441</x>
<y>238</y>
<height>19</height>
<width>62</width>
<format>[general]</format>
<border>0</border>
<color>33554432</color>
<x>109</x>
<y>184</y>
<height>18</height>
<width>176</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>proc_window</name>
<name>relieve_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>1</alignment>
<id>16</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>194</x>
<y>265</y>
<height>19</height>
<width>62</width>
<format>dd/mm/yy</format>
<border>0</border>
<color>33554432</color>
<x>109</x>
<y>158</y>
<height>18</height>
<width>176</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<name>date_join</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>441</x>
<y>264</y>
<height>19</height>
<width>62</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Employee :</text>
<text>No. of Hours Worked :</text>
<border>0</border>
<color>0</color>
<x>34</x>
<y>36</y>
<height>19</height>
<width>155</width>
<color>33554432</color>
<x>24</x>
<y>277</y>
<height>15</height>
<width>129</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code_t</name>
<name>work_hour_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<id>12</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>194</x>
<y>36</y>
<height>19</height>
<width>69</width>
<border>0</border>
<color>33554432</color>
<x>160</x>
<y>277</y>
<height>18</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code</name>
<name>work_hour</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>3</id>
<alignment>1</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>194</x>
<y>63</y>
<height>19</height>
<width>69</width>
<format>##.0</format>
<text>Change User:</text>
<border>0</border>
<color>33554432</color>
<x>327</x>
<y>230</y>
<height>15</height>
<width>81</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>work_days</name>
<name>chg_user_t</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>##.0</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Weekly off days &amp;&amp; Holidays :</text>
<text>Process Window:</text>
<border>0</border>
<color>0</color>
<x>26</x>
<y>90</y>
<height>19</height>
<width>163</width>
<color>33554432</color>
<x>306</x>
<y>207</y>
<height>15</height>
<width>102</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>woff_days_t</name>
<name>proc_window_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Preriod Code :</text>
<text>Status:</text>
<border>0</border>
<color>0</color>
<x>87</x>
<y>117</y>
<height>19</height>
<width>102</width>
<color>33554432</color>
<x>327</x>
<y>184</y>
<height>15</height>
<width>81</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_1</name>
<name>status_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>12</id>
<alignment>1</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>194</x>
<y>90</y>
<height>19</height>
<width>69</width>
<format>##.0</format>
<text>With Held:</text>
<border>0</border>
<color>33554432</color>
<x>327</x>
<y>158</y>
<height>15</height>
<width>81</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>woff_days</name>
<name>with_held_t</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>##.0</mask>
<imemode>0</imemode>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>413</x>
<y>207</y>
<height>18</height>
<width>132</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>proc_window</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>1</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<id>19</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>194</x>
<y>117</y>
<height>19</height>
<width>69</width>
<border>0</border>
<color>33554432</color>
<x>413</x>
<y>184</y>
<height>18</height>
<width>136</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>prd_code</name>
<name>status</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>1</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -924,478 +875,564 @@
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>No. of Days Worked :</text>
<id>18</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>0</color>
<x>34</x>
<y>63</y>
<height>19</height>
<width>155</width>
<color>33554432</color>
<x>413</x>
<y>158</y>
<height>18</height>
<width>144</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>work_days_t</name>
<name>with_held</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>1</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>No. of Days Paid :</text>
<text>Employee:</text>
<border>0</border>
<color>0</color>
<x>324</x>
<y>90</y>
<height>19</height>
<width>112</width>
<color>33554432</color>
<x>24</x>
<y>51</y>
<height>15</height>
<width>121</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>paid_days_t</name>
<name>emp_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Leaves Taken :</text>
<id>2</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>0</border>
<color>0</color>
<x>324</x>
<y>63</y>
<height>19</height>
<width>112</width>
<color>33554432</color>
<x>151</x>
<y>51</y>
<height>18</height>
<width>88</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>lves_taken_t</name>
<name>emp_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Date Of Join :</text>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>0</color>
<x>34</x>
<y>182</y>
<height>19</height>
<width>155</width>
<color>33554432</color>
<x>248</x>
<y>51</y>
<height>18</height>
<width>128</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>date_join_t</name>
<name>emp_lname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Status :</text>
<id>15</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>0</color>
<x>332</x>
<y>209</y>
<height>19</height>
<width>104</width>
<color>33554432</color>
<x>384</x>
<y>51</y>
<height>18</height>
<width>128</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status_t</name>
<name>emp_fname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>With Held :</text>
<text>No. of Days Worked:</text>
<border>0</border>
<color>0</color>
<x>332</x>
<y>182</y>
<height>19</height>
<width>104</width>
<color>33554432</color>
<x>24</x>
<y>75</y>
<height>15</height>
<width>121</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>with_held_t</name>
<name>work_days_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Process Window :</text>
<text>Paid Hour:</text>
<border>0</border>
<color>0</color>
<x>332</x>
<y>237</y>
<height>19</height>
<width>104</width>
<color>33554432</color>
<x>327</x>
<y>279</y>
<height>15</height>
<width>81</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>proc_window_t</name>
<name>paid_hour_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Relieve Date :</text>
<id>8</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>0</color>
<x>34</x>
<y>210</y>
<height>19</height>
<width>155</width>
<color>33554432</color>
<x>413</x>
<y>230</y>
<height>18</height>
<width>88</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>relieve_date_t</name>
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<alignment>1</alignment>
<text>Add On Days :</text>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>0</color>
<x>34</x>
<y>237</y>
<height>19</height>
<width>155</width>
<color>33554432</color>
<x>413</x>
<y>279</y>
<height>18</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>addon_days_t</name>
<name>paid_hour</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>1</alignment>
<text>Change Date :</text>
<tabsequence>40</tabsequence>
<border>0</border>
<color>0</color>
<x>34</x>
<y>264</y>
<height>19</height>
<width>155</width>
<color>33554432</color>
<x>150</x>
<y>99</y>
<height>18</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<name>woff_days</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change Term :</text>
<text>Weekly off days and Holidays :</text>
<border>0</border>
<color>0</color>
<x>34</x>
<y>291</y>
<height>19</height>
<width>155</width>
<color>33554432</color>
<x>24</x>
<y>99</y>
<height>15</height>
<width>121</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<name>woff_days_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>1</alignment>
<text>Change User :</text>
<tabsequence>30</tabsequence>
<border>0</border>
<color>0</color>
<x>332</x>
<y>264</y>
<height>19</height>
<width>104</width>
<color>33554432</color>
<x>151</x>
<y>75</y>
<height>18</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<name>work_days</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>No. of Hours Worked :</text>
<text>Paid Days:</text>
<border>0</border>
<color>0</color>
<x>34</x>
<y>318</y>
<height>19</height>
<width>155</width>
<color>33554432</color>
<x>352</x>
<y>99</y>
<height>15</height>
<width>81</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>work_hour_t</name>
<name>paid_days_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>18</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>194</x>
<y>318</y>
<height>19</height>
<width>62</width>
<format>0.00</format>
<text>Leaves Taken:</text>
<border>0</border>
<color>33554432</color>
<x>352</x>
<y>75</y>
<height>15</height>
<width>120</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>work_hour</name>
<name>lves_taken_t</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>##.00</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>1</alignment>
<text>No. of Hours Paid :</text>
<tabsequence>50</tabsequence>
<border>0</border>
<color>0</color>
<x>332</x>
<y>318</y>
<height>19</height>
<width>104</width>
<color>33554432</color>
<x>473</x>
<y>75</y>
<height>18</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>paid_hour_t</name>
<name>lves_taken</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<id>4</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>441</x>
<y>318</y>
<height>19</height>
<width>62</width>
<format>0.00</format>
<border>0</border>
<color>33554432</color>
<x>437</x>
<y>99</y>
<height>18</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>paid_hour</name>
<name>paid_days</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>##.00</mask>
<imemode>0</imemode>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<HtmlTable>
......
/**
* Added by saiprasad G. Add component for the validation and itemChange
*/
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.Calendar;
import java.util.Date;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import ibase.ejb.CommonDBAccessEJB;
import ibase.utility.BaseLogger;
import ibase.utility.E12GenericUtility;
import ibase.utility.UserInfoBean;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.sys.UtilMethods;
import ibase.webitm.utility.ITMException;
public class AttdMonIC extends ValidatorEJB
{
E12GenericUtility genericUtility = new E12GenericUtility();
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException
{
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String errString = "";
try
{
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);
}
errString = wfValData(dom,dom1,dom2,objContext,editFlag,xtraParams);
}
catch(Exception e)
{
BaseLogger.log("0", null, null, "Exception [" + this.getClass().getSimpleName() + "] : [wfValData(S)] " + e.getMessage());
errString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e);
}
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 childNodeName = null;
Connection conn = null;
PreparedStatement pStmt = null;
ResultSet rs = null;
int currentFormNo=0,childNodeListLength=0 , columnCtr=0 , rowCnt=0;
AdmCommon admCommon = new AdmCommon();
String errCode = "", userId = "" ,sql="" ,siteCode="";
UserInfoBean userInfo ;
try
{
conn = getConnection();
userId = getValueFromXTRA_PARAMS(xtraParams,"loginCode");
userInfo=getUserInfo();
siteCode=userInfo.getSiteCode();
if(objContext != null && objContext.trim().length()>0)
{
currentFormNo = Integer.parseInt(objContext);
}
String empCode="", prdCode="",workSite="",propDays="",paidDays="",joinDateStr="";
String dateJoin="",relDate="",status="",workDays="",woffDays="",lvesTaken="",reliveDateStr="";
int workDay=0,woffDay=0,lveTaken=0;
Date frDate = null,frDatePeriod=null,toDate=null,joinDate = null,reliveDate=null;
double propDaysDbl =0,paidDaysDbl=0;
SimpleDateFormat sdfDB = new SimpleDateFormat(genericUtility.getDBDateFormat());
SimpleDateFormat sdfApplFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
switch(currentFormNo)
{
case 1:
parentNodeList = dom.getElementsByTagName("Detail1");
int parentNodeListLen = parentNodeList.getLength();
for(columnCtr =0;columnCtr<parentNodeListLen;columnCtr++)
{
parentNode = parentNodeList.item(columnCtr);
childNodeList = parentNode.getChildNodes();
childNodeListLength =childNodeList.getLength();
for(rowCnt=0;rowCnt<childNodeListLength;rowCnt++)
{
childNode =childNodeList.item(rowCnt);
childNodeName = childNode.getNodeName();
BaseLogger.log("3", null , null , "childNodeName:SP:"+childNodeName);
if("prd_code".equalsIgnoreCase(childNodeName))
{
prdCode = E12GenericUtility.checkNull(genericUtility.getColumnValue("prd_code", dom));
empCode = E12GenericUtility.checkNull(genericUtility.getColumnValue("emp_code", dom));
if(empCode.length() == 0)
{
errCode = genericUtility.getErrorString("emp_code", "VTMONATD01", userId);
break;
}
else if(prdCode.length()==0)
{
errCode = genericUtility.getErrorString("prd_code", "VTMONATD09", userId);
break;
}
else
{
sql ="select fr_date from period where code =?";
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, prdCode);
rs = pStmt.executeQuery();
while(rs.next())
{
frDate = rs.getDate("fr_date");
}
if(rs!=null)
{
rs.close();
rs = null;
}
if(pStmt!=null)
{
pStmt.close();
pStmt = null;
}
if(frDate==null)
{
errCode = genericUtility.getErrorString("prd_code", "VTMONATD10", userId);
break;
}
else
{
sql="select work_site from employee where emp_code =?";
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, empCode);
rs = pStmt.executeQuery();
while(rs.next())
{
workSite = E12GenericUtility.checkNull(rs.getString("work_site"));
}
if(rs!=null)
{
rs.close();
rs = null;
}
if(pStmt!=null)
{
pStmt.close();
pStmt = null;
}
if(workSite.length() == 0)
{
errCode = genericUtility.getErrorString("prd_code", "VTMONATD02", userId);
break;
}
else
{
errCode = nfCheckPeriod("ADM", frDate, workSite, conn);
if(errCode.trim().length() > 0)
{
errCode = genericUtility.getErrorString("prd_code", errCode , userId);
break;
}
}
}
}
}
else if("paid_days".equalsIgnoreCase(childNodeName))
{
prdCode = genericUtility.getColumnValue("prd_code", dom);
propDays = admCommon.getEnv(prdCode, "PROP_DAYS", conn);
if("NULLFOUND".equalsIgnoreCase(propDays))
{
errCode = genericUtility.getErrorString("paid_days", "VSENVAR1", userId);
break;
}
else
{
if(propDays!=null)
{
propDaysDbl = Double.parseDouble(propDays);
}
paidDays = genericUtility.getColumnValue("paid_days", dom);
dateJoin = genericUtility.getColumnValue("date_join", dom);
relDate= genericUtility.getColumnValue("relieve_date", dom);
status = genericUtility.getColumnValue("status", dom);
if(dateJoin!=null)
{
joinDate = sdfApplFormat.parse(dateJoin);
joinDateStr = sdfDB.format(joinDate);
joinDate =sdfDB.parse(joinDateStr);
}
if(relDate!=null)
{
reliveDate = sdfApplFormat.parse(relDate);
reliveDateStr = sdfDB.format(reliveDate);
reliveDate = sdfDB.parse(reliveDateStr);
}
if(paidDays!=null)
{
paidDaysDbl= Double.parseDouble(paidDays);
}
if(paidDaysDbl > propDaysDbl) //paid Days > prop_days
{
errCode = genericUtility.getErrorString("paid_days", "VTPAID", userId);
break;
}
else
{
sql="select fr_date,to_date from period where code =?";
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, prdCode);
rs = pStmt.executeQuery();
while(rs.next())
{
frDatePeriod = rs.getDate("fr_date");
toDate = rs.getDate("to_date");
}
if(rs!=null)
{
rs.close();
rs = null;
}
if(pStmt!=null)
{
pStmt.close();
pStmt = null;
}
double day=0;
Calendar calendar= Calendar.getInstance();
calendar.setTime(joinDate);
if(((joinDate.compareTo(frDatePeriod)>=0))&&(joinDate.compareTo(toDate)<=0))
{
day = calendar.get(Calendar.DAY_OF_MONTH);
day = propDaysDbl-day+1;
if(paidDaysDbl > day)
{
errCode = genericUtility.getErrorString("paid_days", "VTATTDMON1", userId);
break;
}
}
else if((reliveDate.compareTo(frDatePeriod)>=0)&&(reliveDate.compareTo(toDate)<=0)
&& "S".equalsIgnoreCase(status))
{
calendar.setTime(reliveDate);
day = calendar.get(Calendar.DAY_OF_MONTH);
day = propDaysDbl-day;
day = propDaysDbl-day;
if(paidDaysDbl>day)
{
errCode = genericUtility.getErrorString("paid_days", "VTATTDMON1", userId);
break;
}
}
}
}
}
else if("emp_code".equalsIgnoreCase(childNodeName))
{
empCode =E12GenericUtility.checkNull(genericUtility.getColumnValue("emp_code", dom));
if(empCode.length()== 0)
{
errCode = genericUtility.getErrorString("emp_code", "VTMONATD01", userId);
break;
}
else
{
sql="select fr_date from period where code=?";
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, prdCode);
rs = pStmt.executeQuery();
while(rs.next())
{
frDate = rs.getDate("fr_date");
}
if(rs!=null)
{
rs.close();
rs = null;
}
if(pStmt!=null)
{
pStmt.close();
pStmt = null;
}
sql="select work_site from employee where emp_code =?";
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, empCode);
rs = pStmt.executeQuery();
while(rs.next())
{
workSite = E12GenericUtility.checkNull(rs.getString("work_site"));
System.out.println("workSite:"+workSite);
}
if(rs!=null)
{
rs.close();
rs = null;
}
if(pStmt!=null)
{
pStmt.close();
pStmt = null;
}
if(workSite.length() == 0)
{
errCode = genericUtility.getErrorString("emp_code", "VTMONATD02", userId);
break;
}
else
{
errCode = admCommon.gbfEmp(empCode, frDate, workSite,siteCode, conn);
int counter=0;
if(errCode.equalsIgnoreCase("") && errCode.trim().length()==0)
{
sql="select count(*) from fullfinal_hdr where emp_code =? and confirmed =?";
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, empCode);
pStmt.setString(2, "Y");
rs = pStmt.executeQuery();
while(rs.next())
{
counter = rs.getInt(1);
}
if(rs!=null)
{
rs.close();
rs = null;
}
if(pStmt!=null)
{
pStmt.close();
pStmt = null;
}
if(counter>0)
{
errCode =genericUtility.getErrorString("emp_code", "VMEMPV", userId);
break;
}
}
}
}
}
else if("work_days".equalsIgnoreCase(childNodeName))
{
workDays = E12GenericUtility.checkNull(genericUtility.getColumnValue("work_days", dom));
if(workDays.length() == 0)
{
errCode = genericUtility.getErrorString("work_days", "VTMONATD03", userId);
break;
}
else if(workDays!=null)
{
workDay = Integer.parseInt(workDays);
if(workDay < 0)
{
errCode = genericUtility.getErrorString("work_days", "VTMONATD04", userId);
break;
}
}
}
else if("woff_days".equalsIgnoreCase(childNodeName))
{
woffDays = E12GenericUtility.checkNull(genericUtility.getColumnValue("woff_days", dom));
if(woffDays.length() == 0)
{
errCode = genericUtility.getErrorString("woff_days", "VTMONATD05", userId);
break;
}
else if(woffDays!=null)
{
woffDay = Integer.parseInt(woffDays);
if(woffDay < 0)
{
errCode = genericUtility.getErrorString("woff_days", "VTMONATD06", userId);
break;
}
}
}
else if("lves_taken".equalsIgnoreCase(childNodeName))
{
lvesTaken = E12GenericUtility.checkNull(genericUtility.getColumnValue("lves_taken", dom));
if(lvesTaken.length() == 0)
{
errCode = genericUtility.getErrorString("lves_taken", "VTMONATD07", userId);
break;
}
if(lvesTaken != null)
{
lveTaken = Integer.parseInt(lvesTaken);
if(lveTaken < 0)
{
errCode = genericUtility.getErrorString("lves_taken", "VTMONATD08", userId);
break;
}
}
}
else if("A".equalsIgnoreCase(editFlag))
{
prdCode = E12GenericUtility.checkNull(genericUtility.getColumnValue("prd_code", dom));
empCode = E12GenericUtility.checkNull(genericUtility.getColumnValue("emp_code", dom));
int count=0;
sql="select count(*) from attendance_mon where prd_code=? and emp_code =?";
pStmt=conn.prepareStatement(sql);
pStmt.setString(1, prdCode);
pStmt.setString(2, empCode);
rs = pStmt.executeQuery();
while(rs.next())
{
count = rs.getInt(1);
}
if(rs!=null)
{
rs.close();
rs = null;
}
if(pStmt!=null)
{
pStmt.close();
pStmt = null;
}
if(count > 0)
{
errCode=genericUtility.getErrorString("", "VDEMP1", userId);
break;
}
}
}
}
}
}
catch(Exception e)
{
BaseLogger.log("0", null, null, "Exception [" + this.getClass().getSimpleName() + "] : [wfValData(S)] " + e.getMessage());
}
finally
{
try
{
if(rs!=null)
{
rs.close();
rs = null;
}
if(pStmt!=null)
{
pStmt.close();
pStmt = null;
}
if(conn!=null)
{
conn.close();
conn = null;
}
}
catch(Exception e)
{
BaseLogger.log("0",null, null, "Exception in wfValData"+e);
}
}
return errCode;
}
public String itemChanged(String xmlString, String xmlStringHdr, String xmlStringAll, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
{
Document dom = null, domHdr = null, domAll = null;
String valueXmlString = "";
try
{
if (xmlString != null && xmlString.trim().length() > 0)
{
dom = genericUtility.parseString(xmlString);
}
if (xmlStringHdr != null && xmlStringHdr.trim().length() > 0)
{
domHdr = genericUtility.parseString(xmlStringHdr);
}
if (xmlStringAll != null && xmlStringAll.trim().length() > 0)
{
domAll = genericUtility.parseString(xmlStringAll);
}
valueXmlString = itemChanged(dom, domHdr, domAll, objContext, currentColumn, editFlag, xtraParams);
}
catch (Exception e)
{
BaseLogger.log("0", null, null, "Exception [" + this.getClass().getSimpleName() + "] : [itemChanged(S)] " + e.getMessage());
throw new ITMException(e);
}
return valueXmlString;
}
public String itemChanged(Document dom, Document domHdr , Document domAll ,String objContext,String currentColumn, String editFlag ,String xtraParams) throws RemoteException
{
StringBuffer valueXmlString = new StringBuffer();
String logInEmpCode = "",loginSite="";
Connection con =null;
PreparedStatement pStmt =null;
ResultSet rs =null;
Timestamp currTs =null;
int currentFormNo=0;
UtilMethods utils = new UtilMethods();
try
{
con = getConnection();
String sql="",empCode="",empFname="",empLname="",status="",prdCode="";
Date reliveDate = null,dateJoin=null;
String workDays="",woffDays="",lvesTaken="",withHeld="";
double workDayCnt=0,woffDaysCnt=0,lvesTakenCnt=0;
if(objContext!=null)
{
currentFormNo = Integer.parseInt(objContext);
}
logInEmpCode = getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode");
loginSite = getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
SimpleDateFormat sdfApplFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
BaseLogger.log("3", null, null, "["+this.getClass().getSimpleName()+"] [itemChanged(D)]:currentFormNo:"+currentFormNo);
valueXmlString = new StringBuffer("<?xml version=\"1.0\" encoding=''?>\r\n<Root>\r\n<header>\r\n<editFlag>");
valueXmlString.append(editFlag).append("</editFlag>\r\n</header>\r\n");
switch(currentFormNo)
{
case 1:
valueXmlString.append("<Detail1>\r\n");
if("itm_default".equalsIgnoreCase(currentColumn))
{
if( utils.pos(xtraParams, "prd_code") > 0 )
{
prdCode = E12GenericUtility.checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "prd_code"));
}
String loginCode=getValueFromXTRA_PARAMS(xtraParams,"loginCode");
String chgTerm=getValueFromXTRA_PARAMS( xtraParams, "chgTerm" );
Date currentDate = new Date();
valueXmlString.append( "<prd_code><![CDATA[" ).append(prdCode).append( "]]></prd_code>\r\n" );
valueXmlString.append( "<chg_date><![CDATA[" ).append(sdfApplFormat.format(currentDate).toString()).append( "]]></chg_date>\r\n" );
valueXmlString.append( "<chg_user><![CDATA[" ).append(loginCode).append( "]]></chg_user >\r\n" );
valueXmlString.append( "<chg_term><![CDATA[" ).append(chgTerm).append( "]]></chg_term>\r\n" );
}
if("emp_code".equalsIgnoreCase(currentColumn))
{
empCode = E12GenericUtility.checkNull(genericUtility.getColumnValue("emp_code", dom));
sql="select emp_lname, emp_fname, date_join, relieve_date, status from employee where emp_code=?";
pStmt = con.prepareStatement(sql);
pStmt.setString(1, empCode);
rs = pStmt.executeQuery();
while(rs.next())
{
empLname = E12GenericUtility.checkNull(rs.getString("emp_lname"));
empFname = E12GenericUtility.checkNull(rs.getString("emp_fname"));
dateJoin = rs.getDate("date_join");
reliveDate = rs.getDate("relieve_date");
status = E12GenericUtility.checkNull(rs.getString("status"));
}
if(rs!=null)
{
rs.close();
rs = null;
}
if(pStmt!=null)
{
pStmt.close();
pStmt = null;
}
valueXmlString.append("<emp_lname><![CDATA[").append(empLname).append("]]></emp_lname>");
valueXmlString.append("<emp_fname><![CDATA[").append(empFname).append("]]></emp_fname>");
if(dateJoin!=null)
{
valueXmlString.append("<date_join><![CDATA[").append(sdfApplFormat.format(dateJoin)).append("]]></date_join>");
}
if(reliveDate!=null)
{
valueXmlString.append("<relieve_date><![CDATA[").append(sdfApplFormat.format(reliveDate)).append("]]></relieve_date>");
}
valueXmlString.append("<status><![CDATA[").append(status).append("]]></status>");
}
else if("work_days".equalsIgnoreCase(currentColumn)|| "woff_days".equalsIgnoreCase(currentColumn)
|| "lves_taken".equalsIgnoreCase(currentColumn))
{
workDays = E12GenericUtility.checkNull(genericUtility.getColumnValue("work_days", dom));
woffDays = E12GenericUtility.checkNull(genericUtility.getColumnValue("woff_days", dom));
lvesTaken = E12GenericUtility.checkNull(genericUtility.getColumnValue("lves_taken", dom));
withHeld = E12GenericUtility.checkNull(genericUtility.getColumnValue("with_held", dom));
if(workDays!=null)
{
workDayCnt = Double.parseDouble(workDays);
}
if(woffDays!=null)
{
woffDaysCnt = Double.parseDouble(woffDays);
workDayCnt =workDayCnt+woffDaysCnt;
}
if(lvesTaken!=null)
{
lvesTakenCnt = Double.parseDouble(lvesTaken);
workDayCnt = workDayCnt+lvesTakenCnt;
}
if(withHeld.equalsIgnoreCase("Y"))
{
valueXmlString.append("<paid_days><![CDATA[").append("0").append("]]></paid_days>");
}
else
{
valueXmlString.append("<paid_days><![CDATA[").append(workDayCnt).append("]]></paid_days>");
}
}
valueXmlString.append("</Detail1>\r\n");
valueXmlString.append("</Root>\r\n");
}
}
catch(Exception e)
{
BaseLogger.log("0", null, null, "Exception [" + this.getClass().getSimpleName() + "] : [itemChanged(S)] " + e.getMessage());
}
finally
{
try
{
if(rs!=null)
{
rs.close();
rs = null;
}
if(pStmt!=null)
{
pStmt.close();
pStmt = null;
}
if(con!=null)
{
con.close();
con=null;
}
}
catch(Exception e)
{
BaseLogger.log("0", null, null, "Exception [" + this.getClass().getSimpleName() + "] : [itemChanged(S)] " + e.getMessage());
}
}
return valueXmlString.toString();
}
}
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