SMPMB03701_검사예약정보항목관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  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. <itemlist>
  43. <iteminfo>
  44. <itemtype/>
  45. <itemseq/>
  46. <itemnm/>
  47. <sortseq/>
  48. <valtype/>
  49. <valtypenm/>
  50. <addflag/>
  51. <valid/>
  52. <reftbl/>
  53. <srchcd/>
  54. <valcdarr/>
  55. <valnmarr/>
  56. </iteminfo>
  57. </itemlist>
  58. </main>
  59. <send>
  60. <itemtype/>
  61. <itemseq/>
  62. <itemnm/>
  63. <sortseq/>
  64. <valtype/>
  65. <addflag/>
  66. <valid/>
  67. <reftbl/>
  68. <srchcd/>
  69. <valcd/>
  70. <erit/>
  71. </send>
  72. <temp>
  73. <vallist>
  74. <valinfo>
  75. <itemseq/>
  76. <itemnm/>
  77. </valinfo>
  78. </vallist>
  79. </temp>
  80. <hidden>
  81. <popupmenu>
  82. <item>
  83. <name>삭제</name>
  84. <func>fDelItem</func>
  85. </item>
  86. </popupmenu>
  87. </hidden>
  88. </root>
  89. </instance>
  90. <submission id="TRPMB03701" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/itemlist/iteminfo"/>
  91. <submission id="TXPMB03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/itemlist/iteminfo"/>
  92. <submission id="TXPMB03702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/itemlist/iteminfo"/>
  93. </model>
  94. <script type="javascript">
  95. <![CDATA[
  96. function fSetValList() {
  97. model.resetInstanceNode("/root/temp/vallist/valinfo");
  98. grd_val.refresh();
  99. var path = "/root/main/itemlist/iteminfo";
  100. var cnt = instance1.selectNodes(path).length;
  101. var idx = 1;
  102. for (var i = 1; i <= cnt; i++) {
  103. var itemtype = model.getValue(path + "[" + i + "]/itemtype");
  104. var valtype = model.getValue(path + "[" + i + "]/valtype");
  105. if ( itemtype == "R" || itemtype == "E" ) {
  106. model.makeValue("/root/temp/vallist/valinfo[" + idx + "]/itemseq", model.getValue(path + "[" + i + "]/itemseq"));
  107. model.makeValue("/root/temp/vallist/valinfo[" + idx + "]/itemnm", model.getValue(path + "[" + i + "]/itemnm"));
  108. idx++;
  109. }
  110. }
  111. grd_val.refresh();
  112. }
  113. function fDelItem() {
  114. grd_item.addStatus(grd_item.row, "delete");
  115. }
  116. ]]>
  117. </script>
  118. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  119. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  121. <script type="javascript" ev:event="xforms-ready">
  122. <![CDATA[
  123. submit("TRPMB03701");
  124. fSetValList();
  125. ]]>
  126. </script>
  127. </xhtml:head>
  128. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  129. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; font-family:돋움; vertical-align:middle; ">검사 예약 제어 정보 항목 관리</caption>
  130. <caption id="caption6" class="tit_2" style="left:0px; top:25px; width:85px; height:13px; ">항목 정보</caption>
  131. <line id="line3" class="line_3" style="x1:0px; y1:40px; x2:1195px; y2:40px; "/>
  132. <line id="line4" class="line_3" style="x1:0px; y1:64px; x2:1195px; y2:64px; "/>
  133. <caption id="caption9" class="cell_1" style="left:0px; top:44px; width:65px; height:17px; ">항목 형식</caption>
  134. <select1 id="cmb_itemtype" ref="/root/send/itemtype" appearance="minimal" style="left:67px; top:43px; width:71px; height:19px; ">
  135. <choices>
  136. <item>
  137. <label>참조</label>
  138. <value>R</value>
  139. </item>
  140. <item>
  141. <label>열거</label>
  142. <value>E</value>
  143. </item>
  144. <item>
  145. <label>제어</label>
  146. <value>C</value>
  147. </item>
  148. </choices>
  149. <script type="javascript" ev:event="xforms-value-changed">
  150. <![CDATA[
  151. if (model.getValue("/root/send/itemtype") == "E") {
  152. chk_valtype.disabled = true;
  153. } else {
  154. chk_valtype.disabled = false;
  155. }
  156. ]]>
  157. </script>
  158. </select1>
  159. <caption id="caption1" class="cell_1" style="left:141px; top:44px; width:47px; height:17px; ">항목명</caption>
  160. <input id="ipt_itemnm" ref="/root/send/itemnm" style="left:190px; top:43px; width:100px; height:19px; "/>
  161. <caption id="caption2" class="cell_1" style="left:293px; top:44px; width:53px; height:17px; ">값 형식</caption>
  162. <select id="chk_valtype" ref="/root/send/valtype" overflow="visible" appearance="full" cols="5" style="left:348px; top:44px; width:180px; height:15px; border-style:none; ">
  163. <choices>
  164. <item>
  165. <label>참조</label>
  166. <value>R</value>
  167. </item>
  168. <item>
  169. <label>직접</label>
  170. <value>D</value>
  171. </item>
  172. <item>
  173. <label>조회</label>
  174. <value>S</value>
  175. </item>
  176. <item>
  177. <label>열거</label>
  178. <value>E</value>
  179. </item>
  180. </choices>
  181. </select>
  182. <caption id="caption3" class="cell_1" style="left:615px; top:44px; width:42px; height:17px; ">값 ID</caption>
  183. <input id="ipt_valid" ref="/root/send/valid" style="left:658px; top:43px; width:120px; height:19px; "/>
  184. <caption id="caption7" class="cell_1" style="left:781px; top:44px; width:78px; height:17px; ">참조 테이블</caption>
  185. <input id="ipt_reftbl" ref="/root/send/reftbl" style="left:861px; top:43px; width:120px; height:19px; "/>
  186. <caption id="caption5" class="cell_1" style="left:984px; top:44px; width:65px; height:17px; ">조회 항목</caption>
  187. <select1 id="cmb_srchcd" ref="/root/send/srchcd" appearance="minimal" style="left:1051px; top:43px; width:100px; height:19px; ">
  188. <choices>
  189. <itemset nodeset="/root/init/srchcd/cdinfo">
  190. <label ref="nm"/>
  191. <value ref="cd"/>
  192. </itemset>
  193. </choices>
  194. </select1>
  195. <button id="btn_rgst" class="btn2_letter2" navindex="4" style="left:1153px; top:43px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  196. <caption>등록</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. var valtype = model.getValue("/root/send/valtype").replace(/ /g, '');
  200. model.setValue("/root/send/valtype", valtype);
  201. submit("TXPMB03701");
  202. grd_item.resizeCells();
  203. fSetValList();
  204. model.resetInstanceNode("/root/send");
  205. model.refresh();
  206. ]]>
  207. </script>
  208. </button>
  209. <caption id="cap_grid" class="tit_2" style="left:0px; top:75px; width:75px; height:14px; ">항목 목록</caption>
  210. <line id="line2" class="line_1" style="x1:0px; y1:90px; x2:1050px; y2:90px; "/>
  211. <datagrid id="grd_item" nodeset="/root/main/itemlist/iteminfo" autoresize="true" caption="항목형식^항목순번^항목명^정렬^값 형식^값 형식^가산^값 ID^참조테이블^조회 항목^값항목코드목록^값 항목" colsep="^" colwidth="100, 0, 100, 50, 60, 140, 35, 100, 100, 100, 0, 230" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:95px; width:1050px; height:665px; ">
  212. <col explorerbar="sortshow" disabled="true" ref="itemtype" type="combo" style="text-align:center; ">
  213. <choices>
  214. <item>
  215. <label>참조</label>
  216. <value>R</value>
  217. </item>
  218. <item>
  219. <label>열거</label>
  220. <value>E</value>
  221. </item>
  222. <item>
  223. <label>포함</label>
  224. <value>S</value>
  225. </item>
  226. <item>
  227. <label>제어</label>
  228. <value>C</value>
  229. </item>
  230. </choices>
  231. </col>
  232. <col ref="itemseq"/>
  233. <col explorerbar="sortshow" ref="itemnm" type="input" style="text-align:center; "/>
  234. <col explorerbar="sortshow" ref="sortseq" type="input" format="9999" style="text-align:center; "/>
  235. <col ref="valtype" type="input" style="text-align:center; "/>
  236. <col ref="valtypenm" style="text-align:center; "/>
  237. <col checkvalue="Y,N" ref="addflag" type="checkbox"/>
  238. <col ref="valid" type="input" style="text-align:center; "/>
  239. <col ref="reftbl" type="input" style="text-align:center; "/>
  240. <col ref="srchcd" type="combo" style="text-align:center; ">
  241. <choices>
  242. <itemset nodeset="/root/init/srchcd/cdinfo">
  243. <label ref="nm"/>
  244. <value ref="cd"/>
  245. </itemset>
  246. </choices>
  247. </col>
  248. <col ref="valseqarr"/>
  249. <col ref="valnmarr" style="text-align:left; "/>
  250. <script type="javascript" ev:event="onmousedown">
  251. <![CDATA[
  252. setPopupMenu("grd_item", false, "/root/hidden/popupmenu/item", "name", "func");
  253. ]]>
  254. </script>
  255. <script type="javascript" ev:event="DOMFocusOut">
  256. <![CDATA[
  257. initPopupMenu();
  258. ]]>
  259. </script>
  260. <script type="javascript" ev:event="onclick">
  261. <![CDATA[
  262. if (!grd_item.isCell(event.target)) {
  263. return;
  264. }
  265. ]]>
  266. </script>
  267. </datagrid>
  268. <button id="btn_set" class="btn2_letter2" navindex="4" style="left:1008px; top:70px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  269. <caption>저장</caption>
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. model.setValue("/root/send/erit", grd_item.getUpdateData());
  273. submit("TXPMB03702");
  274. grd_item.resizeCells();
  275. fSetValList();
  276. ]]>
  277. </script>
  278. </button>
  279. <caption id="caption4" class="tit_2" style="left:1070px; top:75px; width:65px; height:13px; ">값 항목</caption>
  280. <line id="line6" class="line_1" style="x1:1070px; y1:90px; x2:1195px; y2:90px; "/>
  281. <datagrid id="grd_val" nodeset="/root/temp/vallist/valinfo" backcoloralternate="transparent" caption="항목순번^항목명" colsep="^" colwidth="0, 120" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:1070px; top:95px; width:125px; height:665px; ">
  282. <col ref="itemseq"/>
  283. <col ref="itemnm"/>
  284. </datagrid>
  285. <button id="btn_valset" class="btn2_letter2" navindex="4" style="left:1153px; top:70px; width:46px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  286. <caption>설정</caption>
  287. <script type="javascript" ev:event="DOMActivate">
  288. <![CDATA[
  289. var cnt = grd_val.selectedCells.length;
  290. var seqstr = "";
  291. var nmstr = "";
  292. for (var i = 0; i < cnt; i++) {
  293. seqstr += grd_val.valueMatrix(grd_val.selectedCells.item(i).row, grd_val.colRef("itemseq"));
  294. nmstr += grd_val.valueMatrix(grd_val.selectedCells.item(i).row, grd_val.colRef("itemnm"));
  295. if (i < cnt - 1) {
  296. seqstr += ",";
  297. nmstr += ",";
  298. }
  299. }
  300. grd_item.valueMatrix(grd_item.row, grd_item.colRef("valseqarr")) = seqstr;
  301. grd_item.valueMatrix(grd_item.row, grd_item.colRef("valnmarr")) = nmstr;
  302. grd_item.addStatus(grd_item.row, "update");
  303. grd_item.resizeCells();
  304. ]]>
  305. </script>
  306. </button>
  307. <caption id="caption8" style="left:1050px; top:395px; width:20px; height:20px; color:#808080; text-align:center; ">◀</caption>
  308. <select id="chk_addflag" ref="/root/send/addflag" overflow="visible" appearance="full" style="left:540px; top:44px; width:70px; height:15px; border-style:none; ">
  309. <choices>
  310. <item>
  311. <label>가산허용</label>
  312. <value>Y</value>
  313. </item>
  314. </choices>
  315. </select>
  316. </xhtml:body>
  317. </xhtml:html>