SMAEB03800_SECTION별조영제관리.xrw 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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. <main>
  10. <goodlist>
  11. <item>
  12. <goodcd/>
  13. <goodnm/>
  14. <speccd/>
  15. <safestocqty/>
  16. <sectcd/>
  17. <instcd/>
  18. <suppdeptcd/>
  19. <dispseq/>
  20. </item>
  21. </goodlist>
  22. </main>
  23. <send>
  24. <data>
  25. <itemcd/>
  26. </data>
  27. <req>
  28. <data/>
  29. </req>
  30. <globalinstance>
  31. <instance1/>
  32. </globalinstance>
  33. <sectcd/>
  34. </send>
  35. <init/>
  36. <hidden>
  37. <item>
  38. </item>
  39. </hidden>
  40. <cmb_info>
  41. <initexcuroomgrp2>
  42. <excuroomgrpcdid/>
  43. <excuroomgrpcdnm/>
  44. </initexcuroomgrp2>
  45. </cmb_info>
  46. <temp>
  47. <goodcd/>
  48. <goodnm/>
  49. <safestocqty/>
  50. <speccd/>
  51. </temp>
  52. </root>
  53. </instance>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. aezfSetSuppDeptcd();
  58. model.removeNodeset("/root/main/goodlist/item");
  59. //model.removeNodeset("/root/main/speclist/item");
  60. model.refresh();
  61. model.setFocus("ipt_speccd");
  62. submit("TRAEA01301");
  63. grd_sectlist.deleteRow(1, true);
  64. grd_sectlist.dispatch("onclick");
  65. ]]>
  66. </script>
  67. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/cmb_info"/>
  68. <submission id="TRAEB03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/goodlist"/>
  69. <submission id="TXAEB03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  70. </model>
  71. </xhtml:head>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  75. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  76. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  77. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  78. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  79. <script type="javascript">
  80. <![CDATA[
  81. function fnGetMainList()
  82. {
  83. if(submit("TRAEB01802"))
  84. {
  85. //model.removeNodeset("/root/main/goodlist/item");
  86. }
  87. }
  88. ]]>
  89. </script>
  90. <xhtml:body guideline="1,1195;2,786;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  91. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:215px; height:15px; ">검사실별 조영제/재료 코드 관리</caption>
  92. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  93. <button id="btn_grdadd" class="btn2_letter3" style="left:1085px; top:60px; width:53px; height:19px; ">
  94. <caption>행추가</caption>
  95. <script type="javascript" ev:event="DOMActivate">
  96. <![CDATA[
  97. if(grd_sectlist.row < 1)
  98. {
  99. messageBox("핵종이나 화합물이 선택되지", "E007");
  100. return false;
  101. }
  102. grd_goodlist.addRow();
  103. grd_goodlist.row = grd_goodlist.bottomRow;
  104. var cnt = parseInt(grd_goodlist.row);
  105. var mainrowcnt = parseInt(grd_sectlist.row);
  106. model.setValue("/root/main/goodlist/item[" + cnt + "]/suppdeptcd",
  107. model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/suppdeptcd") );
  108. model.setValue("/root/main/goodlist/item[" + cnt + "]/bdioflag",
  109. model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/bdioflag") );
  110. model.setValue("/root/main/goodlist/item[" + cnt + "]/itemflag",
  111. model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/itemflag") );
  112. model.setValue("/root/main/goodlist/item[" + cnt + "]/itemcd",
  113. model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/itemcd") );
  114. grd_goodlist.isReadOnly(cnt, 1) = false;
  115. ]]>
  116. </script>
  117. </button>
  118. <button id="btn_grddel" class="btn2_letter3" style="left:1142px; top:60px; width:53px; height:19px; ">
  119. <caption>행삭제</caption>
  120. <script type="javascript" ev:event="onclick">
  121. <![CDATA[
  122. // grd_goodlist.addStatus(grd_goodlistt.row,"delete");
  123. deleteSelectedRows(grd_goodlist, true);
  124. ]]>
  125. </script>
  126. </button>
  127. <datagrid id="grd_sectlist" nodeset="/root/cmb_info/initexcuroomgrp2" allowselection="false" caption="검사실^검사실" colsep="^" colwidth="183, 194" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:0px; top:30px; width:245px; height:730px; ">
  128. <col ref="excuroomgrpcdid" type="output" visibility="hidden"/>
  129. <col ref="excuroomgrpcdnm"/>
  130. <script type="javascript" ev:event="onclick">
  131. <![CDATA[
  132. if(grd_sectlist.row == 0)
  133. {
  134. return false;
  135. }
  136. //grd_goodlist.nodeset="/root/main/item2"
  137. model.setValue("/root/send/sectcd", model.getValue("/root/cmb_info/initexcuroomgrp2[" + grd_sectlist.row + "]/excuroomgrpcdid"));
  138. submit("TRAEB03801");
  139. model.refresh();
  140. ]]>
  141. </script>
  142. </datagrid>
  143. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  144. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1195px; y2:0px; "/>
  145. <button id="button1" class="btn4_letter2" style="left:1078px; top:4px; width:56px; height:22px; ">
  146. <caption>저장</caption>
  147. <script type="javascript" ev:event="DOMActivate">
  148. <![CDATA[
  149. if(!astfNullValidation("/root/main/goodlist/item", "goodcd", "약품코드를")) return false;
  150. if ( messageBox("","Q002")==6 ) {
  151. var update = getGridUpdateData(grd_goodlist);
  152. if(update == ""){
  153. messageBox("업데이트 정보가 없습니다.", "I");
  154. return 0;
  155. } else {
  156. model.setValue("/root/send/req/data", update);
  157. if (submit("TXAEB03801")) {
  158. // 저장 후 팝업인 경우 변경 여부 returng하고 창을 닫는다
  159. submit("TRAEB03801");
  160. }
  161. }
  162. }
  163. ]]>
  164. </script>
  165. </button>
  166. <button id="btn_close" class="btn4_letter2" style="left:1138px; top:4px; width:56px; height:22px; ">
  167. <caption>닫기</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. // if (checkOpener()) {
  171. // opener.model.setValue("/root/init/updtyn","N");
  172. // }
  173. window.close();
  174. ]]>
  175. </script>
  176. </button>
  177. </group>
  178. <datagrid id="grd_goodlist" nodeset="/root/main/goodlist/item" caption="조영제/재료코드^조영제/재료명^안전재고량^용량^순서" colsep="^" colwidth="137, 434, 109, 118, 79, 121, 68, 68" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:250px; top:30px; width:945px; height:730px; ">
  179. <col disabled="true" editable="false" ref="goodcd" type="inputbutton">
  180. <script type="javascript" ev:event="onbuttonclick">
  181. <![CDATA[
  182. modal("SPAEB00401", "", "200", "200", "popup", "/root/hidden/pseursrvinfo", "/root/init/pseursrvinfo");
  183. model.refresh();
  184. var selectedrow = grd_goodlist.selectedCells.item(0).row;
  185. if(model.getValue("/root/temp/goodcd") != "")
  186. {
  187. model.setValue("/root/main/goodlist/item[" + selectedrow + "]/goodcd", model.getValue("/root/temp/goodcd"));
  188. model.setValue("/root/main/goodlist/item[" + selectedrow + "]/goodnm", model.getValue("/root/temp/goodnm"));
  189. model.setValue("/root/main/goodlist/item[" + selectedrow + "]/safestocqty", model.getValue("/root/temp/safestocqty"));
  190. model.setValue("/root/main/goodlist/item[" + selectedrow + "]/speccd", model.getValue("/root/temp/speccd"));
  191. model.refresh();
  192. }
  193. model.setValue("/root/temp/goodcd", "");
  194. ]]>
  195. </script>
  196. </col>
  197. <col ref="goodnm" type="output"/>
  198. <col ref="safestocqty" type="output" format="#,###" style="text-align:right; "/>
  199. <col ref="speccd" type="output" style="text-align:center; "/>
  200. <col ref="dispseq" type="input" style="text-align:center; "/>
  201. <col ref="sectcd" visibility="hidden"/>
  202. <col ref="instcd" visibility="hidden"/>
  203. <col ref="suppdeptcd" visibility="hidden"/>
  204. </datagrid>
  205. <button id="button2" class="btn2_letter3" style="left:1137px; top:0px; width:53px; height:19px; ">
  206. <caption>행삭제</caption>
  207. <script type="javascript" ev:event="onclick">
  208. <![CDATA[
  209. // grd_goodlist.addStatus(grd_goodlistt.row,"delete");
  210. deleteSelectedRows(grd_goodlist, true);
  211. ]]>
  212. </script>
  213. </button>
  214. <button id="button3" class="btn2_letter3" style="left:1080px; top:0px; width:53px; height:19px; ">
  215. <caption>행추가</caption>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. grd_goodlist.addRow();
  219. grd_goodlist.row = grd_goodlist.bottomRow;
  220. var cnt = parseInt(grd_goodlist.row);
  221. var mainrowcnt = parseInt(grd_goodlist.row);
  222. model.setValue("/root/main/goodlist/item[" + cnt + "]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
  223. model.setValue("/root/main/goodlist/item[" + cnt + "]/sectcd", model.getValue("/root/cmb_info/initexcuroomgrp2[" + grd_sectlist.row + "]/excuroomgrpcdid") );
  224. grd_goodlist.isReadOnly(cnt, 1) = false;
  225. ]]>
  226. </script>
  227. </button>
  228. </xhtml:body>
  229. </xhtml:html>