123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- <?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>
- <trngngdt>
- <trngngdtlist/>
- </trngngdt>
- </main>
- <send>
- <trngngdt>
- <instcd/>
- <ngdtym/>
- <deptcd/>
- <deptnm/>
- <jobgradcd/>
- </trngngdt>
- <save>
- <trngngdtlist/>
- </save>
- <payapp>
- <instcd/>
- <payym/>
- <payitemcd/>
- </payapp>
- </send>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_trngngdtlist);
-
- misfMsterDetailSet(grd_trngngdtlist, null, "TRRWD08101" ,"Y");
-
- var curdate = getCurrentDate();
- model.setValue(ipt_ngdtym.attribute("ref") , curdate.substr(0, 6));
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- misfComboComCdListMulti("R0064","cmb_jobgradcd");
-
- model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
-
- addComboItem( "cmb_jobgradcd", "[-- 전체 --]", "", "above");
- model.setValue(cmb_jobgradcd.attribute("ref"), "");
-
-
- model.refresh();
- model.setFocus("cmb_instcd");
- ]]>
- </script>
- <submission id="TXRWZ00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payapp" resultref="/root/hidden/temp"/>
- <submission id="TXRWD08101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TRRWD08101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/trngngdt" resultref="/root/main/trngngdt"/>
- <submission id="TXRWD08102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/trngngdt" 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:14px; ">전공의 당직 횟수 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();
-
- if (grd_trngngdtlist.rows - grd_trngngdtlist.fixedRows <= 0) {
- btn_save.disabled = false;
- btn_addgrdtrngngdtlist.disabled = false;
- btn_delgrdtrngngdtlist.disabled = false;
- btn_makengdtlist.disabled = false;
- btn_payapp.disabled = true;
-
- return;
- }
-
- if (grd_trngngdtlist.valueMatrix(grd_trngngdtlist.fixedRows, grd_trngngdtlist.colRef("payendyn")) == "Y") {
- btn_payapp.disabled = true;
- btn_save.disabled = true;
- btn_addgrdtrngngdtlist.disabled = true;
- btn_delgrdtrngngdtlist.disabled = true;
- btn_makengdtlist.disabled = true;
-
-
- }
- else if (grd_trngngdtlist.valueMatrix(grd_trngngdtlist.fixedRows, grd_trngngdtlist.colRef("paydeduyn")) == "Y") {
- btn_payapp.disabled = true;
- btn_save.disabled = true;
- btn_addgrdtrngngdtlist.disabled = true;
- btn_delgrdtrngngdtlist.disabled = true;
- btn_makengdtlist.disabled = true;
-
- }
- else {
- btn_payapp.disabled = false;
- btn_save.disabled = false;
- btn_addgrdtrngngdtlist.disabled = false;
- btn_delgrdtrngngdtlist.disabled = false;
- btn_makengdtlist.disabled = false;
- }
- ]]>
- </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_ngdtym" ref="/root/send/trngngdt/ngdtym" class="input_default" inputtype="date" format="yyyy-mm" style="left:329px; top:7px; width:90px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="cap_payym" class="search_name" style="left:260px; top:8px; width:68px; height:17px; ">당직월:</caption>
- <select1 id="cmb_instcd" ref="/root/send/trngngdt/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:65px; 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:11px; top:7px; width:61px; height:17px; ">기관:</caption>
- <select1 id="cmb_jobgradcd" ref="/root/send/trngngdt/jobgradcd" class="combo_s_essential" appearance="minimal" style="left:865px; top:7px; width:150px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_mealflag" class="search_name" style="left:811px; top:7px; width:61px; height:17px; ">직급:</caption>
- <input id="ipt_deptcd" ref="/root/send/trngngdt/deptcd" class="input_default" style="left:521px; top:7px; width:79px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_deptnm" ref="/root/send/trngngdt/deptnm" class="input_default" style="left:626px; top:7px; width:139px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_deptcd3" class="icon_search" style="left:605px; top:7px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "deptcd,deptnm";
- var instcd = cmb_instcd.value;
- rpbfOpenDeptCdHelp(ipt_deptcd,recv_list,instcd,"instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption15" class="search_name" style="left:465px; top:8px; width:61px; height:17px; ">부서:</caption>
- </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_trngngdtlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_trngngdtlist" nodeset="/root/main/trngngdt/trngngdtlist" caption="사번^성명^소속^직급^평일당직^휴일당직^합계^비고^급여반영여부^기관^당직월^급여반영^급여마감^사번OLD|사번^성명^소속^직급^평일당직^휴일당직^합계^비고^급여반영여부^기관^당직월^급여반영^급여마감^사번OLD" colsep="^" colwidth="100, 87, 151, 116, 100, 100, 100, 337, 59, 27, 22, 31, 32, 37" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:73px; width:1193px; height:667px; ">
- <col ref="emplno" type="inputbutton"/>
- <col ref="emplnm"/>
- <col ref="deptnm"/>
- <col ref="jobgradnm"/>
- <col ref="ngdtcnt" type="input" style="text-align:center; vertical-align:middle; "/>
- <col ref="ngdtholicnt" type="input" style="text-align:center; vertical-align:middle; "/>
- <col ref="totcnt" style="text-align:center; vertical-align:middle; "/>
- <col ref="cmt" type="input"/>
- <col ref="paydeduyn"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="ngdtym" visibility="hidden"/>
- <col ref="payappyn" visibility="hidden"/>
- <col ref="payendyn" visibility="hidden"/>
- <col ref="oldemplno" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_trngngdtlist.colAttribute(grd_trngngdtlist.col,"ref") == "emplno" ) { //계산기준코드
- var recv_list = "emplno,emplnm";
-
- rpbfOpenPopUpList("SPRPB00101", grd_trngngdtlist, recv_list,"","N");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_trngngdtlist.colAttribute(grd_trngngdtlist.col,"ref") == "emplno" ) { //계산기준코드
- var recv_list = "emplno,emplnm";
- misfValidationCheck("01-1", "", recv_list);
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_delgrdtrngngdtlist" class="btn2_letter3" style="left:1075px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_trngngdtlist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_addgrdtrngngdtlist" class="btn2_letter3" style="left:1019px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_trngngdtlist, "A");
- ]]>
- </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="btn_save" class="btn4_letter2" style="left:1137px; top:2px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSave("TXRWD08101");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_payapp" class="btn4_letter4" disabled="true" visibility="visible" style="left:970px; top:2px; width:80px; height:22px; ">
- <caption>급여반영</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_trngngdtlist.rows - grd_trngngdtlist.fixedRows <= 0) {
- messageBox("급여 반영 자료가 없습니다. 자료 조회후 실행하세요!!!.","");
- return;
- }
-
- var updtdata = getGridUpdateData(grd_trngngdtlist);
-
- if (updtdata != "") {
- messageBox("저장후 급여반영 하십시요!!!.","");
- return;
- }
-
- model.setValue("/root/send/payapp/payym", ipt_ngdtym.value);
- model.setValue("/root/send/payapp/payitemcd", "10140");
- model.setValue("/root/send/payapp/instcd", cmb_instcd.value);
-
- submit("TXRWZ00303");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_makengdtlist" class="btn4_letter4" disabled="true" visibility="visible" style="left:1055px; top:2px; width:80px; height:22px; ">
- <caption>자료생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.setValue("/root/send/trngngdt/ngdtym", ipt_ngdtym.value);
- model.setValue("/root/send/trngngdt/instcd", cmb_instcd.value);
-
- submit("TXRWD08102");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|