Commit 63ae6b46 authored by ysawant's avatar ysawant

Added updated metadata, SQL, SRD and components of Employee Bond Definition menu[09-03-2020]

employee_bond_def11.xml
employee_bond_def12.xml
employee_bond_def21.xml
employee_bond_def22.xml
w_employee_bond_def.sql
d_employee_bond_def11.srd
d_employee_bond_def21.srd
EmpBondDefault.java
EmpBondDefConfirm.java
EmpBondDefinition.java


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@217676 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3c31f679
---------------------------------------------------- EMPLOYEE_BOND Table
--------------------------- EMPLOYEE_BOND Table
alter table EMPLOYEE_BOND
add TRAN_ID CHAR(10) not null;
ALTER TABLE EMPLOYEE_BOND ADD TRAN_ID CHAR(10);
alter table EMPLOYEE_BOND
add TRAN_ID__PVOUCH CHAR(10);
UPDATE EMPLOYEE_BOND SET TRAN_ID = 'SYS' || SUBSTR('0000000' || TRIM(TO_CHAR(ROWNUM)) , -7) WHERE TRAN_ID IS NULL;
COMMIT;
alter table EMPLOYEE_BOND
add LINE_NO__PVOUCH NUMBER(3);
ALTER TABLE EMPLOYEE_BOND MODIFY TRAN_ID NOT NULL;
alter table EMPLOYEE_BOND add TRAN_ID__PVOUCH CHAR(10);
alter table EMPLOYEE_BOND add LINE_NO__PVOUCH NUMBER(3);
alter table EMPLOYEE_BOND add AD_CODE CHAR(5);
alter table EMPLOYEE_BOND add EFF_DATE date;
alter table EMPLOYEE_BOND add TRAN_TYPE char(3);
alter table EMPLOYEE_BOND
add AD_CODE CHAR(5);
ALTER TABLE EMPLOYEE_BOND DROP CONSTRAINT EMPLOYEE_BOND_X;
ALTER TABLE EMPLOYEE_BOND ADD CONSTRAINT EMPLOYEE_BOND_X PRIMARY KEY(TRAN_ID,LINE_NO);
CREATE INDEX APPVISDEV.EMPLOYEE_BOND_I1 ON APPVISDEV.EMPLOYEE_BOND (EMP_CODE,AD_CODE);
CREATE INDEX EMPLOYEE_BOND_I1 ON EMPLOYEE_BOND (EMP_CODE,AD_CODE);
CREATE INDEX EMPLOYEE_BOND_I2 ON EMPLOYEE_BOND (TRAN_ID__PVOUCH,LINE_NO__PVOUCH);
--------------------------- EMPLOYEE_BOND_DEF Table
alter table EMPLOYEE_BOND_DEF add TRAN_ID__BOND CHAR(10);
CREATE INDEX APPVISDEV.EMPLOYEE_BOND_I2 ON APPVISDEV.EMPLOYEE_BOND (TRAN_ID__PVOUCH,LINE_NO__PVOUCH);
alter table EMPLOYEE_BOND_DEF add TRAN_ID__PVOUCH CHAR(10);
---------------------------------------------------- EMPLOYEE_BOND_DEF Table
alter table EMPLOYEE_BOND_DEF add LINE_NO__PVOUCH NUMBER(3);
alter table EMPLOYEE_BOND_DEF
add TRAN_ID__BOND CHAR(10);
alter table EMPLOYEE_BOND_DEF add AD_CODE CHAR(5);
alter table EMPLOYEE_BOND_DEF
add TRAN_ID__PVOUCH CHAR(10);
alter table EMPLOYEE_BOND_DEF add EFF_DATE date;
alter table EMPLOYEE_BOND_DEF
add LINE_NO__PVOUCH NUMBER(3);
alter table EMPLOYEE_BOND_DEF add TRAN_TYPE char(3);
--------------------------- Function FN_GET_PVOUCHDET_AMT
create or replace FUNCTION FN_GET_PVOUCHDET_AMT(AS_TRAN_ID PAYR_VOUCHDET.TRAN_ID%TYPE, AS_LINE_NO PAYR_VOUCHDET.LINE_NO%type)
RETURN NUMBER IS A_AMOUNT PAYR_VOUCHDET.AMOUNT%type;
BEGIN
BEGIN
SELECT AMOUNT INTO A_AMOUNT FROM PAYR_VOUCHDET
WHERE TRAN_ID = AS_TRAN_ID AND LINE_NO = AS_LINE_NO;
EXCEPTION
WHEN NO_DATA_FOUND THEN
A_AMOUNT := 0;
END;
RETURN CASE WHEN A_AMOUNT IS NULL THEN 0 ELSE A_AMOUNT END;
END;
alter table EMPLOYEE_BOND_DEF
add AD_CODE CHAR(5);
----------------------------------------------------- TRANSETUP
......@@ -44,7 +68,7 @@ Insert into OBJ_FORMS (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_E
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_employee_bond_def','Bond Detail','d_employee_bond_def12','d_employee_bond_def22',null,null,null,null,'2','T',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'DetailForm.png',null,null,null,null);
-----------------Update Quaries+++
-----------------Update Quaries
update OBJ_FORMS set DISP_METADATA =
'<html>
......@@ -177,16 +201,19 @@ Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,AR
---------------------------------------------------- OBJ_ITEMCHANGE
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('employee_bond_def','1','ad_code','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('employee_bond_def','1','amount','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('employee_bond_def','1','emp_code','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('employee_bond_def','1','itm_default','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('employee_bond_def','1','itm_defaultedit','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('employee_bond_def','1','line_no__pvouch','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('employee_bond_def','1','tran_id__bond','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('employee_bond_def','1','tran_id__pvouch','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('employee_bond_def','1','tran_type','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('employee_bond_def','2','bond_amt','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('employee_bond_def','2','itm_default','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('employee_bond_def','2','line_no__ref','Y');
---------------------------------------------------- POPHELP
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('AD_CODE','W_EMPLOYEE_BOND_DEF','SELECT AD_CODE, DESCR FROM ALLWDEDN',null,'Allowance/Deduction',null,null,to_date('22-10-00','DD-MM-RR'),'SUN ','HDP','1',null,null,null,null,null,null,null,null,null,'2',null,'3','AdCodeImages','ad_code','descr','2',null,null,null,null,null,null,null);
......@@ -211,7 +238,26 @@ Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,E
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 ('VTEBNDDF13','Record cannot be saved!','Definition already has been done for given payroll voucher.','E','Y',null,null,null,to_date('31-03-03','DD-MM-RR'),'BASE ','PIYUSH',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 ('VTEBNDDF14','Inavlid Bond Amount!','Bond amount can not be greter than previous amount','E','Y',null,null,null,to_date('31-03-03','DD-MM-RR'),'BASE','PIYUSH',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 ('VTEBNDDF15','Inavlid Voucher!','You can not do recovery against cancelled voucher','E','Y',null,null,null,to_date('31-03-03','DD-MM-RR'),'BASE','PIYUSH',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 ('VTEBNDDF16','Empty Tran Id Voucher!','In case of tran type Voucher, Tran Id Voucher can not be empty ','E','Y',null,null,null,to_date('31-03-03','DD-MM-RR'),'BASE','PIYUSH',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 ('VTEBNDDF17','Invalid Effective Date!','Effective date can not be less than Gratuity Date or Join Date.','E','Y',null,null,null,to_date('31-03-03','DD-MM-RR'),'BASE','PIYUSH',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 ('VTEBNDDF18','Invalid Amount!','Amount can not be less than or equal to zero.','E','Y',null,null,null,to_date('31-03-03','DD-MM-RR'),'BASE ','PIYUSH',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 ('VTEBNDDF19','Invalid Effective Date!','Effective date can not be null or empty. Please enter effective date','E','Y',null,null,null,to_date('31-03-03','DD-MM-RR'),'BASE','PIYUSH',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 ('VTEBNDDF20','Record cannot be saved!','Another record with same tranId voucher which is unconfirmed already present.','E','Y',null,null,null,to_date('31-03-03','DD-MM-RR'),'BASE','PIYUSH',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 ('VTEBNDDF21','Invalid Voucher Amount!','Voucher amount can not be less than or equal to zero.','E','Y',null,null,null,to_date('31-03-03','DD-MM-RR'),'BASE ','PIYUSH',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 ('VTEBNDDF51','Transetup not configured','Another transetup for is not configured.','E','Y',null,null,'A',to_date('27-09-18','DD-MM-RR'),'MANOHAR','SYSTEM ',null,'0');
......@@ -143,6 +143,7 @@
</table_column>
<table_column>
<type size="5">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>ad_code</name>
<dbname>employee_bond_def.ad_code</dbname>
......@@ -601,7 +602,7 @@
<y>2</y>
<height>16</height>
<width>78</width>
<format>[shortdate] [time]</format>
<format>dd/mm/yy</format>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -715,7 +716,7 @@
<y>2</y>
<height>16</height>
<width>64</width>
<format>[Yes/No]</format>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -751,7 +752,7 @@
<y>2</y>
<height>16</height>
<width>132</width>
<format>[shortdate] [time]</format>
<format>dd/mm/yy</format>
<html>
<valueishtml>0</valueishtml>
</html>
......
......@@ -360,7 +360,7 @@
<name>bond_amt</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>13</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -398,7 +398,7 @@
<name>bond_amt__curr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>13</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -436,7 +436,7 @@
<name>line_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>3</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -474,7 +474,7 @@
<name>bond_prd__curr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>2</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -512,7 +512,7 @@
<name>bond_prd</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>2</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -550,7 +550,7 @@
<name>line_no__ref</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>3</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
......
......@@ -39,7 +39,7 @@
<color>536870912</color>
</Footer>
<Detail>
<height>452</height>
<height>441</height>
<color>536870912</color>
</Detail>
<TableDefinition>
......@@ -206,7 +206,31 @@
<name>allwdedn_descr</name>
<dbname>allwdedn.descr</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;employee_bond_def&quot; ) TABLE(NAME=&quot;employee&quot; ALIAS=&quot;employee_a&quot; ) TABLE(NAME=&quot;site&quot; ) TABLE(NAME=&quot;department&quot; ) TABLE(NAME=&quot;employee&quot; ALIAS=&quot;employee_b&quot; ) TABLE(NAME=&quot;allwdedn&quot; ) COLUMN(NAME=&quot;employee_bond_def.tran_id&quot;) COLUMN(NAME=&quot;employee_bond_def.tran_date&quot;) COLUMN(NAME=&quot;employee_bond_def.site_code&quot;) COLUMN(NAME=&quot;employee_bond_def.emp_code&quot;) COLUMN(NAME=&quot;employee_bond_def.confirmed&quot;) COLUMN(NAME=&quot;employee_bond_def.conf_date&quot;) COLUMN(NAME=&quot;employee_bond_def.emp_code__aprv&quot;) COLUMN(NAME=&quot;employee_bond_def.chg_user&quot;) COLUMN(NAME=&quot;employee_bond_def.chg_term&quot;) COLUMN(NAME=&quot;employee_bond_def.chg_date&quot;) COLUMN(NAME=&quot;employee_a.emp_fname&quot;) COLUMN(NAME=&quot;employee_a.emp_mname&quot;) COLUMN(NAME=&quot;employee_a.emp_lname&quot;) COLUMN(NAME=&quot;site.descr&quot;) COLUMN(NAME=&quot;employee_a.dept_code&quot;) COLUMN(NAME=&quot;department.descr&quot;) COLUMN(NAME=&quot;employee_b.emp_fname&quot;) COLUMN(NAME=&quot;employee_b.emp_mname&quot;) COLUMN(NAME=&quot;employee_b.emp_lname&quot;) COLUMN(NAME=&quot;employee_bond_def.tran_id__bond&quot;) COLUMN(NAME=&quot;employee_bond_def.tran_id__pvouch&quot;) COLUMN(NAME=&quot;employee_bond_def.line_no__pvouch&quot;) COLUMN(NAME=&quot;employee_bond_def.ad_code&quot;) COLUMN(NAME=&quot;allwdedn.descr&quot;) JOIN (LEFT=&quot;employee_bond_def.emp_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee_a.emp_code&quot; OUTER1 =&quot;employee_bond_def.emp_code&quot; ) JOIN (LEFT=&quot;site.site_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee_a.emp_site&quot; OUTER2 =&quot;employee_a.emp_site&quot; ) JOIN (LEFT=&quot;employee_bond_def.emp_code__aprv&quot; OP =&quot;=&quot;RIGHT=&quot;employee_b.emp_code&quot; OUTER1 =&quot;employee_bond_def.emp_code__aprv&quot; ) JOIN (LEFT=&quot;department.dept_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee_a.dept_code&quot; ) JOIN (LEFT=&quot;employee_bond_def.ad_code&quot; OP =&quot;=&quot;RIGHT=&quot;allwdedn.ad_code&quot; )WHERE( EXP1 =&quot;employee_bond_def.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = string) </retrieve>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>eff_date</name>
<dbname>employee_bond_def.eff_date</dbname>
</table_column>
<table_column>
<type size="3">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>tran_type</name>
<dbname>employee_bond_def.tran_type</dbname>
<values>
<item display="Bond" data="BND"/>
<item display="Voucher" data="VCH"/>
</values>
</table_column>
<table_column>
<type>number</type>
<updatewhereclause>yes</updatewhereclause>
<name>amount</name>
<dbname>amount</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;employee_bond_def&quot; ) TABLE(NAME=&quot;employee&quot; ALIAS=&quot;employee_a&quot; ) TABLE(NAME=&quot;site&quot; ) TABLE(NAME=&quot;department&quot; ) TABLE(NAME=&quot;employee&quot; ALIAS=&quot;employee_b&quot; ) TABLE(NAME=&quot;allwdedn&quot; ) COLUMN(NAME=&quot;employee_bond_def.tran_id&quot;) COLUMN(NAME=&quot;employee_bond_def.tran_date&quot;) COLUMN(NAME=&quot;employee_bond_def.site_code&quot;) COLUMN(NAME=&quot;employee_bond_def.emp_code&quot;) COLUMN(NAME=&quot;employee_bond_def.confirmed&quot;) COLUMN(NAME=&quot;employee_bond_def.conf_date&quot;) COLUMN(NAME=&quot;employee_bond_def.emp_code__aprv&quot;) COLUMN(NAME=&quot;employee_bond_def.chg_user&quot;) COLUMN(NAME=&quot;employee_bond_def.chg_term&quot;) COLUMN(NAME=&quot;employee_bond_def.chg_date&quot;) COLUMN(NAME=&quot;employee_a.emp_fname&quot;) COLUMN(NAME=&quot;employee_a.emp_mname&quot;) COLUMN(NAME=&quot;employee_a.emp_lname&quot;) COLUMN(NAME=&quot;site.descr&quot;) COLUMN(NAME=&quot;employee_a.dept_code&quot;) COLUMN(NAME=&quot;department.descr&quot;) COLUMN(NAME=&quot;employee_b.emp_fname&quot;) COLUMN(NAME=&quot;employee_b.emp_mname&quot;) COLUMN(NAME=&quot;employee_b.emp_lname&quot;) COLUMN(NAME=&quot;employee_bond_def.tran_id__bond&quot;) COLUMN(NAME=&quot;employee_bond_def.tran_id__pvouch&quot;) COLUMN(NAME=&quot;employee_bond_def.line_no__pvouch&quot;) COLUMN(NAME=&quot;employee_bond_def.ad_code&quot;) COLUMN(NAME=&quot;allwdedn.descr&quot;) COLUMN(NAME=&quot;employee_bond_def.eff_date&quot;) COLUMN(NAME=&quot;employee_bond_def.tran_type&quot;) COMPUTE(NAME=&quot;FN_GET_PVOUCHDET_AMT(employee_bond_def.tran_id__pvouch,employee_bond_def.line_no__pvouch) as amount&quot;) JOIN (LEFT=&quot;employee_bond_def.emp_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee_a.emp_code&quot; OUTER1 =&quot;employee_bond_def.emp_code&quot; ) JOIN (LEFT=&quot;site.site_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee_a.emp_site&quot; OUTER2 =&quot;employee_a.emp_site&quot; ) JOIN (LEFT=&quot;employee_bond_def.emp_code__aprv&quot; OP =&quot;=&quot;RIGHT=&quot;employee_b.emp_code&quot; OUTER1 =&quot;employee_bond_def.emp_code__aprv&quot; ) JOIN (LEFT=&quot;employee_bond_def.ad_code&quot; OP =&quot;=&quot;RIGHT=&quot;allwdedn.ad_code&quot; OUTER1 =&quot;employee_bond_def.ad_code&quot; ) JOIN (LEFT=&quot;department.dept_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee_a.dept_code&quot; ) WHERE( EXP1 =&quot;employee_bond_def.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = string) </retrieve>
<update>EMPLOYEE_BOND_DEF</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
......@@ -222,8 +246,8 @@
<color>33554432</color>
<x>3</x>
<y>6</y>
<height>286</height>
<width>560</width>
<height>311</height>
<width>530</width>
<name>gb_1</name>
<visible>1</visible>
<font>
......@@ -245,9 +269,9 @@
<border>2</border>
<color>33554432</color>
<x>3</x>
<y>302</y>
<height>74</height>
<width>560</width>
<y>327</y>
<height>73</height>
<width>530</width>
<name>gb_2</name>
<visible>1</visible>
<font>
......@@ -266,17 +290,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Transaction Id:</text>
<text>Confirmed on:</text>
<border>0</border>
<color>33554432</color>
<x>25</x>
<y>38</y>
<x>345</x>
<y>255</y>
<height>16</height>
<width>97</width>
<width>108</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<name>conf_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -293,23 +317,23 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>127</x>
<y>38</y>
<x>458</x>
<y>255</y>
<height>16</height>
<width>108</width>
<format>[general]</format>
<width>65</width>
<format>dd/mm/yy</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<name>conf_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -332,17 +356,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Employee:</text>
<text>Change User:</text>
<border>0</border>
<color>33554432</color>
<x>25</x>
<y>59</y>
<x>24</x>
<y>351</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code_t</name>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -359,24 +383,24 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<id>8</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>127</x>
<y>59</y>
<color>255</color>
<x>126</x>
<y>351</y>
<height>16</height>
<width>86</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code</name>
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
......@@ -391,26 +415,54 @@
<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>Change Date:</text>
<border>0</border>
<color>33554432</color>
<x>24</x>
<y>372</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>219</x>
<y>59</y>
<x>126</x>
<y>372</y>
<height>16</height>
<width>98</width>
<format>[general]</format>
<width>86</width>
<format>dd/mm/yy</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_fname</name>
<name>chg_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -431,27 +483,57 @@
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change Term:</text>
<border>0</border>
<color>33554432</color>
<x>356</x>
<y>350</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>322</x>
<y>59</y>
<x>458</x>
<y>350</y>
<height>16</height>
<width>98</width>
<width>65</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_mname</name>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -469,25 +551,27 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>425</x>
<y>59</y>
<x>127</x>
<y>38</y>
<height>16</height>
<width>98</width>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_lname</name>
<name>tran_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -506,17 +590,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tran Id Bond :</text>
<text>Transaction Id:</text>
<border>0</border>
<color>33554432</color>
<x>25</x>
<y>81</y>
<y>38</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id__bond_t</name>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -527,31 +611,31 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>20</id>
<id>26</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<tabsequence>40</tabsequence>
<border>5</border>
<color>255</color>
<x>127</x>
<y>81</y>
<y>61</y>
<height>16</height>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id__bond</name>
<name>tran_type</name>
<visible>1</visible>
<EditStyle style="edit">
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -570,17 +654,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tran Id Vocher :</text>
<text>Tran Type :</text>
<border>0</border>
<color>33554432</color>
<x>25</x>
<y>102</y>
<y>61</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id__pvouch_t</name>
<name>tran_type_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -591,19 +675,19 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>21</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<tabsequence>10</tabsequence>
<border>5</border>
<color>255</color>
<x>127</x>
<y>102</y>
<y>83</y>
<height>16</height>
<width>108</width>
<format>[general]</format>
......@@ -634,17 +718,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Line No Vocher :</text>
<text>Tran Id Vocher :</text>
<border>0</border>
<color>33554432</color>
<x>25</x>
<y>123</y>
<y>83</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no__pvouch_t</name>
<name>tran_id__pvouch_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -659,29 +743,21 @@
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>22</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>127</x>
<y>123</y>
<alignment>1</alignment>
<text>Line No Vocher :</text>
<border>0</border>
<color>33554432</color>
<x>25</x>
<y>104</y>
<height>16</height>
<width>108</width>
<format>[general]</format>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no__pvouch</name>
<name>line_no__pvouch_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -691,24 +767,24 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Ad Code :</text>
<text>Employee:</text>
<border>0</border>
<color>33554432</color>
<x>25</x>
<y>144</y>
<y>126</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ad_code_t</name>
<name>emp_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -719,26 +795,26 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>23</id>
<id>20</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>127</x>
<y>145</y>
<y>148</y>
<height>16</height>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>ad_code</name>
<name>tran_id__bond</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -759,29 +835,21 @@
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>24</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>127</x>
<y>167</y>
<alignment>1</alignment>
<text>Tran Id Bond :</text>
<border>0</border>
<color>33554432</color>
<x>25</x>
<y>148</y>
<height>16</height>
<width>108</width>
<format>[general]</format>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>allwdedn_descr</name>
<name>tran_id__bond_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -791,24 +859,24 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Site Code:</text>
<text>Ad Code :</text>
<border>0</border>
<color>33554432</color>
<x>24</x>
<y>188</y>
<x>25</x>
<y>170</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<name>ad_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -819,35 +887,25 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>134217857</color>
<x>126</x>
<y>188</y>
<alignment>1</alignment>
<text>Amount :</text>
<border>0</border>
<color>33554432</color>
<x>25</x>
<y>191</y>
<height>16</height>
<width>86</width>
<format>[general]</format>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<name>amount_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -857,33 +915,25 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>218</x>
<y>188</y>
<alignment>1</alignment>
<text>Site Code:</text>
<border>0</border>
<color>33554432</color>
<x>25</x>
<y>212</y>
<height>16</height>
<width>305</width>
<format>[general]</format>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_descr</name>
<name>site_code_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -896,15 +946,15 @@
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Department:</text>
<border>0</border>
<color>33554432</color>
<x>24</x>
<y>210</y>
<x>25</x>
<y>234</y>
<height>16</height>
<width>97</width>
<html>
......@@ -925,28 +975,83 @@
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Confirmed:</text>
<border>0</border>
<color>33554432</color>
<x>25</x>
<y>255</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirmed_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Approved by:</text>
<border>0</border>
<color>33554432</color>
<x>25</x>
<y>276</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__aprv_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>126</x>
<y>210</y>
<x>415</x>
<y>39</y>
<height>16</height>
<width>86</width>
<format>[general]</format>
<width>108</width>
<format>dd/mm/yy</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dept_code</name>
<name>tran_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
......@@ -957,32 +1062,59 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Date:</text>
<border>0</border>
<color>33554432</color>
<x>313</x>
<y>39</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<id>25</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>30</tabsequence>
<border>5</border>
<color>255</color>
<x>218</x>
<y>210</y>
<x>415</x>
<y>62</y>
<height>16</height>
<width>305</width>
<format>[general]</format>
<width>108</width>
<format>dd/mm/yy</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>department_descr</name>
<name>eff_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
......@@ -993,24 +1125,24 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Confirmed:</text>
<text>Effective Date :</text>
<border>0</border>
<color>33554432</color>
<x>24</x>
<y>231</y>
<x>313</x>
<y>61</y>
<height>16</height>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirmed_t</name>
<name>eff_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -1021,31 +1153,31 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<id>22</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>50</tabsequence>
<border>5</border>
<color>255</color>
<x>126</x>
<y>231</y>
<x>127</x>
<y>104</y>
<height>16</height>
<width>86</width>
<format>[Yes/No]</format>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirmed</name>
<name>line_no__pvouch</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>no</allowedit>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1061,21 +1193,31 @@
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Confirmed on:</text>
<border>0</border>
<id>4</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>345</x>
<y>231</y>
<x>127</x>
<y>126</y>
<height>16</height>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>conf_date_t</name>
<name>emp_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -1085,33 +1227,31 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<id>23</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>458</x>
<y>231</y>
<x>127</x>
<y>170</y>
<height>16</height>
<width>65</width>
<format>dd/mm/yy</format>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>conf_date</name>
<name>ad_code</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>
......@@ -1127,21 +1267,29 @@
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Approved by:</text>
<border>0</border>
<color>33554432</color>
<x>24</x>
<y>252</y>
<id>27</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>127</x>
<y>191</y>
<height>16</height>
<width>97</width>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__aprv_t</name>
<name>amount</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -1154,26 +1302,26 @@
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>126</x>
<y>252</y>
<color>134217857</color>
<x>127</x>
<y>212</y>
<height>16</height>
<width>86</width>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__aprv</name>
<name>site_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<limit>5</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -1189,26 +1337,26 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>553648127</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<id>15</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>218</x>
<y>252</y>
<x>127</x>
<y>234</y>
<height>16</height>
<width>98</width>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>employee_emp_fname</name>
<name>dept_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -1225,26 +1373,26 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<id>16</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>321</x>
<y>252</y>
<x>240</x>
<y>234</y>
<height>16</height>
<width>98</width>
<width>283</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>employee_emp_mname</name>
<name>department_descr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -1261,31 +1409,31 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<id>5</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>425</x>
<y>252</y>
<x>127</x>
<y>255</y>
<height>16</height>
<width>98</width>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>employee_emp_lname</name>
<name>confirmed</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>no</allowedit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1303,20 +1451,20 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>126</x>
<y>326</y>
<x>127</x>
<y>276</y>
<height>16</height>
<width>86</width>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<name>emp_code__aprv</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
......@@ -1334,6 +1482,42 @@
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>240</x>
<y>212</y>
<height>16</height>
<width>283</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_descr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<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>
......@@ -1341,20 +1525,20 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<id>24</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>126</x>
<y>347</y>
<x>240</x>
<y>171</y>
<height>16</height>
<width>86</width>
<format>dd/mm/yy</format>
<width>283</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<name>allwdedn_descr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -1377,27 +1561,25 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<id>19</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>454</x>
<y>326</y>
<x>431</x>
<y>276</y>
<height>16</height>
<width>65</width>
<width>92</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<name>employee_emp_lname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1413,21 +1595,29 @@
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change User:</text>
<border>0</border>
<color>33554432</color>
<x>24</x>
<y>326</y>
<id>18</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>334</x>
<y>276</y>
<height>16</height>
<width>97</width>
<width>92</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<name>employee_emp_mname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -1440,22 +1630,30 @@
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change Date:</text>
<border>0</border>
<color>33554432</color>
<x>24</x>
<y>347</y>
<id>17</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>239</x>
<y>276</y>
<height>16</height>
<width>97</width>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<name>employee_emp_fname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -1468,22 +1666,30 @@
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change Term:</text>
<border>0</border>
<color>33554432</color>
<x>352</x>
<y>326</y>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>240</x>
<y>126</y>
<height>16</height>
<width>97</width>
<width>92</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<name>emp_fname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -1496,28 +1702,29 @@
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>415</x>
<y>39</y>
<x>337</x>
<y>126</y>
<height>16</height>
<width>108</width>
<format>dd/mm/yy</format>
<width>92</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_date</name>
<name>emp_mname</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
......@@ -1532,21 +1739,29 @@
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Date:</text>
<border>0</border>
<color>33554432</color>
<x>363</x>
<y>38</y>
<id>13</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>434</x>
<y>126</y>
<height>16</height>
<width>47</width>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_date_t</name>
<name>emp_lname</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -1559,7 +1774,7 @@
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
......
......@@ -108,10 +108,10 @@
<text>Basic</text>
<border>2</border>
<color>0</color>
<x>10</x>
<y>22</y>
<height>149</height>
<width>523</width>
<x>9</x>
<y>11</y>
<height>120</height>
<width>508</width>
<name>gb_1</name>
<visible>1</visible>
<font>
......@@ -127,32 +127,21 @@
<color>67108864</color>
</background>
</GroupBox>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>6</id>
<alignment>1</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>153</x>
<y>102</y>
<text>Line No:</text>
<border>0</border>
<color>33554432</color>
<x>22</x>
<y>33</y>
<height>16</height>
<width>72</width>
<format>#0</format>
<width>127</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>bond_prd</name>
<name>line_no_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>2</limit>
<case>any</case>
<format>#0</format>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -162,29 +151,29 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<id>2</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>153</x>
<y>81</y>
<x>154</x>
<y>33</y>
<height>16</height>
<width>72</width>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>bond_prd__curr</name>
<name>line_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>3</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -207,17 +196,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Bond Period Current:</text>
<text>Line No Reference:</text>
<border>0</border>
<color>33554432</color>
<x>22</x>
<y>81</y>
<x>280</x>
<y>34</y>
<height>16</height>
<width>127</width>
<width>132</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>bond_prd__curr_t</name>
<name>line_no__ref_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -232,21 +221,31 @@
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>1</alignment>
<text>Bond Period:</text>
<border>0</border>
<color>33554432</color>
<x>56</x>
<y>102</y>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>417</x>
<y>34</y>
<height>16</height>
<width>93</width>
<width>72</width>
<format>##0</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>bond_prd_t</name>
<name>line_no__ref</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>3</limit>
<case>any</case>
<format>##0</format>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -256,25 +255,35 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>1</alignment>
<text>Bond Amount Current:</text>
<border>0</border>
<color>33554432</color>
<x>281</x>
<y>81</y>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>417</x>
<y>55</y>
<height>16</height>
<width>132</width>
<width>72</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>bond_amt__curr_t</name>
<name>bond_amt__curr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>13</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -287,21 +296,21 @@
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Bond Amount:</text>
<text>Bond Amount Current:</text>
<border>0</border>
<color>33554432</color>
<x>320</x>
<y>102</y>
<x>280</x>
<y>55</y>
<height>16</height>
<width>93</width>
<width>132</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>bond_amt_t</name>
<name>bond_amt__curr_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -319,17 +328,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Line No Reference:</text>
<text>Bond Amount:</text>
<border>0</border>
<color>33554432</color>
<x>275</x>
<y>60</y>
<x>280</x>
<y>76</y>
<height>16</height>
<width>139</width>
<width>132</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no__ref_t</name>
<name>bond_amt_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -346,27 +355,28 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<id>5</id>
<alignment>1</alignment>
<tabsequence>10</tabsequence>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>418</x>
<y>60</y>
<x>417</x>
<y>76</y>
<height>16</height>
<width>72</width>
<format>##0</format>
<format>##,###,##0.00</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no__ref</name>
<name>bond_amt</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>3</limit>
<limit>13</limit>
<case>any</case>
<format>##0</format>
<format>##,###,##0.00</format>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -384,23 +394,23 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<id>4</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>417</x>
<y>81</y>
<x>154</x>
<y>55</y>
<height>16</height>
<width>72</width>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>bond_amt__curr</name>
<name>bond_prd__curr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>2</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -420,70 +430,21 @@
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>5</id>
<alignment>1</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>417</x>
<y>102</y>
<height>16</height>
<width>72</width>
<format>##,###,##0.00</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>bond_amt</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>13</limit>
<case>any</case>
<format>##,###,##0.00</format>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>152</x>
<y>123</y>
<text>Bond Period Current:</text>
<border>0</border>
<color>33554432</color>
<x>22</x>
<y>55</y>
<height>16</height>
<width>108</width>
<format>[general]</format>
<width>127</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<name>bond_prd__curr_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -496,21 +457,21 @@
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Transaction Id:</text>
<text>Bond Period:</text>
<border>0</border>
<color>33554432</color>
<x>55</x>
<y>123</y>
<x>22</x>
<y>76</y>
<height>16</height>
<width>93</width>
<width>127</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<name>bond_prd_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -525,21 +486,32 @@
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<alignment>1</alignment>
<text>Line No:</text>
<border>0</border>
<color>33554432</color>
<x>84</x>
<y>59</y>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>154</x>
<y>76</y>
<height>16</height>
<width>66</width>
<width>108</width>
<format>#0</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no_t</name>
<name>bond_prd</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>2</limit>
<case>any</case>
<format>#0</format>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -549,29 +521,29 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>1</alignment>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>154</x>
<y>59</y>
<y>97</y>
<height>16</height>
<width>72</width>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>line_no</name>
<name>tran_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -591,6 +563,34 @@
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Transaction Id:</text>
<border>0</border>
<color>33554432</color>
<x>22</x>
<y>97</y>
<height>16</height>
<width>127</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
......
......@@ -18,7 +18,7 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_i
column=(type=char(15) updatewhereclause=yes name=emp_fname dbname="employee.emp_fname" )
column=(type=char(15) updatewhereclause=yes name=emp_lname dbname="employee.emp_lname" )
column=(type=char(5) updatewhereclause=yes name=dept_code dbname="employee.dept_code" )
column=(type=char(5) updatewhereclause=yes name=ad_code dbname="employee_bond_def.ad_code" )
column=(type=char(5) update=yes updatewhereclause=yes name=ad_code dbname="employee_bond_def.ad_code" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"employee_bond_def~" ) TABLE(NAME=~"employee~" ) COLUMN(NAME=~"employee_bond_def.tran_id~") COLUMN(NAME=~"employee_bond_def.tran_date~") COLUMN(NAME=~"employee_bond_def.site_code~") COLUMN(NAME=~"employee_bond_def.emp_code~") COLUMN(NAME=~"employee_bond_def.confirmed~") COLUMN(NAME=~"employee_bond_def.conf_date~") COLUMN(NAME=~"employee_bond_def.emp_code__aprv~") COLUMN(NAME=~"employee_bond_def.chg_user~") COLUMN(NAME=~"employee_bond_def.chg_term~") COLUMN(NAME=~"employee_bond_def.chg_date~") COLUMN(NAME=~"employee.emp_fname~") COLUMN(NAME=~"employee.emp_lname~") COLUMN(NAME=~"employee.dept_code~") COLUMN(NAME=~"employee_bond_def.ad_code~") JOIN (LEFT=~"employee_bond_def.emp_code~" OP =~"=~"RIGHT=~"employee.emp_code~" )WHERE( EXP1 =~"EMPLOYEE_BOND_DEF.TRAN_DATE~" OP =~">=~" EXP2 =~":From~" LOGIC =~"and~" ) WHERE( EXP1 =~"EMPLOYEE_BOND_DEF.TRAN_DATE~" OP =~"<=~" EXP2 =~":To~" ) ) ARG(NAME = ~"From~" TYPE = datetime) ARG(NAME = ~"To~" TYPE = datetime) " update="EMPLOYEE_BOND_DEF" updatewhere=0 updatekeyinplace=no arguments=(("From", datetime),("To", datetime)) )
text(band=header alignment="0" text="Transaction Id" border="6" color="33554432" x="2" y="2" height="16" width="90" html.valueishtml="0" name=tran_id_t visible="1" font.face="Times" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="0" text="Confirmed by" border="6" color="33554432" x="852" y="2" height="16" width="92" html.valueishtml="0" name=emp_code__aprv_t visible="1" font.face="Times" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
......@@ -35,11 +35,11 @@ text(band=header alignment="0" text=" Emp Lname" border="6" color="33554432" x="
text(band=header alignment="0" text=" Dept Code" border="6" color="33554432" x="570" y="2" height="17" width="80" html.valueishtml="0" name=dept_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="0" text="Ad Code" border="0" color="33554432" x="481" y="2" height="17" width="87" html.valueishtml="0" name=ad_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="33554432" x="2" y="2" height="16" width="90" format="[general]" html.valueishtml="0" name=tran_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=20 border="5" color="33554432" x="94" y="2" height="16" width="78" format="[shortdate] [time]" html.valueishtml="0" name=tran_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=20 border="5" color="33554432" x="94" y="2" height="16" width="78" format="dd/mm/yy" html.valueishtml="0" name=tran_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=30 border="5" color="33554432" x="174" y="2" height="16" width="55" format="[general]" html.valueishtml="0" name=site_code visible="1" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=4 alignment="0" tabsequence=40 border="5" color="33554432" x="231" y="2" height="16" width="98" format="[general]" html.valueishtml="0" name=emp_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=90 border="5" color="33554432" x="652" y="2" height="16" width="64" format="[Yes/No]" html.valueishtml="0" name=confirmed visible="1" ddlb.limit=1 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Times" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=6 alignment="0" tabsequence=100 border="5" color="33554432" x="718" y="2" height="16" width="132" format="[shortdate] [time]" html.valueishtml="0" name=conf_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=90 border="5" color="33554432" x="652" y="2" height="16" width="64" format="[general]" html.valueishtml="0" name=confirmed visible="1" ddlb.limit=1 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Times" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=6 alignment="0" tabsequence=100 border="5" color="33554432" x="718" y="2" height="16" width="132" format="dd/mm/yy" html.valueishtml="0" name=conf_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="0" tabsequence=110 border="5" color="33554432" x="852" y="2" height="16" width="92" format="[general]" html.valueishtml="0" name=emp_code__aprv visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="0" tabsequence=120 border="5" color="33554432" x="946" y="2" height="16" width="81" format="[general]" html.valueishtml="0" name=chg_user visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=9 alignment="0" tabsequence=130 border="5" color="33554432" x="1029" y="2" height="16" width="96" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
......
......@@ -3,7 +3,7 @@ release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=452 color="536870912" )
detail(height=441 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_id dbname="employee_bond_def.tran_id" )
column=(type=datetime update=yes updatewhereclause=yes name=tran_date dbname="employee_bond_def.tran_date" )
column=(type=char(5) update=yes updatewhereclause=yes name=site_code dbname="employee_bond_def.site_code" )
......@@ -28,48 +28,57 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_i
column=(type=decimal(0) update=yes updatewhereclause=yes name=line_no__pvouch dbname="employee_bond_def.line_no__pvouch" )
column=(type=char(5) update=yes updatewhereclause=yes name=ad_code dbname="employee_bond_def.ad_code" )
column=(type=char(40) updatewhereclause=yes name=allwdedn_descr dbname="allwdedn.descr" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"employee_bond_def~" ) TABLE(NAME=~"employee~" ALIAS=~"employee_a~" ) TABLE(NAME=~"site~" ) TABLE(NAME=~"department~" ) TABLE(NAME=~"employee~" ALIAS=~"employee_b~" ) TABLE(NAME=~"allwdedn~" ) COLUMN(NAME=~"employee_bond_def.tran_id~") COLUMN(NAME=~"employee_bond_def.tran_date~") COLUMN(NAME=~"employee_bond_def.site_code~") COLUMN(NAME=~"employee_bond_def.emp_code~") COLUMN(NAME=~"employee_bond_def.confirmed~") COLUMN(NAME=~"employee_bond_def.conf_date~") COLUMN(NAME=~"employee_bond_def.emp_code__aprv~") COLUMN(NAME=~"employee_bond_def.chg_user~") COLUMN(NAME=~"employee_bond_def.chg_term~") COLUMN(NAME=~"employee_bond_def.chg_date~") COLUMN(NAME=~"employee_a.emp_fname~") COLUMN(NAME=~"employee_a.emp_mname~") COLUMN(NAME=~"employee_a.emp_lname~") COLUMN(NAME=~"site.descr~") COLUMN(NAME=~"employee_a.dept_code~") COLUMN(NAME=~"department.descr~") COLUMN(NAME=~"employee_b.emp_fname~") COLUMN(NAME=~"employee_b.emp_mname~") COLUMN(NAME=~"employee_b.emp_lname~") COLUMN(NAME=~"employee_bond_def.tran_id__bond~") COLUMN(NAME=~"employee_bond_def.tran_id__pvouch~") COLUMN(NAME=~"employee_bond_def.line_no__pvouch~") COLUMN(NAME=~"employee_bond_def.ad_code~") COLUMN(NAME=~"allwdedn.descr~") JOIN (LEFT=~"employee_bond_def.emp_code~" OP =~"=~"RIGHT=~"employee_a.emp_code~" OUTER1 =~"employee_bond_def.emp_code~" ) JOIN (LEFT=~"site.site_code~" OP =~"=~"RIGHT=~"employee_a.emp_site~" OUTER2 =~"employee_a.emp_site~" ) JOIN (LEFT=~"employee_bond_def.emp_code__aprv~" OP =~"=~"RIGHT=~"employee_b.emp_code~" OUTER1 =~"employee_bond_def.emp_code__aprv~" ) JOIN (LEFT=~"department.dept_code~" OP =~"=~"RIGHT=~"employee_a.dept_code~" ) JOIN (LEFT=~"employee_bond_def.ad_code~" OP =~"=~"RIGHT=~"allwdedn.ad_code~" )WHERE( EXP1 =~"employee_bond_def.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = string) " update="EMPLOYEE_BOND_DEF" updatewhere=0 updatekeyinplace=no arguments=(("tran_id", string)) )
groupbox(band=detail text="Basic"border="2" color="33554432" x="3" y="6" height="286" width="560" name=gb_1 visible="1" font.face="Times" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
groupbox(band=detail text="Others"border="2" color="33554432" x="3" y="302" height="74" width="560" name=gb_2 visible="1" font.face="Times" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Transaction Id:" border="0" color="33554432" x="25" y="38" height="16" width="97" html.valueishtml="0" name=tran_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column=(type=datetime update=yes updatewhereclause=yes name=eff_date dbname="employee_bond_def.eff_date" )
column=(type=char(3) update=yes updatewhereclause=yes name=tran_type dbname="employee_bond_def.tran_type" values="Bond BND/Voucher VCH/" )
column=(type=number updatewhereclause=yes name=amount dbname="amount" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"employee_bond_def~" ) TABLE(NAME=~"employee~" ALIAS=~"employee_a~" ) TABLE(NAME=~"site~" ) TABLE(NAME=~"department~" ) TABLE(NAME=~"employee~" ALIAS=~"employee_b~" ) TABLE(NAME=~"allwdedn~" ) COLUMN(NAME=~"employee_bond_def.tran_id~") COLUMN(NAME=~"employee_bond_def.tran_date~") COLUMN(NAME=~"employee_bond_def.site_code~") COLUMN(NAME=~"employee_bond_def.emp_code~") COLUMN(NAME=~"employee_bond_def.confirmed~") COLUMN(NAME=~"employee_bond_def.conf_date~") COLUMN(NAME=~"employee_bond_def.emp_code__aprv~") COLUMN(NAME=~"employee_bond_def.chg_user~") COLUMN(NAME=~"employee_bond_def.chg_term~") COLUMN(NAME=~"employee_bond_def.chg_date~") COLUMN(NAME=~"employee_a.emp_fname~") COLUMN(NAME=~"employee_a.emp_mname~") COLUMN(NAME=~"employee_a.emp_lname~") COLUMN(NAME=~"site.descr~") COLUMN(NAME=~"employee_a.dept_code~") COLUMN(NAME=~"department.descr~") COLUMN(NAME=~"employee_b.emp_fname~") COLUMN(NAME=~"employee_b.emp_mname~") COLUMN(NAME=~"employee_b.emp_lname~") COLUMN(NAME=~"employee_bond_def.tran_id__bond~") COLUMN(NAME=~"employee_bond_def.tran_id__pvouch~") COLUMN(NAME=~"employee_bond_def.line_no__pvouch~") COLUMN(NAME=~"employee_bond_def.ad_code~") COLUMN(NAME=~"allwdedn.descr~") COLUMN(NAME=~"employee_bond_def.eff_date~") COLUMN(NAME=~"employee_bond_def.tran_type~") COMPUTE(NAME=~"FN_GET_PVOUCHDET_AMT(employee_bond_def.tran_id__pvouch,employee_bond_def.line_no__pvouch) as amount~") JOIN (LEFT=~"employee_bond_def.emp_code~" OP =~"=~"RIGHT=~"employee_a.emp_code~" OUTER1 =~"employee_bond_def.emp_code~" ) JOIN (LEFT=~"site.site_code~" OP =~"=~"RIGHT=~"employee_a.emp_site~" OUTER2 =~"employee_a.emp_site~" ) JOIN (LEFT=~"employee_bond_def.emp_code__aprv~" OP =~"=~"RIGHT=~"employee_b.emp_code~" OUTER1 =~"employee_bond_def.emp_code__aprv~" ) JOIN (LEFT=~"employee_bond_def.ad_code~" OP =~"=~"RIGHT=~"allwdedn.ad_code~" OUTER1 =~"employee_bond_def.ad_code~" ) JOIN (LEFT=~"department.dept_code~" OP =~"=~"RIGHT=~"employee_a.dept_code~" ) WHERE( EXP1 =~"employee_bond_def.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = string) " update="EMPLOYEE_BOND_DEF" updatewhere=0 updatekeyinplace=no arguments=(("tran_id", string)) )
groupbox(band=detail text="Basic"border="2" color="33554432" x="3" y="6" height="311" width="530" name=gb_1 visible="1" font.face="Times" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
groupbox(band=detail text="Others"border="2" color="33554432" x="3" y="327" height="73" width="530" name=gb_2 visible="1" font.face="Times" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Confirmed on:" border="0" color="33554432" x="345" y="255" height="16" width="108" html.valueishtml="0" name=conf_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="255" x="458" y="255" height="16" width="65" format="dd/mm/yy" html.valueishtml="0" name=conf_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Change User:" border="0" color="33554432" x="24" y="351" height="16" width="97" html.valueishtml="0" name=chg_user_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=8 alignment="0" tabsequence=32766 border="5" color="255" x="126" y="351" height="16" width="86" format="[general]" html.valueishtml="0" name=chg_user visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Change Date:" border="0" color="33554432" x="24" y="372" height="16" width="97" html.valueishtml="0" name=chg_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=10 alignment="0" tabsequence=32766 border="5" color="255" x="126" y="372" height="16" width="86" format="dd/mm/yy" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Change Term:" border="0" color="33554432" x="356" y="350" height="16" width="97" html.valueishtml="0" name=chg_term_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=9 alignment="0" tabsequence=32766 border="5" color="255" x="458" y="350" height="16" width="65" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="255" x="127" y="38" height="16" width="108" format="[general]" html.valueishtml="0" name=tran_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Employee:" border="0" color="33554432" x="25" y="59" height="16" width="97" html.valueishtml="0" name=emp_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=4 alignment="0" tabsequence=40 border="5" color="33554432" x="127" y="59" height="16" width="86" format="[general]" html.valueishtml="0" name=emp_code visible="1" edit.limit=10 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="5" color="255" x="219" y="59" height="16" width="98" format="[general]" html.valueishtml="0" name=emp_fname visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=12 alignment="0" tabsequence=32766 border="5" color="255" x="322" y="59" height="16" width="98" format="[general]" html.valueishtml="0" name=emp_mname visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=13 alignment="0" tabsequence=32766 border="5" color="255" x="425" y="59" height="16" width="98" format="[general]" html.valueishtml="0" name=emp_lname visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Tran Id Bond :" border="0" color="33554432" x="25" y="81" height="16" width="97" html.valueishtml="0" name=tran_id__bond_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=20 alignment="0" tabsequence=10 border="5" color="255" x="127" y="81" height="16" width="108" format="[general]" html.valueishtml="0" name=tran_id__bond visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Tran Id Vocher :" border="0" color="33554432" x="25" y="102" height="16" width="97" html.valueishtml="0" name=tran_id__pvouch_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=21 alignment="0" tabsequence=20 border="5" color="255" x="127" y="102" height="16" width="108" format="[general]" html.valueishtml="0" name=tran_id__pvouch visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Line No Vocher :" border="0" color="33554432" x="25" y="123" height="16" width="97" html.valueishtml="0" name=line_no__pvouch_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=22 alignment="0" tabsequence=32766 border="5" color="255" x="127" y="123" height="16" width="108" format="[general]" html.valueishtml="0" name=line_no__pvouch visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Ad Code :" border="0" color="33554432" x="25" y="144" height="16" width="97" html.valueishtml="0" name=ad_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=23 alignment="0" tabsequence=30 border="5" color="255" x="127" y="145" height="16" width="108" format="[general]" html.valueishtml="0" name=ad_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=24 alignment="0" tabsequence=32766 border="5" color="255" x="127" y="167" height="16" width="108" format="[general]" html.valueishtml="0" name=allwdedn_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Site Code:" border="0" color="33554432" x="24" y="188" height="16" width="97" html.valueishtml="0" name=site_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=32766 border="5" color="134217857" x="126" y="188" height="16" width="86" format="[general]" html.valueishtml="0" name=site_code visible="1" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=14 alignment="0" tabsequence=32766 border="5" color="255" x="218" y="188" height="16" width="305" format="[general]" html.valueishtml="0" name=site_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Department:" border="0" color="33554432" x="24" y="210" height="16" width="97" html.valueishtml="0" name=dept_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=15 alignment="0" tabsequence=32766 border="5" color="255" x="126" y="210" height="16" width="86" format="[general]" html.valueishtml="0" name=dept_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=16 alignment="0" tabsequence=32766 border="5" color="255" x="218" y="210" height="16" width="305" format="[general]" html.valueishtml="0" name=department_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Confirmed:" border="0" color="33554432" x="24" y="231" height="16" width="97" html.valueishtml="0" name=confirmed_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=5 alignment="0" tabsequence=32766 border="5" color="255" x="126" y="231" height="16" width="86" format="[Yes/No]" html.valueishtml="0" name=confirmed visible="1" ddlb.limit=1 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Confirmed on:" border="0" color="33554432" x="345" y="231" height="16" width="108" html.valueishtml="0" name=conf_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="255" x="458" y="231" height="16" width="65" format="dd/mm/yy" html.valueishtml="0" name=conf_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Approved by:" border="0" color="33554432" x="24" y="252" height="16" width="97" html.valueishtml="0" name=emp_code__aprv_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=7 alignment="0" tabsequence=32766 border="5" color="255" x="126" y="252" height="16" width="86" format="[general]" html.valueishtml="0" name=emp_code__aprv visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=17 alignment="0" tabsequence=32766 border="5" color="255" x="218" y="252" height="16" width="98" format="[general]" html.valueishtml="0" name=employee_emp_fname visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=18 alignment="0" tabsequence=32766 border="5" color="255" x="321" y="252" height="16" width="98" format="[general]" html.valueishtml="0" name=employee_emp_mname visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=19 alignment="0" tabsequence=32766 border="5" color="255" x="425" y="252" height="16" width="98" format="[general]" html.valueishtml="0" name=employee_emp_lname visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=8 alignment="0" tabsequence=32766 border="5" color="255" x="126" y="326" height="16" width="86" format="[general]" html.valueishtml="0" name=chg_user visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=10 alignment="0" tabsequence=32766 border="5" color="255" x="126" y="347" height="16" width="86" format="dd/mm/yy" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=9 alignment="0" tabsequence=32766 border="5" color="255" x="454" y="326" height="16" width="65" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Change User:" border="0" color="33554432" x="24" y="326" height="16" width="97" html.valueishtml="0" name=chg_user_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Change Date:" border="0" color="33554432" x="24" y="347" height="16" width="97" html.valueishtml="0" name=chg_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Change Term:" border="0" color="33554432" x="352" y="326" height="16" width="97" html.valueishtml="0" name=chg_term_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Transaction Id:" border="0" color="33554432" x="25" y="38" height="16" width="97" html.valueishtml="0" name=tran_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=26 alignment="0" tabsequence=40 border="5" color="255" x="127" y="61" height="16" width="108" format="[general]" html.valueishtml="0" name=tran_type visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Tran Type :" border="0" color="33554432" x="25" y="61" height="16" width="97" html.valueishtml="0" name=tran_type_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=21 alignment="0" tabsequence=10 border="5" color="255" x="127" y="83" height="16" width="108" format="[general]" html.valueishtml="0" name=tran_id__pvouch visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Tran Id Vocher :" border="0" color="33554432" x="25" y="83" height="16" width="97" html.valueishtml="0" name=tran_id__pvouch_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Line No Vocher :" border="0" color="33554432" x="25" y="104" height="16" width="97" html.valueishtml="0" name=line_no__pvouch_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Employee:" border="0" color="33554432" x="25" y="126" height="16" width="97" html.valueishtml="0" name=emp_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=20 alignment="0" tabsequence=32766 border="5" color="255" x="127" y="148" height="16" width="108" format="[general]" html.valueishtml="0" name=tran_id__bond visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Tran Id Bond :" border="0" color="33554432" x="25" y="148" height="16" width="97" html.valueishtml="0" name=tran_id__bond_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Ad Code :" border="0" color="33554432" x="25" y="170" height="16" width="97" html.valueishtml="0" name=ad_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Amount :" border="0" color="33554432" x="25" y="191" height="16" width="97" html.valueishtml="0" name=amount_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Site Code:" border="0" color="33554432" x="25" y="212" height="16" width="97" html.valueishtml="0" name=site_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Department:" border="0" color="33554432" x="25" y="234" height="16" width="97" html.valueishtml="0" name=dept_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Confirmed:" border="0" color="33554432" x="25" y="255" height="16" width="97" html.valueishtml="0" name=confirmed_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Approved by:" border="0" color="33554432" x="25" y="276" height="16" width="97" html.valueishtml="0" name=emp_code__aprv_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="255" x="415" y="39" height="16" width="108" format="dd/mm/yy" html.valueishtml="0" name=tran_date visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Date:" border="0" color="33554432" x="363" y="38" height="16" width="47" html.valueishtml="0" name=tran_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Date:" border="0" color="33554432" x="313" y="39" height="16" width="97" html.valueishtml="0" name=tran_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=25 alignment="0" tabsequence=30 border="5" color="255" x="415" y="62" height="16" width="108" format="dd/mm/yy" html.valueishtml="0" name=eff_date visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Effective Date :" border="0" color="33554432" x="313" y="61" height="16" width="97" html.valueishtml="0" name=eff_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=22 alignment="0" tabsequence=50 border="5" color="255" x="127" y="104" height="16" width="108" format="[general]" html.valueishtml="0" name=line_no__pvouch visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=4 alignment="0" tabsequence=20 border="5" color="33554432" x="127" y="126" height="16" width="108" format="[general]" html.valueishtml="0" name=emp_code visible="1" edit.limit=10 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=23 alignment="0" tabsequence=32766 border="5" color="255" x="127" y="170" height="16" width="108" format="[general]" html.valueishtml="0" name=ad_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=27 alignment="0" tabsequence=32766 border="5" color="255" x="127" y="191" height="16" width="108" format="[general]" html.valueishtml="0" name=amount visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=32766 border="5" color="134217857" x="127" y="212" height="16" width="108" format="[general]" html.valueishtml="0" name=site_code visible="1" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=15 alignment="0" tabsequence=32766 border="5" color="255" x="127" y="234" height="16" width="108" format="[general]" html.valueishtml="0" name=dept_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=16 alignment="0" tabsequence=32766 border="5" color="255" x="240" y="234" height="16" width="283" format="[general]" html.valueishtml="0" name=department_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=5 alignment="0" tabsequence=32766 border="5" color="255" x="127" y="255" height="16" width="108" format="[general]" html.valueishtml="0" name=confirmed visible="1" ddlb.limit=1 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=7 alignment="0" tabsequence=32766 border="5" color="255" x="127" y="276" height="16" width="108" format="[general]" html.valueishtml="0" name=emp_code__aprv visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=14 alignment="0" tabsequence=32766 border="5" color="255" x="240" y="212" height="16" width="283" format="[general]" html.valueishtml="0" name=site_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=24 alignment="0" tabsequence=32766 border="5" color="255" x="240" y="171" height="16" width="283" format="[general]" html.valueishtml="0" name=allwdedn_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=19 alignment="0" tabsequence=32766 border="5" color="255" x="431" y="276" height="16" width="92" format="[general]" html.valueishtml="0" name=employee_emp_lname visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=18 alignment="0" tabsequence=32766 border="5" color="255" x="334" y="276" height="16" width="92" format="[general]" html.valueishtml="0" name=employee_emp_mname visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=17 alignment="0" tabsequence=32766 border="5" color="255" x="239" y="276" height="16" width="90" format="[general]" html.valueishtml="0" name=employee_emp_fname visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="5" color="255" x="240" y="126" height="16" width="92" format="[general]" html.valueishtml="0" name=emp_fname visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=12 alignment="0" tabsequence=32766 border="5" color="255" x="337" y="126" height="16" width="92" format="[general]" html.valueishtml="0" name=emp_mname visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=13 alignment="0" tabsequence=32766 border="5" color="255" x="434" y="126" height="16" width="90" format="[general]" html.valueishtml="0" name=emp_lname visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 template=(comment="" encoding="UTF-8" name="d_employee_bond_def21" xml="<?xml version=~"1.0~" encoding=~"UTF-8~" standalone=~"no~"?><untitled><untitled_row __pbband=~"detail~"><tran_id/><tran_date/><site_code/><emp_code/><confirmed>confirmed</confirmed><conf_date>conf_date</conf_date><emp_code__aprv/><chg_user>chg_user</chg_user><chg_term>chg_term</chg_term></untitled_row></untitled>"))
......
......@@ -20,7 +20,6 @@ import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.ITMException;
@Stateless
public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinitionLocal,EmpBondDefinitionRemote
{
......@@ -122,7 +121,7 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
{
return "";
}
public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException
{
NodeList parentNodeList = null;
......@@ -155,19 +154,22 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
int currentFormNo=0,i=0;
int childNodeListLength;
String tranId="";
String empCode="",bondamt="",bondprd="",siteCode = "";
SimpleDateFormat simpleDateFormat = null;
String empCode="",bondamt="",bondprd="",siteCode = "";
ITMDBAccessEJB itmdbAccess = new ITMDBAccessEJB();
//Added by Yashwant S.on 13-12-19[Start][CCF No: IT2018-015 / Request ID: A18CSUN011]
String adCode = "";
String tranIdPvouch = "";
String lineNoPvouchStr = "";
int lineNoPvouch = 0;
String tranIdBond = "";
String bondEmpCode = "";
String vouchEmpCode = "";
Double pvouchAmt = 0.0;
Timestamp joinDate = null;
Timestamp gratuityDate = null;
Timestamp effDate = null;
String amountStr = "";
double amount = 0;
String tranType = "";
String effDateStr = "";
//Added by Yashwant S.on 13-12-19[End][CCF No: IT2018-015 / Request ID: A18CSUN011]
try
......@@ -183,7 +185,7 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
//connDriver = null;
//Modified by Yashwant on 13-12-19[END][To define getConnection and E12GenericUtility methods]
simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
userId = getValueFromXTRA_PARAMS(xtraParams,"loginCode");
//Modified by RAHUL SHENOY on 12/08/2015 [Obtaining Login Site code].Start
loginSite = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSiteCode");
......@@ -209,84 +211,150 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
if(childNodeName.equalsIgnoreCase("emp_code"))
{
empCode = getColumnValue("emp_code",dom);
System.out.println(":::: validation of emp_code ::::");
if (empCode == null || empCode.trim().length() == 0 )
{
errCode = "VNULEMPC";
//errString = getErrorString("emp_code",errCode,userId);
errString = itmdbAccess.getErrorString("emp_code", errCode, userId, "", conn);//Modified by yashwant to call 5 parameter method[13-12-19]
break;
}
else
//Added by Yashwant S.on 21-01-2020[Start][Added Validation][CCF No: IT2018-015 / Request ID: A18CSUN011]
tranType = checkNull(genericUtility.getColumnValue("tran_type", dom));
if(tranType != null && "BND".equalsIgnoreCase(tranType))
{
sql = "select count(1) from employee where emp_code = ? ";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1,empCode);
rs = pstmt.executeQuery();
if(rs.next())
//empCode = getColumnValue("emp_code",dom);
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
tranId = checkNull(genericUtility.getColumnValue("tran_id", dom));
effDateStr = checkNull(genericUtility.getColumnValue("eff_date", dom));
if(effDateStr != null && effDateStr.trim().length() > 0)
{
cnt = rs.getInt(1);
try
{
effDate = Timestamp.valueOf(genericUtility.getValidDateString(effDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
catch (Exception e)
{
effDate = null;
}
}
pstmt.close();
rs.close();
pstmt = null;
rs = null;
if(cnt == 0)
{
errCode = "VMEMPCD1";
//Added by Yashwant S.on 21-01-2020[End][Added Validation][CCF No: IT2018-015 / Request ID: A18CSUN011]
if (empCode == null || empCode.trim().length() == 0 )
{
errCode = "VNULEMPC";
//errString = getErrorString("emp_code",errCode,userId);
errString = itmdbAccess.getErrorString("emp_code", errCode, userId, "", conn);//Modified by yashwant to call 5 parameter method[13-12-19]
break;
}
else
{
/*
sql = "select count(1) from employee where emp_code = ? ";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1,empCode);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
pstmt.close();
rs.close();
pstmt = null;
rs = null;
//Modified by RAHUL SHENOY on 11/08/2015 [Validations on Employee Code].Start
if(cnt == 0)
{
errCode = "VMEMPCD1";
//errString = getErrorString("emp_code",errCode,userId);
errString = itmdbAccess.getErrorString("emp_code", errCode, userId, "", conn);//Modified by yashwant to call 5 parameter method[13-12-19]
break;
}
//Modified by RAHUL SHENOY on 11/08/2015 [Validations on Employee Code].Start
cnt = 0;
sql = "select emp_site , count(1) as cnt from employee where emp_code = ? group by emp_site";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1,empCode);
rs = pstmt.executeQuery();
if(rs.next())
{
empSiteDB = rs.getString("emp_site") == null ? "" : rs.getString("emp_site").trim();
cnt = rs.getInt("cnt");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt!= null)
{
pstmt.close();
pstmt= null;
}
if(cnt == 0)
{
errCode = "VMEMPCD1";
//errString = getErrorString("emp_code",errCode,userId);
errString = itmdbAccess.getErrorString("emp_code", errCode, userId, "", conn);//Modified by yashwant to call 5 parameter method[13-12-19]
break;
}
*/
cnt = 0;
sql = "select emp_site , count(1) as cnt from employee where emp_code = ? group by emp_site";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1,empCode);
rs = pstmt.executeQuery();
if(rs.next())
{
empSiteDB = rs.getString("emp_site") == null ? "" : rs.getString("emp_site").trim();
cnt = rs.getInt("cnt");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt!= null)
{
pstmt.close();
pstmt= null;
}
cnt = 0;
//sql = "select status from employee where emp_code = ? ";
sql = "select status ,gratuity_date, date_join from employee where emp_code = ? ";//Modiffied by Yashwant S.on 24-01-2020[CCF No: IT2018-015 / Request ID: A18CSUN011]
pstmt=conn.prepareStatement(sql);
pstmt.setString(1,empCode);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = 1;
empStatus = checkNull(rs.getString("status"));
//Added by Yashwant S.on 21-01-2020[Start][Added Validation][CCF No: IT2018-015 / Request ID: A18CSUN011]
gratuityDate = rs.getTimestamp("gratuity_date");
joinDate = rs.getTimestamp("date_join");
//Added by Yashwant S.on 21-01-2020[End][Added Validation][CCF No: IT2018-015 / Request ID: A18CSUN011]
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VMEMPCD1";
//errString = getErrorString("emp_code",errCode,userId);
errString = itmdbAccess.getErrorString("emp_code", errCode, userId, "", conn);//Modified by yashwant to call 5 parameter method[13-12-19]
break;
}
if(cnt == 0)
{
errCode = "VMEMPCD1";
//errString = getErrorString("emp_code",errCode,userId);
errString = itmdbAccess.getErrorString("emp_code", errCode, userId, "", conn);//Modified by yashwant to call 5 parameter method[13-12-19]
break;
}
//siteCode = genericUtility.getColumnValue("site_code",dom);
siteCode = checkNull(genericUtility.getColumnValue("site_code",dom));//Added by Yashwant S.on 13-12-19[Start][Added check Null]
//Added by Yashwant S.on 21-01-2020[End][Added Validation][CCF No: IT2018-015 / Request ID: A18CSUN011]
//siteCode = genericUtility.getColumnValue("site_code",dom);
siteCode = checkNull(genericUtility.getColumnValue("site_code",dom));//Added by Yashwant S.on 13-12-19[Start][Added check Null]
if(!siteCode.trim().equalsIgnoreCase(loginSite.trim()))
{
System.out.println("Value of Site Code is : " + siteCode.trim());
System.out.println("Value of Login Site is : " + loginSite.trim());
errCode = "VMEMPBND01";
//errString = getErrorString("emp_code",errCode,userId);
errString = itmdbAccess.getErrorString("emp_code", errCode, userId, "", conn);//Modified by yashwant to call 5 parameter method[13-12-19]
break;
}
if(!siteCode.trim().equalsIgnoreCase(loginSite.trim()))
{
System.out.println("Value of Site Code is : " + siteCode.trim());
System.out.println("Value of Login Site is : " + loginSite.trim());
errCode = "VMEMPBND01";
//errString = getErrorString("emp_code",errCode,userId);
errString = itmdbAccess.getErrorString("emp_code", errCode, userId, "", conn);//Modified by yashwant to call 5 parameter method[13-12-19]
break;
}
//Added by Yashwant S.on 21-01-2020[Start][Added Validation][CCF No: IT2018-015 / Request ID: A18CSUN011]
/*
sql ="select status from employee where emp_code = ? ";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1,empCode);
......@@ -306,16 +374,66 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
pstmt.close();
pstmt= null;
}
*/
//Added by Yashwant S.on 21-01-2020[End][Added Validation][CCF No: IT2018-015 / Request ID: A18CSUN011]
if(empStatus != null && empStatus.equalsIgnoreCase("S"))
{
errCode ="VMEMPBND08";
//errString = getErrorString("emp_code",errCode,userId);
errString = itmdbAccess.getErrorString("emp_code", errCode, userId, "", conn);//Modified by yashwant to call 5 parameter method[13-12-19]
break;
}
//Modified by RAHUL SHENOY on 11/08/2015 [Validations on Employee Code].End
if(empStatus != null && empStatus.equalsIgnoreCase("S"))
{
errCode ="VMEMPBND08";
//errString = getErrorString("emp_code",errCode,userId);
errString = itmdbAccess.getErrorString("emp_code", errCode, userId, "", conn);//Modified by yashwant to call 5 parameter method[13-12-19]
break;
}
//Modified by RAHUL SHENOY on 11/08/2015 [Validations on Employee Code].End
//Added by Yashwant S.on 21-01-2020[Start][Added Validation][CCF No: IT2018-015 / Request ID: A18CSUN011]
if(effDate != null)
{
if(effDate.before(gratuityDate == null ? joinDate : gratuityDate))
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF17", userId, "", conn); //effDate cant be less than gratutity date/join date
break;
}
}
else
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF19", userId, "", conn); //effDate cant be null
break;
}
if(tranId == null || tranId.trim().length() == 0)
{
tranId = "*";
}
cnt = 0;
sql="select count(*) as cnt from EMPLOYEE_BOND_DEF where emp_code = ? and tran_id <> ? and confirmed = 'N' ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCode);
pstmt.setString(2, tranId);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt > 0)
{
errString = itmdbAccess.getErrorString("", "VMEMPBND15", userId, "", conn); //Unconfirmed transaction is present against empCode
break;
}
//Added by Yashwant S.on 21-01-2020[End][Added Validation][CCF No: IT2018-015 / Request ID: A18CSUN011]
}
}
}
//Modified by RAHUL SHENOY on 11/08/2015 [Site Code validation to happen in Employee code field].Start
......@@ -356,188 +474,88 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
*/
//Modified by RAHUL SHENOY on 11/08/2015 [Site Code validation to happen in Employee code field].End
//Added by Yashwant S.on 18-12-19[Start][Added Validation][CCF No: IT2018-015 / Request ID: A18CSUN011]
else if(childNodeName.equalsIgnoreCase("tran_id__bond"))
{
System.out.println(":::: validation of tran_id__bond ::::");
tranId = checkNull(genericUtility.getColumnValue("tran_id", dom));
tranIdBond = checkNull(genericUtility.getColumnValue("tran_id__bond", dom));
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
else if(childNodeName.equalsIgnoreCase("tran_id__pvouch"))
{
System.out.println(":::: validation of tran_id__pvouch ::::");
if(tranId == null || tranId.trim().length() == 0)
{
tranId = "*";
}
tranType = checkNull(genericUtility.getColumnValue("tran_type", dom));
if(tranIdBond != null && tranIdBond.trim().length() > 0)
if(tranType != null && "VCH".equalsIgnoreCase(tranType))
{
sql = "select count(1) as cnt from employee_bond where tran_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranIdBond);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF01", userId, "", conn); //Invalid tran ID bond
break;
}
System.out.println(":::: validation of tran_id__pvouch ::::");
sql = "select emp_code from employee_bond where tran_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranIdBond);
rs = pstmt.executeQuery();
if (rs.next())
{
bondEmpCode = checkNull(rs.getString("emp_code"));
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(!(empCode.trim()).equalsIgnoreCase(bondEmpCode.trim()))
String refNo = "";
tranIdPvouch = checkNull(genericUtility.getColumnValue("tran_id__pvouch", dom));
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
System.out.println("tranIdPvouch ---->"+tranIdPvouch);
if(tranIdPvouch != null && tranIdPvouch.trim().length() > 0)
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF02", userId, "", conn); //specified employee code is not present in bond master
break;
}
sql = "select 1 as cnt, emp_code, ref_no from payr_voucher where tran_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranIdPvouch);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
vouchEmpCode = checkNull(rs.getString("emp_code"));
refNo = checkNull(rs.getString("ref_no"));
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF04", userId, "", conn); //Invalid tran ID voucher
break;
}
cnt = 0;
sql="select count(*) as cnt from EMPLOYEE_BOND_DEF where tran_id__bond = ? and tran_id <> ? and confirmed='N' ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranIdBond);
pstmt.setString(2, tranId);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
else if(!(empCode.trim()).equalsIgnoreCase(vouchEmpCode.trim()))
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF05", userId, "", conn); //specified employee code is not present in payroll voucher
break;
}
}
if(cnt > 0)
else
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF03", userId, "", conn); //Unconfirmed transaction is present
errString = itmdbAccess.getErrorString("", "VTEBNDDF16", userId, "", conn); //Voucher can not be empty
break;
}
}
}
else if(childNodeName.equalsIgnoreCase("tran_id__pvouch"))
else if(childNodeName.equalsIgnoreCase("line_no__pvouch"))
{
System.out.println(":::: validation of tran_id__pvouch ::::");
System.out.println(":::: validation of line_no__pvouch ::::");
String refNo = "";
tranIdPvouch = checkNull(genericUtility.getColumnValue("tran_id__pvouch", dom));
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
System.out.println("tranIdPvouch ---->"+tranIdPvouch);
tranType = checkNull(genericUtility.getColumnValue("tran_type", dom));
if(tranIdPvouch != null && tranIdPvouch.trim().length() > 0)
if(tranType != null && "VCH".equalsIgnoreCase(tranType))
{
sql = "select count(1) as cnt from payr_voucher where tran_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranIdPvouch);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF04", userId, "", conn); //Invalid tran ID voucher
break;
}
System.out.println(":::: validation of line_no__pvouch ::::");
sql = "select emp_code, ref_no from payr_voucher where tran_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranIdPvouch);
rs = pstmt.executeQuery();
if (rs.next())
{
vouchEmpCode = checkNull(rs.getString("emp_code"));
refNo = checkNull(rs.getString("REF_NO"));
}
if (rs != null)
tranId = checkNull(genericUtility.getColumnValue("tran_id", dom));
lineNoPvouchStr = checkNull(genericUtility.getColumnValue("line_no__pvouch", dom));
tranIdPvouch = checkNull(genericUtility.getColumnValue("tran_id__pvouch", dom));
tranIdBond = checkNull(genericUtility.getColumnValue("tran_id__bond", dom));
if( tranId == null || tranId.trim().length() == 0)
{
rs.close();
rs = null;
tranId = "*";
}
if (pstmt != null)
if( tranIdBond == null || tranIdBond.trim().length() == 0)
{
pstmt.close();
pstmt = null;
tranIdBond = "*";
}
if(!(empCode.trim()).equalsIgnoreCase(vouchEmpCode.trim()))
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF05", userId, "", conn); //specified employee code is not present in payroll voucher
break;
}
if(refNo != null && refNo.toUpperCase().startsWith("RV-"))
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF15", userId, "", conn); //You can't do recovery against cancel voucher
break;
}
}
}
else if(childNodeName.equalsIgnoreCase("line_no__pvouch"))
{
System.out.println(":::: validation of line_no__pvouch ::::");
tranId = checkNull(genericUtility.getColumnValue("tran_id", dom));
lineNoPvouchStr = checkNull(genericUtility.getColumnValue("line_no__pvouch", dom));
tranIdPvouch = checkNull(genericUtility.getColumnValue("tran_id__pvouch", dom));
tranIdBond = checkNull(genericUtility.getColumnValue("tran_id__bond", dom));
if( tranId == null || tranId.trim().length() == 0)
{
tranId = "*";
}
if( tranIdBond == null || tranIdBond.trim().length() == 0)
{
tranIdBond = "*";
}
if((tranIdPvouch != null && tranIdPvouch.trim().length() > 0))
{
if(lineNoPvouchStr == null || lineNoPvouchStr.trim().length() == 0)
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF06", userId, "", conn); // line no. can't null
......@@ -606,122 +624,41 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
errString = itmdbAccess.getErrorString("", "VTEBNDDF09", userId, "", conn); //Unconfirmed transaction is present
break;
}
}
}
}
else if(childNodeName.equalsIgnoreCase("amount"))
{
System.out.println(":::: validation of amount ::::");
tranIdPvouch = checkNull(genericUtility.getColumnValue("tran_id__pvouch", dom));
if(tranIdPvouch != null && tranIdPvouch.trim().length() > 0)
{
amountStr = checkNull(genericUtility.getColumnValue("amount", dom));
cnt = 0;
sql="select count(*) as cnt from EMPLOYEE_BOND where tran_id__pvouch = ? and line_no__pvouch = ? and tran_id <> ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranIdPvouch);
pstmt.setInt(2, lineNoPvouch);
pstmt.setString(3, tranIdBond);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if (rs != null)
if(amountStr != null && amountStr.trim().length() > 0)
{
try
{
rs.close();
rs = null;
amount = Double.parseDouble(amountStr);
}
if (pstmt != null)
catch (Exception e)
{
pstmt.close();
pstmt = null;
}
if(cnt > 0)
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF13", userId, "", conn); //definition already done
break;
amount = 0d;
}
}
}
}
else if(childNodeName.equalsIgnoreCase("ad_code"))
{
System.out.println(":::: validation of ad_code ::::");
tranId = checkNull(genericUtility.getColumnValue("tran_id", dom));
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
adCode = checkNull(genericUtility.getColumnValue("ad_code", dom));
tranIdBond = checkNull(genericUtility.getColumnValue("tran_id__bond", dom));
tranIdPvouch = checkNull(genericUtility.getColumnValue("tran_id__pvouch", dom));
System.out.println("tranID from dom -->"+tranId);
if( tranId == null || tranId.trim().length() == 0)
{
tranId = "*";
}
if(adCode == null || adCode.trim().length() == 0)
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF10", userId, "", conn); //please specify adcode
break;
}
else
{
sql = "select count(*) as cnt from allwdedn where ad_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, adCode);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
if(amount <= 0d)
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF11", userId, "", conn); //adcode not present in allwdedn
errString = itmdbAccess.getErrorString("", "VTEBNDDF18", userId, "", conn); //Invalid amount
break;
}
if((tranIdBond == null || tranIdBond.trim().length() == 0) && (tranIdPvouch == null || tranIdPvouch.trim().length() == 0))
{
System.out.println("empCode in adCode -->"+empCode);
System.out.println("adCode in adCode -->"+adCode);
System.out.println("tranId in adCode -->"+tranId);
cnt = 0;
sql="select count(*) as cnt from EMPLOYEE_BOND_DEF where emp_code = ? and ad_code = ? and tran_id <> ? and confirmed='N'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCode);
pstmt.setString(2, adCode);
pstmt.setString(3, tranId);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt > 0)
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF12", userId, "", conn); //Unconfirmed transaction is present
break;
}
}
}
}
}
}
//Added by Yashwant S.on 18-12-19[End][Added Validation][CCF No: IT2018-015 / Request ID: A18CSUN011]
//Added by Suraj [22-09-2015] [to validate for previous unconfirmed transaction][Start]
/*empCode = genericUtility.getColumnValue("emp_code", dom1);
boolean dupTran = checkPreviousUnconfRec(empCode,editFlag,conn);
......@@ -843,7 +780,7 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
break;
}
if(bondamtDouble < 0)
if(bondamtDouble < 0d)
{
errCode = "VMEMPBND04";
//errString = getErrorString("bond_amt", errCode, userId);
......@@ -863,38 +800,6 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
break;
}
//Modified by Rahul Shenoy on 11/08/2015 [Revised Bond Amount Validations].End
//Added by Yashwant S.on 18-12-19[Start][Added Validation][CCF No: IT2018-015 / Request ID: A18CSUN011]
if(tranIdPvouch != null && tranIdPvouch.trim().length() > 0)
{
sql = "select amount from payr_vouchdet where tran_id = ?";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1, tranIdPvouch);
rs = pstmt.executeQuery();
if(rs.next())
{
pvouchAmt = rs.getDouble("amount");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt!= null)
{
pstmt.close();
pstmt= null;
}
if(bondamtDouble > pvouchAmt)
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF14", userId, "", conn);//amount can't be greter than payr_vochedet
break;
}
}
//Added by Yashwant S.on 18-12-19[End][Added Validation][CCF No: IT2018-015 / Request ID: A18CSUN011]
}
// Modified by Piyush on 18/01/2018 [Added else if instead of if]
......@@ -1036,8 +941,17 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
String lineNoPvouchStr = "";
int lineNoPvouch = 0;
String tranIdBond = "";
Timestamp joinDate = null;
Timestamp gratuityDate = null;
Timestamp effDate = null;
String effDateStr = "";
double amount = 0.0;
String tranId ="";
int count1 = 0;
//Added by Yashwant S.on 13-12-19[End][CCF No: IT2018-015 / Request ID: A18CSUN011]
String tranType = "";
String tranDate="";
try
......@@ -1098,19 +1012,43 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
valueXmlString.append("<confirmed>").append("<![CDATA["+confirmed+"]]>").append("</confirmed>");
//Added by Yashwant S.on 13-12-19[Start][To disable Line No. Voucher][CCF No: IT2018-015 / Request ID: A18CSUN011]
lineNoPvouchStr = checkNull(genericUtility.getColumnValue("line_no__pvouch",dom));
lineNoPvouchStr = "0";
valueXmlString.append("<line_no__pvouch protect=\"1\"><![CDATA[").append(lineNoPvouchStr).append("]]></line_no__pvouch>\r\n");
//Added by Yashwant S.on 13-12-19[END][To disable Line No. Voucher][CCF No: IT2018-015 / Request ID: A18CSUN011]
//Added by Yashwant S.on 21-01-2020[Start][CCF No: IT2018-015 / Request ID: A18CSUN011]
tranType = checkNull(genericUtility.getColumnValue("tran_type",dom));
System.out.println("tranType -->"+tranType);
if(tranType == null || tranType.trim().length() == 0)
{
tranType = "BND";
valueXmlString.append("<tran_type><![CDATA[").append(tranType).append("]]></tran_type>\r\n");
}
if("VCH".equalsIgnoreCase(tranType))
{
System.out.println("---VCH---");
valueXmlString.append("<tran_id__pvouch protect=\"0\"><![CDATA[").append(tranIdPvouch).append("]]></tran_id__pvouch>\r\n");
valueXmlString.append("<line_no__pvouch protect=\"0\"><![CDATA[").append(lineNoPvouchStr).append("]]></line_no__pvouch>\r\n");
valueXmlString.append("<emp_code protect=\"1\">").append("<![CDATA["+empCode+"]]>").append("</emp_code>");
}
else
{
System.out.println("---BND---");
valueXmlString.append("<tran_id__pvouch protect=\"1\"><![CDATA[").append(tranIdPvouch).append("]]></tran_id__pvouch>\r\n");
valueXmlString.append("<line_no__pvouch protect=\"1\"><![CDATA[").append(lineNoPvouchStr).append("]]></line_no__pvouch>\r\n");
valueXmlString.append("<emp_code protect=\"0\">").append("<![CDATA["+empCode+"]]>").append("</emp_code>");
}
//Added by Yashwant S.on 21-01-2020[End][CCF No: IT2018-015 / Request ID: A18CSUN011]
}
//Modified by RAHUL SHENOY on 18/08/2015 [Disabling empCode on Edit if records found for the employee code and transaction ID ].Start
//System.out.println("*** Protecting EmpCode if records Exist ***");
else if(currentColumn.trim().equalsIgnoreCase("itm_defaultedit"))
{
System.out.println(":::: inside itm_defaultedit ::::");
String tranId ="";
int count1 = 0;
//Added by Yashwant S.on 17-12-19[START][CCF No: IT2018-015 / Request ID: A18CSUN011]
//tranId = genericUtility.getColumnValue("tran_id", dom1);
//empCode = genericUtility.getColumnValue("emp_code", dom1);
tranId = checkNull(genericUtility.getColumnValue("tran_id", dom1));
......@@ -1119,6 +1057,7 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
tranIdBond = checkNull(genericUtility.getColumnValue("tran_id__bond", dom1));
tranIdPvouch = checkNull(genericUtility.getColumnValue("tran_id__pvouch", dom1));
lineNoPvouchStr = checkNull(genericUtility.getColumnValue("line_no__pvouch", dom1));
tranType = checkNull(genericUtility.getColumnValue("tran_type", dom1));
adCode = checkNull(genericUtility.getColumnValue("ad_code", dom1));
//Added by Yashwant S.on 17-12-19[END][CCF No: IT2018-015 / Request ID: A18CSUN011]
......@@ -1127,10 +1066,20 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
while(rs.next())
if(rs.next())
{
count1 = rs.getInt(1);
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
System.out.println("The value of count1 --->>> "+ count1);
......@@ -1143,24 +1092,27 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
valueXmlString.append("<tran_id__pvouch protect=\"1\"><![CDATA[").append(tranIdPvouch).append("]]></tran_id__pvouch>\r\n");
valueXmlString.append("<line_no__pvouch protect=\"1\"><![CDATA[").append(lineNoPvouchStr).append("]]></line_no__pvouch>\r\n");
valueXmlString.append("<ad_code protect=\"1\"><![CDATA[").append(adCode).append("]]></ad_code>\r\n");
valueXmlString.append("<tran_type protect=\"1\"><![CDATA[").append(tranType).append("]]></tran_type>\r\n");
}
else
{
if(tranIdBond != null && tranIdBond.trim().length() > 0)
if(tranType != null && tranType.trim().length() > 0 && "VCH".equalsIgnoreCase(tranType))
{
System.out.println("--- tranIdBond not null ----");
valueXmlString.append("<tran_id__bond protect=\"0\"><![CDATA[").append(tranIdBond).append("]]></tran_id__bond>\r\n");
valueXmlString.append("<tran_id__pvouch protect=\"1\"><![CDATA[").append(tranIdPvouch).append("]]></tran_id__pvouch>\r\n");
valueXmlString.append("<line_no__pvouch protect=\"1\"><![CDATA[").append(lineNoPvouchStr).append("]]></line_no__pvouch>\r\n");
System.out.println("--- Trantype Voucher -- itm_defaultedit----");
valueXmlString.append("<tran_id__bond protect=\"1\"><![CDATA[").append(tranIdBond).append("]]></tran_id__bond>\r\n");
valueXmlString.append("<tran_id__pvouch protect=\"0\"><![CDATA[").append(tranIdPvouch).append("]]></tran_id__pvouch>\r\n");
valueXmlString.append("<line_no__pvouch protect=\"0\"><![CDATA[").append(lineNoPvouchStr).append("]]></line_no__pvouch>\r\n");
valueXmlString.append("<ad_code protect=\"1\"><![CDATA[").append(adCode).append("]]></ad_code>\r\n");
valueXmlString.append("<emp_code protect=\"1\"><![CDATA[").append(empCode).append("]]></emp_code>\r\n");
}
else if(tranIdPvouch != null && tranIdPvouch.trim().length() > 0)
else if(tranType != null && tranType.trim().length() > 0 && "BND".equalsIgnoreCase(tranType))
{
System.out.println("--- tranIdPvouch not null ----");
valueXmlString.append("<tran_id__pvouch protect=\"0\"><![CDATA[").append(tranIdPvouch).append("]]></tran_id__pvouch>\r\n");
System.out.println("--- Trantype Bond -- itm_defaultedit----");
valueXmlString.append("<tran_id__pvouch protect=\"1\"><![CDATA[").append(tranIdPvouch).append("]]></tran_id__pvouch>\r\n");
valueXmlString.append("<tran_id__bond protect=\"1\"><![CDATA[").append(tranIdBond).append("]]></tran_id__bond>\r\n");
valueXmlString.append("<line_no__pvouch protect=\"0\"><![CDATA[").append(lineNoPvouchStr).append("]]></line_no__pvouch>\r\n");
valueXmlString.append("<line_no__pvouch protect=\"1\"><![CDATA[").append(lineNoPvouchStr).append("]]></line_no__pvouch>\r\n");
valueXmlString.append("<ad_code protect=\"1\"><![CDATA[").append(adCode).append("]]></ad_code>\r\n");
valueXmlString.append("<emp_code protect=\"0\"><![CDATA[").append(empCode).append("]]></emp_code>\r\n");
}
}
//Added by Yashwant S.on 17-12-19[END][CCF No: IT2018-015 / Request ID: A18CSUN011]
......@@ -1192,6 +1144,61 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
valueXmlString.append("<site_descr>").append("<![CDATA["+descr.trim()+"]]>").append("</site_descr>");
}*/
//Modified by RAHUL SHENOY on 11/08/2015 [siteCode to be fetched by Employee Code since site_code field is non-editable in Form].End
//Added by Yashwant S.on 21-01-2020[Start][CCF No: IT2018-015 / Request ID: A18CSUN011]
else if(currentColumn.trim().equalsIgnoreCase("tran_type"))
{
System.out.println(":::: inside tran_type ::::");
tranType = checkNull(genericUtility.getColumnValue("tran_type",dom));
System.out.println("Inside tranType -->"+tranType);
lineNoPvouchStr = "0";
String amountStr = "0";
if("VCH".equalsIgnoreCase(tranType))
{
System.out.println("---tranType VCH---");
valueXmlString.append("<tran_id__pvouch protect=\"0\"><![CDATA[").append(tranIdPvouch).append("]]></tran_id__pvouch>\r\n");
valueXmlString.append("<line_no__pvouch protect=\"0\"><![CDATA[").append(lineNoPvouchStr).append("]]></line_no__pvouch>\r\n");
valueXmlString.append("<emp_code protect=\"1\">").append("<![CDATA["+empCode+"]]>").append("</emp_code>");
valueXmlString.append("<eff_date>").append("<![CDATA["+effDateStr+"]]>").append("</eff_date>");
valueXmlString.append("<emp_fname>").append("<![CDATA["+empfname+"]]>").append("</emp_fname>");
valueXmlString.append("<emp_mname>").append("<![CDATA["+empmname+"]]>").append("</emp_mname>");
valueXmlString.append("<emp_lname>").append("<![CDATA["+emplname+"]]>").append("</emp_lname>");
valueXmlString.append("<tran_id__bond>").append("<![CDATA["+tranIdBond+"]]>").append("</tran_id__bond>");
valueXmlString.append("<ad_code>").append("<![CDATA["+adCode+"]]>").append("</ad_code>");
valueXmlString.append("<allwdedn_descr>").append("<![CDATA["+adDescr+"]]>").append("</allwdedn_descr>");
valueXmlString.append("<amount>").append("<![CDATA["+amountStr+"]]>").append("</amount>");
valueXmlString.append("<site_code>").append("<![CDATA["+siteCode+"]]>").append("</site_code>");
valueXmlString.append("<site_descr>").append("<![CDATA["+siteDescr+"]]>").append("</site_descr>");
valueXmlString.append("<dept_code>").append("<![CDATA["+deptCode+"]]>").append("</dept_code>");
valueXmlString.append("<department_descr>").append("<![CDATA["+deptDescr+"]]>").append("</department_descr>");
}
else
{
System.out.println("---tranType BND---");
valueXmlString.append("<tran_id__pvouch protect=\"1\"><![CDATA[").append(tranIdPvouch).append("]]></tran_id__pvouch>\r\n");
valueXmlString.append("<line_no__pvouch protect=\"1\"><![CDATA[").append(lineNoPvouchStr).append("]]></line_no__pvouch>\r\n");
valueXmlString.append("<emp_code protect=\"0\">").append("<![CDATA["+empCode+"]]>").append("</emp_code>");
valueXmlString.append("<eff_date>").append("<![CDATA["+effDateStr+"]]>").append("</eff_date>");
valueXmlString.append("<emp_fname>").append("<![CDATA["+empfname+"]]>").append("</emp_fname>");
valueXmlString.append("<emp_mname>").append("<![CDATA["+empmname+"]]>").append("</emp_mname>");
valueXmlString.append("<emp_lname>").append("<![CDATA["+emplname+"]]>").append("</emp_lname>");
valueXmlString.append("<tran_id__bond>").append("<![CDATA["+tranIdBond+"]]>").append("</tran_id__bond>");
valueXmlString.append("<ad_code>").append("<![CDATA["+adCode+"]]>").append("</ad_code>");
valueXmlString.append("<allwdedn_descr>").append("<![CDATA["+adDescr+"]]>").append("</allwdedn_descr>");
valueXmlString.append("<amount>").append("<![CDATA["+amountStr+"]]>").append("</amount>");
valueXmlString.append("<site_code>").append("<![CDATA["+siteCode+"]]>").append("</site_code>");
valueXmlString.append("<site_descr>").append("<![CDATA["+siteDescr+"]]>").append("</site_descr>");
valueXmlString.append("<dept_code>").append("<![CDATA["+deptCode+"]]>").append("</dept_code>");
valueXmlString.append("<department_descr>").append("<![CDATA["+deptDescr+"]]>").append("</department_descr>");
}
}
//Added by Yashwant S.on 21-01-2020[End][CCF No: IT2018-015 / Request ID: A18CSUN011]
else if(currentColumn.trim().equalsIgnoreCase("emp_code"))
{
empCode = genericUtility.getColumnValue("emp_code",dom);
......@@ -1199,6 +1206,9 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
// sql = " Select e.emp_fname,e.emp_mname,e.emp_lname,e.dept_code,d.descr from "+
//" employee e,department d "+
//" where e.dept_code = d.dept_code and e.emp_code = ? ";
//Added by Yashwant S.on 21-01-2020[Start][CCF No: IT2018-015 / Request ID: A18CSUN011]
/*
sql = " Select e.emp_fname,e.emp_mname,e.emp_lname,e.dept_code,d.descr,e.emp_site from "+
" employee e,department d "+
" where e.dept_code = d.dept_code and e.emp_code = ? ";
......@@ -1218,6 +1228,15 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
siteCode = rs.getString("emp_site") == null ? "" : rs.getString("emp_site");
}
//Modified by RAHUL SHENOY in 11/08/2015 [Fetching Description for siteCode obtained].Start
sql = "SELECT DESCR FROM SITE WHERE SITE_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,siteCode);
rs = pstmt.executeQuery();
while(rs.next())
{
descr = rs.getString(1) == null ? "" : rs.getString(1);
}
if(rs != null)
{
rs.close();
......@@ -1229,16 +1248,85 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
pstmt = null;
}
//Modified by RAHUL SHENOY in 11/08/2015 [Fetching Description for siteCode obtained].Start
sql = "SELECT DESCR FROM SITE WHERE SITE_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,siteCode);
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt= null;
}
*/
sql = "Select case when e.emp_fname_long is not null then e.emp_fname_long else e.emp_fname end as emp_fname " +
", case when e.emp_mname_long is not null then e.emp_mname_long else e.emp_mname end as emp_mname " +
", case when e.emp_lname_long is not null then e.emp_lname_long else e.emp_lname end as emp_lname " +
", e.dept_code as dept_code, d.descr as dept_descr, e.emp_site as emp_site, s.descr as site_descr, e.date_join as date_join " +
", e.gratuity_date as gratuity_date from employee e, department d, site s "+
" where e.dept_code = d.dept_code and s.site_code = e.emp_site and e.emp_code = ? ";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,empCode);
rs = pstmt.executeQuery();
while(rs.next())
if(rs.next())
{
descr = rs.getString(1) == null ? "" : rs.getString(1);
siteCode = checkNull(rs.getString("emp_site"));
siteDescr = checkNull(rs.getString("site_descr"));
empfname = checkNull(rs.getString("emp_fname"));
empmname = checkNull(rs.getString("emp_mname"));
emplname = checkNull(rs.getString("emp_lname"));
deptCode = checkNull(rs.getString("dept_code"));
deptDescr = checkNull(rs.getString("dept_descr"));
joinDate = rs.getTimestamp("date_join");
gratuityDate = rs.getTimestamp("gratuity_date");
}
//Added by Yashwant S.on 21-01-2020[End][CCF No: IT2018-015 / Request ID: A18CSUN011]
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
System.out.println("gratuityDate -->"+gratuityDate);
System.out.println("joinDate -->"+joinDate);
if(gratuityDate != null)
{
effDate = gratuityDate;
}
else
{
effDate = joinDate;
}
if(effDate != null)
{
effDateStr = simpleDateFormat.format(effDate);
}
else
{
effDateStr = "";
}
//Added by Yashwant S.on 21-01-2020[Start][CCF No: IT2018-015 / Request ID: A18CSUN011]
sql = "select tran_id from employee_bond where emp_code = ? and tran_id__pvouch is null";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,empCode);
rs = pstmt.executeQuery();
if(rs.next())
{
tranIdBond = checkNull(rs.getString("tran_id"));
}
if(rs != null)
{
rs.close();
......@@ -1249,6 +1337,17 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
pstmt.close();
pstmt= null;
}
System.out.println("tranIdBond -->"+tranIdBond);
String amountStr = "0";
valueXmlString.append("<tran_id__bond>").append("<![CDATA["+tranIdBond+"]]>").append("</tran_id__bond>");
valueXmlString.append("<eff_date protect=\"1\"><![CDATA[").append(effDateStr).append("]]></eff_date>\r\n");
valueXmlString.append("<ad_code>").append("<![CDATA["+adCode+"]]>").append("</ad_code>");
valueXmlString.append("<allwdedn_descr>").append("<![CDATA["+adDescr+"]]>").append("</allwdedn_descr>");
valueXmlString.append("<amount>").append("<![CDATA["+amountStr+"]]>").append("</amount>");
//Added by Yashwant S.on 21-01-2020[End][CCF No: IT2018-015 / Request ID: A18CSUN011]
//Modified by RAHUL SHENOY in 11/08/2015 [Fetching Description for siteCode obtained].End
valueXmlString.append("<emp_fname>").append("<![CDATA["+empfname+"]]>").append("</emp_fname>");
......@@ -1258,129 +1357,25 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
//Modified by RAHUL SHENOY on 11/08/2015 [Displaying Site Code and its Description].Start
valueXmlString.append("<site_code>").append("<![CDATA["+siteCode+"]]>").append("</site_code>");
valueXmlString.append("<site_descr>").append("<![CDATA["+descr.trim()+"]]>").append("</site_descr>");
valueXmlString.append("<site_descr>").append("<![CDATA["+siteDescr.trim()+"]]>").append("</site_descr>");
//Modified by RAHUL SHENOY on 11/08/2015 [Displaying Site Code and its Description].End
valueXmlString.append("<department_descr>").append("<![CDATA["+descr+"]]>").append("</department_descr>");
valueXmlString.append("<department_descr>").append("<![CDATA["+deptDescr+"]]>").append("</department_descr>");
System.out.println("First Name :"+empfname+" Middle Name :"+empmname+" Last Name :"+emplname);
System.out.println("Dept code -->>"+deptCode+" descr : "+descr);
System.out.println("Dept code -->>"+deptCode+" descr : "+deptDescr);
}
//Added by Yashwant S.on 13-12-19[Start][CCF No: IT2018-015 / Request ID: A18CSUN011]
else if(currentColumn.trim().equalsIgnoreCase("tran_id__bond"))
{
System.out.println("::::: Inside tran_id__bond :::::");
tranIdBond = checkNull(genericUtility.getColumnValue("tran_id__bond",dom));
empCode = checkNull(genericUtility.getColumnValue("emp_code",dom));
if(tranIdBond != null && tranIdBond.trim().length() > 0)
{
sql = "select emp_code, ad_code, tran_id__pvouch, line_no__pvouch from EMPLOYEE_BOND where TRAN_ID = ?";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,tranIdBond);
rs = pstmt.executeQuery();
if(rs.next())
{
empCode = checkNull(rs.getString("emp_code"));
adCode = checkNull(rs.getString("ad_code"));
tranIdPvouch = checkNull(rs.getString("tran_id__pvouch"));
lineNoPvouch = rs.getInt("line_no__pvouch");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt!= null)
{
pstmt.close();
pstmt= null;
}
sql = " select e.emp_fname,e.emp_mname,e.emp_lname,e.dept_code,d.descr from "+
" employee e,department d "+
" where e.dept_code = d.dept_code and e.emp_code = ? ";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,empCode);
rs = pstmt.executeQuery();
if(rs.next())
{
empfname = checkNull(rs.getString("emp_fname"));
empmname = checkNull(rs.getString("emp_mname"));
emplname = checkNull(rs.getString("emp_lname"));
deptCode = checkNull(rs.getString("dept_code"));
deptDescr = checkNull(rs.getString("descr"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt!= null)
{
pstmt.close();
pstmt= null;
}
sql = "select descr from allwdedn where AD_CODE = ?";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,adCode);
rs = pstmt.executeQuery();
if(rs.next())
{
adDescr = checkNull(rs.getString("descr"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt!= null)
{
pstmt.close();
pstmt= null;
}
valueXmlString.append("<tran_id__bond>").append("<![CDATA["+tranIdBond+"]]>").append("</tran_id__bond>");
valueXmlString.append("<tran_id__pvouch protect=\"1\"><![CDATA[").append(tranIdPvouch).append("]]></tran_id__pvouch>\r\n");
valueXmlString.append("<line_no__pvouch protect=\"1\"><![CDATA[").append(lineNoPvouch).append("]]></line_no__pvouch>\r\n");
valueXmlString.append("<emp_code>").append("<![CDATA["+empCode+"]]>").append("</emp_code>");
valueXmlString.append("<emp_fname>").append("<![CDATA["+empfname+"]]>").append("</emp_fname>");
valueXmlString.append("<emp_mname>").append("<![CDATA["+empmname+"]]>").append("</emp_mname>");
valueXmlString.append("<emp_lname>").append("<![CDATA["+emplname+"]]>").append("</emp_lname>");
valueXmlString.append("<dept_code>").append("<![CDATA["+deptCode+"]]>").append("</dept_code>");
valueXmlString.append("<department_descr>").append("<![CDATA["+deptDescr+"]]>").append("</department_descr>");
valueXmlString.append("<ad_code protect=\"1\"><![CDATA[").append(adCode).append("]]></ad_code>\r\n");
valueXmlString.append("<allwdedn_descr>").append("<![CDATA["+adDescr+"]]>").append("</allwdedn_descr>");
}
else
{
valueXmlString.append("<tran_id__bond protect=\"0\"><![CDATA[").append(tranIdBond).append("]]></tran_id__bond>\r\n");
valueXmlString.append("<tran_id__pvouch protect=\"0\"><![CDATA[").append(tranIdPvouch).append("]]></tran_id__pvouch>\r\n");
valueXmlString.append("<line_no__pvouch protect=\"1\"><![CDATA[").append(lineNoPvouchStr).append("]]></line_no__pvouch>\r\n");
valueXmlString.append("<emp_code protect=\"0\"><![CDATA[").append(empCode).append("]]></emp_code>\r\n");
valueXmlString.append("<dept_code>").append("<![CDATA["+deptCode+"]]>").append("</dept_code>");
valueXmlString.append("<department_descr>").append("<![CDATA["+deptDescr+"]]>").append("</department_descr>");
valueXmlString.append("<ad_code protect=\"0\"><![CDATA[").append(adCode).append("]]></ad_code>\r\n");
valueXmlString.append("<allwdedn_descr>").append("<![CDATA["+adDescr+"]]>").append("</allwdedn_descr>");
}
}
else if(currentColumn.trim().equalsIgnoreCase("tran_id__pvouch"))
{
System.out.println("::::: Inside tran_id__pvouch :::::");
tranIdPvouch = checkNull(genericUtility.getColumnValue("tran_id__pvouch",dom));
empCode = checkNull(genericUtility.getColumnValue("emp_code",dom));
siteCode = checkNull(genericUtility.getColumnValue("site_code",dom));
if(tranIdPvouch != null && tranIdPvouch.trim().length() > 0)
{
sql = "select emp_code, site_code from payr_voucher where TRAN_ID = ?";
sql = "select emp_code, site_code, tran_date from payr_voucher where TRAN_ID = ?";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,tranIdPvouch);
rs = pstmt.executeQuery();
......@@ -1389,6 +1384,10 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
empCode = checkNull(rs.getString("emp_code"));
siteCode = checkNull(rs.getString("site_code"));
}
else
{
tranIdPvouch = "";
}
if(rs != null)
{
rs.close();
......@@ -1400,38 +1399,36 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
pstmt= null;
}
sql = " Select e.emp_fname,e.emp_mname,e.emp_lname,e.dept_code,d.descr from "+
" employee e,department d "+
" where e.dept_code = d.dept_code and e.emp_code = ? ";
sql = "Select case when e.emp_fname_long is not null then e.emp_fname_long else e.emp_fname end as emp_fname " +
", case when e.emp_mname_long is not null then e.emp_mname_long else e.emp_mname end as emp_mname " +
", case when e.emp_lname_long is not null then e.emp_lname_long else e.emp_lname end as emp_lname " +
", e.dept_code as dept_code, d.descr as dept_descr, e.emp_site as emp_site, s.descr as site_descr, e.date_join as date_join " +
", e.gratuity_date as gratuity_date from employee e, department d, site s "+
" where e.dept_code = d.dept_code and s.site_code = e.emp_site and e.emp_code = ? ";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,empCode);
rs = pstmt.executeQuery();
if(rs.next())
{
siteCode = checkNull(rs.getString("emp_site"));
siteDescr = checkNull(rs.getString("site_descr"));
empfname = checkNull(rs.getString("emp_fname"));
empmname = checkNull(rs.getString("emp_mname"));
emplname = checkNull(rs.getString("emp_lname"));
emplname = checkNull(rs.getString("emp_lname"));
deptCode = checkNull(rs.getString("dept_code"));
deptDescr = checkNull(rs.getString("descr"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt!= null)
{
pstmt.close();
pstmt= null;
}
sql = "SELECT DESCR FROM SITE WHERE SITE_CODE = ? ";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,siteCode);
rs = pstmt.executeQuery();
while(rs.next())
{
siteDescr = checkNull(rs.getString("DESCR"));
deptDescr = checkNull(rs.getString("dept_descr"));
joinDate = rs.getTimestamp("date_join");
gratuityDate = rs.getTimestamp("gratuity_date");
if(gratuityDate != null)
{
effDate = gratuityDate;
}
else
{
effDate = joinDate;
}
}
if(rs != null)
{
......@@ -1443,59 +1440,74 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
pstmt.close();
pstmt= null;
}
}
if(effDate != null)
{
effDateStr = simpleDateFormat.format(effDate);
}
else
{
effDateStr = "";
}
valueXmlString.append("<emp_code>").append("<![CDATA["+empCode+"]]>").append("</emp_code>");
valueXmlString.append("<emp_fname>").append("<![CDATA["+empfname+"]]>").append("</emp_fname>");
valueXmlString.append("<emp_mname>").append("<![CDATA["+empmname+"]]>").append("</emp_mname>");
valueXmlString.append("<emp_lname>").append("<![CDATA["+emplname+"]]>").append("</emp_lname>");
valueXmlString.append("<dept_code>").append("<![CDATA["+deptCode+"]]>").append("</dept_code>");
valueXmlString.append("<department_descr>").append("<![CDATA["+deptDescr+"]]>").append("</department_descr>");
valueXmlString.append("<site_code>").append("<![CDATA["+siteCode+"]]>").append("</site_code>");
valueXmlString.append("<site_descr>").append("<![CDATA["+siteDescr+"]]>").append("</site_descr>");
valueXmlString.append("<tran_id__pvouch>").append("<![CDATA["+tranIdPvouch+"]]>").append("</tran_id__pvouch>");
if(tranIdPvouch != null && tranIdPvouch.trim().length() > 0)
{
valueXmlString.append("<line_no__pvouch protect=\"0\"><![CDATA[").append(lineNoPvouchStr).append("]]></line_no__pvouch>\r\n");
valueXmlString.append("<tran_id__bond protect=\"1\"><![CDATA[").append(tranIdBond).append("]]></tran_id__bond>\r\n");
valueXmlString.append("<ad_code protect=\"1\"><![CDATA[").append(adCode).append("]]></ad_code>\r\n");
valueXmlString.append("<eff_date protect=\"0\"><![CDATA[").append(effDateStr).append("]]></eff_date>\r\n");
}
else
{
valueXmlString.append("<emp_code>").append("<![CDATA["+empCode+"]]>").append("</emp_code>");
valueXmlString.append("<dept_code>").append("<![CDATA["+deptCode+"]]>").append("</dept_code>");
valueXmlString.append("<department_descr>").append("<![CDATA["+deptDescr+"]]>").append("</department_descr>");
valueXmlString.append("<site_code>").append("<![CDATA["+siteCode+"]]>").append("</site_code>");
valueXmlString.append("<site_descr>").append("<![CDATA["+siteDescr+"]]>").append("</site_descr>");
lineNoPvouchStr = "";
valueXmlString.append("<line_no__pvouch protect=\"1\"><![CDATA[").append(lineNoPvouchStr).append("]]></line_no__pvouch>\r\n");
valueXmlString.append("<tran_id__bond protect=\"0\"><![CDATA[").append(tranIdBond).append("]]></tran_id__bond>\r\n");
valueXmlString.append("<ad_code protect=\"0\"><![CDATA[").append(adCode).append("]]></ad_code>\r\n");
valueXmlString.append("<allwdedn_descr>").append("<![CDATA["+adDescr+"]]>").append("</allwdedn_descr>");
valueXmlString.append("<eff_date protect=\"1\"><![CDATA[").append(effDateStr).append("]]></eff_date>\r\n");
}
valueXmlString.append("<emp_code protect=\"1\">").append("<![CDATA["+empCode+"]]>").append("</emp_code>");
valueXmlString.append("<emp_fname>").append("<![CDATA["+empfname+"]]>").append("</emp_fname>");
valueXmlString.append("<emp_mname>").append("<![CDATA["+empmname+"]]>").append("</emp_mname>");
valueXmlString.append("<emp_lname>").append("<![CDATA["+emplname+"]]>").append("</emp_lname>");
valueXmlString.append("<dept_code>").append("<![CDATA["+deptCode+"]]>").append("</dept_code>");
valueXmlString.append("<department_descr>").append("<![CDATA["+deptDescr+"]]>").append("</department_descr>");
valueXmlString.append("<site_code>").append("<![CDATA["+siteCode+"]]>").append("</site_code>");
valueXmlString.append("<site_descr>").append("<![CDATA["+siteDescr+"]]>").append("</site_descr>");
valueXmlString.append("<tran_id__bond protect=\"1\"><![CDATA[").append(tranIdBond).append("]]></tran_id__bond>\r\n");
valueXmlString.append("<ad_code protect=\"1\"><![CDATA[").append(adCode).append("]]></ad_code>\r\n"); String amountStr = "0";
valueXmlString.append("<allwdedn_descr>").append("<![CDATA["+adDescr+"]]>").append("</allwdedn_descr>");
valueXmlString.append("<amount>").append("<![CDATA["+amountStr+"]]>").append("</amount>");
}
else if(currentColumn.trim().equalsIgnoreCase("line_no__pvouch"))
{
System.out.println("::::: Inside line_no__pvouch :::::");
System.out.println("::::: Inside line_no__pvouch :::::");
lineNoPvouchStr = checkNull(genericUtility.getColumnValue("line_no__pvouch",dom));
tranIdPvouch = checkNull(genericUtility.getColumnValue("tran_id__pvouch",dom));
if (lineNoPvouchStr.trim().length() > 0)
if (lineNoPvouchStr != null && lineNoPvouchStr.trim().length() > 0)
{
lineNoPvouch = Integer.parseInt(lineNoPvouchStr);
try
{
lineNoPvouch = Integer.parseInt(lineNoPvouchStr);
}
catch (Exception e)
{
lineNoPvouch = 0;
}
}
System.out.println("lineNoPvouch -->"+lineNoPvouch);
sql = "select ad_code from payr_vouchdet where line_no = ? and tran_id = ?";
//Added by Yashwant S.on 21-01-2020[Start][CCF No: IT2018-015 / Request ID: A18CSUN011]
sql = "select a.ad_code as ad_code, case when amount is null then 0 else amount end as amount, b.descr as ad_descr from payr_vouchdet a, allwdedn b where a.tran_id = ? and a.line_no = ? and b.ad_code = a.ad_code";
pstmt= conn.prepareStatement(sql);
pstmt.setInt(1,lineNoPvouch);
pstmt.setString(2,tranIdPvouch);
pstmt.setString(1,tranIdPvouch);
pstmt.setInt(2,lineNoPvouch);
rs = pstmt.executeQuery();
if(rs.next())
{
adCode = checkNull(rs.getString("ad_code"));
adDescr = checkNull(rs.getString("ad_descr"));
amount = rs.getDouble("amount");
}
if(rs != null)
{
......@@ -1508,59 +1520,36 @@ public class EmpBondDefinition extends ValidatorEJB implements EmpBondDefinition
pstmt= null;
}
sql = "select descr from allwdedn where ad_code = ?";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,adCode);
rs = pstmt.executeQuery();
if(rs.next())
{
adDescr = checkNull(rs.getString("descr"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt!= null)
if(tranIdPvouch != null && tranIdPvouch.trim().length() > 0)
{
pstmt.close();
pstmt= null;
sql = "select tran_id from employee_bond where tran_id__pvouch = ? and line_no__pvouch = ? ";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,tranIdPvouch);
pstmt.setInt(2,lineNoPvouch);
rs = pstmt.executeQuery();
if(rs.next())
{
tranIdBond = checkNull(rs.getString("tran_id"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt!= null)
{
pstmt.close();
pstmt= null;
}
}
valueXmlString.append("<line_no__pvouch>").append("<![CDATA["+lineNoPvouchStr+"]]>").append("</line_no__pvouch>");
valueXmlString.append("<ad_code>").append("<![CDATA["+adCode+"]]>").append("</ad_code>");
valueXmlString.append("<allwdedn_descr>").append("<![CDATA["+adDescr+"]]>").append("</allwdedn_descr>");
}
else if(currentColumn.trim().equalsIgnoreCase("ad_code"))
{
System.out.println("::::: Inside ad_code :::::");
adCode = checkNull(genericUtility.getColumnValue("ad_code",dom));
System.out.println("adCode -->"+adCode);
sql = "select descr from allwdedn where AD_CODE = ?";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,adCode);
rs = pstmt.executeQuery();
if(rs.next())
{
adDescr = checkNull(rs.getString("descr"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt!= null)
{
pstmt.close();
pstmt= null;
}
valueXmlString.append("<ad_code>").append("<![CDATA["+adCode+"]]>").append("</ad_code>");
valueXmlString.append("<allwdedn_descr>").append("<![CDATA["+adDescr+"]]>").append("</allwdedn_descr>");
valueXmlString.append("<amount>").append("<![CDATA["+amount+"]]>").append("</amount>");
valueXmlString.append("<tran_id__bond protect=\"1\"><![CDATA[").append(tranIdBond).append("]]></tran_id__bond>\r\n");
//Added by Yashwant S.on 21-01-2020[End][CCF No: IT2018-015 / Request ID: A18CSUN011]
}
//Added by Yashwant S. on 13-12-19[END][CCF No: IT2018-015 / Request ID: A18CSUN011]
......
......@@ -17,14 +17,13 @@ import ibase.webitm.ejb.ITMDBAccessEJB;
//import ibase.webitm.ejb.adm.TransIDGenerator;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.TransIDGenerator;
@Stateless
public class EmpBondDefConfirm extends ActionHandlerEJB implements EmpBondDefConfirmLocal,EmpBondDefConfirmRemote
{
String loginEmpCode="";
int updcnt1=0;
public String confirm(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException
{
// Modified by Dipesh P on [17/12/2019]Start [CCF No: IT2018-015][Request ID: A19ISUN011]
......@@ -68,9 +67,13 @@ public class EmpBondDefConfirm extends ActionHandlerEJB implements EmpBondDefCon
//Added by Yashwant S.on 18-12-19[Start][CCF No: IT2018-015 / Request ID: A18CSUN011]
Timestamp changeDate = null;
Timestamp effDate = null;
String tranType = "";
String chgUser = "";
String chgTerm = "";
String refNo = "";
double amount = 0;
String vConfirmed = "";
//Added by Yashwant S.on 18-12-19[End][CCF No: IT2018-015 / Request ID: A18CSUN011]
......@@ -115,7 +118,7 @@ public class EmpBondDefConfirm extends ActionHandlerEJB implements EmpBondDefCon
{
chgTerm = "SYSTEM";
}
//Added by Yashwant S.on 23-12-19[Start][CCF No: IT2018-015 / Request ID: A18CSUN011]
//Added by Yashwant S.on 23-12-19[End][CCF No: IT2018-015 / Request ID: A18CSUN011]
......@@ -148,69 +151,96 @@ public class EmpBondDefConfirm extends ActionHandlerEJB implements EmpBondDefCon
// Modified by Dipesh P on [17/12/2019]End [CCF No: IT2018-015][Request ID: A19ISUN011]
//sql = "SELECT CONFIRMED FROM EMPLOYEE_BOND_DEF WHERE TRAN_ID = ?";
sql = "SELECT CONFIRMED , EMP_CODE , TRAN_ID__BOND , TRAN_ID__PVOUCH , LINE_NO__PVOUCH , AD_CODE FROM EMPLOYEE_BOND_DEF WHERE TRAN_ID = ? FOR UPDATE NOWAIT ";// Modified by Dipesh P on [17/12/2019] [CCF No: IT2018-015][Request ID: A19ISUN011]
//sql = "SELECT CONFIRMED , EMP_CODE , TRAN_ID__BOND , TRAN_ID__PVOUCH , LINE_NO__PVOUCH , AD_CODE FROM EMPLOYEE_BOND_DEF WHERE TRAN_ID = ? FOR UPDATE NOWAIT ";// Modified by Dipesh P on [17/12/2019] [CCF No: IT2018-015][Request ID: A19ISUN011]
sql = "SELECT CONFIRMED , EMP_CODE , TRAN_ID__BOND , TRAN_ID__PVOUCH , LINE_NO__PVOUCH , AD_CODE , EFF_DATE, TRAN_TYPE FROM EMPLOYEE_BOND_DEF WHERE TRAN_ID = ? FOR UPDATE NOWAIT ";//Modified by Yashwant S.on 24-01-2020[CCF No: IT2018-015 / Request ID: A18CSUN011]
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if( rs.next() )
{
confirmed =rs.getString("CONFIRMED")==null ? "":rs.getString("CONFIRMED");
// Modified by Dipesh P on [17/12/2019]Start [CCF No: IT2018-015][Request ID: A19ISUN011]
empCode =rs.getString("EMP_CODE")==null ? "":rs.getString("EMP_CODE");
tranIdBond =rs.getString("TRAN_ID__BOND")==null ? "":rs.getString("TRAN_ID__BOND");
tranIdPvouch =rs.getString("TRAN_ID__PVOUCH")==null ? "":rs.getString("TRAN_ID__PVOUCH");
lineNoPvouch =rs.getInt("LINE_NO__PVOUCH");
adCode =rs.getString("AD_CODE")==null ? "":rs.getString("AD_CODE");
empCode = rs.getString("EMP_CODE")==null ? "":rs.getString("EMP_CODE");
tranIdBond = rs.getString("TRAN_ID__BOND")==null ? "":rs.getString("TRAN_ID__BOND");
tranIdPvouch = rs.getString("TRAN_ID__PVOUCH")==null ? "":rs.getString("TRAN_ID__PVOUCH");
lineNoPvouch = rs.getInt("LINE_NO__PVOUCH");
adCode = rs.getString("AD_CODE")==null ? "":rs.getString("AD_CODE");
// Modified by Dipesh P on [17/12/2019]End [CCF No: IT2018-015][Request ID: A19ISUN011]
//Modified by Yashwant S.on 24-01-2020[Start][CCF No: IT2018-015 / Request ID: A18CSUN011]
effDate = rs.getTimestamp("EFF_DATE");
tranType = rs.getString("TRAN_TYPE")==null ? "":rs.getString("TRAN_TYPE");
System.out.println("effDate -->"+effDate);
System.out.println("tranType -->"+tranType);
//Modified by Yashwant S.on 24-01-2020[End][CCF No: IT2018-015 / Request ID: A18CSUN011]
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if ( rs != null )
{
rs.close();
rs = null;
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if( confirmed != null && confirmed.equalsIgnoreCase("Y") )
{
errString = itmdbAccess.getErrorString("", "AEBCONF", "", "", conn);
conn.rollback();
return errString;
}
//Added by Yashwant S.on 27-12-19[Start][Validation against cancel voucher][CCF No: IT2018-015 / Request ID: A18CSUN011]
else if(tranIdPvouch != null && tranIdPvouch.trim().length() > 0)
//Modified by Yashwant S.on 28-01-2020[Start][CCF No: IT2018-015 / Request ID: A18CSUN011]
if (tranType.equalsIgnoreCase("VCH"))
{
sql = "select REF_NO from PAYR_VOUCHER where TRAN_ID = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranIdPvouch);
rs = pstmt.executeQuery();
if (rs.next())
if (tranIdPvouch == null || tranIdPvouch.trim().length() == 0)
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF04", "", "", conn);
conn.rollback();
return errString;
}
if (lineNoPvouch <= 0)
{
refNo = checkNull(rs.getString("REF_NO"));
errString = itmdbAccess.getErrorString("", "VTEBNDDF06", "", "", conn);
conn.rollback();
return errString;
}
if (rs != null)
sql = "SELECT A.CONFIRMED AS CONFIRMED, B.AMOUNT AS AMOUNT FROM PAYR_VOUCHER A, PAYR_VOUCHDET B WHERE A.TRAN_ID = B.TRAN_ID and B.LINE_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setInt(1, lineNoPvouch);
rs = pstmt.executeQuery();
if( rs.next() )
{
vConfirmed =rs.getString("CONFIRMED")==null ? "":rs.getString("CONFIRMED");
amount = rs.getDouble("AMOUNT");
System.out.println("vConfirmed -->"+vConfirmed);
System.out.println("amount -->"+amount);
}
if ( rs != null )
{
rs.close();
rs = null;
}
if (pstmt != null)
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if(refNo != null && refNo.toUpperCase().startsWith("RV-"))
if( vConfirmed != null && vConfirmed.equalsIgnoreCase("N") )
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF20", "", "", conn);// unconfirmed transaction present
return errString;
}
if(amount <= 0d)
{
errString = itmdbAccess.getErrorString("", "VTEBNDDF15", userId, "", conn); //You can't do recovery against cancel voucher
errString = itmdbAccess.getErrorString("", "VTEBNDDF21", "", "", conn);//Voucher amount can not be smaller than 0
return errString;
}
}
//Added by Yashwant S.on 27-12-19[Start][Validation against cancel voucher][CCF No: IT2018-015 / Request ID: A18CSUN011]
// Modified by Dipesh P on [17/12/2019]Start [CCF No: IT2018-015][Request ID: A19ISUN011]
//Modified by Yashwant S.on 28-01-2020[End][CCF No: IT2018-015 / Request ID: A18CSUN011]
if (tranIdBond == null || tranIdBond.trim().length() == 0)
{
xmlValues = "<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>";
......@@ -280,14 +310,15 @@ public class EmpBondDefConfirm extends ActionHandlerEJB implements EmpBondDefCon
// Modified by Dipesh P on [17/12/2019]Start [CCF No: IT2018-015][Request ID: A19ISUN011]
//sql="update employee_bond set bond_amt = ?,bond_prd = ? where line_no = ? and emp_code = ?";
sql="update employee_bond set bond_amt = ?,bond_prd = ? where line_no = ? and emp_code = ? and tran_id = ?";
sql="update employee_bond set bond_amt = ?,bond_prd = ?, chg_date = ?, chg_user = ?, chg_term = ? where line_no = ? and emp_code = ? and tran_id = ? ";
pstmt = conn.prepareStatement(sql);
//sqlInsert = "Insert into employee_bond ( EMP_CODE , LINE_NO , BOND_PRD , BOND_AMT) values ( ? , ? , ? , ? )";
//Added by Yashwant S.on 23-12-19[Start][CCF No: IT2018-015 / Request ID: A18CSUN011]
//sqlInsert = "Insert into employee_bond ( EMP_CODE , LINE_NO , BOND_PRD , BOND_AMT , TRAN_ID , TRAN_ID__PVOUCH , LINE_NO__PVOUCH , AD_CODE) values ( ? , ? , ? , ? , ? , ? , ? , ?)";
sqlInsert = "Insert into employee_bond ( EMP_CODE , LINE_NO , BOND_PRD , BOND_AMT , TRAN_ID , TRAN_ID__PVOUCH , LINE_NO__PVOUCH , AD_CODE, CHG_DATE, CHG_USER, CHG_TERM) values ( ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )";
//sqlInsert = "Insert into employee_bond ( EMP_CODE , LINE_NO , BOND_PRD , BOND_AMT , TRAN_ID , TRAN_ID__PVOUCH , LINE_NO__PVOUCH , AD_CODE, CHG_DATE, CHG_USER, CHG_TERM) values ( ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )";
sqlInsert = "Insert into employee_bond ( EMP_CODE , LINE_NO , BOND_PRD , BOND_AMT , TRAN_ID , TRAN_ID__PVOUCH , LINE_NO__PVOUCH , AD_CODE , CHG_DATE , CHG_USER , CHG_TERM , EFF_DATE , TRAN_TYPE) values ( ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )";//Modified by Yashwant S.on 24-01-2020[CCF No: IT2018-015 / Request ID: A18CSUN011]
//Added by Yashwant S.on 23-12-19[End][CCF No: IT2018-015 / Request ID: A18CSUN011]
pstmtInsert = conn.prepareStatement(sqlInsert);
......@@ -354,21 +385,22 @@ public class EmpBondDefConfirm extends ActionHandlerEJB implements EmpBondDefCon
pstmtInsert.setInt(2, maxLineNumber);
pstmtInsert.setInt(3, bondprd);
pstmtInsert.setDouble(4, bondamt);
// Modified by Dipesh P on [19/12/2019]Start [CCF No: IT2018-015][Request ID: A19ISUN011]
pstmtInsert.setString(5, tranIdBond);
pstmtInsert.setString(6, tranIdPvouch);
pstmtInsert.setInt(7, lineNoPvouch);
pstmtInsert.setString(8, adCode);
// Modified by Dipesh P on [19/12/2019]End [CCF No: IT2018-015][Request ID: A19ISUN011]
//Added by Yashwant S.on 23-12-19[Start][CCF No: IT2018-015 / Request ID: A18CSUN011]
pstmtInsert.setTimestamp(9, changeDate);
pstmtInsert.setString(10, chgUser);
pstmtInsert.setString(11, chgTerm);
//Added by Yashwant S.on 23-12-19[End][CCF No: IT2018-015 / Request ID: A18CSUN011]
//Modified by Yashwant S.on 24-01-2020[Start][CCF No: IT2018-015 / Request ID: A18CSUN011]
pstmtInsert.setTimestamp(12, effDate);
pstmtInsert.setString(13, tranType);
//Modified by Yashwant S.on 24-01-2020[End][CCF No: IT2018-015 / Request ID: A18CSUN011]
insertCnt = pstmtInsert.executeUpdate();
totUpdCnt = totUpdCnt + insertCnt;
System.out.println("Value of insertCnt is : ["+insertCnt+"]");
......@@ -385,11 +417,18 @@ public class EmpBondDefConfirm extends ActionHandlerEJB implements EmpBondDefCon
pstmt.setDouble(1, bondamt);
pstmt.setInt(2, bondprd);
pstmt.setInt(3, lineno);
pstmt.setString(4,empcode);
// Modified by Dipesh P on [19/12/2019]Start [CCF No: IT2018-015][Request ID: A19ISUN011]
pstmt.setString(5,tranIdBond);
/*
pstmt.setInt(3, lineno);
pstmt.setString(4,empcode);
*/
pstmt.setTimestamp(3, changeDate);
pstmt.setString(4, chgUser);
pstmt.setString(5, chgTerm);
pstmt.setInt(6, lineno);
pstmt.setString(7,empcode);
pstmt.setString(8,tranIdBond);
// Modified by Dipesh P on [19/12/2019]End [CCF No: IT2018-015][Request ID: A19ISUN011]
updCnt = pstmt.executeUpdate();
......
......@@ -120,7 +120,7 @@ public class EmpBondDefault extends ActionHandlerEJB implements EmpBondDefaultL
//Added by Yashwant S. on 19-12-19[Start][CCF No: IT2018-015 / Request ID: A18CSUN011]
/*conn = connDriver.getConnectDB("DriverITM");
connDriver = null;*/
connDriver = null;*/
conn = getConnection();
conn.setAutoCommit(false);
//Added by Yashwant S. on 19-12-19[End][CCF No: IT2018-015 / Request ID: A18CSUN011]
......
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