Commit 7bcfabc6 authored by piyush's avatar piyush

1) Changes done in d_leavebal_edit.srd & leavebal21.xml to show balances...

1) Changes done in d_leavebal_edit.srd & leavebal21.xml to show balances during view also which are pupulated during itm_default_edit event

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@185610 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bd6a1c01
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>metadata</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
<name>acct_prd</name> <name>acct_prd</name>
<dbname>leavebal.acct_prd</dbname> <dbname>leavebal.acct_prd</dbname>
</table_column> </table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;leavebal&quot; ) TABLE(NAME=&quot;employee&quot; ) TABLE(NAME=&quot;leaves&quot; ) COLUMN(NAME=&quot;leavebal.emp_code&quot;) COLUMN(NAME=&quot;leavebal.lve_code&quot;) COLUMN(NAME=&quot;leavebal.eff_date&quot;) COLUMN(NAME=&quot;leavebal.upto_date&quot;) COLUMN(NAME=&quot;leavebal.avail_days&quot;) COLUMN(NAME=&quot;leavebal.exp_date&quot;) COLUMN(NAME=&quot;leavebal.edit_flag&quot;) COLUMN(NAME=&quot;leavebal.chg_date&quot;) COLUMN(NAME=&quot;leavebal.chg_user&quot;) COLUMN(NAME=&quot;leavebal.chg_term&quot;) COLUMN(NAME=&quot;employee.emp_fname&quot;) COLUMN(NAME=&quot;employee.emp_lname&quot;) COLUMN(NAME=&quot;leaves.descr&quot;) COMPUTE(NAME=&quot;nvl(leavebal.cons_days,0) as cons_days&quot;) COMPUTE(NAME=&quot;nvl(leavebal.ench_days,0) as ench_days&quot;) COMPUTE(NAME=&quot;nvl(leavebal.bal_days,0) as bal_days&quot;) COMPUTE(NAME=&quot;nvl(leavebal.prev_bal,0) as prev_bal&quot;) COLUMN(NAME=&quot;employee.grade&quot;) COLUMN(NAME=&quot;employee.cadre&quot;) COLUMN(NAME=&quot;employee.work_site&quot;) COMPUTE(NAME=&quot;nvl(leavebal.conv_days,0) as conv_days&quot;) COMPUTE(NAME=&quot;0 as consume_days&quot;) COMPUTE(NAME=&quot;0 as encash_days&quot;) COMPUTE(NAME=&quot;(nvl(leavebal.prev_bal , 0) + nvl(leavebal.conv_days , 0) + nvl(leavebal.avail_days , 0) - nvl(ddf_get_leave_days(leavebal.emp_code, leavebal.eff_date, leavebal.upto_date, leavebal.lve_code, &apos;E&apos;),0) - nvl(ddf_get_leave_days(leavebal.emp_code, leavebal.eff_date, leavebal.upto_date, leavebal.lve_code, &apos;CLVA&apos;),0)) as balance_days&quot;) COLUMN(NAME=&quot;leavebal.encashable&quot;) COLUMN(NAME=&quot;leavebal.acct_prd&quot;) JOIN (LEFT=&quot;leavebal.emp_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee.emp_code&quot; ) JOIN (LEFT=&quot;leavebal.lve_code&quot; OP =&quot;=&quot;RIGHT=&quot;leaves.lve_code&quot; )WHERE( EXP1 =&quot;leavebal.emp_code&quot; OP =&quot;=&quot; EXP2 =&quot;:mempcode&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;leavebal.lve_code&quot; OP =&quot;=&quot; EXP2 =&quot;:mlvecode&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;leavebal.eff_date&quot; OP =&quot;=&quot; EXP2 =&quot;:meffdate&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;leavebal.upto_date&quot; OP =&quot;=&quot; EXP2 =&quot;:muptodate&quot; ) ) ARG(NAME = &quot;mempcode&quot; TYPE = string) ARG(NAME = &quot;mlvecode&quot; TYPE = string) ARG(NAME = &quot;meffdate&quot; TYPE = datetime) ARG(NAME = &quot;muptodate&quot; TYPE = datetime) </retrieve> <retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;leavebal&quot; ) TABLE(NAME=&quot;employee&quot; ) TABLE(NAME=&quot;leaves&quot; ) COLUMN(NAME=&quot;leavebal.emp_code&quot;) COLUMN(NAME=&quot;leavebal.lve_code&quot;) COLUMN(NAME=&quot;leavebal.eff_date&quot;) COLUMN(NAME=&quot;leavebal.upto_date&quot;) COLUMN(NAME=&quot;leavebal.avail_days&quot;) COLUMN(NAME=&quot;leavebal.exp_date&quot;) COLUMN(NAME=&quot;leavebal.edit_flag&quot;) COLUMN(NAME=&quot;leavebal.chg_date&quot;) COLUMN(NAME=&quot;leavebal.chg_user&quot;) COLUMN(NAME=&quot;leavebal.chg_term&quot;) COLUMN(NAME=&quot;employee.emp_fname&quot;) COLUMN(NAME=&quot;employee.emp_lname&quot;) COLUMN(NAME=&quot;leaves.descr&quot;) COMPUTE(NAME=&quot;nvl(leavebal.cons_days,0) as cons_days&quot;) COMPUTE(NAME=&quot;nvl(leavebal.ench_days,0) as ench_days&quot;) COMPUTE(NAME=&quot;nvl(leavebal.bal_days,0) as bal_days&quot;) COMPUTE(NAME=&quot;nvl(leavebal.prev_bal,0) as prev_bal&quot;) COLUMN(NAME=&quot;employee.grade&quot;) COLUMN(NAME=&quot;employee.cadre&quot;) COLUMN(NAME=&quot;employee.work_site&quot;) COMPUTE(NAME=&quot;nvl(leavebal.conv_days,0) as conv_days&quot;) COMPUTE(NAME=&quot;ddf_get_leave_days( leavebal.emp_code , leavebal.lve_code , leavebal.eff_date , leavebal.upto_date , &apos;CLVA&apos; ) as consume_days&quot;) COMPUTE(NAME=&quot;ddf_get_leave_days( leavebal.emp_code , leavebal.lve_code , leavebal.eff_date , leavebal.upto_date , &apos;E&apos; ) as encash_days&quot;) COMPUTE(NAME=&quot;(nvl(leavebal.prev_bal , 0) + nvl(leavebal.conv_days , 0) + nvl(leavebal.avail_days , 0) - nvl(ddf_get_leave_days(leavebal.emp_code, leavebal.eff_date, leavebal.upto_date, leavebal.lve_code, &apos;E&apos;),0) - nvl(ddf_get_leave_days(leavebal.emp_code, leavebal.eff_date, leavebal.upto_date, leavebal.lve_code, &apos;CLVA&apos;),0)) as balance_days&quot;) COLUMN(NAME=&quot;leavebal.encashable&quot;) COLUMN(NAME=&quot;leavebal.acct_prd&quot;) JOIN (LEFT=&quot;leavebal.emp_code&quot; OP =&quot;=&quot;RIGHT=&quot;employee.emp_code&quot; ) JOIN (LEFT=&quot;leavebal.lve_code&quot; OP =&quot;=&quot;RIGHT=&quot;leaves.lve_code&quot; )WHERE( EXP1 =&quot;( ( leavebal.emp_code&quot; OP =&quot;=&quot; EXP2 =&quot;:mempcode )&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;( leavebal.lve_code&quot; OP =&quot;=&quot; EXP2 =&quot;:mlvecode )&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;( leavebal.eff_date&quot; OP =&quot;=&quot; EXP2 =&quot;:meffdate )&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;( leavebal.upto_date&quot; OP =&quot;=&quot; EXP2 =&quot;:muptodate ) )&quot; ) ) ARG(NAME = &quot;mempcode&quot; TYPE = string) ARG(NAME = &quot;mlvecode&quot; TYPE = string) ARG(NAME = &quot;meffdate&quot; TYPE = datetime) ARG(NAME = &quot;muptodate&quot; TYPE = datetime) </retrieve>
<update>leavebal</update> <update>leavebal</update>
<updatewhere>0</updatewhere> <updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace> <updatekeyinplace>no</updatekeyinplace>
......
...@@ -31,7 +31,7 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=emp_co ...@@ -31,7 +31,7 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=emp_co
column=(type=number updatewhereclause=yes name=balance_days dbname="balance_days" initial="0" ) column=(type=number updatewhereclause=yes name=balance_days dbname="balance_days" initial="0" )
column=(type=char(1) update=yes updatewhereclause=yes name=encashable dbname="leavebal.encashable" ) column=(type=char(1) update=yes updatewhereclause=yes name=encashable dbname="leavebal.encashable" )
column=(type=char(6) update=yes updatewhereclause=yes name=acct_prd dbname="leavebal.acct_prd" ) column=(type=char(6) update=yes updatewhereclause=yes name=acct_prd dbname="leavebal.acct_prd" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"leavebal~" ) TABLE(NAME=~"employee~" ) TABLE(NAME=~"leaves~" ) COLUMN(NAME=~"leavebal.emp_code~") COLUMN(NAME=~"leavebal.lve_code~") COLUMN(NAME=~"leavebal.eff_date~") COLUMN(NAME=~"leavebal.upto_date~") COLUMN(NAME=~"leavebal.avail_days~") COLUMN(NAME=~"leavebal.exp_date~") COLUMN(NAME=~"leavebal.edit_flag~") COLUMN(NAME=~"leavebal.chg_date~") COLUMN(NAME=~"leavebal.chg_user~") COLUMN(NAME=~"leavebal.chg_term~") COLUMN(NAME=~"employee.emp_fname~") COLUMN(NAME=~"employee.emp_lname~") COLUMN(NAME=~"leaves.descr~") COMPUTE(NAME=~"nvl(leavebal.cons_days,0) as cons_days~") COMPUTE(NAME=~"nvl(leavebal.ench_days,0) as ench_days~") COMPUTE(NAME=~"nvl(leavebal.bal_days,0) as bal_days~") COMPUTE(NAME=~"nvl(leavebal.prev_bal,0) as prev_bal~") COLUMN(NAME=~"employee.grade~") COLUMN(NAME=~"employee.cadre~") COLUMN(NAME=~"employee.work_site~") COMPUTE(NAME=~"nvl(leavebal.conv_days,0) as conv_days~") COMPUTE(NAME=~"0 as consume_days~") COMPUTE(NAME=~"0 as encash_days~") COMPUTE(NAME=~"(nvl(leavebal.prev_bal , 0) + nvl(leavebal.conv_days , 0) + nvl(leavebal.avail_days , 0) - nvl(ddf_get_leave_days(leavebal.emp_code, leavebal.eff_date, leavebal.upto_date, leavebal.lve_code, 'E'),0) - nvl(ddf_get_leave_days(leavebal.emp_code, leavebal.eff_date, leavebal.upto_date, leavebal.lve_code, 'CLVA'),0)) as balance_days~") COLUMN(NAME=~"leavebal.encashable~") COLUMN(NAME=~"leavebal.acct_prd~") JOIN (LEFT=~"leavebal.emp_code~" OP =~"=~"RIGHT=~"employee.emp_code~" ) JOIN (LEFT=~"leavebal.lve_code~" OP =~"=~"RIGHT=~"leaves.lve_code~" )WHERE( EXP1 =~"leavebal.emp_code~" OP =~"=~" EXP2 =~":mempcode~" LOGIC =~"and~" ) WHERE( EXP1 =~"leavebal.lve_code~" OP =~"=~" EXP2 =~":mlvecode~" LOGIC =~"and~" ) WHERE( EXP1 =~"leavebal.eff_date~" OP =~"=~" EXP2 =~":meffdate~" LOGIC =~"and~" ) WHERE( EXP1 =~"leavebal.upto_date~" OP =~"=~" EXP2 =~":muptodate~" ) ) ARG(NAME = ~"mempcode~" TYPE = string) ARG(NAME = ~"mlvecode~" TYPE = string) ARG(NAME = ~"meffdate~" TYPE = datetime) ARG(NAME = ~"muptodate~" TYPE = datetime) " update="leavebal" updatewhere=0 updatekeyinplace=no arguments=(("mempcode", string),("mlvecode", string),("meffdate", datetime),("muptodate", datetime)) ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"leavebal~" ) TABLE(NAME=~"employee~" ) TABLE(NAME=~"leaves~" ) COLUMN(NAME=~"leavebal.emp_code~") COLUMN(NAME=~"leavebal.lve_code~") COLUMN(NAME=~"leavebal.eff_date~") COLUMN(NAME=~"leavebal.upto_date~") COLUMN(NAME=~"leavebal.avail_days~") COLUMN(NAME=~"leavebal.exp_date~") COLUMN(NAME=~"leavebal.edit_flag~") COLUMN(NAME=~"leavebal.chg_date~") COLUMN(NAME=~"leavebal.chg_user~") COLUMN(NAME=~"leavebal.chg_term~") COLUMN(NAME=~"employee.emp_fname~") COLUMN(NAME=~"employee.emp_lname~") COLUMN(NAME=~"leaves.descr~") COMPUTE(NAME=~"nvl(leavebal.cons_days,0) as cons_days~") COMPUTE(NAME=~"nvl(leavebal.ench_days,0) as ench_days~") COMPUTE(NAME=~"nvl(leavebal.bal_days,0) as bal_days~") COMPUTE(NAME=~"nvl(leavebal.prev_bal,0) as prev_bal~") COLUMN(NAME=~"employee.grade~") COLUMN(NAME=~"employee.cadre~") COLUMN(NAME=~"employee.work_site~") COMPUTE(NAME=~"nvl(leavebal.conv_days,0) as conv_days~") COMPUTE(NAME=~"ddf_get_leave_days( leavebal.emp_code , leavebal.lve_code , leavebal.eff_date , leavebal.upto_date , 'CLVA' ) as consume_days~") COMPUTE(NAME=~"ddf_get_leave_days( leavebal.emp_code , leavebal.lve_code , leavebal.eff_date , leavebal.upto_date , 'E' ) as encash_days~") COMPUTE(NAME=~"(nvl(leavebal.prev_bal , 0) + nvl(leavebal.conv_days , 0) + nvl(leavebal.avail_days , 0) - nvl(ddf_get_leave_days(leavebal.emp_code, leavebal.eff_date, leavebal.upto_date, leavebal.lve_code, 'E'),0) - nvl(ddf_get_leave_days(leavebal.emp_code, leavebal.eff_date, leavebal.upto_date, leavebal.lve_code, 'CLVA'),0)) as balance_days~") COLUMN(NAME=~"leavebal.encashable~") COLUMN(NAME=~"leavebal.acct_prd~") JOIN (LEFT=~"leavebal.emp_code~" OP =~"=~"RIGHT=~"employee.emp_code~" ) JOIN (LEFT=~"leavebal.lve_code~" OP =~"=~"RIGHT=~"leaves.lve_code~" )WHERE( EXP1 =~"( ( leavebal.emp_code~" OP =~"=~" EXP2 =~":mempcode )~" LOGIC =~"and~" ) WHERE( EXP1 =~"( leavebal.lve_code~" OP =~"=~" EXP2 =~":mlvecode )~" LOGIC =~"and~" ) WHERE( EXP1 =~"( leavebal.eff_date~" OP =~"=~" EXP2 =~":meffdate )~" LOGIC =~"and~" ) WHERE( EXP1 =~"( leavebal.upto_date~" OP =~"=~" EXP2 =~":muptodate ) )~" ) ) ARG(NAME = ~"mempcode~" TYPE = string) ARG(NAME = ~"mlvecode~" TYPE = string) ARG(NAME = ~"meffdate~" TYPE = datetime) ARG(NAME = ~"muptodate~" TYPE = datetime) " update="leavebal" updatewhere=0 updatekeyinplace=no arguments=(("mempcode", string),("mlvecode", string),("meffdate", datetime),("muptodate", datetime)) )
groupbox(band=detail text="Basic"border="2" color="0" x="8" y="5" height="383" width="506" 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="Basic"border="2" color="0" x="8" y="5" height="383" width="506" 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=1 alignment="0" tabsequence=10 border="5" color="0" x="129" y="25" height="16" width="84" format="[general]" html.valueishtml="0" name=emp_code tag="Employee code." visible="1" edit.limit=10 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="0" x="129" y="25" height="16" width="84" format="[general]" html.valueishtml="0" name=emp_code tag="Employee code." visible="1" edit.limit=10 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Employee :" border="0" color="0" x="17" y="25" height="16" width="104" html.valueishtml="0" name=emp_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" ) text(band=detail alignment="1" text="Employee :" border="0" color="0" x="17" y="25" height="16" width="104" html.valueishtml="0" name=emp_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
...@@ -75,8 +75,8 @@ column(band=detail id=24 alignment="1" tabsequence=32766 border="5" color="255" ...@@ -75,8 +75,8 @@ column(band=detail id=24 alignment="1" tabsequence=32766 border="5" color="255"
text(band=detail alignment="1" text="Expires On :" border="0" color="0" x="345" y="73" height="16" width="72" html.valueishtml="0" name=exp_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="Expires On :" border="0" color="0" x="345" y="73" height="16" width="72" html.valueishtml="0" name=exp_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="Available :" border="0" color="0" x="345" y="97" height="16" width="72" html.valueishtml="0" name=avail_days_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" ) text(band=detail alignment="1" text="Available :" border="0" color="0" x="345" y="97" height="16" width="72" html.valueishtml="0" name=avail_days_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Balance :" border="0" color="0" x="345" y="121" height="16" width="72" html.valueishtml="0" name=balance_days_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" ) text(band=detail alignment="1" text="Balance :" border="0" color="0" x="345" y="121" height="16" width="72" html.valueishtml="0" name=balance_days_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=26 alignment="0" tabsequence=32766 border="0" color="0" x="240" y="267" height="16" width="30" html.valueishtml="0" name=acct_prd visible="0" 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=26 alignment="0" tabsequence=32766 border="0" color="0" x="240" y="267" height="16" width="30" format="[general]" html.valueishtml="0" name=acct_prd visible="0" 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=25 alignment="0" tabsequence=32766 border="0" color="0" x="254" y="235" height="16" width="30" html.valueishtml="0" name=encashable visible="0" 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=25 alignment="0" tabsequence=32766 border="0" color="0" x="254" y="235" height="16" width="30" format="[general]" html.valueishtml="0" name=encashable visible="0" 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" ) 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 )
......
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