123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <?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>
- <ngdtamt>
- <ngdtamtlist>
- <instcd/>
- <holingdtamt/>
- <weekngdtamt/>
- </ngdtamtlist>
- </ngdtamt>
- </main>
- <hidden>
- </hidden>
- <temp>
- </temp>
- <init/>
- <send>
- <req>
- <instcd/>
- </req>
- <save>
- <ngdtamtlist/>
- </save>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/req/instcd", getUserInfo("dutplceinstcd"));
- rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
-
- model.makeNode("/root/init/gridlavelcombo/R03140/R03140");
-
- model.copyNode("/root/init/gridlavelcombo/R03140", "/root/init/lavelcombo/R03140");
- addGridComboItem("cmb_instcd", "전체", "","above");
- cmb_instcd.value="";
-
- model.removeNodeset(grd_ngdtamtlist.nodeset);
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- <submission id="TRRTS02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/ngdtcdlist"/>
- <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="임상과^주간금액^야간금액^적용일자" colsep="^" colwidth="188, 268, 245, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:70px; width:1190px; height:670px; ">
- <col ref="instcd" type="combo" visibility="visible" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/gridlavelcombo/R03140/R03140">
- <label ref="detldesc"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="weekngdtamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="holingdtamt" type="input" format="#,###" style="text-align:right; "/>
- <col type="inputdate"/>
- </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[
- if ( !isRequiredControls("grd_ngdtamtlist.instcd") ) {
- return false;
- }
- model.removenode("/root/main/ngdtamt");
- 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:97px; top:14px; width:148px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:11px; top:15px; width:94px; height:17px; ">근무병원 :</caption>
- <button id="btn_insert" class="btn2_letter3" style="left:1074px; top:43px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- 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:1135px; top:43px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_ngdtamtlist.rowStatus(grd_ngdtamtlist.row) = "4";
- grd_ngdtamtlist.row += 1;
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/send/req/instcd" class="combo_s_essential" disabled="false" appearance="minimal" style="left:416px; top:14px; width:148px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:340px; top:15px; width:94px; height:17px; ">임상과 :</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[
- 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>
|