SPPMO01300_협진내역조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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. <ordcnstinfo>
  11. <emrcnst>
  12. <pid/>
  13. <reqdd/>
  14. <reqdeptcd/>
  15. <reqdeptnm/>
  16. <requserid/>
  17. <requsernm/>
  18. <recvdd/>
  19. <recvdeptcd/>
  20. <recvdeptnm/>
  21. <recvuserid/>
  22. <recvusernm/>
  23. <hopedd/>
  24. </emrcnst>
  25. </ordcnstinfo>
  26. <patinfo>
  27. <patinfolist/>
  28. </patinfo>
  29. </main>
  30. <send>
  31. <pid/>
  32. <hngnm/>
  33. <flag/>
  34. </send>
  35. <init/>
  36. <hidden>
  37. <temp>
  38. <emrcnst/>
  39. </temp>
  40. </hidden>
  41. <hidden>
  42. <source>
  43. <srchcond/>
  44. <pid/>
  45. <hngnm/>
  46. <rrgstno1/>
  47. <rrgstno2/>
  48. </source>
  49. </hidden>
  50. </root>
  51. </instance>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. if( checkOpener() ){
  55. var pid = opener.javascript.getParameter("SPPMO01300_PID");
  56. var hngnm = opener.javascript.getParameter("SPPMO01300_HNGNM");
  57. var flag = opener.javascript.getParameter("SPPMO01300_FLAG");
  58. opener.javascript.setParameter("SPPMO01300_RTN", "NO");
  59. //2007-12-27 이동식 추가 - 외래등록/전화예약 구분을 위해
  60. if( flag != '' && flag != ' ' && flag != '-' ){
  61. FLAG = flag; //구분자 세팅
  62. }else{
  63. FLAG = 'O';
  64. }
  65. if( pid != '' && pid != ' ' && pid != '-' ){
  66. model.setValue("/root/send/pid", pid);
  67. model.setValue("/root/send/hngnm", hngnm);
  68. model.setValue("/root/send/flag", FLAG);
  69. btn_search.dispatch("DOMActivate");
  70. }
  71. }
  72. ]]>
  73. </script>
  74. <submission id="TRPAC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/temp"/>
  75. <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/source" resultref="/root/main/patinfo"/>
  76. <script type="javascript">
  77. <![CDATA[
  78. //광역변수 생성
  79. var FLAG = 'O'; //외래등록 DEFAULT
  80. ]]>
  81. </script>
  82. </model>
  83. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  85. </xhtml:head>
  86. <xhtml:body pagewidth="700" pageheight="343" guideline="2,343;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  87. <group id="group3" scroll="auto" style="left:0px; top:0px; width:663px; height:316px; ">
  88. <group id="group2" style="left:0px; top:0px; width:662px; height:35px; vertical-align:top; ">
  89. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:662px; height:35px; "/>
  90. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">등록번호 :</caption>
  91. <button id="btn_search" class="btn1_letter2" style="left:590px; top:7px; width:56px; height:22px; ">
  92. <caption>조회</caption>
  93. <script type="javascript" ev:event="DOMActivate">
  94. <![CDATA[
  95. var pid = model.getValue("/root/send/pid");
  96. var hngnm = model.getValue("/root/send/hngnm");
  97. if( pid == '' || pid == '' || pid == '-' ){
  98. messageBox("등록번호가 없습니다. 환자조회 후 다시 시도해 주세요.", "E999", "");
  99. return false;
  100. }else{
  101. model.setValue("/root/hidden/source/srchcond", "1");
  102. model.setValue("/root/hidden/source/pid", pid);
  103. if(submit("TRPMC02500")){
  104. if( getNodesetCount("/root/main/patinfo/patinfolist/pid") > 0 ){
  105. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  106. model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  107. model.setValue("/root/send/flag", FLAG);
  108. model.refresh();
  109. }else{
  110. messageBox("존재하지 않는 등록번호입니다. 등록번호를 확인하세요.", 'E999', '');
  111. return false;
  112. }
  113. }else{
  114. return false;
  115. }
  116. }
  117. if(submit("TRPAC00301")){
  118. //alert( instance1.selectSingleNode("/root/main/result/temp").xml);
  119. //alert( instance1.selectSingleNode("/root/main/result/temp"));
  120. model.copyNode("/root/main/ordcnstinfo", "/root/hidden/temp");
  121. model.refresh();
  122. }
  123. ]]>
  124. </script>
  125. </button>
  126. <line id="line13" class="line_4" style="x1:574px; y1:7px; x2:574px; y2:29px; "/>
  127. <input id="input3" ref="/root/send/pid" class="input_search" style="left:106px; top:8px; width:85px; height:19px; ">
  128. <script type="javascript" ev:event="onkeypress">
  129. <![CDATA[
  130. if(event.keyCode == "13") {
  131. //model.setValue("/root/hidden/source/srchcond", "1");
  132. model.setValue("/root/send/pid", input3.currentText);
  133. inputEnterKey("btn_search", "DOMActivate");
  134. }
  135. ]]>
  136. </script>
  137. </input>
  138. <caption id="caption3" class="search_name" style="left:225px; top:8px; width:86px; height:17px; ">환자이름 :</caption>
  139. <input id="input1" ref="/root/send/hngnm" class="input_search" appearance="input" style="left:316px; top:8px; width:65px; height:19px; ">
  140. <script type="javascript" ev:event="onkeypress">
  141. <![CDATA[
  142. if(event.keyCode == "13") {
  143. model.resetInstanceNode("/root/hidden/source");
  144. model.setValue("/root/hidden/source/srchcond", "2");
  145. model.setValue("/root/hidden/source/hngnm", input1.currentText);
  146. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/source", "/root/send");
  147. if(model.getValue("/root/main/popupendflag") == 'ok'){
  148. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  149. model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  150. }
  151. model.refresh();
  152. }
  153. ]]>
  154. </script>
  155. </input>
  156. <button id="button1" accesskey="f2" class="icon_search" style="left:200px; top:9px; width:16px; height:16px; ">
  157. <caption/>
  158. <script type="javascript" ev:event="DOMActivate">
  159. <![CDATA[
  160. //초기화
  161. //fInitialize();
  162. //model.resetInstanceNode("/root/hidden/source");
  163. //model.setValue("/root/hidden/source/srchcond", "1");
  164. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/source", "/root/send");
  165. if(model.getValue("/root/main/popupendflag") == 'ok'){
  166. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  167. model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  168. }
  169. model.refresh();
  170. ]]>
  171. </script>
  172. </button>
  173. <caption id="caption4" class="search_name" style="left:390px; top:8px; width:61px; height:17px; ">구분 :</caption>
  174. <!--
  175. <select1 id="radio1" ref="/root/send/flag" appearance="full" cols="2" overflow="visible" style="left:345px; top:10px; width:125px; height:20px; border-style:none; ">
  176. <choices>
  177. <item>
  178. <label>당일만</label>
  179. <value>O</value>
  180. </item>
  181. <item>
  182. <label>이전포함</label>
  183. <value>T</value>
  184. </item>
  185. </choices>
  186. <script type="javascript" ev:event="xforms-value-changed">
  187. <![CDATA[
  188. FLAG = model.getValue("/root/send/flag");
  189. ]]>
  190. </script>
  191. </select1>
  192. -->
  193. <select id="checkbox1" ref="/root/send/flag" overflow="visible" appearance="full" style="left:455px; top:10px; width:100px; height:20px; border-style:none; ">
  194. <choices>
  195. <item>
  196. <label>당일만</label>
  197. <value>O</value>
  198. </item>
  199. </choices>
  200. <script type="javascript" ev:event="xforms-value-changed">
  201. <![CDATA[
  202. FLAG = model.getValue("/root/send/flag");
  203. ]]>
  204. </script>
  205. </select>
  206. </group>
  207. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">협진내역</caption>
  208. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:662px; y2:60px; "/>
  209. <datagrid id="grd_emrcnstinfo" nodeset="/root/main/ordcnstinfo/emrcnst" caption="등록번호^의뢰일자^의뢰과^의뢰자명^수신과^수신자명^희망진료일자" colsep="^" colwidth="24, 100, 120, 100, 120, 100, 70" dataheight="23" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:65px; width:662px; height:249px; ">
  210. <col ref="pid" visibility="hidden"/>
  211. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  212. <col ref="reqdeptnm" style="text-align:left; "/>
  213. <col ref="requsernm" style="text-align:center; "/>
  214. <col ref="recvdeptnm" style="text-align:left; "/>
  215. <col ref="recvusernm" style="text-align:center; "/>
  216. <col ref="hopedd" format="yyyy-mm-dd" style="text-align:center; "/>
  217. <script type="javascript" ev:event="ondblclick">
  218. <![CDATA[
  219. btn_confirm.dispatch("DOMActivate");
  220. ]]>
  221. </script>
  222. </datagrid>
  223. </group>
  224. <group id="group1" scroll="auto" style="left:0px; top:316px; width:663px; height:27px; ">
  225. <button id="btn_confirm" class="btn4_letter2" style="left:606px; top:5px; width:56px; height:22px; ">
  226. <caption>확인</caption>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. /*
  230. if( FLAG == 'O' ){
  231. var currow = grd_emrcnstinfo.row;
  232. if( currow > 0 ){
  233. var msg = messageBox("선택하신 협진내역을 접수하시겠습니까?", "Q999", "");
  234. if( msg == 6 ){
  235. opener.javascript.setParameter("SPPMO01300_RTN", "OK");
  236. opener.javascript.setParameter("SPPMO01300_ORDDD", model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/hopedd"));
  237. opener.javascript.setParameter("SPPMO01300_ORDDEPTCD", model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/recvdeptcd"));
  238. opener.javascript.setParameter("SPPMO01300_ORDDRID", model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/recvuserid"));
  239. opener.javascript.setParameter("SPPMO01300_ORDREQFORMFLAG", model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/ordreqformflag"));
  240. opener.javascript.setParameter("SPPMO01300_FORMRECSEQ", model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/formrecseq"));
  241. }else{
  242. opener.javascript.setParameter("SPPMO01300_RTN", "NO");
  243. }
  244. }else{
  245. opener.javascript.setParameter("SPPMO01300_RTN", "NO");
  246. }
  247. }else{
  248. opener.javascript.setParameter("SPPMO01300_RTN", "NO");
  249. }
  250. */
  251. var currow = grd_emrcnstinfo.row;
  252. if( currow > 0 ){
  253. var msg = messageBox("선택하신 협진내역을 접수하시겠습니까?", "Q999", "");
  254. if( msg == 6 ){
  255. opener.javascript.setParameter("SPPMO01300_RTN", "OK");
  256. opener.javascript.setParameter("SPPMO01300_ORDDD" , model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/hopedd"));
  257. opener.javascript.setParameter("SPPMO01300_ORDDEPTCD" , model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/recvdeptcd"));
  258. opener.javascript.setParameter("SPPMO01300_ORDDRID" , model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/recvuserid"));
  259. opener.javascript.setParameter("SPPMO01300_ORDREQFORMFLAG" , model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/ordreqformflag"));
  260. opener.javascript.setParameter("SPPMO01300_FORMRECSEQ" , model.getValue("/root/main/ordcnstinfo/emrcnst[" + currow + "]/formrecseq"));
  261. }else{
  262. opener.javascript.setParameter("SPPMO01300_RTN", "NO");
  263. }
  264. }else{
  265. opener.javascript.setParameter("SPPMO01300_RTN", "NO");
  266. }
  267. window.close();
  268. ]]>
  269. </script>
  270. </button>
  271. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:662px; y2:0px; "/>
  272. </group>
  273. </xhtml:body>
  274. </xhtml:html>