SPMMB02700_전달사항.xrw 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. <init>
  10. </init>
  11. <send>
  12. </send>
  13. <main>
  14. <partsel/>
  15. <partrmk/>
  16. <time/>
  17. <resn/>
  18. <resnrmk/>
  19. </main>
  20. </root>
  21. </instance>
  22. <script type="javascript" ev:event="xforms-ready">
  23. <![CDATA[
  24. var sCond1 = opener.javascript.getParameter("SPMMB02700_cond1");
  25. if(sCond1 == "00") {
  26. model.toggle("00");
  27. } else {
  28. model.toggle("00");
  29. }
  30. ]]>
  31. </script>
  32. </model>
  33. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  36. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  37. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  38. </xhtml:head>
  39. <xhtml:body pagewidth="420" pageheight="190" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  40. <caption id="cap_title" class="tit_1" style="left:0px; top:2px; width:179px; height:13px; ">전달사항</caption>
  41. <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:400px; y2:20px; "/>
  42. <switch id="swh_prcpdetail" style="left:0px; top:25px; width:400px; height:125px; ">
  43. <case id="00" overflow="hidden" selected="true">
  44. <caption id="cap_00_part" class="tit_2" style="left:5px; top:2px; width:179px; height:13px; ">적용부위 (다중선택)</caption>
  45. <select id="chb_00_part" ref="/root/main/partsel" overflow="visible" appearance="full" cellspacing="5" cols="6" sep="," style="left:20px; top:19px; width:320px; height:35px; border-style:none; ">
  46. <choices>
  47. <item>
  48. <label>4 Extremities</label>
  49. <value>1</value>
  50. </item>
  51. <item>
  52. <label>Chest</label>
  53. <value>2</value>
  54. </item>
  55. <item>
  56. <label>RA</label>
  57. <value>3</value>
  58. </item>
  59. <item>
  60. <label>RL</label>
  61. <value>4</value>
  62. </item>
  63. <item>
  64. <label>LA</label>
  65. <value>5</value>
  66. </item>
  67. <item>
  68. <label>LL</label>
  69. <value>6</value>
  70. </item>
  71. <item>
  72. <label>기타</label>
  73. <value>9</value>
  74. </item>
  75. </choices>
  76. <script type="javascript" ev:event="xforms-value-changed">
  77. <![CDATA[
  78. var sPartSel = model.getValue("/root/main/partsel");
  79. if(sPartSel.indexOf("9") >= 0) {
  80. ipt_00_part.disabled = false;
  81. } else {
  82. ipt_00_part.disabled = true;
  83. model.setValue("/root/main/partrmk", "");
  84. ipt_00_part.refresh();
  85. }
  86. ]]>
  87. </script>
  88. </select>
  89. <input id="ipt_00_part" ref="/root/main/partrmk" disabled="true" style="left:65px; top:35px; width:275px; height:19px; "/>
  90. <caption id="cap_00_time1" class="tit_2" style="left:5px; top:60px; width:179px; height:13px; ">적용시간</caption>
  91. <caption id="cap_00_time2" style="left:80px; top:61px; width:140px; height:15px; ">지금부터 시간</caption>
  92. <input id="ipt_00_time" ref="/root/main/time" style="left:135px; top:58px; width:35px; height:19px; text-align:center; "/>
  93. <caption id="cap_00_resn1" class="tit_2" style="left:5px; top:82px; width:179px; height:13px; ">적용사유</caption>
  94. <select1 id="sel_00_resn" ref="/root/main/resn" appearance="minimal" style="left:80px; top:80px; width:315px; height:19px; ">
  95. <choices>
  96. <item>
  97. <label>의식장애 등으로 안전한 의료를 수행할 수 없는 경우</label>
  98. <value>의식장애 등으로 안전한 의료를 수행할 수 없는 경우</value>
  99. </item>
  100. <item>
  101. <label>치료의 과정에서 활동의 제한이 필요한 경우</label>
  102. <value>치료의 과정에서 활동의 제한이 필요한 경우</value>
  103. </item>
  104. <item>
  105. <label>환자 자신이나 다른 사람을 해칠 명백하거나 임박한 위험이 예상되는 경우</label>
  106. <value>환자 자신이나 다른 사람을 해칠 명백하거나 임박한 위험이 예상되는 경우</value>
  107. </item>
  108. <item>
  109. <label>기타</label>
  110. <value>기타</value>
  111. </item>
  112. </choices>
  113. <script type="javascript" ev:event="xforms-value-changed">
  114. <![CDATA[
  115. var sResn = model.getValue("/root/main/resn");
  116. if(sResn == "기타") {
  117. ipt_00_resn.disabled = false;
  118. } else {
  119. ipt_00_resn.disabled = true;
  120. model.setValue("/root/main/resnrmk", "");
  121. ipt_00_resn.refresh();
  122. }
  123. ]]>
  124. </script>
  125. </select1>
  126. <caption id="cap_00_resn2" style="left:22px; top:104px; width:55px; height:15px; ">기타내용</caption>
  127. <input id="ipt_00_resn" ref="/root/main/resnrmk" disabled="true" style="left:80px; top:101px; width:315px; height:19px; "/>
  128. </case>
  129. </switch>
  130. <button id="button1" class="btn4_letter2" style="left:285px; top:155px; width:56px; height:22px; ">
  131. <caption>확인</caption>
  132. <script type="javascript" ev:event="onclick">
  133. <![CDATA[
  134. var sPartSel = model.getValue("/root/main/partsel");
  135. var sPartRmk = model.getValue("/root/main/partrmk");
  136. var sTime = model.getValue("/root/main/time");
  137. var sResn = model.getValue("/root/main/resn");
  138. var sResnRmk = model.getValue("/root/main/resnrmk");
  139. if(sPartSel == "") {
  140. messageBox ( "적용부위를 선택하세요.", "E" );
  141. return;
  142. }
  143. if(sPartSel.indexOf("9") >= 0) {
  144. if(sPartRmk == "") {
  145. messageBox ( "적용부위를 기타로 선택 하면 내용을 입력하셔야 합니다.", "E" );
  146. return;
  147. }
  148. }
  149. if(sTime == "") {
  150. messageBox ( "적용시간을 입력 하세요.", "E" );
  151. return;
  152. }
  153. if(sResn == "") {
  154. messageBox ( "적용사유을 입력 하세요.", "E" );
  155. return;
  156. }
  157. if(sResn == "기타" && sResnRmk == "") {
  158. messageBox ( "적용사유를 기타로 선택 하면 내용을 입력하셔야 합니다.", "E" );
  159. return;
  160. }
  161. var sPartLable = chb_00_part.label;
  162. if(sPartSel.indexOf("9") >= 0) {
  163. sPartLable = sPartLable + " (" + sPartRmk + ")";
  164. }
  165. var sResnLable = sResn;
  166. if(sResn == "기타") {
  167. sResnLable = sResnLable + "(" +sResnRmk+ ")";
  168. }
  169. var sPrcpDeliveFact = "적용부위 : " + sPartLable + " 적용시간 : 지금부터 " + sTime + "시간 적용사유 : " + sResnLable;
  170. opener.javascript.setParameter("SPMMB02700_rtn", "Y");
  171. opener.javascript.setParameter("SPMMB02700_prcpdelivefact", sPrcpDeliveFact);
  172. model.close();
  173. ]]>
  174. </script>
  175. </button>
  176. <button id="button3" class="btn4_letter2" style="left:345px; top:155px; width:56px; height:22px; ">
  177. <caption>취소</caption>
  178. <script type="javascript" ev:event="onclick">
  179. <![CDATA[
  180. model.close();
  181. ]]>
  182. </script>
  183. </button>
  184. </xhtml:body>
  185. </xhtml:html>