Commit 08e30816 authored by dpingle's avatar dpingle

* Updated component on [30/10/19]

grade_ad21.xml
w_grade_ad.sql
d_grade_allwdedn_brow.srd
d_grade_allwdedn_edit.srd
GradeAdIC.java


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@210693 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 49606690
......@@ -15,8 +15,6 @@ Insert into ITM2MENU (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NA
----------------------------------------------------- OBJ_ACTIONS
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA) values ('grade_ad',1,'A','a','a','Adding New','Add','add.gif','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA) values ('grade_ad',2,'E','a','a','Editing Existing Record','Edit','edit.gif','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_ACTIONS
(OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA) values ('grade_ad',3,'D','a','a','Deleting','Delete','delete.gif','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_ACTION
(OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA) values ('grade_ad',21,'Q','1','audit_trail','View Audit Trail','View Audit','menu.bmp','1','1','1','U',null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_ACTIONS
......@@ -92,20 +90,39 @@ Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,E
------------------------------------------------------[23/10/19]Start
update transetup set REF_SER ='G-AD' where TRAN_WINDOW = 'w_grade_ad';
------------------------------------------------------[30/10/19]Start
update obj_forms set disp_metadata=
'<html>
<span style="white-space: normal !important; word-break: break-word; "> <b>{ad_code}</b> , Grade Code <b>{grade_code}</b> <br/>
<span style="white-space: normal !important; word-break: break-word; "> {sh_descr} <b>{ad_code}</b> , Grade Code <b>{grade_code}</b> <br/>
Pay Table <b>{pay_table}</b> , Amount <b>{amount}</b>
</span>
<br/> <span style="float:right;"></span>
</html>' where win_name='w_grade_ad';
update itm2menu set ICON_PATH='GradewisePaystructure.png' , CLOSE_ICON='GradewisePaystructurewht.png' where WIN_NAME='w_grade_ad';
------------------------------------------------------[23/10/19]End
update obj_actions set IMAGE='ibase/resource/objaction/add.svg', DISPLAY_MODE=0 where OBJ_NAME='grade_ad' and LINE_NO=1;
update obj_actions set IMAGE='ibase/resource/objaction/edit.svg', DISPLAY_MODE=0 where OBJ_NAME='grade_ad' and LINE_NO=2;
update obj_actions set IMAGE='ibase/resource/objaction/Audit-trail.svg', DISPLAY_MODE=1 where OBJ_NAME='grade_ad' and LINE_NO=21;
update obj_actions set IMAGE='ibase/resource/objaction/exprtExl.svg',DESCRIPTION='Export To Excel',SERVICE_CODE='a',INTERACTIVE='a',RIGHTS_CHAR='B',TITLE='Export2XLS',ACTION_TYPE='S', DISPLAY_MODE=1 where OBJ_NAME='grade_ad' and LINE_NO=22;
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_AD','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);
Update transetup set TRAN_ID_COL='PAY_TABLE, GRADE_CODE, AD_CODE, EFF_DATE' ,REF_SER ='G-AD' WHERE TRAN_WINDOW='w_grade_ad';
update OBJ_FORMS set THUMB_ALT_COL = 'allwdedn_descr', THUMB_IMAGE_COL= 'ad_code', THUMB_OBJ = 'AdCodeImages' where WIN_NAME = 'w_grade_ad';
update TRANSETUP set THUMB_ALT_COL = 'allwdedn_descr', THUMB_IMAGE_COL= 'ad_code', THUMB_OBJ = 'AdCodeImages' where TRAN_WINDOW = 'w_grade_ad';
UPDATE OBJ_FORMS SET PARENT_KEY_COL ='PAY_TABLE,GRADE_CODE,AD_CODE' WHERE WIN_NAME='w_grade_ad';
------------------------------------------------------[30/10/19]End
......@@ -39,7 +39,7 @@
<color>536870912</color>
</Footer>
<Detail>
<height>388</height>
<height>456</height>
<color>536870912</color>
</Detail>
<TableDefinition>
......
$PBExportHeader$d_grade_allwdedn_brow.srd
$PBExportComments$Gradewise addition ded. setup browse
release 9;
datawindow(units=1 timer_interval=0 color=79741120 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
datawindow(units=1 timer_interval=0 color=79741120 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=22 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
......@@ -23,37 +23,38 @@ table(column=(type=char(5) updatewhereclause=yes key=yes name=pay_table dbname="
column=(type=char(15) updatewhereclause=yes name=chg_term dbname="grade_ad.chg_term" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"grade_ad~" ) TABLE(NAME=~"allwdedn~" ) COLUMN(NAME=~"grade_ad.pay_table~") COLUMN(NAME=~"grade_ad.grade_code~") COLUMN(NAME=~"grade_ad.ad_code~") COLUMN(NAME=~"grade_ad.eff_date~") COLUMN(NAME=~"grade_ad.type~") COLUMN(NAME=~"grade_ad.amount~") COLUMN(NAME=~"grade_ad.min_basic~") COLUMN(NAME=~"grade_ad.max_basic~") COLUMN(NAME=~"grade_ad.min_amt~") COLUMN(NAME=~"grade_ad.max_amt~") COLUMN(NAME=~"grade_ad.prop_yn~") COLUMN(NAME=~"allwdedn.sh_descr~") COLUMN(NAME=~"grade_ad.chg_date~") COLUMN(NAME=~"grade_ad.chg_user~") COLUMN(NAME=~"grade_ad.chg_term~") JOIN (LEFT=~"grade_ad.ad_code~" OP =~"=~"RIGHT=~"allwdedn.ad_code~" )WHERE( EXP1 =~"grade_ad.pay_table~" OP =~"=~" EXP2 =~":pay_table~" LOGIC =~"and~" ) WHERE( EXP1 =~"grade_ad.grade_code~" OP =~"=~" EXP2 =~":grade_code~" ) ) ARG(NAME = ~"pay_table~" TYPE = string) ARG(NAME = ~"grade_code~" TYPE = string) " update="grade_ad" updatewhere=0 updatekeyinplace=no arguments=(("pay_table", string),("grade_code", string)) )
text(band=header alignment="2" text="A/D Code" border="6" color="0" x="2" y="3" height="16" width="54" 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=header alignment="0" text="Description" border="6" color="0" x="59" y="3" height="16" width="109" html.valueishtml="0" name=sh_descr_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Eff Date" border="6" color="0" x="171" y="3" height="16" width="47" html.valueishtml="0" name=eff_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=header alignment="2" text="Type" border="6" color="0" x="221" y="3" height="16" width="28" html.valueishtml="0" name=type_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Amount" border="6" color="0" x="252" y="3" height="16" width="95" 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=header alignment="2" text="Min Basic" border="6" color="0" x="350" y="3" height="16" width="95" 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=header alignment="2" text="Max Basic" border="6" color="0" x="448" y="3" height="16" width="95" html.valueishtml="0" name=max_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=header alignment="2" text="Min Amt" border="6" color="0" x="546" y="3" height="16" width="94" html.valueishtml="0" name=min_amt_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Max Amt" border="6" color="0" x="643" y="3" height="16" width="95" html.valueishtml="0" name=max_amt_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Prop." border="6" color="0" x="741" y="3" height="16" width="28" html.valueishtml="0" name=prop_yn_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Grade" border="6" color="0" x="773" y="3" height="16" width="31" html.valueishtml="0" name=grade_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Pay tbl" border="6" color="0" x="807" y="3" height="16" width="36" html.valueishtml="0" name=pay_table_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Chg Date" border="6" color="0" x="846" y="3" height="16" width="55" 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=header alignment="2" text="Chg User" border="6" color="0" x="904" y="3" height="16" width="55" html.valueishtml="0" name=chg_user_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Chg Term" border="6" color="0" x="962" y="3" height="16" width="55" 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=12 alignment="0" tabsequence=20 border="5" color="0" x="59" y="1" height="18" width="109" format="[general]" html.valueishtml="0" name=sh_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="16777215" )
text(band=header alignment="0" text="Description" border="6" color="0" x="58" y="3" height="16" width="109" html.valueishtml="0" name=sh_descr_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Eff Date" border="6" color="0" x="169" y="3" height="16" width="47" html.valueishtml="0" name=eff_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=header alignment="2" text="Type" border="6" color="0" x="218" y="3" height="16" width="28" html.valueishtml="0" name=type_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Amount" border="6" color="0" x="248" y="3" height="16" width="95" 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=header alignment="2" text="Min Basic" border="6" color="0" x="345" y="3" height="16" width="95" 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=header alignment="2" text="Max Basic" border="6" color="0" x="442" y="3" height="16" width="95" html.valueishtml="0" name=max_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=header alignment="2" text="Min Amt" border="6" color="0" x="539" y="3" height="16" width="94" html.valueishtml="0" name=min_amt_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Max Amt" border="6" color="0" x="635" y="3" height="16" width="95" html.valueishtml="0" name=max_amt_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Prop." border="6" color="0" x="732" y="3" height="16" width="28" html.valueishtml="0" name=prop_yn_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Grade" border="6" color="0" x="762" y="3" height="16" width="31" html.valueishtml="0" name=grade_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Pay tbl" border="6" color="0" x="795" y="3" height="16" width="36" html.valueishtml="0" name=pay_table_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Chg Date" border="6" color="0" x="833" y="3" height="16" width="55" 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=header alignment="2" text="Chg User" border="6" color="0" x="890" y="3" height="16" width="55" html.valueishtml="0" name=chg_user_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Chg Term" border="6" color="0" x="947" y="3" height="16" width="55" 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=12 alignment="0" tabsequence=20 border="5" color="0" x="58" y="1" height="18" width="109" format="[general]" html.valueishtml="0" name=sh_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="16777215" )
column(band=detail id=3 alignment="0" tabsequence=10 border="5" color="0" x="2" y="1" height="18" width="54" format="[general]" html.valueishtml="0" name=ad_code visible="1" edit.limit=5 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=4 alignment="0" tabsequence=30 border="5" color="0" x="171" y="1" height="18" width="47" format="[shortdate] [time]" html.valueishtml="0" name=eff_date visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=40 border="5" color="0" x="221" y="1" height="18" width="28" format="[general]" html.valueishtml="0" name=type visible="1" edit.limit=1 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=6 alignment="1" tabsequence=50 border="5" color="0" x="252" y="1" height="18" width="95" format="0.00" html.valueishtml="0" name=amount visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="1" tabsequence=60 border="5" color="0" x="350" y="1" height="18" width="95" format="0.00" html.valueishtml="0" name=min_basic visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="1" tabsequence=70 border="5" color="0" x="448" y="1" height="18" width="95" format="0.00" html.valueishtml="0" name=max_basic visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=9 alignment="1" tabsequence=80 border="5" color="0" x="546" y="1" height="18" width="94" format="0.00" html.valueishtml="0" name=min_amt visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=10 alignment="1" tabsequence=90 border="5" color="0" x="643" y="1" height="18" width="95" format="0.00" html.valueishtml="0" name=max_amt visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=11 alignment="0" tabsequence=100 border="5" color="0" x="741" y="1" height="18" width="28" format="[general]" html.valueishtml="0" name=prop_yn visible="1" edit.limit=1 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=110 border="5" color="0" x="773" y="1" height="18" width="31" format="[general]" html.valueishtml="0" name=grade_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=1 alignment="0" tabsequence=120 border="5" color="0" x="808" y="1" height="18" width="36" format="[general]" html.valueishtml="0" name=pay_table visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=13 alignment="0" tabsequence=130 border="5" color="0" x="846" y="1" height="18" width="55" format="[shortdate] [time]" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=14 alignment="0" tabsequence=140 border="5" color="0" x="905" y="1" height="18" width="55" format="[general]" html.valueishtml="0" name=chg_user visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=15 alignment="0" tabsequence=150 border="5" color="0" x="963" y="1" height="18" width="55" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=4 alignment="0" tabsequence=30 border="5" color="0" x="169" y="1" height="18" width="47" format="[shortdate] [time]" html.valueishtml="0" name=eff_date visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=40 border="5" color="0" x="218" y="1" height="18" width="28" format="[general]" html.valueishtml="0" name=type visible="1" edit.limit=1 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=6 alignment="1" tabsequence=50 border="5" color="0" x="248" y="1" height="18" width="95" format="0.00" html.valueishtml="0" name=amount visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="1" tabsequence=60 border="5" color="0" x="345" y="1" height="18" width="95" format="0.00" html.valueishtml="0" name=min_basic visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="1" tabsequence=70 border="5" color="0" x="442" y="1" height="18" width="95" format="0.00" html.valueishtml="0" name=max_basic visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=9 alignment="1" tabsequence=80 border="5" color="0" x="539" y="1" height="18" width="94" format="0.00" html.valueishtml="0" name=min_amt visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=10 alignment="1" tabsequence=90 border="5" color="0" x="635" y="1" height="18" width="95" format="0.00" html.valueishtml="0" name=max_amt visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=11 alignment="0" tabsequence=100 border="5" color="0" x="732" y="1" height="18" width="28" format="[general]" html.valueishtml="0" name=prop_yn visible="1" edit.limit=1 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=110 border="5" color="0" x="762" y="1" height="18" width="31" format="[general]" html.valueishtml="0" name=grade_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=1 alignment="0" tabsequence=120 border="5" color="0" x="795" y="1" height="18" width="36" format="[general]" html.valueishtml="0" name=pay_table visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=13 alignment="0" tabsequence=130 border="5" color="0" x="833" y="1" height="18" width="55" format="[shortdate] [time]" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=14 alignment="0" tabsequence=140 border="5" color="0" x="890" y="1" height="18" width="55" format="[general]" html.valueishtml="0" name=chg_user visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=15 alignment="0" tabsequence=150 border="5" color="0" x="947" y="1" height="18" width="55" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
......@@ -4,7 +4,7 @@ release 9;
datawindow(units=1 timer_interval=0 color=79741120 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=68 color="536870912" )
footer(height=58 color="536870912" )
detail(height=388 color="536870912" )
detail(height=456 color="536870912" )
table(column=(type=char(5) update=yes updatewhereclause=yes key=yes name=pay_table dbname="grade_ad.pay_table" )
column=(type=char(5) update=yes updatewhereclause=yes key=yes name=grade_code dbname="grade_ad.grade_code" )
column=(type=char(5) update=yes updatewhereclause=yes key=yes name=ad_code dbname="grade_ad.ad_code" )
......
......@@ -77,6 +77,8 @@ public class GradeAdIC extends ValidatorEJB implements GradeAdLocal,GradeAdRemot
String sql = "";
String effDateStr = "";
String expDateStr = "";
String gradeCode = "";
String payTable = "";
int currentFormNo = 0;
int noOfChilds = 0;
int cnt = 0;
......@@ -97,7 +99,7 @@ public class GradeAdIC extends ValidatorEJB implements GradeAdLocal,GradeAdRemot
conn = getConnection();
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
if (objContext != null && objContext.trim().length() > 0)
{
currentFormNo = Integer.parseInt(objContext);
......@@ -109,38 +111,63 @@ public class GradeAdIC extends ValidatorEJB implements GradeAdLocal,GradeAdRemot
System.out.println("noOfChilds--->>>" + noOfChilds);
for (counter = 0; counter < noOfChilds; counter++)
switch (currentFormNo)
{
childNode = childList.item(counter);
childNodeName = childNode.getNodeName();
System.out.println("childNodeName>>>>>" + childNodeName);
System.out.println("childNode>>>>>>" + childNode);
System.out.println("counter>>>" + counter);
switch (currentFormNo)
case 1:
NodeList parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
NodeList childNodeList = parentNode.getChildNodes();
int childNodeListLength = childNodeList.getLength();
System.out.println("child Node List Length::::::" + childNodeListLength);
for (int ctr = 0; ctr < childNodeListLength; ctr++)
{
case 1:
NodeList parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
NodeList childNodeList = parentNode.getChildNodes();
int childNodeListLength = childNodeList.getLength();
System.out.println("child Node List Length::::::" + childNodeListLength);
for (int ctr = 0; ctr < childNodeListLength; ctr++)
childNode = childNodeList.item(ctr);
System.out.println("childNode" + childNode);
if (childNode.getNodeType() != Node.ELEMENT_NODE)
{
continue;
}
childNodeName = childNode.getNodeName();
System.out.println("childNodeName.editFlag." + childNodeName + "" + editFlag);
System.out.println("@V@ Edit flag :- [" + editFlag + "");
if ("ad_code".equalsIgnoreCase(childNodeName))
{
childNode = childNodeList.item(ctr);
System.out.println("childNode" + childNode);
if (childNode.getNodeType() != Node.ELEMENT_NODE)
adCode = checkNull(genericUtility.getColumnValue("ad_code", dom));
gradeCode = checkNull(genericUtility.getColumnValue("grade_code", dom));
payTable = checkNull(genericUtility.getColumnValue("pay_table", dom));
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)
{
continue;
errList.add("VMADC1");
errFields.add(childNodeName.toLowerCase());
}
childNodeName = childNode.getNodeName();
System.out.println("childNodeName.editFlag." + childNodeName + "" + editFlag);
System.out.println("@V@ Edit flag :- [" + editFlag + "");
if ("ad_code".equalsIgnoreCase(childNodeName))
else
{
adCode = checkNull(genericUtility.getColumnValue("ad_code", dom));
sql=" select count(*) as cnt from allwdedn where ad_code = ?";
sql = "select count(*) as cnt from grade_ad where ad_code = ? and grade_code=? and pay_table = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, adCode);
pstmt.setString(2, gradeCode);
pstmt.setString(3, payTable);
rs = pstmt.executeQuery();
if (rs.next())
......@@ -157,49 +184,49 @@ public class GradeAdIC extends ValidatorEJB implements GradeAdLocal,GradeAdRemot
pstmt.close();
pstmt = null;
}
if(cnt == 0)
if(cnt > 0 && !"E".equalsIgnoreCase(editFlag))
{
errList.add("VMADC1");
errList.add("VMADC4");
errFields.add(childNodeName.toLowerCase());
}
}
else if ("eff_date".equalsIgnoreCase(childNodeName))
}
else if ("eff_date".equalsIgnoreCase(childNodeName))
{
effDateStr = checkNull(genericUtility.getColumnValue("eff_date", dom));
if(effDateStr == null || effDateStr.trim().length() == 0)
{
effDateStr = checkNull(genericUtility.getColumnValue("eff_date", dom));
if(effDateStr == null || effDateStr.trim().length() == 0)
{
errList.add("VTDATE11");
errFields.add(childNodeName.toLowerCase());
}
errList.add("VTDATE11");
errFields.add(childNodeName.toLowerCase());
}
else if ("exp_date".equalsIgnoreCase(childNodeName))
}
else if ("exp_date".equalsIgnoreCase(childNodeName))
{
effDateStr = checkNull(genericUtility.getColumnValue("eff_date", dom));
expDateStr = checkNull(genericUtility.getColumnValue("exp_date", dom));
if(expDateStr == null || expDateStr.trim().length() == 0)
{
effDateStr = checkNull(genericUtility.getColumnValue("eff_date", dom));
expDateStr = checkNull(genericUtility.getColumnValue("exp_date", dom));
if(expDateStr == null || expDateStr.trim().length() == 0)
{
errList.add("VTDATE11");
errFields.add(childNodeName.toLowerCase());
}
if(effDateStr != null && expDateStr != null)
errList.add("VTDATE11");
errFields.add(childNodeName.toLowerCase());
}
if(effDateStr != null && expDateStr != null)
{
if(effDateStr.trim().length() > 0 && expDateStr.trim().length() > 0)
{
if(effDateStr.trim().length() > 0 && expDateStr.trim().length() > 0)
Date effDate = sdf.parse( effDateStr );
Date expDate = sdf.parse( expDateStr );
if(effDate.after(expDate))
{
Date effDate = sdf.parse( effDateStr );
Date expDate = sdf.parse( expDateStr );
if(effDate.after(expDate))
{
errList.add("VMEXPDATE");
errFields.add(childNodeName.toLowerCase());
}
errList.add("VMEXPDATE");
errFields.add(childNodeName.toLowerCase());
}
}
}
}
break;
}
break;
}
System.out.println("errStringXml.toString()---1= "+errStringXml.toString());
if (errList != null && errList.size() > 0)
{
......@@ -319,8 +346,8 @@ public class GradeAdIC extends ValidatorEJB implements GradeAdLocal,GradeAdRemot
int currentFormNo = 0;
String payTable = "";
String gradeCode= "";
String lsVarValue = "";
String lsVarValues = "";
String effDateStr = "";
String expDateStr = "";
String adCode = "";
String sql = "";
String mdescr = "";
......@@ -342,8 +369,8 @@ public class GradeAdIC extends ValidatorEJB implements GradeAdLocal,GradeAdRemot
switch (currentFormNo)
{
case 1:
{
case 1:
{
System.out.println("=============================Case1=========================");
valueXmlString.append("<Detail1>\r\n");
if ("itm_default".equalsIgnoreCase(currentColumn))
......@@ -354,17 +381,28 @@ public class GradeAdIC extends ValidatorEJB implements GradeAdLocal,GradeAdRemot
valueXmlString.append("<pay_table ><![CDATA[").append(payTable).append("]]></pay_table>\r\n");
valueXmlString.append("<grade_code ><![CDATA[").append(gradeCode).append("]]></grade_code>\r\n");
lsVarValue = admCommon.getEnv("999999", "AD_EFFDATE", conn);
System.out.println("lsVarValue==["+lsVarValue+"]");
System.out.println("genericUtility.getApplDateFormat()==["+genericUtility.getApplDateFormat()+"]");
lsVarValue = genericUtility.getValidDateString(lsVarValue, genericUtility.getApplDateFormat());
System.out.println("lsVarValue==after["+lsVarValue+"]");
lsVarValues = admCommon.getEnv("999999", "AD_EXPDATE", conn);
lsVarValues = genericUtility.getValidDateString(lsVarValues, genericUtility.getApplDateFormat());
valueXmlString.append("<eff_date ><![CDATA[").append(lsVarValue).append("]]></eff_date>\r\n");
valueXmlString.append("<exp_date ><![CDATA[").append(lsVarValues).append("]]></exp_date>\r\n");
effDateStr = admCommon.getEnv("999999", "AD_EFFDATE", conn);
expDateStr = admCommon.getEnv("999999", "AD_EXPDATE", conn);
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yy");
Date effDate = sdf.parse(effDateStr);
System.out.println("effDate:::"+effDate);
Date expDate = sdf.parse(expDateStr);
System.out.println("expDate:::"+expDate);
sdf = new SimpleDateFormat("dd/MM/yy");
effDateStr = sdf.format(effDate);
System.out.println("effDateStr:::"+effDateStr);
expDateStr = sdf.format(expDate);
System.out.println("expDateStr:::"+expDateStr);
valueXmlString.append("<eff_date ><![CDATA[").append(effDateStr).append("]]></eff_date>\r\n");
valueXmlString.append("<exp_date ><![CDATA[").append(expDateStr).append("]]></exp_date>\r\n");
}
else if ("ad_code".equalsIgnoreCase(currentColumn))
{
......@@ -392,9 +430,9 @@ public class GradeAdIC extends ValidatorEJB implements GradeAdLocal,GradeAdRemot
valueXmlString.append("<allwdedn_descr ><![CDATA[").append(mdescr).append("]]></allwdedn_descr>\r\n");
valueXmlString.append("<prop_yn ><![CDATA[").append(lsProp).append("]]></prop_yn>\r\n");
}
}
valueXmlString.append("</Detail1>");
break;
}
valueXmlString.append("</Detail1>");
break;
}
valueXmlString.append("</Root>");
}
......
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