SPARC02100_의뢰환자조회.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <send>
  10. <search>
  11. <pid/>
  12. <hngnm/>
  13. <coophospnm/>
  14. <drnm/>
  15. </search>
  16. </send>
  17. <main>
  18. <list>
  19. <reqlist>
  20. <pid/>
  21. <hngnm/>
  22. <reqdd/>
  23. <orddd/>
  24. <orddeptnm/>
  25. <orddrnm/>
  26. <coophospnm/>
  27. <drnm/>
  28. <cretno/>
  29. <acptseqno/>
  30. <seqno/>
  31. <orddeptcd/>
  32. <orddrid/>
  33. <coophospcd/>
  34. <coopdrcd/>
  35. <fromdd/>
  36. <chospath/>
  37. <fsexamflag/>
  38. <reqtype/>
  39. <cptype/>
  40. <reqpath/>
  41. <replmthd/>
  42. <enddd/>
  43. <repltype/>
  44. <rgstdd/>
  45. <endflag/>
  46. <replflag/>
  47. <endtype/>
  48. <cc/>
  49. <rem/>
  50. <fstprntdt/>
  51. <indschprntdt/>
  52. </reqlist>
  53. </list>
  54. <patinfo>
  55. <patinfolist/>
  56. </patinfo>
  57. <popupendflag/>
  58. </main>
  59. <init>
  60. <areacd>
  61. <A0426>
  62. </A0426>
  63. </areacd>
  64. <hospgrade>
  65. <A0429>
  66. </A0429>
  67. </hospgrade>
  68. </init>
  69. <temp/>
  70. </root>
  71. </instance>
  72. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  73. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  74. <script type="javascript" ev:event="xforms-ready">
  75. <![CDATA[
  76. fInit();
  77. ]]>
  78. </script>
  79. <submission id="TRARC02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list"/>
  80. </model>
  81. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  86. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  87. <script type="javascript" src="../../../ast/soclworkweb/js/AWMCommon.js"/>
  88. <script type="javascript">
  89. <![CDATA[
  90. // 초기값
  91. function fInit()
  92. {
  93. // 공통코드 목록 가져오기
  94. zbcfGetCodeList(new Array("A0429", "A0426"), new Array("/root/init/hospgrade", "/root/init/areacd") , true);
  95. model.removeNodeset("/root/main/list/reqlist");
  96. if (checkOpener()) {
  97. var pid = opener.javascript.getParameter("pid");
  98. var hngnm = opener.javascript.getParameter("hngnm");
  99. model.setValue("/root/send/search/pid", pid);
  100. model.setValue("/root/send/search/hngnm", hngnm);
  101. } else {
  102. messageBox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  103. }
  104. if (model.getValue("/root/send/search/pid") != "")
  105. {
  106. //fPatPopUp();
  107. fSearch();
  108. }
  109. model.refresh();
  110. //inputEnterKey("btn_pat", "DOMActivate");
  111. }
  112. // 병원 선택
  113. function fConfirm() {
  114. if (grd_list.rows <= 1) return;
  115. if (grd_list.row < 1) return;
  116. /*
  117. if (checkOpener()) {
  118. opener.javascript.setParameter("flag", "Y");
  119. opener.javascript.setParameter("coophospnm", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/coophospnm"));
  120. opener.javascript.setParameter("hospflag", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/hospflag"));
  121. opener.javascript.setParameter("drnm", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/drnm"));
  122. opener.javascript.setParameter("emailnm", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/emailnm"));
  123. opener.javascript.setParameter("telno1", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/telno1"));
  124. opener.javascript.setParameter("coophospcd", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/coophospcd"));
  125. opener.javascript.setParameter("coopdrcd", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/coopdrcd"));
  126. opener.javascript.setParameter("fromdd", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/fromdd"));
  127. opener.javascript.setParameter("areacd", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/areacd"));
  128. opener.javascript.setParameter("faxno", model.getValue("/root/main/list/req_hosp_list[" + grd_list.row + " ]/faxno1"));
  129. model.close();
  130. }
  131. */
  132. if ( checkOpener() ) {
  133. var row = grd_list.row;
  134. /*
  135. model.makeNode("/root/main/temp");
  136. opener.model.copyNode("/root/main/temp", "/root/main/list/reqlist[" + row + "]");
  137. alert(model.getValue("/root/main/list/reqlist"));
  138. model.refresh();
  139. */
  140. if( row > 0 ){
  141. if( getNodesetCount("/root/main/list/reqlist") > 0 ){
  142. //opener.model.copyNode("/root/main/reqpopup/reqpopuplist", getNode( row ));
  143. //opener.model.makeNode("/root/main/reqpopup/reqpopuplist1");
  144. //opener.model.copyNode("/root/main/reqpopup/reqpopuplist", "/root/main/list/reqlist[1]");
  145. model.copyNode(opener.root.main.reqpopup.reqpopuplist, "/root/main/list/reqlist[" + row + "]");
  146. //model.copyNode(opener.root.rtnValue, root.childValue);
  147. //alert("AA");
  148. //opener.model.makeNode("/root/main/reqpopupflag");
  149. opener.model.setValue("/root/main/reqpopupflag", "Y");
  150. opener.model.refresh();
  151. window.close();
  152. }
  153. }
  154. } else {
  155. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  156. }
  157. }
  158. // 조회
  159. function fSearch()
  160. {
  161. // reqmngt
  162. // reqGetReqPopupList
  163. // getReqPopupList
  164. if (submit("TRARC02101", false) == true)
  165. {
  166. }
  167. else
  168. {
  169. messageBox("조회를", "E009");
  170. }
  171. }
  172. // 등록번호 조회 팝업
  173. function fPatPopUp()
  174. {
  175. model.makeValue("/root/temp/pid", model.getValue("/root/send/search/pid"));
  176. model.makeValue("/root/temp/srchcond","1");
  177. model.makeValue("/root/temp/autoflag","Y");
  178. modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/temp", "/root/send");
  179. //model.resetInstanceNode("/root/main/patinfo/patinfolist");
  180. //model.resetInstanceNode("/root/send/cond");
  181. model.setValue("/root/send/search/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  182. model.setValue("/root/send/search/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  183. //fHistSearch();
  184. model.refresh();
  185. }
  186. ]]>
  187. </script>
  188. </xhtml:head>
  189. <xhtml:body pagewidth="876" pageheight="497" guideline="1,2;500,500;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  190. <group id="group3" scroll="auto" style="left:0px; top:0px; width:860px; height:470px; ">
  191. <group id="grp_tle" style="left:0px; top:0px; width:860px; height:13px; ">
  192. <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">의뢰환자조회</caption>
  193. </group>
  194. <group id="group1" style="left:0px; top:25px; width:860px; height:40px; vertical-align:top; ">
  195. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:857px; height:40px; "/>
  196. <line id="line8" class="line_4" style="x1:785px; y1:5px; x2:785px; y2:35px; "/>
  197. <caption id="caption4" class="search_name" visibility="hidden" style="left:555px; top:10px; width:94px; height:17px; ">의뢰의사 :</caption>
  198. <input id="input2" ref="/root/send/search/coophospnm" class="input_search" visibility="hidden" imemode="hangul" style="left:435px; top:10px; width:100px; height:19px; "/>
  199. <caption id="caption3" class="search_name" visibility="hidden" style="left:345px; top:10px; width:99px; height:17px; ">의뢰병원 :</caption>
  200. <input id="input4" ref="/root/send/search/drnm" class="input_search" visibility="hidden" imemode="hangul" style="left:645px; top:10px; width:100px; height:19px; "/>
  201. <output id="input1" ref="/root/send/search/hngnm" class="output_fix" appearance="output" style="left:210px; top:10px; width:100px; height:19px; "/>
  202. <button id="btn_search" class="btn1_letter2" style="left:795px; top:10px; width:56px; height:22px; ">
  203. <caption>조회</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. fSearch();
  207. model.refresh();
  208. ]]>
  209. </script>
  210. </button>
  211. <input id="ipt_pid" ref="/root/send/search/pid" class="input_search" disabled="true" style="left:110px; top:10px; width:100px; height:19px; ">
  212. <script type="javascript" ev:event="onkeydown">
  213. <![CDATA[
  214. if (event.keyCode == 13 && ipt_pid.currentText.length> 0)
  215. {
  216. inputEnterKey("btn_pat", "DOMActivate");
  217. }
  218. ]]>
  219. </script>
  220. </input>
  221. <caption id="caption23" class="search_name" style="left:20px; top:10px; width:95px; height:17px; ">등록번호 :</caption>
  222. </group>
  223. <line id="line1" class="line_1" style="x1:0px; y1:89px; x2:860px; y2:89px; "/>
  224. <datagrid id="grd_list" nodeset="/root/main/list/reqlist" caption="등록번호^환자명^의뢰일자^진료일자^진료과^진료의사^의뢰병원^의뢰의사^의뢰번호" colsep="^" colwidth="80, 110, 100, 100, 110, 100, 110, 110, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:2px; top:93px; width:858px; height:365px; ">
  225. <col ref="pid"/>
  226. <col ref="hngnm"/>
  227. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  228. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  229. <col ref="orddeptnm"/>
  230. <col ref="orddrnm"/>
  231. <col ref="coophospnm"/>
  232. <col ref="drnm"/>
  233. <col ref="reqpseqno"/>
  234. <script type="javascript" ev:event="ondblclick">
  235. <![CDATA[
  236. fConfirm();
  237. ]]>
  238. </script>
  239. </datagrid>
  240. <caption id="caption8" class="tit_2" style="left:5px; top:72px; width:119px; height:13px; ">의뢰환자 리스트</caption>
  241. </group>
  242. <group id="group2" scroll="auto" style="left:0px; top:468px; width:860px; height:27px; ">
  243. <button id="btn_confirm" class="btn4_letter2" style="left:742px; top:3px; width:56px; height:22px; ">
  244. <caption>확인</caption>
  245. <script type="javascript" ev:event="DOMActivate">
  246. <![CDATA[
  247. fConfirm();
  248. ]]>
  249. </script>
  250. </button>
  251. <button id="btn_cancel" class="btn4_letter2" style="left:801px; top:3px; width:56px; height:22px; ">
  252. <caption>취소</caption>
  253. <script type="javascript" ev:event="DOMActivate">
  254. <![CDATA[
  255. if (checkOpener()) {
  256. opener.model.makeNode("/root/main/reqpopupflag");
  257. opener.model.setValue("/root/main/reqpopupflag", "N");
  258. window.close();
  259. }
  260. model.close();
  261. ]]>
  262. </script>
  263. </button>
  264. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
  265. </group>
  266. </xhtml:body>
  267. </xhtml:html>