Commit 04faac34 authored by dpingle's avatar dpingle

* Updated grade monthly paystructure on [15/10/19]

grade_mthad21.xml
w_grade_mthad.sql
d_grade_mthad_edit.srd
GradeMthadIC.java




git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@209592 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4005d310
...@@ -97,7 +97,50 @@ Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,E ...@@ -97,7 +97,50 @@ Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,E
----------------------------------------------------- Start[15/10/19]
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 ('MONTH_CODE','W_GRADE_MTHAD','SELECT DISTINCT(MONTH_CODE) FROM CADRE_MTHAD ','Month Code','Month Code',0,0,to_date('20-05-13','DD-MM-RR'),'VENKAT ','BASE ','1',null,null,null,null,null,null,null,null,null,'2',null,'3',null,null,null,'2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('PAY_TABLE','W_GRADE_MTHAD','SELECT PAY_TABLE, DESCR FROM PAYTABLE',null,'Pay Table No',0,0,to_date('27-05-00','DD-MM-RR'),'SUN ','CLIENT1 ','0',null,null,null,null,null,null,null,null,null,'2',null,'3','EmpImages','PAY_TABLE','DESCR','2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('AD_CODE','W_GRADE_MTHAD','SELECT AD_CODE, DESCR FROM ALLWDEDN WHERE TYPE <> ''S''',null,null,0,0,to_date('08-12-01','DD-MM-RR'),'BASE ','97SYSTEM4 ','1',null,null,0,null,null,null,null,null,0,'2',null,'3','AdCodeImages','ad_code','descr','3 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('CADRE_CODE','W_GRADE_MTHAD','SELECT CADRE_CODE,DESCR FROM CADRE',null,'Cadres',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','CadreImages','cadre_code','descr','2 ',null,null,null,null,null,null,null);
Insert into GENMST (FLD_NAME,MOD_NAME,DESCR,ERROR_CD,BLANK_OPT,FLD_TYPE,FLD_MIN,FLD_MAX,VAL_TYPE,CHG_DATE,CHG_USER,CHG_TERM,VAL_TABLE,SQL_INPUT,FLD_WIDTH,UDF_USAGE_1,UDF_USAGE_2,UDF_USAGE_3,VAL_STAGE,OBJ_NAME,FORM_NO,ACTION)
values ('AMOUNT','W_GRADE_MTHAD','Validation for Amount','VMPAYSTR05','N','C','select ( case when ? < 0 then 1 else 0 end ) from dual','0','Q',to_date('16-10-08','DD-MM-RR'),'VIKAS ','08ANMISVIKAS ',null,':0.AMOUNT',5,null,null,null,null,null,'X','edit');
Insert into GENMST (FLD_NAME,MOD_NAME,DESCR,ERROR_CD,BLANK_OPT,FLD_TYPE,FLD_MIN,FLD_MAX,VAL_TYPE,CHG_DATE,CHG_USER,CHG_TERM,VAL_TABLE,SQL_INPUT,FLD_WIDTH,UDF_USAGE_1,UDF_USAGE_2,UDF_USAGE_3,VAL_STAGE,OBJ_NAME,FORM_NO,ACTION)
values ('MIN_BASIC','W_GRADE_MTHAD','Validation for Min Base Amount','VMPAYSTR01','N','C','select ( case when ? < 0 then 1 else 0 end ) from dual','0','Q',to_date('16-10-08','DD-MM-RR'),'VIKAS ','08ANMISVIKAS ',null,'0.MIN_BASIC',5,null,null,null,null,null,'X','edit');
Insert into GENMST (FLD_NAME,MOD_NAME,DESCR,ERROR_CD,BLANK_OPT,FLD_TYPE,FLD_MIN,FLD_MAX,VAL_TYPE,CHG_DATE,CHG_USER,CHG_TERM,VAL_TABLE,SQL_INPUT,FLD_WIDTH,UDF_USAGE_1,UDF_USAGE_2,UDF_USAGE_3,VAL_STAGE,OBJ_NAME,FORM_NO,ACTION)
values ('MAX_BASIC','W_GRADE_MTHAD','Validation for Max Base Amount','VMPAYSTR02','N','C','select ( case when ? < 0 then 1 else 0 end ) from dual','0','Q',to_date('16-10-08','DD-MM-RR'),'VIKAS ','08ANMISVIKAS ',null,':0.MAX_BASIC',5,null,null,null,null,null,'X','edit');
Insert into GENMST (FLD_NAME,MOD_NAME,DESCR,ERROR_CD,BLANK_OPT,FLD_TYPE,FLD_MIN,FLD_MAX,VAL_TYPE,CHG_DATE,CHG_USER,CHG_TERM,VAL_TABLE,SQL_INPUT,FLD_WIDTH,UDF_USAGE_1,UDF_USAGE_2,UDF_USAGE_3,VAL_STAGE,OBJ_NAME,FORM_NO,ACTION)
values ('MIN_AMT','W_GRADE_MTHAD','Validation for Min Amount','VMPAYSTR03','N','C','select ( case when ? < 0 then 1 else 0 end ) from dual','0','Q',to_date('16-10-08','DD-MM-RR'),'VIKAS ','08ANMISVIKAS ',null,':0.MIN_AMT',5,null,null,null,null,null,'X','edit');
Insert into GENMST (FLD_NAME,MOD_NAME,DESCR,ERROR_CD,BLANK_OPT,FLD_TYPE,FLD_MIN,FLD_MAX,VAL_TYPE,CHG_DATE,CHG_USER,CHG_TERM,VAL_TABLE,SQL_INPUT,FLD_WIDTH,UDF_USAGE_1,UDF_USAGE_2,UDF_USAGE_3,VAL_STAGE,OBJ_NAME,FORM_NO,ACTION)
values ('MAX_AMT','W_GRADE_MTHAD','Validation for Max Amount','VMPAYSTR04','N','C','select ( case when ? < 0 then 1 else 0 end ) from dual','0','Q',to_date('16-10-08','DD-MM-RR'),'VIKAS ','08ANMISVIKAS ',null,':0.MAX_AMT',5,null,null,null,null,null,'X','edit');
delete obj_actions where obj_name='grade_mthad';
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('grade_mthad',1,'ibase/resource/objaction/add.svg','Adding New','a','a','A','Add','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'2',null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('grade_mthad',2,'ibase/resource/objaction/edit.svg','Editing Existing Record','a','a','E','Edit','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('grade_mthad',8,'ibase/resource/objaction/copyTransaction.svg','Adding New','a','a','A','Copy Transaction','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,'0',null,null,null,null,null,null,'1',null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('grade_mthad',39,'ibase/resource/objaction/exprtExl.svg','Export To Excel','a','a','B','Export2XLS','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'2',null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('grade_mthad',40,'ibase/resource/objaction/Audit-trail.svg','View Audit Trail','audit_trail','1','X','Audit Trail','1','1','1','U',null,null,null,null,null,null,null,'1',null,null,null,null,null,null,null,null,null,null,null,'2',null,null);
update TRANSETUP set ref_ser='E-LOAN', TRAN_ID_COL='ad_code,eff_date,pay_table,grade_code,month_code', TABLE_NAME='Grade_mthad' where TRAN_WINDOW='w_grade_mthad';
update OBJ_FORMS set THUMB_ALT_COL = 'sh_descr', THUMB_IMAGE_COL= 'ad_code', THUMB_OBJ = 'AdCodeImages' where WIN_NAME = 'w_grade_mthad';
update TRANSETUP set THUMB_ALT_COL = 'sh_descr', THUMB_IMAGE_COL= 'ad_code', THUMB_OBJ = 'AdCodeImages' where TRAN_WINDOW = 'w_grade_mthad';
----------------------------------------------------- End[15/10/19]
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<color>536870912</color> <color>536870912</color>
</Footer> </Footer>
<Detail> <Detail>
<height>337</height> <height>468</height>
<color>536870912</color> <color>536870912</color>
</Detail> </Detail>
<TableDefinition> <TableDefinition>
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>type</name> <name>type</name>
<dbname>grade_mthad.type</dbname> <dbname>grade_mthad.type</dbname>
<initial> </initial> <initial>F</initial>
<values> <values>
<item display="Fixed" data="F"/> <item display="Fixed" data="F"/>
<item display="Percentage" data="P"/> <item display="Percentage" data="P"/>
...@@ -217,6 +217,30 @@ ...@@ -217,6 +217,30 @@
<type>datetime</type> <type>datetime</type>
</argument> </argument>
</TableDefinition> </TableDefinition>
<GroupBox>
<band>Detail</band>
<text>Others</text>
<border>2</border>
<color>0</color>
<x>17</x>
<y>253</y>
<height>100</height>
<width>514</width>
<name>gb_2</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</GroupBox>
<GroupBox> <GroupBox>
<band>Detail</band> <band>Detail</band>
<text>Basic</text> <text>Basic</text>
...@@ -224,7 +248,7 @@ ...@@ -224,7 +248,7 @@
<color>0</color> <color>0</color>
<x>20</x> <x>20</x>
<y>9</y> <y>9</y>
<height>281</height> <height>232</height>
<width>511</width> <width>511</width>
<name>gb_1</name> <name>gb_1</name>
<visible>1</visible> <visible>1</visible>
...@@ -1091,17 +1115,45 @@ ...@@ -1091,17 +1115,45 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Change Date :</text> <text>Min. Base Amount :</text>
<border>0</border>
<color>0</color>
<x>52</x>
<y>119</y>
<height>16</height>
<width>118</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_basic_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Amount :</text>
<border>0</border> <border>0</border>
<color>0</color> <color>0</color>
<x>60</x> <x>60</x>
<y>223</y> <y>93</y>
<height>16</height> <height>16</height>
<width>110</width> <width>110</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>chg_date_t</name> <name>amount_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
...@@ -1123,8 +1175,8 @@ ...@@ -1123,8 +1175,8 @@
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>174</x> <x>173</x>
<y>223</y> <y>282</y>
<height>16</height> <height>16</height>
<width>95</width> <width>95</width>
<format>[shortdate] [time]</format> <format>[shortdate] [time]</format>
...@@ -1157,18 +1209,18 @@ ...@@ -1157,18 +1209,18 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Change User :</text> <text>Change Date :</text>
<border>0</border> <border>0</border>
<color>0</color> <color>0</color>
<x>302</x> <x>59</x>
<y>223</y> <y>282</y>
<height>16</height> <height>16</height>
<width>97</width> <width>110</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>chg_user_t</name> <name>chg_date_t</name>
<visible expression="0">1</visible> <visible>1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
...@@ -1182,52 +1234,14 @@ ...@@ -1182,52 +1234,14 @@
<color>79741120</color> <color>79741120</color>
</background> </background>
</TextObject> </TextObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>403</x>
<y>223</y>
<height>16</height>
<width>95</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<visible expression="0">1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Change Term :</text> <text>Change Term :</text>
<border>0</border> <border>0</border>
<color>0</color> <color>0</color>
<x>60</x> <x>59</x>
<y>249</y> <y>308</y>
<height>16</height> <height>16</height>
<width>110</width> <width>110</width>
<html> <html>
...@@ -1255,8 +1269,8 @@ ...@@ -1255,8 +1269,8 @@
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>174</x> <x>173</x>
<y>249</y> <y>308</y>
<height>16</height> <height>16</height>
<width>95</width> <width>95</width>
<format>[general]</format> <format>[general]</format>
...@@ -1289,18 +1303,18 @@ ...@@ -1289,18 +1303,18 @@
<TextObject> <TextObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <alignment>1</alignment>
<text>Min. Base Amount :</text> <text>Change User :</text>
<border>0</border> <border>0</border>
<color>0</color> <color>0</color>
<x>52</x> <x>301</x>
<y>119</y> <y>282</y>
<height>16</height> <height>16</height>
<width>118</width> <width>97</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>min_basic_t</name> <name>chg_user_t</name>
<visible>1</visible> <visible expression="0">1</visible>
<font> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
...@@ -1314,21 +1328,31 @@ ...@@ -1314,21 +1328,31 @@
<color>79741120</color> <color>79741120</color>
</background> </background>
</TextObject> </TextObject>
<TextObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<alignment>1</alignment> <id>10</id>
<text>Amount :</text> <alignment>0</alignment>
<border>0</border> <tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color> <color>0</color>
<x>60</x> <x>402</x>
<y>93</y> <y>282</y>
<height>16</height> <height>16</height>
<width>110</width> <width>95</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>amount_t</name> <name>chg_user</name>
<visible>1</visible> <visible expression="0">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> <font>
<face>Times New Roman</face> <face>Times New Roman</face>
<height>-10</height> <height>-10</height>
...@@ -1339,9 +1363,9 @@ ...@@ -1339,9 +1363,9 @@
</font> </font>
<background> <background>
<mode>2</mode> <mode>2</mode>
<color>79741120</color> <color>16777215</color>
</background> </background>
</TextObject> </ColumnObject>
<HtmlTable> <HtmlTable>
<border>1</border> <border>1</border>
</HtmlTable> </HtmlTable>
......
...@@ -4,14 +4,14 @@ release 9; ...@@ -4,14 +4,14 @@ release 9;
datawindow(units=1 timer_interval=0 color=79741120 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no ) datawindow(units=1 timer_interval=0 color=79741120 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" ) summary(height=0 color="536870912" )
footer(height=0 color="536870912" ) footer(height=0 color="536870912" )
detail(height=337 color="536870912" ) detail(height=468 color="536870912" )
table(column=(type=char(5) update=yes updatewhereclause=yes key=yes name=pay_table dbname="grade_mthad.pay_table" ) table(column=(type=char(5) update=yes updatewhereclause=yes key=yes name=pay_table dbname="grade_mthad.pay_table" )
column=(type=char(5) update=yes updatewhereclause=yes key=yes name=grade_code dbname="grade_mthad.grade_code" ) column=(type=char(5) update=yes updatewhereclause=yes key=yes name=grade_code dbname="grade_mthad.grade_code" )
column=(type=char(2) update=yes updatewhereclause=yes key=yes name=month_code dbname="grade_mthad.month_code" values="January 01/February 02/March 03/April 04/May 05/June 06/July 07/August 08/September 09/October 10/November 11/December 12/" ) column=(type=char(2) update=yes updatewhereclause=yes key=yes name=month_code dbname="grade_mthad.month_code" values="January 01/February 02/March 03/April 04/May 05/June 06/July 07/August 08/September 09/October 10/November 11/December 12/" )
column=(type=char(5) update=yes updatewhereclause=yes key=yes name=ad_code dbname="grade_mthad.ad_code" ) column=(type=char(5) update=yes updatewhereclause=yes key=yes name=ad_code dbname="grade_mthad.ad_code" )
column=(type=datetime update=yes updatewhereclause=yes key=yes name=eff_date dbname="grade_mthad.eff_date" ) column=(type=datetime update=yes updatewhereclause=yes key=yes name=eff_date dbname="grade_mthad.eff_date" )
column=(type=datetime update=yes updatewhereclause=yes name=exp_date dbname="grade_mthad.exp_date" ) column=(type=datetime update=yes updatewhereclause=yes name=exp_date dbname="grade_mthad.exp_date" )
column=(type=char(1) update=yes updatewhereclause=yes name=type dbname="grade_mthad.type" initial=" " values="Fixed F/Percentage P/Not Applicable /" ) column=(type=char(1) update=yes updatewhereclause=yes name=type dbname="grade_mthad.type" initial="F" values="Fixed F/Percentage P/Not Applicable /" )
column=(type=char(1) update=yes updatewhereclause=yes name=prop_yn dbname="grade_mthad.prop_yn" initial="Y" ) column=(type=char(1) update=yes updatewhereclause=yes name=prop_yn dbname="grade_mthad.prop_yn" initial="Y" )
column=(type=datetime update=yes updatewhereclause=yes name=chg_date dbname="grade_mthad.chg_date" ) column=(type=datetime update=yes updatewhereclause=yes name=chg_date dbname="grade_mthad.chg_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=chg_user dbname="grade_mthad.chg_user" ) column=(type=char(10) update=yes updatewhereclause=yes name=chg_user dbname="grade_mthad.chg_user" )
...@@ -23,7 +23,8 @@ table(column=(type=char(5) update=yes updatewhereclause=yes key=yes name=pay_tab ...@@ -23,7 +23,8 @@ table(column=(type=char(5) update=yes updatewhereclause=yes key=yes name=pay_tab
column=(type=decimal(3) update=yes updatewhereclause=yes name=min_amt dbname="grade_mthad.min_amt" initial="0" ) column=(type=decimal(3) update=yes updatewhereclause=yes name=min_amt dbname="grade_mthad.min_amt" initial="0" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=max_amt dbname="grade_mthad.max_amt" initial="0" ) column=(type=decimal(3) update=yes updatewhereclause=yes name=max_amt dbname="grade_mthad.max_amt" initial="0" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"grade_mthad~" ) TABLE(NAME=~"allwdedn~" ) COLUMN(NAME=~"grade_mthad.pay_table~") COLUMN(NAME=~"grade_mthad.grade_code~") COLUMN(NAME=~"grade_mthad.month_code~") COLUMN(NAME=~"grade_mthad.ad_code~") COLUMN(NAME=~"grade_mthad.eff_date~") COLUMN(NAME=~"grade_mthad.exp_date~") COLUMN(NAME=~"grade_mthad.type~") COLUMN(NAME=~"grade_mthad.prop_yn~") COLUMN(NAME=~"grade_mthad.chg_date~") COLUMN(NAME=~"grade_mthad.chg_user~") COLUMN(NAME=~"grade_mthad.chg_term~") COLUMN(NAME=~"allwdedn.descr~") COLUMN(NAME=~"grade_mthad.amount~") COLUMN(NAME=~"grade_mthad.min_basic~") COLUMN(NAME=~"grade_mthad.max_basic~") COLUMN(NAME=~"grade_mthad.min_amt~") COLUMN(NAME=~"grade_mthad.max_amt~") JOIN (LEFT=~"grade_mthad.ad_code~" OP =~"=~"RIGHT=~"allwdedn.ad_code~" )WHERE( EXP1 =~"grade_mthad.pay_table~" OP =~"=~" EXP2 =~":mPayTable~" LOGIC =~"and~" ) WHERE( EXP1 =~"grade_mthad.grade_code~" OP =~"=~" EXP2 =~":mGradeCode~" LOGIC =~"and~" ) WHERE( EXP1 =~"grade_mthad.month_code~" OP =~"=~" EXP2 =~":mMonthCode~" LOGIC =~"and~" ) WHERE( EXP1 =~"grade_mthad.ad_code~" OP =~"=~" EXP2 =~":mAdCode~" LOGIC =~"and~" ) WHERE( EXP1 =~"grade_mthad.eff_date~" OP =~"=~" EXP2 =~":meff_date~" ) ) ARG(NAME = ~"mPayTable~" TYPE = string) ARG(NAME = ~"mGradeCode~" TYPE = string) ARG(NAME = ~"mMonthCode~" TYPE = string) ARG(NAME = ~"mAdCode~" TYPE = string) ARG(NAME = ~"meff_date~" TYPE = datetime) " update="GRADE_MTHAD" updatewhere=0 updatekeyinplace=no arguments=(("mPayTable", string),("mGradeCode", string),("mMonthCode", string),("mAdCode", string),("meff_date", datetime)) ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"grade_mthad~" ) TABLE(NAME=~"allwdedn~" ) COLUMN(NAME=~"grade_mthad.pay_table~") COLUMN(NAME=~"grade_mthad.grade_code~") COLUMN(NAME=~"grade_mthad.month_code~") COLUMN(NAME=~"grade_mthad.ad_code~") COLUMN(NAME=~"grade_mthad.eff_date~") COLUMN(NAME=~"grade_mthad.exp_date~") COLUMN(NAME=~"grade_mthad.type~") COLUMN(NAME=~"grade_mthad.prop_yn~") COLUMN(NAME=~"grade_mthad.chg_date~") COLUMN(NAME=~"grade_mthad.chg_user~") COLUMN(NAME=~"grade_mthad.chg_term~") COLUMN(NAME=~"allwdedn.descr~") COLUMN(NAME=~"grade_mthad.amount~") COLUMN(NAME=~"grade_mthad.min_basic~") COLUMN(NAME=~"grade_mthad.max_basic~") COLUMN(NAME=~"grade_mthad.min_amt~") COLUMN(NAME=~"grade_mthad.max_amt~") JOIN (LEFT=~"grade_mthad.ad_code~" OP =~"=~"RIGHT=~"allwdedn.ad_code~" )WHERE( EXP1 =~"grade_mthad.pay_table~" OP =~"=~" EXP2 =~":mPayTable~" LOGIC =~"and~" ) WHERE( EXP1 =~"grade_mthad.grade_code~" OP =~"=~" EXP2 =~":mGradeCode~" LOGIC =~"and~" ) WHERE( EXP1 =~"grade_mthad.month_code~" OP =~"=~" EXP2 =~":mMonthCode~" LOGIC =~"and~" ) WHERE( EXP1 =~"grade_mthad.ad_code~" OP =~"=~" EXP2 =~":mAdCode~" LOGIC =~"and~" ) WHERE( EXP1 =~"grade_mthad.eff_date~" OP =~"=~" EXP2 =~":meff_date~" ) ) ARG(NAME = ~"mPayTable~" TYPE = string) ARG(NAME = ~"mGradeCode~" TYPE = string) ARG(NAME = ~"mMonthCode~" TYPE = string) ARG(NAME = ~"mAdCode~" TYPE = string) ARG(NAME = ~"meff_date~" TYPE = datetime) " update="GRADE_MTHAD" updatewhere=0 updatekeyinplace=no arguments=(("mPayTable", string),("mGradeCode", string),("mMonthCode", string),("mAdCode", string),("meff_date", datetime)) )
groupbox(band=detail text="Basic"border="2" color="0" x="20" y="9" height="281" width="511" name=gb_1 visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) groupbox(band=detail text="Others"border="2" color="0" x="17" y="253" height="100" width="514" name=gb_2 visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
groupbox(band=detail text="Basic"border="2" color="0" x="20" y="9" height="232" width="511" name=gb_1 visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=4 alignment="0" tabsequence=10 border="5" color="0" x="174" y="40" height="16" width="50" format="[general]" html.valueishtml="0" name=ad_code tag="Allowance / Deduction code." visible="1" edit.limit=5 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=4 alignment="0" tabsequence=10 border="5" color="0" x="174" y="40" height="16" width="50" format="[general]" html.valueishtml="0" name=ad_code tag="Allowance / Deduction code." visible="1" edit.limit=5 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=12 alignment="0" tabsequence=32766 border="5" color="255" x="227" y="40" height="16" width="271" format="[general]" html.valueishtml="0" name=allwdedn_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" ) column(band=detail id=12 alignment="0" tabsequence=32766 border="5" color="255" x="227" y="40" height="16" width="271" format="[general]" html.valueishtml="0" name=allwdedn_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="A/D code :" border="0" color="0" x="60" y="40" height="16" width="110" 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="79741120" ) text(band=detail alignment="1" text="A/D code :" border="0" color="0" x="60" y="40" height="16" width="110" 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="79741120" )
...@@ -49,14 +50,14 @@ text(band=detail alignment="1" text="Grade :" border="0" color="0" x="60" y="197 ...@@ -49,14 +50,14 @@ text(band=detail alignment="1" text="Grade :" border="0" color="0" x="60" y="197
column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="0" x="174" y="197" height="16" width="95" format="[general]" html.valueishtml="0" name=grade_code tag="Grade code." visible="1~t0" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="0" x="174" y="197" height="16" width="95" format="[general]" html.valueishtml="0" name=grade_code tag="Grade code." visible="1~t0" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Month :" border="0" color="0" x="302" y="197" height="16" width="97" html.valueishtml="0" name=month_code_t visible="1~t0" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" ) text(band=detail alignment="1" text="Month :" border="0" color="0" x="302" y="197" height="16" width="97" html.valueishtml="0" name=month_code_t visible="1~t0" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=3 alignment="0" tabsequence=32766 border="5" color="0" x="404" y="197" height="16" width="94" format="[general]" html.valueishtml="0" name=month_code tag="Month " visible="1~t0" edit.name="months" ddlb.limit=2 ddlb.allowedit=no ddlb.case=any ddlb.vscrollbar=yes ddlb.useasborder=yes ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=3 alignment="0" tabsequence=32766 border="5" color="0" x="404" y="197" height="16" width="94" format="[general]" html.valueishtml="0" name=month_code tag="Month " visible="1~t0" edit.name="months" ddlb.limit=2 ddlb.allowedit=no ddlb.case=any ddlb.vscrollbar=yes ddlb.useasborder=yes ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Change Date :" border="0" color="0" x="60" y="223" height="16" width="110" html.valueishtml="0" name=chg_date_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=9 alignment="0" tabsequence=32766 border="5" color="0" x="174" y="223" height="16" width="95" format="[shortdate] [time]" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Change User :" border="0" color="0" x="302" y="223" height="16" width="97" html.valueishtml="0" name=chg_user_t visible="1~t0" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=10 alignment="0" tabsequence=32766 border="5" color="0" x="403" y="223" height="16" width="95" format="[general]" html.valueishtml="0" name=chg_user visible="1~t0" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Change Term :" border="0" color="0" x="60" y="249" height="16" width="110" html.valueishtml="0" name=chg_term_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="5" color="0" x="174" y="249" height="16" width="95" 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="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Min. Base Amount :" border="0" color="0" x="52" y="119" height="16" width="118" html.valueishtml="0" name=min_basic_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" ) text(band=detail alignment="1" text="Min. Base Amount :" border="0" color="0" x="52" y="119" height="16" width="118" html.valueishtml="0" name=min_basic_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Amount :" border="0" color="0" x="60" y="93" height="16" width="110" html.valueishtml="0" name=amount_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" ) text(band=detail alignment="1" text="Amount :" border="0" color="0" x="60" y="93" height="16" width="110" html.valueishtml="0" name=amount_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=9 alignment="0" tabsequence=32766 border="5" color="0" x="173" y="282" height="16" width="95" format="[shortdate] [time]" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Change Date :" border="0" color="0" x="59" y="282" height="16" width="110" html.valueishtml="0" name=chg_date_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Change Term :" border="0" color="0" x="59" y="308" height="16" width="110" html.valueishtml="0" name=chg_term_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="5" color="0" x="173" y="308" height="16" width="95" 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="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Change User :" border="0" color="0" x="301" y="282" height="16" width="97" html.valueishtml="0" name=chg_user_t visible="1~t0" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=10 alignment="0" tabsequence=32766 border="5" color="0" x="402" y="282" height="16" width="95" format="[general]" html.valueishtml="0" name=chg_user visible="1~t0" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" ) htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" ) 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 ) export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
......
...@@ -141,31 +141,67 @@ public class GradeMthadIC extends ValidatorEJB implements GradeMthadLocal, Grade ...@@ -141,31 +141,67 @@ public class GradeMthadIC extends ValidatorEJB implements GradeMthadLocal, Grade
if ("ad_code".equalsIgnoreCase(childNodeName)) if ("ad_code".equalsIgnoreCase(childNodeName))
{ {
adCode = checkNull(genericUtility.getColumnValue("ad_code", dom)); adCode = checkNull(genericUtility.getColumnValue("ad_code", dom));
cnt = 0;
sql = "select count(1) as cnt from allwdedn where ad_code =?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, adCode);
rs = pstmt.executeQuery();
if (rs.next()) if (adCode == null || adCode.trim().length() == 0)
{
cnt = rs.getInt("cnt");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{ {
errList.add("VMADC1"); errList.add("VMADC1");
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
else
{
cnt = 0;
sql = "select count(1) 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)
{
errList.add("VMADC5");
errFields.add(childNodeName.toLowerCase());
}
else
{
sql = "select count(*) as cnt from grade_mthad 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 && !"E".equalsIgnoreCase(editFlag))
{
errList.add("VMADC4");
errFields.add(childNodeName.toLowerCase());
}
}
}
} }
else if ("eff_date".equalsIgnoreCase(childNodeName)) else if ("eff_date".equalsIgnoreCase(childNodeName))
...@@ -185,7 +221,7 @@ public class GradeMthadIC extends ValidatorEJB implements GradeMthadLocal, Grade ...@@ -185,7 +221,7 @@ public class GradeMthadIC extends ValidatorEJB implements GradeMthadLocal, Grade
if(expDateStr == null || expDateStr.trim().length() == 0) if(expDateStr == null || expDateStr.trim().length() == 0)
{ {
errList.add("VTDATE11"); errList.add("VTDATE19");
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
if(effDateStr != null && expDateStr != null) if(effDateStr != null && expDateStr != null)
...@@ -363,14 +399,10 @@ public class GradeMthadIC extends ValidatorEJB implements GradeMthadLocal, Grade ...@@ -363,14 +399,10 @@ public class GradeMthadIC extends ValidatorEJB implements GradeMthadLocal, Grade
monthCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "month_code"); monthCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "month_code");
valueXmlString.append("<pay_table ><![CDATA[").append(payTable).append("]]></pay_table>\r\n"); valueXmlString.append("<pay_table ><![CDATA[").append(payTable).append("]]></pay_table>\r\n");
admCommon.setNodeValue(dom, "pay_table", payTable);
valueXmlString.append("<grade_code ><![CDATA[").append(gradeCode).append("]]></grade_code>\r\n"); valueXmlString.append("<grade_code ><![CDATA[").append(gradeCode).append("]]></grade_code>\r\n");
admCommon.setNodeValue(dom, "grade_code", gradeCode);
valueXmlString.append("<month_code ><![CDATA[").append(monthCode).append("]]></month_code>\r\n"); valueXmlString.append("<month_code ><![CDATA[").append(monthCode).append("]]></month_code>\r\n");
admCommon.setNodeValue(dom, "month_code", monthCode);
adEffDate = admCommon.getEnv("999999", "AD_EFFDATE", conn); adEffDate = admCommon.getEnv("999999", "AD_EFFDATE", conn);
adEffDate = genericUtility.getValidDateString(adEffDate,"dd-MM-yy", genericUtility.getApplDateFormat()); adEffDate = genericUtility.getValidDateString(adEffDate,"dd-MM-yy", genericUtility.getApplDateFormat());
...@@ -380,12 +412,9 @@ public class GradeMthadIC extends ValidatorEJB implements GradeMthadLocal, Grade ...@@ -380,12 +412,9 @@ public class GradeMthadIC extends ValidatorEJB implements GradeMthadLocal, Grade
adExpDate = genericUtility.getValidDateString(adExpDate, "dd-MM-yy", genericUtility.getApplDateFormat()); adExpDate = genericUtility.getValidDateString(adExpDate, "dd-MM-yy", genericUtility.getApplDateFormat());
valueXmlString.append("<eff_date ><![CDATA[").append(adEffDate).append("]]></eff_date>\r\n"); valueXmlString.append("<eff_date ><![CDATA[").append(adEffDate).append("]]></eff_date>\r\n");
admCommon.setNodeValue(dom, "eff_date", adEffDate);
valueXmlString.append("<exp_date ><![CDATA[").append(adExpDate).append("]]></exp_date>\r\n"); valueXmlString.append("<exp_date ><![CDATA[").append(adExpDate).append("]]></exp_date>\r\n");
admCommon.setNodeValue(dom, "exp_date", adExpDate);
if(monthCode == null && monthCode.trim().length() > 0) if(monthCode != null && monthCode.trim().length() > 0)
{ {
valueXmlString.append("<month_code protect=\"1\"><![CDATA[").append(monthCode).append("]]></month_code>\r\n"); valueXmlString.append("<month_code protect=\"1\"><![CDATA[").append(monthCode).append("]]></month_code>\r\n");
} }
...@@ -394,7 +423,7 @@ public class GradeMthadIC extends ValidatorEJB implements GradeMthadLocal, Grade ...@@ -394,7 +423,7 @@ public class GradeMthadIC extends ValidatorEJB implements GradeMthadLocal, Grade
valueXmlString.append("<month_code protect=\"0\"><![CDATA[").append(monthCode).append("]]></month_code>\r\n"); valueXmlString.append("<month_code protect=\"0\"><![CDATA[").append(monthCode).append("]]></month_code>\r\n");
} }
if(gradeCode == null && gradeCode.trim().length() > 0) if(gradeCode != null && gradeCode.trim().length() > 0)
{ {
valueXmlString.append("<grade_code protect=\"1\"><![CDATA[").append(gradeCode).append("]]></grade_code>\r\n"); valueXmlString.append("<grade_code protect=\"1\"><![CDATA[").append(gradeCode).append("]]></grade_code>\r\n");
} }
...@@ -431,10 +460,8 @@ public class GradeMthadIC extends ValidatorEJB implements GradeMthadLocal, Grade ...@@ -431,10 +460,8 @@ public class GradeMthadIC extends ValidatorEJB implements GradeMthadLocal, Grade
pstmt = null; pstmt = null;
} }
valueXmlString.append("<allwdedn_descr ><![CDATA[").append(descr).append("]]></allwdedn_descr>\r\n"); valueXmlString.append("<allwdedn_descr ><![CDATA[").append(descr).append("]]></allwdedn_descr>\r\n");
admCommon.setNodeValue(dom, "allwdedn_descr", descr);
valueXmlString.append("<prop_yn ><![CDATA[").append(propYn).append("]]></prop_yn>\r\n"); valueXmlString.append("<prop_yn ><![CDATA[").append(propYn).append("]]></prop_yn>\r\n");
admCommon.setNodeValue(dom, "prop_yn", propYn);
} }
} }
valueXmlString.append("</Detail1>"); valueXmlString.append("</Detail1>");
......
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