SPMMO14400_퇴원후외래처방진료일정.xrw 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>퇴원후 외래처방 진료일정</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <orddeptcd/>
  12. <orddrid/>
  13. </cond>
  14. </main>
  15. <init>
  16. <orddept/>
  17. <userlist/>
  18. </init>
  19. <orddd/>
  20. <ordh>09</ordh>
  21. <ordm>00</ordm>
  22. </root>
  23. </instance>
  24. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  25. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  26. <submission id="TXMMO00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/followup"/>
  27. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  28. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. //20081117 마정민수정: 서소영선생님 요청으로 followup 진료과, 진료의를 환자진료과, 주치의정보로 함.
  32. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "O");
  33. var vDutplcecd = opener.model.getvalue ( "/root/paminfo/list/orddeptcd" );
  34. if ( isNull(vDutplcecd )) {
  35. vDutplcecd = getUserInfo("dutplcecd");
  36. }
  37. var vUserid = opener.model.getvalue ( "/root/paminfo/list/medispclid" );
  38. if ( isNull(vUserid )) {
  39. vDutplcecd = getUserInfo("userid");
  40. }
  41. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", vDutplcecd, "0330");
  42. model.setValue("/root/main/cond/orddeptcd", vDutplcecd);
  43. model.setValue("/root/main/cond/orddrid" , vUserid);
  44. model.refresh();
  45. //20081005 마정민수정: 퇴원예고일자를 진료일로 박아준다.
  46. //여기 진료일은 진료희망일 용도로만 쓰인다. 실제 예약잡을때는 퇴원예고일로 처리해 준다.
  47. var orddd = opener.model.getValue ( "/root/paminfo/list/dschdclrdt" ).substring( 0, 8 );
  48. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  49. if ( prcpgenrflag != "E" ) { //응급
  50. cmb_orddept.disabled = false;
  51. cmb_dr.disabled = false;
  52. model.setValue( "/root/orddd", orddd);
  53. } else {
  54. model.setValue ( "/root/orddd", orddd );
  55. }
  56. model.refresh();
  57. ]]>
  58. </script>
  59. </model>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  65. </xhtml:head>
  66. <xhtml:body pagewidth="540" pageheight="70" guideline="1,542;2,69;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  67. <button id="button2" class="btn4_letter2" navindex="6" style="left:406px; top:35px; width:56px; height:22px; ">
  68. <caption>예약</caption>
  69. <script type="javascript" ev:event="onclick">
  70. <![CDATA[
  71. if (isNull(cmb_orddept.label)) {
  72. messageBox ( "진료과가", "E014" );
  73. return;
  74. }
  75. if (isNull(cmb_dr.label)) {
  76. messageBox ( "진료의가", "E014" );
  77. return;
  78. }
  79. var orddd = model.getValue ( "/root/orddd" );
  80. if ( isNull(orddd)) {
  81. messageBox ( "진료일이", "E014" );
  82. return;
  83. }
  84. if ( !isValidDateTime ( orddd, "YYYYMMDD")) {
  85. messageBox ( "진료일이", "E016" );
  86. return;
  87. }
  88. if ( orddd <getCurrentDate()) {
  89. messageBox ( "진료일를 과거일자로 선택 할수 없습니다.", "E999" );
  90. return;
  91. }
  92. var ordh = model.getValue ( "/root/ordh" );
  93. var ordm = model.getValue ( "/root/ordm" );
  94. if ( isNull(ordh) || isNull(ordm)) {
  95. messageBox ( "진료시간이", "E014" );
  96. return;
  97. }
  98. if ( eval(ordh) >= 24 ) {
  99. messageBox ( "예약시간이 잘못 입력되었습니다.", "E" );
  100. return;
  101. }
  102. if ( eval(ordm) >= 60 ) {
  103. messageBox ( "예약분이 잘못 입력되었습니다.", "E" );
  104. return;
  105. }
  106. if( "11111" == model.getValue ( "/root/main/cond/orddrid" ) || "EMR" == model.getValue ( "/root/main/cond/orddrid" ) ) {
  107. messageBox ( "일반의사 또는 의무기록으로 퇴원후외래(F/U) 예약을 진행 할 수 없습니다.", "E" );
  108. return;
  109. }
  110. ordh = ordh.toString().getLeftPad ( 2, "0" );
  111. ordm = ordm.toString().getLeftPad ( 2, "0" );
  112. opener.javascript.setParameter ( "SPMMO14400_orddeptcd", model.getValue ( "/root/main/cond/orddeptcd" ));
  113. opener.javascript.setParameter ( "SPMMO14400_orddrid", model.getValue ( "/root/main/cond/orddrid" ));
  114. opener.javascript.setParameter ( "SPMMO14400_otpt_orddd", orddd );
  115. opener.javascript.setParameter ( "SPMMO14400_ordtm", ordh + ordm );
  116. opener.javascript.setParameter ( "SPMMO14400_rtnyn","Y" );
  117. window.close();
  118. ]]>
  119. </script>
  120. </button>
  121. <caption id="caption7" class="cell_1" style="left:192px; top:5px; width:70px; height:23px; ">진료의</caption>
  122. <caption id="caption1" class="cell_1" style="left:3px; top:5px; width:61px; height:23px; text-align:left; ">진료과</caption>
  123. <line id="line7" class="line_1" style="x1:3px; y1:0px; x2:523px; y2:0px; "/>
  124. <caption id="caption2" class="cell_1" style="left:359px; top:6px; width:70px; height:23px; ">진료일</caption>
  125. <button id="button1" class="btn4_letter2" navindex="7" style="left:465px; top:35px; width:56px; height:22px; ">
  126. <caption>취소</caption>
  127. <script type="javascript" ev:event="onclick">
  128. <![CDATA[
  129. opener.javascript.setParameter ( "SPMMO14400_rtnyn","N" );
  130. window.close();
  131. ]]>
  132. </script>
  133. </button>
  134. <line id="line4" class="line_3" style="x1:3px; y1:30px; x2:523px; y2:30px; "/>
  135. <input id="input1" ref="/root/orddd" navindex="3" inputtype="date" style="left:431px; top:7px; width:91px; height:19px; text-align:center; "/>
  136. <input id="input2" ref="/root/ordh" navindex="4" visibility="hidden" imemode="disabled" maxlength="2" format="#" style="left:310px; top:30px; width:45px; height:19px; text-align:center; "/>
  137. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_default" navindex="1" appearance="minimal" itemcount="30" style="left:65px; top:7px; width:125px; height:19px; ">
  138. <choices>
  139. <itemset nodeset="/root/init/orddept/dept">
  140. <label ref="depthngnm"/>
  141. <value ref="deptcd"/>
  142. </itemset>
  143. </choices>
  144. <script type="javascript" ev:event="xforms-value-changed">
  145. <![CDATA[
  146. model.removeNodeset("/root/init/userlist");
  147. model.makeNode("/root/init/userlist/usercombo");
  148. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddept.value, "0330");
  149. model.refresh();
  150. ]]>
  151. </script>
  152. </select1>
  153. <select1 id="cmb_dr" ref="/root/main/cond/orddrid" navindex="2" appearance="minimal" editmode="search" itemcount="30" style="left:264px; top:7px; width:93px; height:19px; ">
  154. <choices>
  155. <itemset nodeset="/root/init/userlist/usercombo">
  156. <label ref="usernm"/>
  157. <value ref="userid"/>
  158. </itemset>
  159. </choices>
  160. </select1>
  161. <input id="input3" ref="/root/ordm" navindex="5" visibility="hidden" imemode="disabled" maxlength="2" format="#" style="left:360px; top:30px; width:45px; height:19px; text-align:center; "/>
  162. </xhtml:body>
  163. </xhtml:html>