123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <?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/>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <acptflag>Y</acptflag>
- <scrnflag/>
- <orddeptcd/>
- <atdoctid/>
- </cond>
- </main>
- <send>
- <savedata/>
- </send>
- <hidden/>
- <init/>
- <init>
- <orddept/>
- <userlist/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var mypatinfo = opener.javascript.getParameter("mypatinfo");
- var patinfo = mypatinfo.split("▩");
- var dvPatinfo = patinfo[0].split("▦");
-
- var orddeptcd = dvPatinfo[5];
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "D"); //부서코드 콤보
-
- //2012/08/16 Start
- //mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", orddeptcd, "0330", "", "A");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", orddeptcd, "0330", "", "T");
- //2012/08/16 end
- addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
-
- if (model.getValue("/root/main/cond/orddeptcd") == "-") {
- model.makeValue("/root/init/userlist/usercombo/userid", "-");
- model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
- } else {
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo");//의사콤보 전체항목 추가
- }
-
- var pParentNode = null;
- var node01 = instance1.selectSingleNode("/root/init/userlist/usercombo[userid='EMR']");
- if(node01 != null){
- pParentNode = node01.parentNode;
- pParentNode.removeChild(node01);
- }
-
- model.setValue("/root/main/cond/orddeptcd" , orddeptcd); //진료과
- model.setValue("/root/main/cond/atdoctid" , "-"); //담당교수
- model.refresh();
- if(checkOpener()){
- var mypatinfo = opener.javascript.getParameter("mypatinfo");
- var apntflag = opener.javascript.getParameter("apntflag");
- model.setValue("/root/send/savedata", mypatinfo);
- if(apntflag == "atdoct"){ //전공의 등록일 경우
- caption1.attribute("text") = "전공의 적용";
- model.setValue("/root/main/cond/scrnflag", "atdoct");
- //rdo_apntflag.disabled = true;
- //btn_ok.dispatch("DOMActivate");
- }
- }else{
- messageBox("메인 화면을 찾는데", "E009");
- window.close();
- }
- model.refresh();
- ]]>
- </script>
- <submission id="TXMMO10701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/empty"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- </xhtml:head>
- <xhtml:body class="line_3" pagewidth="278" pageheight="115" guideline="1,461;1,270;2,115;2,-3;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <line id="line3" class="line_1" style="x1:0px; y1:14px; x2:256px; y2:14px; "/>
- <line id="line1" class="line_3" style="x1:0px; y1:87px; x2:256px; y2:87px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:0px; width:133px; height:14px; vertical-align:middle; ">지정의사 적용</caption>
- <caption id="caption2" class="cell_1" style="left:0px; top:19px; width:100px; height:20px; vertical-align:middle; ">진 료 과</caption>
- <select1 id="rdo_apntflag" ref="/root/main/cond/acptflag" appearance="full" cellspacing="30" cols="2" rows="1" overflow="visible" style="left:103px; top:65px; width:150px; 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="xforms-value-changed">
- <![CDATA[
- var acptflag = model.getValue("/root/main/cond/acptflag");
- if (acptflag == "Y") {
- cmb_orddept.disabled = false;
- cmb_atdoctid.disabled = false;
- } else {
- cmb_orddept.disabled = true;
- cmb_atdoctid.disabled = true;
- model.setValue("/root/main/cond/atdoctid" , "-");
- }
-
- /*
- var sScrnFlag = model.getValue("/root/main/cond/scrnflag");
- var sUseFlag = model.getValue("/root/main/cond/acptflag");
- if(sScrnFlag == "atdoct" && sUseFlag == "N"){ //전공의 등록인 경우, 해체를 선택하면
- messageBox("등록된 전공의는 해체", "E001"); //등록된 전공의는 해체할 수 없다.
- model.setValue("/root/main/cond/acptflag", "Y");
- model.refresh();
- return;
- }*/
- ]]>
- </script>
- </select1>
- <button id="btn_ok" class="btn4_letter2" style="left:140px; top:90px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sScrnFlag = model.getValue("/root/main/cond/scrnflag");
- var sUseflag = model.getValue("/root/main/cond/acptflag");
- var sStatus = "";
- var deptcd = model.getValue("/root/main/cond/orddeptcd");
- var atdoctid = model.getValue("/root/main/cond/atdoctid");
- var acptflag = model.getValue("/root/main/cond/acptflag");
-
- sStatus = "u";
- if (acptflag == "Y") {
- if (atdoctid == "-") {
- messageBox("담당의를 ", "C002");
- return ;
- }
- }
-
- var sHeader = "m▦pid▦indd▦cretno▦seqno▦deptcd▦atdoctid▩";
- var sSaveData = model.getValue("/root/send/savedata");
- var sSaveDataArray = sSaveData.split("▩");
- for(var i = 0; i < sSaveDataArray.length - 1; i++){
- sHeader += sStatus + sSaveDataArray[i] + "▦"+ atdoctid + "▩";
- }
-
- model.setValue("/root/send/savedata", sHeader);
-
- model.refresh();
- submit("TXMMO10701");
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cncl" class="btn4_letter2" style="left:197px; top:90px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="cell_1" style="left:0px; top:65px; width:100px; height:20px; vertical-align:middle; ">적용 구분</caption>
- <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_search" disabled="true" appearance="minimal" editmode="search" style="left:103px; top:19px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddept.value, "0330", "", "A", "", "", "K");
-
- if (model.getValue("/root/main/cond/orddeptcd") == "-") {
- model.makeValue("/root/init/userlist/usercombo/userid", "-");
- model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
- } else {
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- }
- model.setValue("/root/main/cond/atdoctid", "-");
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="cell_1" style="left:0px; top:42px; width:100px; height:20px; vertical-align:middle; ">담 당 의</caption>
- <select1 id="cmb_atdoctid" ref="/root/main/cond/atdoctid" class="combo_search" appearance="minimal" editmode="inputsearch" itemcount="30" style="left:103px; top:42px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line15" class="line_2" style="x1:0px; y1:40px; x2:255px; y2:40px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:63px; x2:255px; y2:63px; "/>
- </xhtml:body>
- </xhtml:html>
|