SPMNO04400_기준자료처방선택.xrw 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPMNO02200_처방선택.xrw
  4. * 설 명 : 기준자료 처방선택
  5. * 수정이력 :
  6. * 기 타 :
  7. -->
  8. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  9. <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">
  10. <xhtml:head>
  11. <xhtml:title>기준자료 처방선택</xhtml:title>
  12. <model id="model1">
  13. <instance id="instance1">
  14. <root xmlns="">
  15. <main>
  16. <prcpinfo>
  17. <prcpinfolist>
  18. <check/>
  19. <prcpcd/>
  20. <prcpnm/>
  21. <applstage/>
  22. <deptcd/>
  23. <deptnm/>
  24. </prcpinfolist>
  25. </prcpinfo>
  26. <cond>
  27. <prcpcd/>
  28. <prcpnm/>
  29. <deptcd/>
  30. <deptnm/>
  31. <ordtype/>
  32. <baseflag/>
  33. <ordtypenm/>
  34. <prcpclscd/>
  35. <instcd/>
  36. </cond>
  37. </main>
  38. <send>
  39. <req/>
  40. <prcpinfo/>
  41. </send>
  42. <hidden>
  43. </hidden>
  44. <temp>
  45. <prcpinfo/>
  46. </temp>
  47. <init>
  48. <codelist>
  49. <code>
  50. <cdnm>전체</cdnm>
  51. <cdid/>
  52. </code>
  53. <code>
  54. <cdnm>진검</cdnm>
  55. <cdid>B2</cdid>
  56. </code>
  57. <code>
  58. <cdnm>영상</cdnm>
  59. <cdid>C2</cdid>
  60. </code>
  61. <code>
  62. <cdnm>처치</cdnm>
  63. <cdid>H4</cdid>
  64. </code>
  65. <code>
  66. <cdnm>병리</cdnm>
  67. <cdid>D2</cdid>
  68. </code>
  69. </codelist>
  70. </init>
  71. </root>
  72. </instance>
  73. <script type="javascript">
  74. <![CDATA[
  75. function fInitialize()
  76. {
  77. if(checkOpener()){
  78. var prcpcd = model.property("prcpcd");
  79. var prcpnm = model.property("prcpnm");
  80. var prcpclscd = model.property("prcpclscd");
  81. if(prcpcd != "") {
  82. model.setValue(ipt_prcpcd.attribute("ref"), prcpcd);
  83. ipt_prcpcd.refresh();
  84. }
  85. if(prcpnm != "") {
  86. model.setValue(ipt_prcpnm.attribute("ref"), prcpnm);
  87. ipt_prcpnm.refresh();
  88. }
  89. if(prcpclscd !="") {
  90. model.setValue(cmb_prcpclscd.attribute("ref"), prcpclscd);
  91. cmb_prcpclscd.refresh();
  92. }
  93. model.setFocus("btn_search");
  94. fSearch();
  95. } else {
  96. alert("본 화면은 팝업으로만 사용할수 있습니다.");
  97. model.close();
  98. }
  99. }
  100. function fSearch() {
  101. model.makeValue("/root/send/req/prcpcd", model.getValue(ipt_prcpcd.attribute("ref")));
  102. model.makeValue("/root/send/req/prcpnm", model.getValue(ipt_prcpnm.attribute("ref")));
  103. model.makeValue("/root/send/req/prcpclscd", model.getValue(cmb_prcpclscd.attribute("ref")));
  104. model.makeValue("/root/send/req/instcd", getUserInfo("dutplceinstcd"));
  105. submit("TRMNO04401");
  106. }
  107. function fCertPrcpInfo() {
  108. copyNodesetType("/root/temp/prcpinfo", "/root/main/prcpinfo/prcpinfolist[check='Y']");
  109. model.copyNode(opener.root.temp, "/root/temp");
  110. model.close();
  111. }
  112. ]]>
  113. </script>
  114. <script type="javascript" ev:event="xforms-ready">
  115. <![CDATA[
  116. fInitialize();
  117. ]]>
  118. </script>
  119. <submission id="TRMNO04401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/prcpinfo"/>
  120. </model>
  121. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  122. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  123. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  124. </xhtml:head>
  125. <xhtml:body pagewidth="600" pageheight="400" guideline="1,21;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  126. <group id="grp_biz" scroll="auto" style="left:0px; top:35px; width:580px; height:326px; ">
  127. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:194px; height:14px; ">처방 조회</caption>
  128. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:576px; y2:25px; "/>
  129. <datagrid id="grd_prcpinfo" nodeset="/root/main/prcpinfo/prcpinfolist" class="datagrid2" caption="선택^처방코드^처방명^진료과^prcpcd" colsep="^" colwidth="32, 77, 263, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:1px; top:30px; width:576px; height:290px; ">
  130. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  131. <col ref="prcpcd"/>
  132. <col ref="prcpnm" style="text-align:left; "/>
  133. <col ref="deptcd"/>
  134. <col ref="deptnm" visibility="hidden"/>
  135. </datagrid>
  136. <input id="ipt_instcd" ref="/root/main/cond/instcd" style="left:145px; top:5px; width:100px; height:20px; "/>
  137. </group>
  138. <group id="group2" style="left:0px; top:0px; width:581px; height:35px; vertical-align:top; ">
  139. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:580px; height:35px; "/>
  140. <line id="line13" class="line_4" style="x1:515px; y1:7px; x2:515px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  141. <button id="btn_search" class="btn1_letter2" style="left:520px; top:7px; width:56px; height:22px; ">
  142. <caption>조회</caption>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. fSearch();
  146. ]]>
  147. </script>
  148. </button>
  149. <caption id="caption4" class="search_name" style="left:0px; top:9px; width:80px; height:17px; ">검색어 :</caption>
  150. <input id="ipt_prcpcd" ref="/root/main/cond/prcpcd" class="input_default" navindex="2" imemode="alpha" maxlength="12" style="left:80px; top:8px; width:105px; height:19px; ">
  151. <script type="javascript" ev:event="onkeydown">
  152. <![CDATA[
  153. if(event.keycode == "13"){
  154. fPrcpListSrch();
  155. }
  156. ]]>
  157. </script>
  158. </input>
  159. <input id="ipt_prcpnm" ref="/root/main/cond/prcpnm" class="input_default" style="left:190px; top:8px; width:250px; height:19px; ">
  160. <script type="javascript" ev:event="onkeydown">
  161. <![CDATA[
  162. if(event.keycode == "13"){
  163. fPrcpListSrch();
  164. }
  165. ]]>
  166. </script>
  167. </input>
  168. <select1 id="cmb_prcpclscd" ref="/root/main/cond/prcpclscd" appearance="minimal" style="left:445px; top:8px; width:60px; height:19px; ">
  169. <choices>
  170. <itemset nodeset="/root/init/codelist/code">
  171. <label ref="cdnm"/>
  172. <value ref="cdid"/>
  173. </itemset>
  174. </choices>
  175. </select1>
  176. </group>
  177. <group id="group1" scroll="auto" style="left:0px; top:356px; width:580px; height:27px; ">
  178. <button id="btn_select" class="btn4_letter2" style="left:461px; top:3px; width:56px; height:22px; ">
  179. <caption>확인</caption>
  180. <script type="javascript" ev:event="DOMActivate">
  181. <![CDATA[
  182. fCertPrcpInfo();
  183. ]]>
  184. </script>
  185. </button>
  186. <button id="btn_close" class="btn4_letter2" style="left:520px; top:3px; width:56px; height:22px; ">
  187. <caption>닫기</caption>
  188. <script type="javascript" ev:event="DOMActivate">
  189. <![CDATA[
  190. model.close();
  191. ]]>
  192. </script>
  193. </button>
  194. </group>
  195. </xhtml:body>
  196. </xhtml:html>