123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425 |
- <?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>
- <oproommeal>
- <oproommeallist/>
- </oproommeal>
- <payappmealdd>
- <payappmealddlist>
- <mindd/>
- </payappmealddlist>
- </payappmealdd>
- </main>
- <send>
- <oproommeal>
- <instcd/>
- <mealfromdd/>
- <mealtodd/>
- <mealflag/>
- <emplno/>
- <emplnm/>
- <mealdd/>
- <workflag>A</workflag>
- <payappym/>
- </oproommeal>
- <save>
- <oproommeallist/>
- </save>
- <payapp>
- <payym/>
- <payitemcd/>
- <instcd/>
- <payfromdd/>
- <paytodd/>
- </payapp>
- </send>
- <temp>
- <emplno/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_oproommeallist);
-
- misfMsterDetailSet(grd_oproommeallist, null, "TRRWD01501" ,"Y");
-
- var curdate = getCurrentDate();
- model.setValue(ipt_mealfromdd.attribute("ref") , curdate.substr(0, 8));
- model.setValue(ipt_mealtodd.attribute("ref") , curdate.substr(0, 8));
- model.setValue(ipt_mealdd.attribute("ref") , curdate.substr(0, 8));
-
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- misfComboComCdListMulti("M0042,M0042","cmb_mealflag,grd_oproommeallist.mealflag");
-
- model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
-
- misfGetUserAuth();
-
- if (DUTY_PAY_YN == "Y" ) {
- cmb_instcd.disabled = false;
- }
- else {
- cmb_instcd.disabled = true;
- }
-
- model.refresh();
- model.setFocus("ipt_mealfromdd");
- ]]>
- </script>
- <submission id="TRRWD01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/oproommeal" resultref="/root/main/oproommeal"/>
- <submission id="TXRWD01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TRRWD01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/oproommeal" resultref="/root/main/payappmealdd"/>
- <submission id="TXRWZ00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payapp" resultref="/root/hidden/temp"/>
- </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"/>
- <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.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; ">
- <line id="line9" class="line_1" style="x1:0px; y1:69px; x2:1193px; y2:69px; "/>
- <caption id="caption34" class="tit_2" style="left:6px; top:52px; width:186px; height:13px; ">수술실 식대 List</caption>
- <group id="grp_sea" style="left:0px; top:10; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1124px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <line id="line5" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_mealfromdd" ref="/root/send/oproommeal/mealfromdd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:454px; top:7px; width:90px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="cap_payym" class="search_name" style="left:400px; top:8px; width:61px; height:17px; ">기간:</caption>
- <select1 id="cmb_instcd" ref="/root/send/oproommeal/instcd" class="combo_s_essential" appearance="minimal" style="left:225px; top:7px; width:151px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:171px; top:7px; width:61px; height:17px; ">기관:</caption>
- <input id="ipt_emplnm" ref="/root/send/oproommeal/emplnm" class="input_default" style="left:974px; top:7px; width:96px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (ipt_emplnm.currentText != null && ipt_emplnm.currentText != "" ) {
- inputEnterKey("ipt_emplnm", "xforms-value-changed");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNM", recv_list);
-
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_emplno" class="icon_search" style="left:953px; top:7px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "emplno,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N");
-
- model.refresh();
-
- if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_emplno" ref="/root/send/oproommeal/emplno" class="input_default" style="left:879px; top:7px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (ipt_emplno.currentText != null && ipt_emplno.currentText != "" ) {
- inputEnterKey("ipt_emplno", "xforms-value-changed");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNO", recv_list);
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:825px; top:8px; width:61px; height:17px; ">사번:</caption>
- <input id="ipt_mealtodd" ref="/root/send/oproommeal/mealtodd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:556px; top:7px; width:90px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="caption1" style="left:545px; top:7px; width:10px; height:20px; ">-</caption>
- <select1 id="cmb_mealflag" ref="/root/send/oproommeal/mealflag" class="combo_s_essential" appearance="minimal" style="left:720px; top:7px; width:86px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_mealflag" class="search_name" style="left:666px; top:7px; width:61px; height:17px; ">구분:</caption>
- <select1 id="rdo_workflag" ref="/root/send/oproommeal/workflag" appearance="full" cols="2" overflow="visible" style="left:15px; top:7px; width:140px; height:20px; border-style:solid; ">
- <choices>
- <item>
- <label>식대등록</label>
- <value>A</value>
- </item>
- <item>
- <label>급여반영</label>
- <value>B</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfGridInit(grd_oproommeallist);
-
- if (rdo_workflag.value == "A") {
- ipt_mealfromdd.disabled = false;
- cmb_mealflag.disabled = false;
-
- cmb_mealflag.value = "";
- misfComboComCdListMulti("Z0007,M0042,M0042","cmb_instcd,cmb_mealflag,grd_oproommeallist.mealflag");
- model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
-
- ipt_emplno.disabled = false;
- ipt_emplnm.disabled = false;
- btn_emplno.disabled = false;
-
- ipt_mealdd.visible = true;
- ipt_inputemplno.visible = true;
- btn_inputemplno.visible = true;
- caption5.visible = true;
- caption4.visible = true;
-
- grd_oproommeallist.colDisabled(grd_oproommeallist.colRef("payappyn")) = true;
-
- btn_allselect.visible = false;
- btn_allunselect.visible = false;
-
- ipt_payappym.visible = false;
- btn_payapp.visible = false;
-
- ipt_payappym.value = "";
-
- }
- else {
- ipt_mealfromdd.disabled = true;
- cmb_mealflag.disabled = true;
-
- addComboItem( "cmb_mealflag", "[-- 전체 --]", "%", "above");
- model.setValue(cmb_mealflag.attribute("ref"), "%");
-
- ipt_emplno.value = "";
- ipt_emplnm.value = "";
-
- ipt_emplno.disabled = true;
- ipt_emplnm.disabled = true;
- btn_emplno.disabled = true;
-
- ipt_mealdd.visible = false;
- ipt_inputemplno.visible = false;
- btn_inputemplno.visible = false;
- caption5.visible = false;
- caption4.visible = false;
-
- grd_oproommeallist.colDisabled(grd_oproommeallist.colRef("payappyn")) = false;
-
- btn_allselect.visible = true;
- btn_allunselect.visible = true;
-
- ipt_payappym.visible = true;
- btn_payapp.visible = true;
-
- var curdate = getCurrentDate();
- ipt_payappym.value = curdate.substr(0, 6);
-
- submit("TRRWD01502");
-
- if (model.getValue("/root/main/payappmealdd/payappmealddlist/mindd") != null && model.getValue("/root/main/payappmealdd/payappmealddlist/mindd") != "") {
- ipt_mealfromdd.value = model.getValue("/root/main/payappmealdd/payappmealddlist/mindd") ;
- }
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:1130px; top:49px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_oproommeallist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_oproommeallist" nodeset="/root/main/oproommeal/oproommeallist" caption="급여반영여부^등록일자^등록시간^구분^사번^성명^부서^교직구분^직위^직종^직책^직급^급여반영월^공제여부^기관|급여반영여부^등록일자^등록시간^구분^사번^성명^부서^교직구분^직위^직종^직책^직급^급여반영월^공제여부^기관" colsep="^" colwidth="43, 95, 77, 101, 80, 87, 119, 90, 94, 97, 119, 65, 80, 36, 24" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:73px; width:1193px; height:667px; ">
- <col checkvalue="Y,N" disabled="true" ref="payappyn" type="checkbox" style="text-align:center; "/>
- <col ref="mealdd" format="yyyy-mm-dd" style="text-align:center; vertical-align:middle; "/>
- <col ref="mealtm" format="99:99" style="text-align:center; vertical-align:middle; "/>
- <col disabled="true" ref="mealflag" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="emplno"/>
- <col ref="emplnm"/>
- <col ref="deptnm"/>
- <col ref="prfshipflagnm"/>
- <col ref="jobposnm"/>
- <col ref="jobkindnm"/>
- <col ref="jobrespnm"/>
- <col ref="jobgradnm"/>
- <col ref="payappym" format="yyyy-mm"/>
- <col ref="paydeduyn" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
- <col ref="instcd" visibility="hidden"/>
- </datagrid>
- <caption id="caption4" class="search_name" style="left:331px; top:49px; width:61px; height:17px; ">사번:</caption>
- <button id="btn_inputemplno" class="icon_search" style="left:499px; top:49px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "emplno" ;
- rpbfOpenPopUpList("SPRPB00101", ipt_inputemplno, recv_list,"","N");
-
- model.refresh();
-
- if (ipt_inputemplno.value != null && ipt_inputemplno.value != "") {
- ipt_inputemplno.dispatch("xforms-value-changed");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_inputemplno" ref="/root/temp/emplno" class="input_default" format="99999999" style="left:385px; top:49px; width:110px; height:19px; font-size:12pt; font-weight:bold; color:#3366ff; text-align:center; vertical-align:middle; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if (cmb_mealflag.value == null || cmb_mealflag.value == "" ) {
- messageBox("구분을 입력 하십시요.!!!.","");
- return;
- }
-
- misfGridIUD(grd_oproommeallist, "A");
-
- grd_oproommeallist.valueMatrix(grd_oproommeallist.row, grd_oproommeallist.colRef("emplno")) = ipt_inputemplno.value;
-
- misfSave("TXRWD01501");
-
- btn_search.dispatch("DOMActivate");
-
- model.setFocus("ipt_inputemplno");
- ipt_inputemplno.value = "";
-
- ]]>
- </script>
- </input>
- <input id="ipt_mealdd" ref="/root/send/oproommeal/mealdd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:205px; top:49px; width:120px; height:19px; font-size:12pt; font-weight:bold; color:#3366ff; text-align:center; vertical-align:middle; "/>
- <caption id="caption5" class="search_name" style="left:136px; top:49px; width:68px; height:17px; ">입력일:</caption>
- <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1075px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_oproommeallist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_allselect" class="btn2_letter4" visibility="hidden" style="left:910px; top:49px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = grd_oproommeallist.fixedRows; i < grd_oproommeallist.rows; i++ ) {
- if (grd_oproommeallist.valueMatrix(i, grd_oproommeallist.colRef("payappyn")) != "Y") {
- grd_oproommeallist.valueMatrix(i, grd_oproommeallist.colRef("payappyn")) = "Y";
- grd_oproommeallist.rowStatus(i) = "2";
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_allunselect" class="btn2_letter6" visibility="hidden" style="left:975px; top:49px; width:64px; height:19px; ">
- <caption>전체선택취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = grd_oproommeallist.fixedRows; i < grd_oproommeallist.rows; i++ ) {
- if (grd_oproommeallist.valueMatrix(i, grd_oproommeallist.colRef("payappyn")) == "Y") {
- grd_oproommeallist.valueMatrix(i, grd_oproommeallist.colRef("payappyn")) = "N";
- grd_oproommeallist.rowStatus(i) = "2";
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_payappym" ref="/root/send/oproommeal/payappym" class="input_default" visibility="hidden" inputtype="date" format="yyyy-mm" style="left:670px; top:49px; width:90px; height:19px; text-align:center; vertical-align:middle; "/>
- <button id="btn_payapp" class="btn5_letter4" visibility="hidden" style="left:765px; top:49px; width:64px; height:19px; ">
- <caption>급여반영</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_oproommeallist.rows - grd_oproommeallist.fixedRows <= 0) {
- messageBox("급여 반영 자료가 없습니다. 자료 조회후 실행하세요!!!.","");
- return;
- }
-
- var updtdata = getGridUpdateData(grd_oproommeallist);
-
- if (updtdata != "") {
- messageBox("저장후 급여반영 하십시요!!!.","");
- return;
- }
-
- model.setValue("/root/send/payapp/payym", ipt_payappym.value);
- model.setValue("/root/send/payapp/payitemcd", "60260");
- model.setValue("/root/send/payapp/payfromdd", ipt_mealfromdd.value);
- model.setValue("/root/send/payapp/paytodd", ipt_mealtodd.value);
- model.setValue("/root/send/payapp/instcd", cmb_instcd.value);
-
- submit("TXRWZ00303");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0; top:12; width:1195px; height:27px; ">
- <line id="line4" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="button36" class="btn4_letter2" style="left:1137px; top:2px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSave("TXRWD01501");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|