SMPMB03702_검사예약정보관리항목값조회.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>항목값 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <init>
  10. <srchcd>
  11. <cdinfo>
  12. <nm>진료과</nm>
  13. <cd>dept</cd>
  14. </cdinfo>
  15. <cdinfo>
  16. <nm>진료의</nm>
  17. <cd>ordr</cd>
  18. </cdinfo>
  19. <cdinfo>
  20. <nm>처방코드</nm>
  21. <cd>prcd</cd>
  22. </cdinfo>
  23. <cdinfo>
  24. <nm>검사실</nm>
  25. <cd>room</cd>
  26. </cdinfo>
  27. <cdinfo>
  28. <nm>검사코드</nm>
  29. <cd>excd</cd>
  30. </cdinfo>
  31. <cdinfo>
  32. <nm>약코드</nm>
  33. <cd>dgcd</cd>
  34. </cdinfo>
  35. <cdinfo>
  36. <nm>수술코드</nm>
  37. <cd>opcd</cd>
  38. </cdinfo>
  39. </srchcd>
  40. </init>
  41. <main>
  42. <srchlist>
  43. <srchinfo>
  44. <cd/>
  45. <nm/>
  46. </srchinfo>
  47. </srchlist>
  48. </main>
  49. <send>
  50. <srchflag/>
  51. <srchcd/>
  52. <srchnm/>
  53. <deptcd/>
  54. <excuroomcd/>
  55. </send>
  56. <temp>
  57. <deptlist>
  58. <srchinfo>
  59. <cd/>
  60. <nm/>
  61. </srchinfo>
  62. </deptlist>
  63. <suppdeptlist>
  64. <deptinfo>
  65. <deptcd/>
  66. <deptnm/>
  67. </deptinfo>
  68. </suppdeptlist>
  69. <roomlist>
  70. <roominfo>
  71. <deptcd/>
  72. <roomcd>T</roomcd>
  73. <roomnm>전체</roomnm>
  74. </roominfo>
  75. </roomlist>
  76. </temp>
  77. </root>
  78. </instance>
  79. <submission id="TRPMB03702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/suppdeptlist/deptinfo"/>
  80. <submission id="TRPMB03703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/roomlist/roominfo"/>
  81. <submission id="TRPMB03707" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/srchlist/srchinfo"/>
  82. </model>
  83. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  86. <script type="javascript">
  87. <![CDATA[
  88. var SRCHFLAG = "";
  89. ]]>
  90. </script>
  91. <script type="javascript" ev:event="xforms-ready">
  92. <![CDATA[
  93. cap_dept.attribute("top") = cap_srchnm.attribute("top");
  94. cmb_dept.attribute("top") = ipt_srchnm.attribute("top");
  95. if (checkOpener()) {
  96. var opcode = opener.javascript.getParameter("SMPMB03702_opcode");
  97. if (opcode == "IN" || opcode == "NI") {
  98. btn_all.visible = true;
  99. grd_srch.allowSelection = true;
  100. }
  101. var srchcd = opener.javascript.getParameter("SMPMB03702_srchcd");
  102. var flagnm = "";
  103. if (srchcd == "dept") {
  104. flagnm = "진료과";
  105. } else if (srchcd == "ordr") {
  106. flagnm = "진료의";
  107. cap_srchnm.visible = false;
  108. ipt_srchnm.visible = false;
  109. cap_dept.visible = true;
  110. cmb_dept.visible = true;
  111. model.setValue("/root/send/srchflag", "orddept");
  112. submit("TRPMB03707", false);
  113. model.copyNode("/root/temp/deptlist", "/root/main/srchlist");
  114. model.resetInstanceNode("/root/main/srchlist/srchinfo");
  115. cmb_dept.refresh();
  116. grd_srch.rebuildStyle();
  117. cmb_dept.select(0);
  118. } else if (srchcd == "prcd") {
  119. flagnm = "처방명";
  120. } else if (srchcd == "room") {
  121. flagnm = "검사실";
  122. } else if (srchcd == "excd") {
  123. flagnm = "검사명";
  124. cap_suppdept.visible = true;
  125. cmb_suppdept.visible = true;
  126. cap_room.visible = true;
  127. cmb_room.visible = true;
  128. model.setValue("/root/send/srchflag", "D");
  129. submit("TRPMB03702", false);
  130. addComboItem("cmb_suppdept", "전체", "T");
  131. model.setValue("/root/send/deptcd", "T");
  132. cmb_suppdept.refresh();
  133. model.setValue("/root/send/excuroomcd", "T");
  134. cmb_room.refresh();
  135. } else if (srchcd == "dgcd") {
  136. flagnm = "약이름";
  137. } else if (srchcd == "opcd") {
  138. flagnm = "수술명";
  139. }
  140. cap_srchnm.value = flagnm + " : ";
  141. ipt_srchnm.attribute("left") = flagnm.length == 3 ? "90px" : "103px";
  142. SRCHFLAG = srchcd
  143. }
  144. ]]>
  145. </script>
  146. </xhtml:head>
  147. <xhtml:body pagewidth="640" pageheight="480" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  148. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:624px; height:41px; background-color:#fffbf2; border-color:#ffd799; "/>
  149. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; font-family:돋움; vertical-align:middle; ">항목값 조회</caption>
  150. <caption id="cap_srchnm" class="search_name" style="left:10px; top:33px; width:86px; height:17px; ">조회명 :</caption>
  151. <input id="ipt_srchnm" ref="/root/send/srchnm" navindex="1" style="left:90px; top:32px; width:200px; height:19px; ">
  152. <script type="javascript" ev:event="onkeyup">
  153. <![CDATA[
  154. inputEnterKey("btn_search", "DOMActivate");
  155. ]]>
  156. </script>
  157. </input>
  158. <caption id="cap_dept" class="search_name" visibility="hidden" style="left:10px; top:50px; width:80px; height:17px; ">진료과 :</caption>
  159. <select1 id="cmb_dept" ref="/root/send/srchcd" visibility="hidden" appearance="minimal" style="left:90px; top:55px; width:115px; height:19px; ">
  160. <choices>
  161. <itemset nodeset="/root/temp/deptlist/srchinfo">
  162. <label ref="nm"/>
  163. <value ref="cd"/>
  164. </itemset>
  165. </choices>
  166. </select1>
  167. <line id="line13" style="x1:549px; y1:28px; x2:549px; y2:55px; border-color:#FFD799; border-left-style:solid; "/>
  168. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:560px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  169. <caption>조회</caption>
  170. <script type="javascript" ev:event="DOMActivate">
  171. <![CDATA[
  172. var srchnm = model.getValue("/root/send/srchnm");
  173. if ( SRCHFLAG != "ordr" && SRCHFLAG != "excd" && srchnm.length < 2) {
  174. messageBox("조회명은 두글자 이상 입력해 주십시오.", "E999");
  175. return;
  176. }
  177. model.setValue("/root/send/srchflag", SRCHFLAG);
  178. submit("TRPMB03707");
  179. ]]>
  180. </script>
  181. </button>
  182. <caption id="caption8" class="tit_2" style="left:0px; top:70px; width:76px; height:13px; ">조회 내역</caption>
  183. <line id="line5" class="line_1" style="x1:0px; y1:85px; x2:624px; y2:85px; "/>
  184. <datagrid id="grd_srch" nodeset="/root/main/srchlist/srchinfo" allowselection="false" backcoloralternate="transparent" caption="코드^한글명" colsep="^" colwidth="120, 500" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:90px; width:624px; height:360px; ">
  185. <col ref="cd" style="text-align:center; "/>
  186. <col ref="nm" style="padding-left:2; "/>
  187. <script type="javascript" ev:event="ondblclick">
  188. <![CDATA[
  189. btn_input.dispatch("DOMActivate");
  190. ]]>
  191. </script>
  192. <script type="javascript" ev:event="onaftersort">
  193. <![CDATA[
  194. grd_srch.gridToInstance();
  195. ]]>
  196. </script>
  197. </datagrid>
  198. <button id="btn_input" class="btn4_letter2" style="left:505px; top:458px; width:56px; height:22px; ">
  199. <caption>입력</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. //opener.model.resetInstanceNode("/root/temp/srchlist/srchinfo");
  203. var lastIdx = opener.instance1.selectNodes("/root/temp/srchlist/srchinfo[val != '']").length;
  204. var cnt = grd_srch.selectedRows;
  205. for (var i = 0; i < cnt; i++) {
  206. var row = grd_srch.selectedRow(i);
  207. opener.model.makeValue("/root/temp/srchlist/srchinfo[" + ( lastIdx + i + 1 ) + "]/val", model.getValue("/root/main/srchlist/srchinfo[" + row + "]/cd"));
  208. opener.model.makeValue("/root/temp/srchlist/srchinfo[" + ( lastIdx + i + 1 ) + "]/valnm", model.getValue("/root/main/srchlist/srchinfo[" + row + "]/nm"));
  209. }
  210. window.close();
  211. ]]>
  212. </script>
  213. </button>
  214. <button id="btn_close" class="btn4_letter2" style="left:568px; top:458px; width:56px; height:22px; ">
  215. <caption>닫기</caption>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. window.close();
  219. ]]>
  220. </script>
  221. </button>
  222. <select1 id="cmb_suppdept" ref="/root/send/deptcd" visibility="hidden" appearance="minimal" style="left:377px; top:22px; width:160px; height:19px; ">
  223. <choices>
  224. <itemset nodeset="/root/temp/suppdeptlist/deptinfo">
  225. <label ref="deptnm"/>
  226. <value ref="deptcd"/>
  227. </itemset>
  228. </choices>
  229. <script type="javascript" ev:event="xforms-value-changed">
  230. <![CDATA[
  231. model.setValue("/root/send/srchflag", "R");
  232. submit("TRPMB03703", false);
  233. addComboItem("cmb_room", "전체", "T");
  234. cmb_room.select(0);
  235. cmb_room.hint = cmb_room.label;
  236. ]]>
  237. </script>
  238. </select1>
  239. <select1 id="cmb_room" ref="/root/send/excuroomcd" visibility="hidden" appearance="minimal" style="left:377px; top:40px; width:160px; height:19px; ">
  240. <choices>
  241. <itemset nodeset="/root/temp/roomlist/roominfo">
  242. <label ref="roomnm"/>
  243. <value ref="roomcd"/>
  244. </itemset>
  245. </choices>
  246. </select1>
  247. <caption id="cap_suppdept" visibility="hidden" style="left:310px; top:23px; width:66px; height:17px; text-align:right; ">수행부서 :</caption>
  248. <caption id="cap_room" visibility="hidden" style="left:310px; top:42px; width:66px; height:17px; text-align:right; ">검사실 :</caption>
  249. <button id="btn_all" class="btn2_letter4" visibility="hidden" style="left:560px; top:65px; width:64px; height:19px; ">
  250. <caption>전체선택</caption>
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. grd_srch.select(1, 1, grd_srch.rows - 1, 1) = true;
  254. ]]>
  255. </script>
  256. </button>
  257. </xhtml:body>
  258. </xhtml:html>