123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325 |
- <?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>응급의학과 Staff관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <unpreperlist>
- <unprepdeptflag/>
- <unprepdeptcd/>
- <unprepdrnm/>
- <valifromdd/>
- <valitodd/>
- <lastupdtrnm/>
- <lastupdtdt/>
- <unprepdrid/>
- <unprepdeptnm/>
- </unpreperlist>
- </list>
- <seleteddept>
- <unprepdepter/>
- <unprepdeptpd/>
- </seleteddept>
- </main>
- <send>
- <reqdata/>
- <savedata>
- <unprepdeptflag/>
- <unprepdeptcd/>
- <unprepdrid/>
- <unprepdrnm/>
- <valifromdd/>
- <pdapplyflag/>
- <unprepsearchdeptflag/>
- <instcd/>
- </savedata>
- </send>
- <init>
- <deptlist>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- </deptlist>
- <unprepdrinfo>
- <orddrid/>
- <orddrnm/>
- <unprepdeptflag>-</unprepdeptflag>
- </unprepdrinfo>
- </init>
- <result>
- <param/>
- </result>
- <temp>
- <userinfo>
- <usercombo/>
- </userinfo>
- </temp>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- /// fGetDeptCodeComboList("/root/send/reqdata", "/root/init/deptlist", "A", getCurrentDate());
-
- // fInitialize_SPMMO21000();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-close">
- <![CDATA[
- xforms_close();
- /*
- if (model.getValue("/root/init/rcnt") == "" || model.getValue("/root/init/closestat") != "Y") {
- opener.javascript.setParameter("SPMMO15600_addcnt", parseInt(opener.javascript.getParameter("SPMMO15600_srchRow")) );
- } else {
- opener.javascript.setParameter("SPMMO15600_addcnt", parseInt(model.getValue("/root/init/rcnt"))+parseInt(opener.javascript.getParameter("SPMMO15600_srchRow")) - 1);
- }
- */
- ]]>
- </script>
- <submission id="TRMRI02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/userinfo"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXMRI03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
- <submission id="TRMRI03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list"/>
- <submission id="TRMRI03202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list"/>
- </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="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/unprepmngtweb/js/SPMRI03200.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="660" pageheight="460" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <line id="line2" class="line_1" style="x1:0px; y1:84px; x2:640px; y2:83px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:67px; width:160px; height:13px; vertical-align:middle; ">응급실 미비 Staff 목록</caption>
- <datagrid id="grd_unpreplist" nodeset="/root/main/list/unpreperlist" autoresize="true" caption="미비부서구분^미비부서^미비의사^미비의사ID^적용시작일자^적용종료일자^최종수정일시^최종수정자" colsep="^" colwidth="83, 87, 63, 20, 79, 78, 119, 80" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:80px; width:640px; height:245px; ">
- <col ref="unprepdeptflag"/>
- <col ref="unprepdeptnm"/>
- <col ref="unprepdrnm" style="text-align:center; "/>
- <col ref="unprepdrid" visibility="hidden"/>
- <col ref="valifromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="valitodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="lastupdtrnm" style="text-align:center; "/>
- </datagrid>
- <group id="group1" style="left:0px; top:0px; width:640px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">응급실 미비 Staff 관리</caption>
- </group>
- <group id="group2" style="left:0px; top:18px; width:640px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:640px; height:35px; color:#3366ff; "/>
- <input id="ipt_InstCD" ref="/root/send/savedata/instcd" class="input_search" visibility="hidden" style="left:280px; top:8px; width:80px; height:19px; "/>
- <input id="input1" ref="/root/send/savedata/valifromdd" visibility="hidden" inputtype="date" style="left:375px; top:8px; width:90px; height:19px; "/>
- <select1 id="cmb_SearchDeptFlag" ref="/root/init/unprepdrinfo/unprepdeptflag" class="combo_s_essential" navindex="0" appearance="minimal" style="left:135px; top:8px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>응급의학과</label>
- <value>ER</value>
- </item>
- <item>
- <label>소아청소년과</label>
- <value>PD</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:18px; top:8px; width:117px; height:17px; ">미비부서구분 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="1" style="left:572px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn1_letter2" visibility="hidden" style="left:470px; top:7px; width:56px; height:22px; ">
- <caption>배치</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/savedata/unprepdeptflag", "BATCH");
- fSaveData();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_ErStaff" class="btn_sw" group="tab" selected="true" style="left:0px; top:340px; width:110px; height:22px; ">
- <caption>응급의학과</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vdrid = model.getValue("/root/send/savedata/unprepdrid");
- var vdrnm = model.getValue("/root/send/savedata/unprepdrnm");
- var vfromdd = model.getValue("/root/send/savedata/valifromdd");
-
- model.removeNodeset("/root/send/savedata");
- model.makeValue("/root/send/savedata/unprepdeptflag", "ER");
- model.makeValue("/root/send/savedata/unprepdeptcd", model.getValue("/root/main/seleteddept/unprepdepter"));
- model.makeValue("/root/send/savedata/unprepdrid", vdrid);
- model.makeValue("/root/send/savedata/unprepdrnm", vdrnm);
- model.makeValue("/root/send/savedata/valifromdd", vfromdd);
- model.makeValue("/root/send/savedata/instcd", ""); //임시
-
- fGetDeptCodeComboList("/root/send/reqdata", "/root/init/deptlist", "ED", getCurrentDate());
- cmb_deptcd.select(0);
- model.refresh();
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:362px; width:640px; height:83px; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:638px; height:60px; ">
- <group id="group3" style="left:0px; top:5px; width:630px; height:50px; ">
- <input id="ipt_valiFromdd" ref="/root/send/savedata/valifromdd" navindex="5" inputtype="date" style="left:520px; top:21px; width:90px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:405px; top:21px; width:117px; height:17px; ">적용시작일자 :</caption>
- <select1 id="cmb_deptcd" ref="/root/main/seleteddept/unprepdepter" class="combo_s_essential" navindex="3" appearance="minimal" style="left:100px; top:21px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.makeValue("/root/send/savedata/unprepdeptcd", model.getValue("/root/main/seleteddept/unprepdepter"));
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_unprepdrnm" ref="/root/send/savedata/unprepdrnm" class="input_search" navindex="4" style="left:295px; top:21px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //enter입력시
- if(event.keyCode == 13 || event.keyCode == 0){
- model.removenode("root/send/savedata/unprepdrid");
- model.removenode("root/send/savedata/unprepdrnm");
-
- var unprepdrnm = ipt_unprepdrnm.currentText;
-
- if(isNumber(unprepdrnm.charAt(0))){
- fReqGetUnPrepDrSmplList("id", unprepdrnm);
- }else{
- fReqGetUnPrepDrSmplList("nm", unprepdrnm);
- }
-
- var nodelist = model.instances(0).selectNodes("/root/temp/userinfo/usercombo");
- if(nodelist.length == 0){
- messageBox("의사 정보가", "I004");
- return;
-
- }else if(nodelist.length == 1){
- model.makeValue("root/send/savedata/unprepdrid", model.getValue("/root/temp/userinfo/usercombo/userid"));
- model.makeValue("root/send/savedata/unprepdrnm", model.getValue("/root/temp/userinfo/usercombo/usernm"));
-
- }else if(nodelist.length > 1){
- setParameter("SPMRI02900_stnddd" , getCurrentDate());
- setParameter("SPMRI02900_orddrnm", unprepdrnm);
- modal("SPMRI02900");
- if(getParameter("SPMRI02900_useyn")=="Y"){
- var doctinfo = getParameter("SPMRI02900_rtnparam");
- doctinfo = doctinfo.split("^");
- model.makeValue("root/send/savedata/unprepdrid", doctinfo[3]);
- model.makeValue("root/send/savedata/unprepdrnm", doctinfo[4]);
- }
-
- }else{
- model.makeValue("root/send/savedata/unprepdrid", model.getValue("/root/init/unprepdrinfo/orddrid"));
- model.makeValue("root/send/savedata/unprepdrnm", model.getValue("/root/init/unprepdrinfo/orddrnm"));
-
- }
-
-
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:203px; top:21px; width:90px; height:17px; ">미비의사 :</caption>
- <caption id="caption10" class="search_name" style="left:8px; top:21px; width:92px; height:17px; ">미비부서 :</caption>
- <button id="btn_patreq" class="icon_search" visibility="visible" style="left:380px; top:21px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ipt_unprepdrnm.dispatch("onkeydown");
- ]]>
- </script>
- </button>
- </group>
- </case>
- <case id="case2">
- <group id="group4" style="left:0px; top:5px; width:630px; height:50px; ">
- <caption id="caption2" class="search_name" style="left:230px; top:21px; width:95px; height:17px; ">적용구분 :</caption>
- <select1 id="cmb_deptcdPD" ref="/root/main/seleteddept/unprepdeptpd" class="combo_s_essential" navindex="3" appearance="minimal" style="left:100px; top:21px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/savedata/unprepdeptcd", model.getValue("/root/main/selecteddept/unprepdeptpd"));
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:8px; top:21px; width:92px; height:17px; ">미비부서 :</caption>
- <select1 id="rdo_PDApplyFlag" ref="/root/send/savedata/pdapplyflag" class="radio_search" navindex="4" appearance="full" cols="2" overflow="visible" style="left:320px; top:20px; width:210px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>적용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미적용</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- ]]>
- </script>
- </select1>
- </group>
- </case>
- </switch>
- <button id="btn_PDStaff" class="btn_sw" group="tab" selected="true" style="left:110px; top:340px; width:110px; height:22px; ">
- <caption>소아청소년과</caption>
- <toggle case="case2" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vdrid = model.getValue("/root/send/savedata/unprepdrid");
- var vdrnm = model.getValue("/root/send/savedata/unprepdrnm");
- var vfromdd = model.getValue("/root/send/savedata/valifromdd");
-
- model.removeNodeset("/root/send/savedata");
- model.makeValue("/root/send/savedata/unprepdeptflag", "PD");
- model.makeValue("/root/send/savedata/pdapplyflag","Y");
- model.makeValue("/root/send/savedata/unprepdeptcd", model.getValue("/root/main/seleteddept/unprepdeptpd"));
- model.makeValue("/root/send/savedata/unprepdrid", vdrid);
- model.makeValue("/root/send/savedata/unprepdrnm", vdrnm);
- model.makeValue("/root/send/savedata/valifromdd", vfromdd);
-
- fGetDeptCodeComboList("/root/send/reqdata", "/root/init/deptlist", "PD", getCurrentDate());
- cmb_deptcdPD.select(0);
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_Save" class="btn4_letter2" navindex="6" style="left:585px; top:338px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveData();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|