123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272 |
- <?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>
- <ngdtamt>
- <ngdtamtlist>
- </ngdtamtlist>
- </ngdtamt>
- </main>
- <hidden>
- </hidden>
- <temp>
- </temp>
- <init/>
- <send>
- <req>
- <instcd/>
- <appym/>
- <sdeptcd/>
- </req>
- <save>
- <ngdtamtlist/>
- </save>
- </send>
- <tempamt>
- <ngdtamt/>
- <holingdtamt/>
- </tempamt>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //사용자 권한
- fCheckAuth();
-
- misfGridInit(grd_ngdtamtlist);
-
- misfMsterDetailSet(grd_ngdtamtlist, null, "TRRTS02901", "Y");
-
- rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
- misfComboComCdListMulti("R0234,R0234", "cmb_deptcd,grd_ngdtamtlist.deptcd");
-
- var dutplceinstcd = getUserInfo("dutplceinstcd");
- model.setValue("/root/send/req/instcd", dutplceinstcd);
-
- addComboItem( "cmb_deptcd", "전체", "", "above");
- model.setValue(cmb_deptcd.attribute("ref"), "");
-
- var today = getCurrentDate();
- var cur_yymm = parseInt(today.substring(0,6));
- model.setValue("/root/send/req/appym", cur_yymm);
-
- if (dutplceinstcd == "001" && getUserInfo("dutplcecd") == "4110100000") {
- cmb_instcd.disabled = false;
- }else{
- cmb_instcd.disabled = true;
- }
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRRTS02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/ngdtamt"/>
- <submission id="TXRTS02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- </model>
- <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="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript">
- <![CDATA[
- function fCheckSaveData()
- {
- for(var currow = grd_ngdtamtlist.fixedRows ; currow < grd_ngdtamtlist.rows ; currow++)
- {
- if(grd_ngdtamtlist.valueMatrix(currow , grd_ngdtamtlist.colRef("instcd")).length == 0)
- {
- messageBox(currow + " 번째 근무 병원을 " ,"C001");
- grd_ngdtamtlist.row = currow;
- grd_ngdtamtlist.col= grd_ngdtamtlist.colRef("instcd");
- return false;
- }
- else
- {
- for(srcrow = currow + 1 ; srcrow < grd_ngdtamtlist.rows ; srcrow++)
- {
- if(grd_ngdtamtlist.valueMatrix(currow , grd_ngdtamtlist.colRef("instcd")) == grd_ngdtamtlist.valueMatrix(srcrow , grd_ngdtamtlist.colRef("instcd")))
- {
- messageBox("동일 근무병원이 [" + (currow - grd_ngdtamtlist.fixedRows + 1)+ "," + (srcrow - grd_ngdtamtlist.fixedRows + 1)+ "->" + grd_ngdtamtlist.valueMatrix(currow , grd_ngdtamtlist.colRef("instcd")) + "] 존재하여 저장 " ,"E001");
- return false;
- }
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <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:38px; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
- <datagrid id="grd_ngdtamtlist" nodeset="/root/main/ngdtamt/ngdtamtlist" caption="임상과^평일당직비^휴일당직비^적용일자^instcd^olddeptcd^oldappdd|임상과^평일당직비^휴일당직비^적용일자^instcd^olddeptcd^oldappdd" colsep="^" colwidth="279, 254, 245, 163, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:70px; width:1190px; height:670px; ">
- <col ref="deptcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="ngdtamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="holingdtamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="appdd" type="inputdate"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="olddeptcd" visibility="hidden"/>
- <col ref="oldappdd" visibility="hidden"/>
- </datagrid>
- <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRTS02901");
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption5" class="tit_2" style="left:5px; top:48px; width:140px; height:15px; font-size:10pt; ">당직비</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1190px; y2:66px; "/>
- <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_s_essential" disabled="false" appearance="minimal" style="left:287px; top:15px; width:148px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:201px; top:15px; width:94px; height:17px; ">근무병원 :</caption>
- <button id="btn_insert" class="btn2_letter3" style="left:1004px; top:43px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd"))return;
- misfGridIUD(grd_ngdtamtlist, "A");
-
- // grd_ngdtamtlist.addRow();
- // model.setValue(grd_ngdtamtlist.nodeset +"[" + (grd_ngdtamtlist.rows - grd_ngdtamtlist.fixedRows) + "]/instcd" ,model.getValue(cmb_instcd.attribute("ref")));
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:1061px; top:43px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_ngdtamtlist, "D");
- // grd_ngdtamtlist.rowStatus(grd_ngdtamtlist.row) = "4";
- // grd_ngdtamtlist.row += 1;
- ]]>
- </script>
- </button>
- <input id="ipt_appym" ref="/root/send/req/appym" inputtype="date" format="yyyy-mm" style="left:70px; top:15px; width:100px; height:19px; "/>
- <caption id="cap_yy" class="search_name" style="left:10px; top:15px; width:60px; height:17px; ">년월 :</caption>
- <select1 id="cmb_deptcd" ref="/root/send/req/sdeptcd" class="combo_s_essential" disabled="false" appearance="minimal" style="left:543px; top:15px; width:148px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:469px; top:15px; width:74px; height:17px; ">임상과 :</caption>
- <button id="button1" class="btn2_letter5" style="left:1115px; top:43px; width:67px; height:19px; ">
- <caption>excel저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_ngdtamtlist.rowStatus(grd_ngdtamtlist.row) = "4";
- grd_ngdtamtlist.row += 1;
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter4" style="left:465px; top:43px; width:64px; height:19px; ">
- <caption>일괄생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset(grd_ngdtamtlist.nodeset);
- model.refresh();
-
- var today = getCurrentDate();
- var cur_yymm = today.substring(0,6);
- var cur_yymmdd = cur_yymm+'01';
-
- for(var i=1; i<=model.instance1.selectNodes("/root/init/comcd/R02340/R02340").length; i++){
-
- var deptcd = model.getValue("/root/init/comcd/R02340/R02340["+i+"]/cdid");
- if (deptcd != "" && deptcd != "AH" && deptcd != "TB" && deptcd != "HS" ) {
- grd_ngdtamtlist.addRow();
- model.setValue(
- grd_ngdtamtlist.nodeset +"[" + (grd_ngdtamtlist.rows - grd_ngdtamtlist.fixedRows) + "]/deptcd",
- model.getValue("/root/init/comcd/R02340/R02340["+i+"]/cdid")
- );
-
- model.setValue(
- grd_ngdtamtlist.nodeset +"[" + (grd_ngdtamtlist.rows - grd_ngdtamtlist.fixedRows) + "]/ngdtamt",
- model.getValue("/root/tempamt/ngdtamt")
- );
-
- model.setValue(
- grd_ngdtamtlist.nodeset +"[" + (grd_ngdtamtlist.rows - grd_ngdtamtlist.fixedRows) + "]/holingdtamt",
- model.getValue("/root/tempamt/holingdtamt")
- );
-
- model.setValue(
- grd_ngdtamtlist.nodeset +"[" + (grd_ngdtamtlist.rows - grd_ngdtamtlist.fixedRows) + "]/appdd",
- cur_yymmdd
- );
-
- model.setValue(grd_ngdtamtlist.nodeset +"[" + (grd_ngdtamtlist.rows - grd_ngdtamtlist.fixedRows) + "]/instcd" ,model.getValue(cmb_instcd.attribute("ref")));
- }
- }
-
-
- // grd_ngdtamtlist.addRow();
- // model.setValue(grd_ngdtamtlist.nodeset +"[" + (grd_ngdtamtlist.rows - grd_ngdtamtlist.fixedRows) + "]/instcd" ,model.getValue(cmb_instcd.attribute("ref")));
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:90px; top:44px; width:94px; height:17px; ">평일당직비:</caption>
- <input id="input2" ref="/root/tempamt/ngdtamt" format="#,###" style="left:185px; top:43px; width:85px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:275px; top:44px; width:94px; height:17px; ">휴일당직비:</caption>
- <input id="input3" ref="/root/tempamt/holingdtamt" format="#,###" style="left:370px; top:43px; width:85px; height:19px; "/>
- <caption id="caption4" style="left:550px; top:45px; width:425px; height:20px; font-weight:bold; color:#ff0000; ">※일괄 생성시 당직비 틀린 임상과는 개별 수정 해야 합니다.</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1130px; top:3px; width:56px; height:22px; text-align:left; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSave("TXRTS02901");
- btn_search.dispatch("DOMActivate");
- model.refresh();
-
- // fCheckSaveData();
- // var retMes = messageBox("", "Q002");
- // if ( retMes != 6) {
- // return;
- // }
- //
- // model.setValue("/root/send/save/ngdtamtlist", grd_ngdtamtlist.getUpdateData());
- // submit("TXRTS02901");
- //
- // model.removenode("/root/main/ngdtamt");
- //
- // submit("TRRTS02901");
- //
- // grd_ngdtamtlist.clearStatus();
- // model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|