123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- <?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>
- <orddept/>
- <cond>
- <upexec/>
- <supexec/>
- <userid/>
- <drflag>D</drflag>
- <orddrid/>
- <basedd/>
- </cond>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden>
- <drholiinfo/>
- </hidden>
- <init>
- <upexec/>
- <supexec/>
- <userlist/>
- <orddept/>
- </init>
- </root>
- </instance>
- <submission id="TRMMB02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/orddept"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A");
-
- var defdeptcd = opener.javascript.getParameter("SPMMB04100_defdeptcd");
- if(defdeptcd != ""){
- model.setValue("/root/main/cond/supexec", defdeptcd);
- }else{
- model.setValue("/root/main/cond/supexec", getUserInfo("dutplcecd"));
- }
- var supexec = model.getValue("/root/main/cond/supexec");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", supexec, "0330", "", "V", "", "Y");
- var orddrid = opener.javascript.getParameter ( "SPMMB04100_orddrid" );
- if(orddrid != ""){
- model.setValue("/root/main/cond/userid", orddrid);
- }else{
- model.setValue("/root/main/cond/userid", getUserInfo("userid"));
- }
-
- model.setValue("/root/main/cond/orddrid", orddrid);
- model.refresh();
-
- if(combo2.label == ""){combo2.select(0);}
- var basedd = opener.javascript.getParameter ( "SPMMB04100_prcpcd" );
- // 휴진의사여부를 체크한다.
- model.setValue("/root/main/cond/basedd", basedd);
- fDrHoliChk()
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/hidden/drholiinfo"/>
- </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="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript">
- <![CDATA[
- function fDrHoliChk() {
- // 의사 휴진 일정을 조회한다.
- if (submit("TRMMB04108") == true) {
- // 해당의사의 휴진일 경우 메시지를 띄워준다.
- if (!isNull(model.getValue("/root/hidden/drholiinfo/drholilist/orddrid") ) ) {
- var orddrnm = model.getValue("/root/hidden/drholiinfo/drholilist/orddrnm")
- var fromdd = model.getValue("/root/hidden/drholiinfo/drholilist/fromdd")
- var todd = model.getValue("/root/hidden/drholiinfo/drholilist/todd")
- var fromtm = model.getValue("/root/hidden/drholiinfo/drholilist/fromtm")
- var totm = model.getValue("/root/hidden/drholiinfo/drholilist/totm")
- messageBox (orddrnm + "의사는 " + fromdd + "일" + fromtm + "분 부터" + todd + "일" + totm + "까지 휴진 등록되어 있습니다.", "I");
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="353" pageheight="90" guideline="1,337;1,353;2,73;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <select1 id="combo2" ref="/root/main/cond/supexec" appearance="minimal" style="left:3px; top:32px; width:116px; 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[
- var supexec = model.getValue("/root/main/cond/supexec");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", supexec, "0330", "", "V", "", "Y");
- combo3.select(0);
- model.setValue("/root/main/cond/orddrid", combo3.value);
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo3" ref="/root/main/cond/userid" appearance="minimal" style="left:231px; top:32px; width:102px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/cond/orddrid", model.getValue("/root/main/cond/userid"));
- fDrHoliChk();
- model.refresh();
- ]]>
- </script>
- </select1>
- <line id="line3" class="line_1" style="x1:0px; y1:26px; x2:337px; y2:26px; "/>
- <select1 id="radio1" ref="/root/main/cond/drflag" visibility="hidden" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:5px; top:4px; width:145px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전문의</label>
- <value>M</value>
- </item>
- <item>
- <label>진료의</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(radio1.value == "M"){ //주치의로 설정된 경우
- combo2.disabled = true;
- combo3.disabled = true;
- model.setValue("/root/main/cond/upexec", "");
- model.setValue("/root/main/cond/supexec", "");
- model.setValue("/root/main/cond/userid", "");
- model.setValue("/root/main/cond/orddrid", "");
- }else{
- combo2.disabled = false;
- combo3.disabled = false;
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="button1" class="btn2_letter2" style="left:248px; top:54px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var drflag = model.getValue("/root/main/cond/drflag");
- if(drflag == "M"){ //주치의
- opener.javascript.setParameter("SPMMB04100_useyn", "X");
- }else{ //시행부서
- var userid = model.getValue("/root/main/cond/userid");
- if(userid == ""){ //의사가 선택이 안된 경우
- messageBox("후인증 의사를", "C002");
- return;
- }else{
- opener.javascript.setParameter("SPMMB04100_useyn", "Y");
- opener.javascript.setParameter("SPMMB04100_orddrid", model.getValue("/root/main/cond/userid"));
- }
- }
- window.close();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter2" style="left:292px; top:54px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opener.javascript.setParameter("SPMMB04100_useyn", "N");
- window.close();
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/main/cond/orddrid" style="left:123px; top:32px; width:104px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <button id="button3" visibility="hidden" style="left:157px; top:6px; width:73px; height:19px; ">
- <caption>button3</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/userid");
- if(submit("TRMMB04103")){ //의사 ID로 진료과, 진료의 조회
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|