123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <empldiet>
- <empldietlist>
- <eatdd/>
- <hngnm/>
- <emplno/>
- <cardid/>
- <breakmeal/>
- <breakmealtm/>
- <lunchmeal/>
- <lunchmealtm/>
- <dinnermeal/>
- <dinnermealtm/>
- <paytransyn/>
- <payappyn/>
- </empldietlist>
- </empldiet>
- <payappyn>
- <payappynlist>
- <chkyn/>
- </payappynlist>
- </payappyn>
- </main>
- <send>
- <searchitem>
- <eatfromdd/>
- <eattodd/>
- <mealflag/>
- <emplnm/>
- <emplno/>
- <instcd>012</instcd>
- <deduym/>
- <queryflag>A</queryflag>
- <payappyn>-</payappyn>
- </searchitem>
- <data>
- <empletc/>
- </data>
- <payappsend>
- <instcd/>
- <payym/>
- <payitemcd/>
- <payfromdd/>
- <paytodd/>
- <retireyn/>
- </payappsend>
- </send>
- <temp>
- </temp>
- <init>
- <basecode>
- <meal>
- <A0055>
- <cdid/>
- <cdnm/>
- </A0055>
- </meal>
- </basecode>
- </init>
- <paytemp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- btn_search1.disabled = !checkAuth("R");
- btn_excel.disabled = !checkAuth("P");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //초기화
- function finit() {
- misfGridInit(grd_emplidcard);
- // 화면open시 공통코드 setting
- //zbcfGetCodeList( new Array( "A0055" ), new Array( "/root/init/basecode/meal" ) );
- //model.setValue("/root/send/searchitem/deduym", getCurrentDate().toDate().getDateFormat("YYYYMM"));
-
- //model.setValue("/root/send/searchitem/eatfromdd", getCurrentDate());
- //model.setValue("/root/send/searchitem/eattodd", getCurrentDate());
- model.setValue("/root/send/searchitem/mealflag", "-");
- model.resetInstanceNode("/root/send/data");
- model.removeNodeset("/root/main/emplidcard");
- model.removeNodeset("/root/main/empletc");
- //현재는 505번지 식당으로 강제 세팅
-
- if (getUserInfo("dutplceinstcd") == "001" || getUserInfo("dutplceinstcd") == "103" || getUserInfo("dutplceinstcd") == "012" ) {
- model.setValue(cmb_instcd.attribute("ref") , "012");
- }
- else {
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd") );
-
- if (getUserInfo("dutplceinstcd") == "017" ) {
- btn_retirepayapp.visible = true;
- }
-
- }
-
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- //var deduym = model.getValue(ipt_deduym.attribute("ref"));
- //var dedudd = deduym+"01";
-
- model.setValue(ipt_eatfromdd.attribute("ref") , getCurrentDate().toDate().getDateFormat("YYYYMMDD"));
- model.setValue(ipt_eattodd.attribute("ref") , getCurrentDate().toDate().getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/searchitem/deduym", getCurrentDate().toDate().getDateFormat("YYYYMM"));
- model.refresh();
- }
- //초기화
- function finit_pay() {
- misfGridInit(grd_emplidcard);
- // 화면open시 공통코드 setting
- //zbcfGetCodeList( new Array( "A0055" ), new Array( "/root/init/basecode/meal" ) );
- model.setValue("/root/send/searchitem/deduym", getCurrentDate().toDate().getDateFormat("YYYYMM"));
-
- //model.setValue("/root/send/searchitem/eatfromdd", getCurrentDate());
- //model.setValue("/root/send/searchitem/eattodd", getCurrentDate());
- model.setValue("/root/send/searchitem/mealflag", "-");
- model.resetInstanceNode("/root/send/data");
- model.removeNodeset("/root/main/emplidcard");
- model.removeNodeset("/root/main/empletc");
- //현재는 505번지 식당으로 강제 세팅
- //model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- misfComboComCdListMulti("Z0007","cmb_instcd2");
-
- var deduym = model.getValue(ipt_deduym2.attribute("ref"));
- var dedudd = deduym+"01";
-
-
-
- if (getUserInfo("dutplceinstcd") == "017" ) {
- model.setValue(ipt_eattodd.attribute("ref") , dedudd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMM") + dedudd.toDate().getAddDate(-1, "M").getMonthDay());
- model.setValue(ipt_eatfromdd.attribute("ref") , dedudd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMM") + "01");
- }
- else {
- model.setValue(ipt_eattodd.attribute("ref") , deduym + "15");
- model.setValue(ipt_eatfromdd.attribute("ref") , dedudd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMM")+"16");
- }
-
-
- model.refresh();
- }
-
- //기타식수관리 그리드의 소계,합계,총계 구하기
- function fsum() {
- var val = 0;
- var temp = 0;
- var sum = 0;
- var totalsum = 0;
- for ( i=1; i<grd_empletc.rows-2; i++) {
- //조식
- for (var k = 1; k <= 7; k++) {
- val = model.getValue("/root/main/empletc/data["+ i +"]/psnno" + k);
- if (val > 0) {
- temp = parseInt(temp) + parseInt(val);
- }
- if (k == 2) {
- model.setValue("/root/main/empletc/data["+ i +"]/insum1", temp);
- sum = sum + temp;
- temp = 0;
- } else if (k == 7) {
- model.setValue("/root/main/empletc/data["+ i +"]/outsum1", temp);
- model.setValue("/root/main/empletc/data["+ i +"]/sum1", sum + temp);
- totalsum = totalsum + sum + temp;
- }
- }
- temp = 0;
- sum = 0;
- //중식
- for (var k = 8; k <= 14; k++) {
- val = model.getValue("/root/main/empletc/data["+ i +"]/psnno" + k);
- if (val > 0) {
- temp = parseInt(temp) + parseInt(val);
- }
- if (k == 9) {
- model.setValue("/root/main/empletc/data["+ i +"]/insum2", temp);
- sum = sum + temp;
- temp = 0;
- } else if (k == 14) {
- model.setValue("/root/main/empletc/data["+ i +"]/outsum2", temp);
- model.setValue("/root/main/empletc/data["+ i +"]/sum2", sum + temp);
- totalsum = totalsum + sum + temp;
- }
- }
- temp = 0;
- sum = 0;
- //석식
- for (var k = 15; k <= 21; k++) {
- val = model.getValue("/root/main/empletc/data["+ i +"]/psnno" + k);
- if (val > 0) {
- temp = parseInt(temp) + parseInt(val);
- }
- if (k == 16) {
- model.setValue("/root/main/empletc/data["+ i +"]/insum3", temp);
- sum = sum + temp;
- temp = 0;
- } else if (k == 21) {
- model.setValue("/root/main/empletc/data["+ i +"]/outsum3", temp);
- model.setValue("/root/main/empletc/data["+ i +"]/sum3", sum + temp);
- totalsum = totalsum + sum + temp;
- }
- }
- temp = 0;
- sum = 0;
- model.setValue("/root/main/empletc/data["+ i +"]/totalsum", totalsum);
- totalsum = 0;
- }
- grd_empletc.refresh();
- }
- ]]>
- </script>
- <bind id="bind_ward" ref="/root/main/data/ward" readonly="../ward!=''"/>
- <submission id="TRRWD06001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main/empldiet"/>
- <submission id="TRRWD06002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main/payappyn"/>
- <submission id="TXRWZ00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payappsend" resultref="/root/paytemp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,751;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">직원식상세현황</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:18px; width:1195px; height:744px; ">
- <switch id="switch1" style="left:0px; top:26px; width:1194px; height:718px; ">
- <case id="case1" selected="true">
- <group id="group2" style="left:0px; top:5px; width:1187px; height:45px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:2px; width:1182px; height:40px; background-color:#fffbf2; "/>
- <button id="btn_search1" class="btn1_letter2" style="left:1122px; top:13px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fromdd = model.getValue("/root/send/searchitem/eatfromdd");
- var todd = model.getValue("/root/send/searchitem/eattodd");
- if (getDateInterval(fromdd, todd) < 0) {
- messageBox("조회 시작일은 종료일보다 클 수", "I004");
- return;
- } else {
- submit("TRRWD06001");
-
- grd_emplidcard.subtotalposition = "below";
- grd_emplidcard.subtotal("sum" ,-1 , grd_emplidcard.colRef("breakmeal"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_emplidcard.subtotal("sum" ,-1 , grd_emplidcard.colRef("lunchmeal"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_emplidcard.subtotal("sum" ,-1 , grd_emplidcard.colRef("dinnermeal"),"format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_emplidcard.subtotal("sum" ,-1 , grd_emplidcard.colRef("totmeal"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_emplidcard.subtotal("sum" ,-1 , grd_emplidcard.colRef("totmealamt"),"format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_emplidcard.subtotal("sum" ,-1 , grd_emplidcard.colRef("breakmealamt"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_emplidcard.subtotal("sum" ,-1 , grd_emplidcard.colRef("lunchmealamt"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_emplidcard.subtotal("sum" ,-1 , grd_emplidcard.colRef("dinnermealamt"),"format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- }
-
-
- // 급여이체
- // if (grd_emplidcard.rows - grd_emplidcard.fixedRows > 0) {
- // var payyn = grd_emplidcard.valueMatrix(grd_emplidcard.fixedRows,grd_emplidcard.colRef("payyn"));
-
- // if (payyn == "Y") {
- btn_paysave.disabled = false;
- // }
- // else {
- // btn_paysave.disabled = true;
- // }
- // }
- // else {
- // btn_paysave.disabled = true;
- // }
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:1106px; y1:4px; x2:1106px; y2:42px; "/>
- <caption id="caption3" class="search_name" style="left:220px; top:12px; width:86px; height:17px; ">식수일자 :</caption>
- <input id="ipt_eatfromdd" ref="/root/send/searchitem/eatfromdd" class="input_s_essential" disabled="false" inputtype="date" style="left:304px; top:11px; width:90px; height:19px; "/>
- <caption id="caption11" class="search_n_b" style="left:399px; top:13px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_eattodd" ref="/root/send/searchitem/eattodd" class="input_s_essential" disabled="false" inputtype="date" style="left:414px; top:11px; width:90px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:515px; top:12px; width:64px; height:17px; ">끼니 :</caption>
- <select1 id="rdo_mealflag" ref="/root/send/searchitem/mealflag" class="combo_s_essential" appearance="minimal" style="left:577px; top:12px; width:72px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>조식</label>
- <value>1</value>
- </item>
- <item>
- <label>중식</label>
- <value>2</value>
- </item>
- <item>
- <label>석식</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_instcd" ref="/root/send/searchitem/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:99px; top:11px; width:115px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:9px; top:12px; width:81px; height:17px; ">식수기관:</caption>
- <caption id="caption6" class="search_name" style="left:659px; top:12px; width:63px; height:17px; ">사번 :</caption>
- <button id="btn_emplno" class="icon_search" style="left:794px; top:12px; 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_search1.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_emplnos" ref="/root/send/searchitem/emplno" class="input_default" style="left:725px; top:12px; width:67px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
- inputEnterKey("ipt_emplnos", "xforms-value-changed");
- }
- ]]>
- </script>
- <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_search1.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </input>
- <input id="ipt_emplnms" ref="/root/send/searchitem/emplnm" class="input_default" style="left:813px; top:12px; width:76px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
- inputEnterKey("ipt_emplnms", "xforms-value-changed");
- }
- ]]>
- </script>
- <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_search1.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_payappyn" ref="/root/send/searchitem/payappyn" class="combo_s_essential" appearance="minimal" style="left:1017px; top:14px; width:72px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:900px; top:14px; width:112px; height:17px; ">급여반영여부 :</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:79px; x2:1190px; y2:79px; "/>
- <datagrid id="grd_emplidcard" nodeset="/root/main/empldiet/empldietlist" caption="식수일자^사원번호^성명^교직구분^기관^부서^카드ID^조식^조식^중식^중식^석식^석식^계^계^급여공제금액^공제월^이체작업여부^급여반영여부^|식수일자^사원번호^성명^교직구분^기관^부서^카드ID^횟수^금액^횟수^금액^횟수^금액^횟수^금액^급여공제금액^공제월^이체작업여부^급여반영여부^" colsep="^" colwidth="67, 64, 64, 83, 100, 100, 56, 36, 82, 32, 82, 36, 82, 34, 82, 89, 52, 33, 33, 39" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:85px; width:1190px; height:621px; text-align:center; ">
- <col ref="eatdd" format="yyyy-mm-dd"/>
- <col ref="emplno" style="text-align:center; "/>
- <col ref="hngnm"/>
- <col ref="prfshipflagnm"/>
- <col ref="dutplceinstnm"/>
- <col ref="dutunitnm"/>
- <col ref="cardid" visibility="hidden"/>
- <col ref="breakmeal"/>
- <col ref="breakmealamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="lunchmeal"/>
- <col ref="lunchmealamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="dinnermeal"/>
- <col ref="dinnermealamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="totmeal"/>
- <col ref="totmealamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="paydeduamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="payappmm"/>
- <col ref="paytransyn"/>
- <col ref="payappyn"/>
- <col ref="dutplceinst" visibility="hidden"/>
- </datagrid>
- <select1 id="radio1" ref="/root/send/searchitem/queryflag" appearance="full" cols="2" overflow="visible" style="left:5px; top:56px; width:115px; height:20px; border-style:solid; ">
- <choices>
- <item>
- <label>일자별</label>
- <value>A</value>
- </item>
- <item>
- <label>개인별</label>
- <value>B</value>
- </item>
- </choices>
- </select1>
- <button id="btn_excel" class="btn2_letter4" style="left:1120px; top:55px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save", ",", false, "직원식공제현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_emplidcard.saveExcel(filename, "grd_emplidcard", true, false, "", "", "");
- }
- ]]>
- </script>
- </button>
- </case>
- <case id="case2">
- <datagrid id="grd_empldietlist" nodeset="/root/main/empldiet/empldietlist" caption="식수일자^사원번호^성명^기관^부서^카드ID^조식^조식^중식^중식^석식^석식^계^계^급여공제금액^이체작업여부^급여반영여부^|식수일자^사원번호^성명^기관^부서^카드ID^횟수^금액^횟수^금액^횟수^금액^횟수^금액^급여공제금액^이체작업여부^급여반영여부^" colsep="^" colwidth="72, 77, 73, 122, 113, 56, 45, 97, 38, 96, 38, 99, 37, 89, 91, 33, 33, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:84px; width:1190px; height:622px; text-align:center; ">
- <col ref="eatdd" format="yyyy-mm-dd"/>
- <col ref="emplno" style="text-align:center; "/>
- <col ref="hngnm"/>
- <col ref="dutplceinstnm"/>
- <col ref="dutunitnm"/>
- <col ref="cardid" visibility="hidden"/>
- <col ref="breakmeal"/>
- <col ref="breakmealamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="lunchmeal"/>
- <col ref="lunchmealamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="dinnermeal"/>
- <col ref="dinnermealamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="totmeal"/>
- <col ref="totmealamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="paydeduamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="paytransyn"/>
- <col ref="payappyn"/>
- <col ref="dutplceinst" visibility="hidden"/>
- </datagrid>
- <line id="line2" class="line_1" style="x1:0px; y1:79px; x2:1190px; y2:79px; "/>
- <select1 id="rdo_queryflagpay" ref="/root/send/searchitem/queryflag" appearance="full" cols="2" overflow="visible" style="left:5px; top:56px; width:115px; height:20px; border-style:solid; ">
- <choices>
- <item>
- <label>일자별</label>
- <value>A</value>
- </item>
- <item>
- <label>개인별</label>
- <value>B</value>
- </item>
- </choices>
- </select1>
- <group id="group3" style="left:5px; top:5px; width:1182px; height:46px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:45px; background-color:#fffbf2; "/>
- <button id="button1" class="btn1_letter2" style="left:1117px; top:12px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fromdd = model.getValue("/root/send/searchitem/eatfromdd");
- var todd = model.getValue("/root/send/searchitem/eattodd");
- if (getDateInterval(fromdd, todd) < 0) {
- messageBox("조회 시작일은 종료일보다 클 수", "I004");
- return;
- } else {
- submit("TRRWD06001");
-
- grd_empldietlist.subtotalposition = "below";
- grd_empldietlist.subtotal("sum" ,-1 , grd_empldietlist.colRef("breakmeal"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_empldietlist.subtotal("sum" ,-1 , grd_empldietlist.colRef("lunchmeal"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_empldietlist.subtotal("sum" ,-1 , grd_empldietlist.colRef("dinnermeal"),"format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_empldietlist.subtotal("sum" ,-1 , grd_empldietlist.colRef("totmeal"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_empldietlist.subtotal("sum" ,-1 , grd_empldietlist.colRef("totmealamt"),"format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_empldietlist.subtotal("sum" ,-1 , grd_empldietlist.colRef("breakmealamt"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_empldietlist.subtotal("sum" ,-1 , grd_empldietlist.colRef("lunchmealamt"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- grd_empldietlist.subtotal("sum" ,-1 , grd_empldietlist.colRef("dinnermealamt"),"format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
- }
-
-
- // 급여이체
- // if (grd_emplidcard.rows - grd_emplidcard.fixedRows > 0) {
- // var payyn = grd_emplidcard.valueMatrix(grd_emplidcard.fixedRows,grd_emplidcard.colRef("payyn"));
-
- // if (payyn == "Y") {
- btn_paysave.disabled = false;
- btn_retirepayapp.disabled = false;
- // }
- // else {
- // btn_paysave.disabled = true;
- // }
- // }
- // else {
- // btn_paysave.disabled = true;
- // }
- ]]>
- </script>
- </button>
- <line id="line3" style="x1:1106px; y1:1px; x2:1106px; y2:46px; "/>
- <caption id="caption5" class="search_name" style="left:345px; top:13px; width:58px; height:17px; ">기간:</caption>
- <input id="ipt_eatfromdd2" ref="/root/send/searchitem/eatfromdd" class="input_s_essential" disabled="true" inputtype="date" style="left:399px; top:12px; width:90px; height:19px; "/>
- <caption id="caption7" class="search_n_b" style="left:494px; top:12px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_eattodd2" ref="/root/send/searchitem/eattodd" class="input_s_essential" disabled="true" inputtype="date" style="left:509px; top:12px; width:90px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:607px; top:13px; width:59px; height:17px; ">끼니:</caption>
- <select1 id="cmb_mealflag2" ref="/root/send/searchitem/mealflag" class="combo_s_essential" appearance="minimal" style="left:661px; top:12px; width:62px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>조식</label>
- <value>1</value>
- </item>
- <item>
- <label>중식</label>
- <value>2</value>
- </item>
- <item>
- <label>석식</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_instcd2" ref="/root/send/searchitem/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:86px; top:12px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:5px; top:13px; width:81px; height:17px; ">식수기관:</caption>
- <caption id="caption10" class="search_name" style="left:734px; top:13px; width:72px; height:17px; ">사번:</caption>
- <button id="button2" class="icon_search" style="left:854px; top:12px; 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_search1.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_emplnos2" ref="/root/send/searchitem/emplno" class="input_default" style="left:790px; top:12px; width:62px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
- inputEnterKey("ipt_emplnos2", "xforms-value-changed");
- }
- ]]>
- </script>
- <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_search1.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </input>
- <input id="ipt_emplnms2" ref="/root/send/searchitem/emplnm" class="input_default" style="left:873px; top:12px; width:71px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
- inputEnterKey("ipt_emplnms2", "xforms-value-changed");
- }
- ]]>
- </script>
- <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_search1.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption12" class="search_name" style="left:192px; top:13px; width:68px; height:17px; ">공제월:</caption>
- <input id="ipt_deduym2" ref="/root/send/searchitem/deduym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:259px; top:12px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var deduym = ipt_deduym2.value;
- var dedudd = deduym+"01";
-
- model.setValue(ipt_eattodd2.attribute("ref") , deduym + "15");
- model.setValue(ipt_eatfromdd2.attribute("ref") , dedudd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMM")+"16");
- ipt_eatfromdd2.refresh();
- ipt_eattodd2.refresh();
-
- ]]>
- </script>
- </input>
- <select1 id="cmb_payappyn2" ref="/root/send/searchitem/payappyn" class="combo_s_essential" appearance="minimal" style="left:1035px; top:12px; width:62px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption13" class="search_name" style="left:955px; top:13px; width:82px; height:17px; ">급여반영:</caption>
- </group>
- <button id="btn_excelsave2" class="btn2_letter4" style="left:1120px; top:55px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save", ",", false, "직원식급여이체현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_empldietlist.saveExcel(filename, "grd_empldietlist", true, false, "", "", "");
- }
- ]]>
- </script>
- </button>
- <button id="btn_paysave" class="btn5_letter4" disabled="true" style="left:970px; top:55px; width:64px; height:19px; ">
- <caption>급여이체</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd","ipt_deduym2"))return;
-
- var retMes = messageBox("자료를 급여이체하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
-
-
- submit("TRRWD06002");
- var chkyn= model.getValue("/root/main/payappyn/payappynlist/chkyn");
- if(chkyn =='Y'){
- messageBox("급여이체 자료가 이미","I001");
- return;
- }
-
- var instcd = cmb_instcd.value;
- var payym = ipt_deduym2.value;
- var payfromdd = ipt_eatfromdd2.value;
- var paytodd = ipt_eattodd2.value;
- var retireyn = "N";
- var payitemcd = "60260";
-
- model.setValue("/root/send/payappsend/instcd",cmb_instcd.value);
- model.setValue("/root/send/payappsend/payym",payym);
- model.setValue("/root/send/payappsend/payitemcd",payitemcd);
- model.setValue("/root/send/payappsend/payfromdd",payfromdd);
- model.setValue("/root/send/payappsend/paytodd",paytodd);
- model.setValue("/root/send/payappsend/retireyn",retireyn);
-
-
- misfSave("TXRWZ00303");
- if (model.getValue(gvErrorMsgPath + "/type") != "error"){
- messageBox("급여이체작업이","I001");
- btn_search1.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="btn_retirepayapp" class="btn5_letter5" disabled="true" style="left:1040px; top:55px; width:75px; height:19px; ">
- <caption>퇴직자이체</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd","ipt_deduym2"))return;
-
- var retMes = messageBox("자료를 급여이체하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
-
- var instcd = cmb_instcd.value;
- var payym = ipt_deduym2.value;
- var payfromdd = ipt_eatfromdd2.value;
- var paytodd = ipt_eattodd2.value;
- var retireyn = "Y";
- var payitemcd = "60260";
-
- model.setValue("/root/send/payappsend/instcd",cmb_instcd.value);
- model.setValue("/root/send/payappsend/payym",payym);
- model.setValue("/root/send/payappsend/payitemcd",payitemcd);
- model.setValue("/root/send/payappsend/payfromdd",payfromdd);
- model.setValue("/root/send/payappsend/paytodd",paytodd);
- model.setValue("/root/send/payappsend/retireyn",retireyn);
-
-
- misfSave("TXRWZ00303");
- if (model.getValue(gvErrorMsgPath + "/type") != "error"){
- messageBox("급여이체작업이","I001");
- btn_search1.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_eatsel" class="btn_sw" group="tab" selected="true" style="left:5px; top:3px; width:100px; height:22px; ">
- <caption>식수조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- model.refresh();
- finit();
- ]]>
- </script>
- </button>
- <button id="btn_eatpay" class="btn_sw" group="tab" style="left:107px; top:3px; width:100px; height:22px; ">
- <caption>급여이체</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- model.refresh();
- finit_pay();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|