SPPMO01200_진료의뢰서조회.xrw 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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. <ordreqform>
  11. <cnst>
  12. <pid/>
  13. <orddeptcd/>
  14. <insuflag/>
  15. <ordreqkind/>
  16. <fromdd/>
  17. <todd/>
  18. <reqformhospnm/>
  19. <reqformdrnm/>
  20. <remfact/>
  21. </cnst>
  22. </ordreqform>
  23. <patinfo>
  24. <patinfolist/>
  25. </patinfo>
  26. </main>
  27. <init>
  28. <orddeptcd>
  29. <orddeptcdlist>
  30. <cd/>
  31. <nm/>
  32. </orddeptcdlist>
  33. </orddeptcd>
  34. <orddrid>
  35. <orddridlist>
  36. <cd/>
  37. <nm/>
  38. </orddridlist>
  39. </orddrid>
  40. <P0310list>
  41. <P0310>
  42. <cdnm/>
  43. <cdid/>
  44. </P0310>
  45. </P0310list>
  46. </init>
  47. <send>
  48. <pid/>
  49. <hngnm/>
  50. </send>
  51. <hidden>
  52. <source>
  53. <srchcond/>
  54. <pid/>
  55. <hngnm/>
  56. <rrgstno1/>
  57. <rrgstno2/>
  58. </source>
  59. </hidden>
  60. </root>
  61. </instance>
  62. <script type="javascript" ev:event="xforms-ready">
  63. <![CDATA[
  64. zbcfGetCodeList(new Array("P0310"), new Array("/root/init/P0310list"));
  65. //진료과코드 진료의사ID 조회
  66. pamGetDeptCDDrIDList();
  67. if (checkOpener()){ //팝업화면으로 사용될 때
  68. //pid, orddeptcd 를 받아온다.
  69. var SMPMO01200_PARM = opener.javascript.getParameter("SMPMO01200_PARM");
  70. var array_parm = SMPMO01200_PARM.split("▦");
  71. var pid = array_parm[0];
  72. var hngnm = array_parm[1];
  73. //var orddeptcd = array_parm[1];
  74. if( pid != '' && pid != '-' && pid != ' ' && pid != null ){
  75. model.setValue("/root/send/pid", pid);
  76. model.setValue("/root/send/hngnm", hngnm);
  77. //model.setValue("/root/send/orddeptcd", orddeptcd);
  78. btn_search.dispatch("DOMActivate");
  79. }
  80. }
  81. model.refresh();
  82. model1.setFocus("ipt_pid");
  83. ]]>
  84. </script>
  85. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  86. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  87. <submission id="TRPMO01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ordreqform"/>
  88. <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/source" resultref="/root/main/patinfo"/>
  89. </model>
  90. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  92. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  93. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  94. </xhtml:head>
  95. <xhtml:body pagewidth="450" pageheight="360" guideline="1,605;2,402;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  96. <group id="group3" scroll="auto" style="left:0px; top:0px; width:433px; height:316px; ">
  97. <group id="group2" style="left:0px; top:0px; width:433px; height:35px; vertical-align:top; ">
  98. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:432px; height:35px; "/>
  99. <button id="btn_search" class="btn1_letter2" visibility="hidden" style="left:355px; top:7px; width:56px; height:22px; ">
  100. <caption>조회</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. var pid = model.getValue("/root/send/pid");
  104. if( pid == '' || pid == '' || pid == '-' ){
  105. messageBox("등록번호가 없습니다. 환자조회 후 다시 시도해 주세요.", "E999", "");
  106. return false;
  107. }else{
  108. model.setValue("/root/hidden/source/srchcond", "1");
  109. model.setValue("/root/hidden/source/pid", pid);
  110. if(submit("TRPMC02500")){
  111. if( getNodesetCount("/root/main/patinfo/patinfolist/pid") > 0 ){
  112. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  113. model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  114. }else{
  115. messageBox("존재하지 않는 등록번호입니다. 등록번호를 확인하세요.", 'E999', '');
  116. return false;
  117. }
  118. }else{
  119. return false;
  120. }
  121. }
  122. submit("TRPMO01201");
  123. model.refresh();
  124. ]]>
  125. </script>
  126. </button>
  127. <line id="line13" class="line_4" visibility="hidden" style="x1:339px; y1:7px; x2:339px; y2:29px; "/>
  128. <caption id="caption3" class="search_name" style="left:10px; top:8px; width:91px; height:17px; ">등록번호 :</caption>
  129. <input id="ipt_pid" ref="/root/send/pid" class="input_s_essential" style="left:100px; top:8px; width:90px; height:19px; ">
  130. <script type="javascript" ev:event="onkeypress">
  131. <![CDATA[
  132. if(event.keyCode == "13") {
  133. //model.setValue("/root/hidden/source/srchcond", "1");
  134. model.setValue("/root/send/pid", ipt_pid.currentText);
  135. inputEnterKey("btn_search", "DOMActivate");
  136. }
  137. //inputEnterKey("btn_search", "DOMActivate");
  138. ]]>
  139. </script>
  140. </input>
  141. <button id="button1" accesskey="f2" class="icon_search" style="left:195px; top:9px; width:16px; height:16px; ">
  142. <caption/>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/source", "/root/send");
  146. if(model.getValue("/root/main/popupendflag") == 'ok'){
  147. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  148. model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  149. }
  150. model.refresh();
  151. ]]>
  152. </script>
  153. </button>
  154. <caption id="caption2" class="search_name" style="left:220px; top:8px; width:86px; height:17px; ">환자이름 :</caption>
  155. <input id="input1" ref="/root/send/hngnm" class="input_search" appearance="input" style="left:311px; top:8px; width:100px; height:19px; ">
  156. <script type="javascript" ev:event="onkeypress">
  157. <![CDATA[
  158. if(event.keyCode == "13") {
  159. model.resetInstanceNode("/root/hidden/source");
  160. model.setValue("/root/hidden/source/srchcond", "2");
  161. model.setValue("/root/hidden/source/hngnm", input1.currentText);
  162. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/source", "/root/send");
  163. if(model.getValue("/root/main/popupendflag") == 'ok'){
  164. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  165. model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  166. }
  167. model.refresh();
  168. }
  169. //inputEnterKey("btn_search", "DOMActivate");
  170. ]]>
  171. </script>
  172. </input>
  173. </group>
  174. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">진료의뢰서</caption>
  175. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:432px; y2:60px; "/>
  176. <datagrid id="grd_ordreqfrm" nodeset="/root/main/ordreqform/cnst" caption="등록번호^진료과^접수일자^보험/보호^진료의뢰서 종류^시작일자^종료일자^의뢰병원명^의뢰의사명^참고사항" colsep="^" colwidth="100, 200, 110, 70, 98, 80, 80, 120, 80, 200" dataheight="23" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:432px; height:249px; ">
  177. <col ref="pid"/>
  178. <col ref="orddeptcd" type="combo">
  179. <choices>
  180. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  181. <label ref="nm"/>
  182. <value ref="cd"/>
  183. </itemset>
  184. </choices>
  185. </col>
  186. <col ref="lastupdtdt" format="yyyy-mm-dd"/>
  187. <col ref="insuflag" type="combo" visibility="hidden">
  188. <choices>
  189. <item>
  190. <label>보험</label>
  191. <value>1</value>
  192. </item>
  193. <item>
  194. <label>보호</label>
  195. <value>2</value>
  196. </item>
  197. </choices>
  198. </col>
  199. <col ref="ordreqkind" type="combo" visibility="hidden">
  200. <choices>
  201. <itemset nodeset="/root/init/P0310list/P0310">
  202. <label ref="cdnm"/>
  203. <value ref="cdid"/>
  204. </itemset>
  205. </choices>
  206. </col>
  207. <col ref="fromdd" visibility="hidden" format="yyyy-mm-dd"/>
  208. <col ref="todd" visibility="hidden" format="yyyy-mm-dd"/>
  209. <col ref="reqformhospnm" visibility="hidden"/>
  210. <col ref="reqformdrnm" visibility="hidden"/>
  211. <col ref="remfact" visibility="hidden"/>
  212. </datagrid>
  213. </group>
  214. <group id="group1" scroll="auto" style="left:0px; top:316px; width:433px; height:27px; ">
  215. <button id="btn_confirm" class="btn4_letter2" style="left:376px; top:5px; width:56px; height:22px; ">
  216. <caption>확인</caption>
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. window.close();
  220. ]]>
  221. </script>
  222. </button>
  223. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:428px; y2:0px; "/>
  224. </group>
  225. </xhtml:body>
  226. </xhtml:html>