123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>개인별항목별급여내역비교</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <monthpaymast>
- <monthpaymastlist/>
- </monthpaymast>
- </list>
- </main>
- <target>
- <defaultvalue>
- <ipt_curemplno/>
- <ipt_curemplnm/>
- <cmb_SalDfrayFlag/>
- </defaultvalue>
- </target>
- <send>
- <monthpaymast>
- <instcd/>
- <saldfrayflag/>
- <payym/>
- <emplno/>
- <emplnm/>
- <payitemcd/>
- <payitemnm/>
- </monthpaymast>
- </send>
- <init/>
- </root>
- </instance>
- <submission id="TRRWP02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/monthpaymast" resultref="/root/main/list/monthpaymast"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_monthpaymastlist);
-
- /* Grid의 Mater, Detail관계 설정
- misfMsterDetailSet(관계설정할 Grid, Mater가 될 Grid, submit ID, 저장여부) */
- misfMsterDetailSet(grd_monthpaymastlist, null, "TRRWP02501" ,"N");
-
- for(licol = 0; licol < grd_monthpaymastlist.cols ; licol++)
- {
- if(grd_monthpaymastlist.colRef("emplno") != licol &&
- grd_monthpaymastlist.colRef("emplnm") != licol) grd_monthpaymastlist.mergecol(licol) = false;
- grd_monthpaymastlist.mergecells = "bycol";
- }
- /* Combo Data Setting
- misfComboComCdListMulti(공통코드군, Combo) */
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- misfComboComCdListMulti("R0112","cmb_instcd");
-
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMM");
-
- model.setValue(ipt_payym.attribute("ref") , cvtdate.getAddDate(0,"M").getDateFormat("YYYYMM"));
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- model.setValue(ipt_emplnos.attribute("ref"), model.getValue("/root/target/defaultvalue/ipt_curemplno"));
- if(model.getValue(ipt_emplnos.attribute("ref")).length > 0)
- {
- model.setValue(ipt_emplnms.attribute("ref"), model.getValue("/root/target/defaultvalue/ipt_curemplnm"));
- model.setValue(cmb_SalDfrayFlag.attribute("ref"), model.getValue("/root/target/defaultvalue/cmb_SalDfrayFlag"));
- btn_search.dispatch("DOMActivate");
- }
- model.refresh();
-
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- var PAY_TARGET_NODE = "/root/main/monthpaymastdata";
- var PAY_SOURCE_NODE = "/root/main/monthpaymast";
-
- function fCheckRetrieveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(cmb_SalDfrayFlag.attribute("ref")).length== 0 )
- {
- messageBox("급여종류를 " ,"C002");
- model.setFocus("cmb_SalDfrayFlag");
- return false;
- }
- if(model.getValue(ipt_emplnos.attribute("ref")).length== 0 &&
- model.getValue(ipt_payitemcd.attribute("ref")).length== 0 )
- {
- messageBox("사번이나 항목 둘중 하나는 " ,"I003");
- model.setFocus("ipt_emplnos");
- return false;
- }
-
- return true;
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
- <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">개인별항목별급여내역비교</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //if(fCheckRetrieveData() == false)return;
- misfMsterDetailRetrieve();
-
- for (var i = 2; i < grd_monthpaymastlist.rows; i++) {
- if (grd_monthpaymastlist.valueMatrix(i, grd_monthpaymastlist.colRef("changeyn")) == "Y" ) {
- grd_monthpaymastlist.cellstyle("background-color", i, 3, i, 9) = "#ffff99";
- }
- else {
- grd_monthpaymastlist.cellstyle("background-color", i, 3, i, 9) = "#ffffff";
- }
- }
-
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1118px; y1:16px; x2:1118px; y2:38px; "/>
- <input id="ipt_payym" ref="/root/send/monthpaymast/payym" class="input_default" inputtype="date" format="yyyy-mm" style="left:442px; top:17px; width:79px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="caption22" class="search_name" style="left:373px; top:18px; width:70px; height:17px; ">지급월:</caption>
- <select1 id="cmb_instcd" ref="/root/send/monthpaymast/instcd" class="combo_s_essential" appearance="minimal" style="left:61px; top:17px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:189px; top:18px; width:86px; height:17px; ">급여종류:</caption>
- <caption id="caption2" class="search_name" style="left:2px; top:18px; width:61px; height:17px; ">기관:</caption>
- <select1 id="cmb_SalDfrayFlag" ref="/root/send/monthpaymast/saldfrayflag" class="combo_s_essential" appearance="minimal" style="left:270px; top:17px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:523px; top:18px; width:63px; height:17px; ">사번 :</caption>
- <button id="btn_emplno" class="icon_search" style="left:676px; top:17px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"","N");
-
- model.refresh();
-
- if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_emplnos" ref="/root/send/monthpaymast/emplno" class="input_default" style="left:584px; top:16px; width:87px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNO", recv_list);
- model.refresh();
-
- if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </input>
- <input id="ipt_emplnms" ref="/root/send/monthpaymast/emplnm" class="input_default" style="left:695px; top:16px; width:99px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNM", recv_list);
-
- model.refresh();
-
- if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <switch id="switch1" style="left:1px; top:45px; width:1194px; height:695px; ">
- <case id="case1" selected="true">
- <line id="line193" class="line_1" style="x1:0px; y1:19px; x2:1190px; y2:19px; "/>
- <datagrid id="grd_monthpaymastlist" nodeset="/root/main/list/monthpaymast/monthpaymastlist" backcoloralternate="transparent" caption="사원^사원명^급여항목명^공제^지급금액^지급금액^계산금액^계산금액|사원^사원명^급여항목명^공제^전월^현재월^전월^현재월" colsep="^" colwidth="94, 134, 242, 123, 150, 131, 139, 135, 35" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:25px; width:1190px; height:665px; ">
- <col ref="emplno" style="vertical-align:top; "/>
- <col ref="emplnm" style="vertical-align:top; "/>
- <col ref="payitemnm"/>
- <col ref="payeduflagnm"/>
- <col ref="prepayitemamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="payitemamt" format="#,###" style="text-align:right; "/>
- <col ref="prepayitemcalcamt" format="#,###" style="text-align:right; "/>
- <col ref="payitemcalcamt" format="#,###" style="text-align:right; "/>
- <col ref="changeyn" visibility="hidden"/>
- </datagrid>
- <caption id="caption28" class="tit_2" style="left:5px; top:5px; width:144px; height:13px; ">급여 대상자</caption>
- </case>
- <case id="case2"/>
- </switch>
- <caption id="caption4" class="search_name" style="left:798px; top:18px; width:63px; height:17px; ">항목 :</caption>
- <button id="btm_payitemcd" class="icon_search" style="left:951px; top:17px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "payitemcd,payitemnm";
- misfOpenPopUpList("13", ipt_payitemcd, "", recv_list, "");
- model.refresh();
-
- if (model.getValue(ipt_payitemnm.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_payitemcd" ref="/root/send/monthpaymast/payitemcd" class="input_default" style="left:859px; top:16px; width:87px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var recv_list = "payitemcd,payitemnm";
- var saldfrayflag = model.getValue(cmb_SalDfrayFlag.attribute("ref"));
- var paydeduflag = "%";
- rwcfValidationCheck("PAYITEM",saldfrayflag, paydeduflag, recv_list)
- model.refresh();
-
- ]]>
- </script>
- </input>
- <input id="ipt_payitemnm" ref="/root/send/monthpaymast/payitemnm" class="input_default" style="left:970px; top:16px; width:141px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNM", recv_list);
-
- model.refresh();
-
- if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <line id="line2" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|