SPARH00510_HIE병원및과팝업.xrw 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <hospinfo/>
  11. <deptinfo/>
  12. </main>
  13. <send>
  14. <searchhosp>
  15. <hospnm/>
  16. <hosptype/>
  17. </searchhosp>
  18. <searchdept>
  19. <organizationoid/>
  20. </searchdept>
  21. </send>
  22. <init>
  23. <initinfo/>
  24. </init>
  25. <hidden>
  26. <areainfo>
  27. <list>
  28. <cdid/>
  29. <cdnm>전체</cdnm>
  30. </list>
  31. <list>
  32. <cdid>TK</cdid>
  33. <cdnm>대구경북</cdnm>
  34. </list>
  35. <list>
  36. <cdid>PK</cdid>
  37. <cdnm>부산경남</cdnm>
  38. </list>
  39. <list>
  40. <cdid>S</cdid>
  41. <cdnm>서울</cdnm>
  42. </list>
  43. </areainfo>
  44. </hidden>
  45. </root>
  46. </instance>
  47. <submission id="TRARH00505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchhosp" resultref="/root/main/hospinfo"/>
  48. <submission id="TRARH00506" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/initinfo"/>
  49. <submission id="TRARH00507" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchdept" resultref="/root/main/deptinfo"/>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. if(!checkOpener()){
  53. window.close();
  54. }
  55. fInit();
  56. ]]>
  57. </script>
  58. </model>
  59. </xhtml:head>
  60. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  61. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  62. <script type="javascript">
  63. <![CDATA[
  64. function fInit(){
  65. submit("TRARH00506");
  66. addComboItem("cmb_hosptype","전체","","above");
  67. fSearch();
  68. model.refresh();
  69. }
  70. function fSearch(){
  71. submit("TRARH00505",false);
  72. }
  73. function fSearchDept(){
  74. submit("TRARH00507",false);
  75. }
  76. function fSetReturn(){
  77. opener.javascript.setParameter("SPARH00510_RETURN_organizationoid", model.getValue("/root/main/hospinfo/hosplist["+grd_hosplist.row+"]/organizationoid"));
  78. opener.javascript.setParameter("SPARH00510_RETURN_organizationid", model.getValue("/root/main/hospinfo/hosplist["+grd_hosplist.row+"]/organizationid"));
  79. opener.javascript.setParameter("SPARH00510_RETURN_organizationname", model.getValue("/root/main/hospinfo/hosplist["+grd_hosplist.row+"]/organizationname"));
  80. opener.javascript.setParameter("SPARH00510_RETURN_telecom", model.getValue("/root/main/hospinfo/hosplist["+grd_hosplist.row+"]/telecom"));
  81. opener.javascript.setParameter("SPARH00510_RETURN_postalcode", model.getValue("/root/main/hospinfo/hosplist["+grd_hosplist.row+"]/postalcode"));
  82. opener.javascript.setParameter("SPARH00510_RETURN_address", model.getValue("/root/main/hospinfo/hosplist["+grd_hosplist.row+"]/address"));
  83. opener.javascript.setParameter("SPARH00510_RETURN_departmentcode", model.getValue("/root/main/deptinfo/deptlist["+grd_deptlist.row+"]/departmentcode"));
  84. opener.javascript.setParameter("SPARH00510_RETURN_departmentname", model.getValue("/root/main/deptinfo/deptlist["+grd_deptlist.row+"]/departmentname"));
  85. opener.javascript.setParameter("SPARH00510_RETURN_flag","Y");
  86. }
  87. ]]>
  88. </script>
  89. <xhtml:body pagewidth="1000" pageheight="500" style="margin-left:8; ">
  90. <group id="group5" style="left:0px; top:25px; width:985px; height:35px; vertical-align:top; ">
  91. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:985px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  92. <line id="line2" class="line_4" style="x1:885px; y1:9px; x2:885px; y2:31px; "/>
  93. <button id="btn_search" class="btn1_letter2" navindex="33" style="left:910px; top:10px; width:56px; height:22px; ">
  94. <caption>조회</caption>
  95. <script type="javascript" ev:event="DOMActivate">
  96. <![CDATA[
  97. fSearch();
  98. model.removeNodeset("/root/main/deptinfo/deptlist");
  99. model.refresh();
  100. ]]>
  101. </script>
  102. </button>
  103. <input id="input2" ref="/root/send/searchhosp/hospnm" navindex="32" style="left:90px; top:10px; width:125px; height:19px; ">
  104. <script type="javascript" ev:event="onkeydown">
  105. <![CDATA[
  106. if(event.keyCode==13)
  107. {
  108. inputEnterKey("btn_search", "DOMActivate");
  109. }
  110. ]]>
  111. </script>
  112. </input>
  113. <caption id="caption7" class="search_name" style="left:8px; top:10px; width:94px; height:17px; ">병의원명</caption>
  114. <select1 id="cmb_hosptype" ref="/root/send/searchhosp/hosptype" appearance="minimal" style="left:335px; top:10px; width:125px; height:19px; ">
  115. <choices>
  116. <itemset nodeset="/root/init/initinfo/hosptypelist">
  117. <label ref="cdnm"/>
  118. <value ref="cdid"/>
  119. </itemset>
  120. </choices>
  121. </select1>
  122. <caption id="caption36" class="search_name" style="left:245px; top:10px; width:94px; height:17px; ">병원타입</caption>
  123. </group>
  124. <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:205px; height:14px; ">HIE 병의원 및 진료과 선택</caption>
  125. <datagrid id="grd_hosplist" nodeset="/root/main/hospinfo/hosplist" scroll="autovscroll" caption="요양기관기호^병원명^병원타입^전화번호^주소" colsep="^" colwidth="100, 155, 82, 103, 286" dataheight="25" defaultrows="0" extendlastcol="scroll" frozencols="3" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" style="left:0px; top:85px; width:765px; height:371px; vertical-align:middle; ">
  126. <col ref="organizationid"/>
  127. <col ref="organizationname"/>
  128. <col ref="organizationtypecode" type="combo" style="text-align:center; ">
  129. <choices>
  130. <itemset nodeset="/root/init/initinfo/hosptypelist">
  131. <label ref="cdnm"/>
  132. <value ref="cdid"/>
  133. </itemset>
  134. </choices>
  135. </col>
  136. <col ref="telecom"/>
  137. <col ref="address"/>
  138. <script type="javascript" ev:event="onclick">
  139. <![CDATA[
  140. if(grd_hosplist.row<1) return;
  141. var row = grd_hosplist.row;
  142. var organizationoid = model.getValue("/root/main/hospinfo/hosplist["+ row + "]/organizationoid");
  143. model.setValue("/root/send/searchdept/organizationoid",organizationoid);
  144. fSearchDept();
  145. model.refresh();
  146. ]]>
  147. </script>
  148. </datagrid>
  149. <button id="button1" class="btn4_letter2" style="left:450px; top:465px; width:56px; height:22px; ">
  150. <caption>선택</caption>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. if(grd_hosplist.row < 1){
  154. messageBox("병의원이 선택되지 않았습니다.","E999");
  155. return;
  156. }
  157. if(grd_deptlist.row < 1){
  158. messageBox("과 선택이 되지 않았습니다.","E999");
  159. return;
  160. }
  161. fSetReturn();
  162. window.close();
  163. ]]>
  164. </script>
  165. </button>
  166. <button id="button2" class="btn4_letter2" style="left:515px; top:465px; width:56px; height:22px; ">
  167. <caption>닫기</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. window.close();
  171. ]]>
  172. </script>
  173. </button>
  174. <caption id="caption1" class="tit_2" style="left:0px; top:70px; width:152px; height:13px; ">병의원 선택</caption>
  175. <caption id="caption3" class="tit_2" style="left:770px; top:70px; width:152px; height:14px; ">과 선택</caption>
  176. <datagrid id="grd_deptlist" nodeset="/root/main/deptinfo/deptlist" caption="이름" colsep="^" colwidth="198" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:770px; top:85px; width:213px; height:371px; ">
  177. <col ref="departmentname"/>
  178. <script type="javascript" ev:event="ondblclick">
  179. <![CDATA[
  180. if(grd_hosplist.row < 1){
  181. messageBox("병의원이 선택되지 않았습니다.","E999");
  182. return;
  183. }
  184. if(grd_deptlist.row < 1){
  185. messageBox("과 선택이 되지 않았습니다.","E999");
  186. return;
  187. }
  188. fSetReturn();
  189. window.close();
  190. ]]>
  191. </script>
  192. </datagrid>
  193. </xhtml:body>
  194. </xhtml:html>