SMAEB03300_제품코드관리.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. </goodlist>
  13. <itemlist>
  14. <item/>
  15. </itemlist>
  16. </main>
  17. <send>
  18. <data>
  19. <bdioflag>I</bdioflag>
  20. <itemflag>N</itemflag>
  21. <itemcd/>
  22. </data>
  23. <req>
  24. <data/>
  25. </req>
  26. <globalinstance>
  27. <instance1/>
  28. </globalinstance>
  29. <suppdeptcd/>
  30. </send>
  31. <init>
  32. <cmb_info>
  33. <initexecroom/>
  34. </cmb_info>
  35. </init>
  36. <hidden>
  37. <item>
  38. </item>
  39. </hidden>
  40. <tmp>
  41. <suplcustcd/>
  42. <suplcustnm/>
  43. <prodcmpycd/>
  44. <prodcmpynm/>
  45. </tmp>
  46. <combo>
  47. <speclist/>
  48. </combo>
  49. </root>
  50. </instance>
  51. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. aezfSetSuppDeptcd();
  55. model.removeNodeset("/root/main/goodlist/item");
  56. model.removeNodeset("/root/main/speclist/item");
  57. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  58. model.refresh();
  59. model.setFocus("ipt_speccd");
  60. //submit("TRAES09001", false);
  61. submit("TRAEA01301", false);
  62. submit("TRAEB03201");
  63. submit("TRAEB01802");
  64. ]]>
  65. </script>
  66. <submission id="TRAEB03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/combo/speclist"/>
  67. <submission id="TXAEB03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  68. <submission id="TRAEB03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/goodlist"/>
  69. <submission id="TRAEB01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/itemlist"/>
  70. <submission id="TRAES09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  71. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  72. </model>
  73. </xhtml:head>
  74. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  77. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  78. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  79. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  80. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  81. <script type="javascript">
  82. <![CDATA[
  83. function fnGetMainList()
  84. {
  85. if(submit("TRAEB01802"))
  86. {
  87. model.removeNodeset("/root/main/goodlist/item");
  88. }
  89. }
  90. ]]>
  91. </script>
  92. <xhtml:body guideline="1,1195;2,786;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  93. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:170px; height:14px; ">핵종/화합물 제품코드관리</caption>
  94. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:20px; width:1190px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  95. <line id="line2" class="line_1" style="x1:0px; y1:82px; x2:1195px; y2:82px; "/>
  96. <button id="btn_sea" class="btn1_letter2" style="left:1126px; top:27px; width:56px; height:22px; ">
  97. <caption>조회</caption>
  98. <script type="javascript" ev:event="DOMActivate">
  99. <![CDATA[
  100. fnGetMainList();
  101. ]]>
  102. </script>
  103. </button>
  104. <button id="btn_grdadd" class="btn2_letter3" style="left:1085px; top:60px; width:53px; height:19px; ">
  105. <caption>행추가</caption>
  106. <script type="javascript" ev:event="DOMActivate">
  107. <![CDATA[
  108. if(grd_itemlist.row < 1)
  109. {
  110. messageBox("핵종이나 화합물이 선택되지", "E007");
  111. return false;
  112. }
  113. grd_prodlist.addRow();
  114. grd_prodlist.row = grd_prodlist.bottomRow;
  115. var cnt = parseInt(grd_prodlist.row);
  116. var mainrowcnt = parseInt(grd_itemlist.row);
  117. model.setValue("/root/main/goodlist/item[" + cnt + "]/suppdeptcd",
  118. model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/suppdeptcd") );
  119. model.setValue("/root/main/goodlist/item[" + cnt + "]/bdioflag",
  120. model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/bdioflag") );
  121. model.setValue("/root/main/goodlist/item[" + cnt + "]/itemflag",
  122. model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/itemflag") );
  123. model.setValue("/root/main/goodlist/item[" + cnt + "]/itemcd",
  124. model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/itemcd") );
  125. model.setValue("/root/main/goodlist/item[" + cnt + "]/unitcost", "0" );
  126. model.setValue("/root/main/goodlist/item[" + cnt + "]/excuroomcd", "-" );
  127. model.setValue("/root/main/goodlist/item[" + cnt + "]/ioflag", "O" );
  128. grd_prodlist.isReadOnly(cnt, 1) = false;
  129. ]]>
  130. </script>
  131. </button>
  132. <button id="btn_grddel" class="btn2_letter3" style="left:1142px; top:60px; width:53px; height:19px; ">
  133. <caption>행삭제</caption>
  134. <script type="javascript" ev:event="onclick">
  135. <![CDATA[
  136. // grd_prodlist.addStatus(grd_prodlistt.row,"delete");
  137. deleteSelectedRows(grd_prodlist, true);
  138. ]]>
  139. </script>
  140. </button>
  141. <datagrid id="grd_itemlist" nodeset="/root/main/itemlist/item" allowselection="false" caption="이름" colsep="^" colwidth="190, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:85px; width:228px; height:665px; ">
  142. <col ref="itemnm" type="output"/>
  143. <col ref="itemcd" visibility="hidden"/>
  144. <col ref="rem" visibility="hidden"/>
  145. <col ref="bdioflag" visibility="hidden"/>
  146. <col ref="itemflag" visibility="hidden"/>
  147. <col ref="suppdeptcd" visibility="hidden"/>
  148. <script type="javascript" ev:event="onclick">
  149. <![CDATA[
  150. if(grd_itemlist.row == 0)
  151. {
  152. return false;
  153. }
  154. var rownum = grd_itemlist.row;
  155. model.setValue("/root/send/data/bdioflag", model.getValue("/root/main/itemlist/item[" + rownum + "]/bdioflag"));
  156. model.setValue("/root/send/data/itemflag", model.getValue("/root/main/itemlist/item[" + rownum + "]/itemflag"));
  157. model.setValue("/root/send/data/itemcd", model.getValue("/root/main/itemlist/item[" + rownum + "]/itemcd"));
  158. submit("TRAEB03301");
  159. ]]>
  160. </script>
  161. </datagrid>
  162. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  163. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1195px; y2:0px; "/>
  164. <button id="button1" class="btn4_letter2" style="left:1078px; top:4px; width:56px; height:22px; ">
  165. <caption>저장</caption>
  166. <script type="javascript" ev:event="DOMActivate">
  167. <![CDATA[
  168. if(!astfNullValidation("/root/main/goodlist/item", "suplcustcd", "거래처를")) return false;
  169. if(!astfNullValidation("/root/main/goodlist/item", "prodcmpycd", "제조회사를")) return false;
  170. if ( messageBox("","Q002")==6 ) {
  171. var update = getGridUpdateData(grd_prodlist);
  172. if(update == ""){
  173. messageBox("업데이트 정보가 없습니다.", "I");
  174. return 0;
  175. } else {
  176. model.setValue("/root/send/req/data", update);
  177. if (submit("TXAEB03301")) {
  178. }
  179. submit("TRAEB03301");
  180. }
  181. }
  182. ]]>
  183. </script>
  184. </button>
  185. <button id="btn_close" class="btn4_letter2" style="left:1138px; top:4px; width:56px; height:22px; ">
  186. <caption>닫기</caption>
  187. <script type="javascript" ev:event="DOMActivate">
  188. <![CDATA[
  189. if (checkOpener()) {
  190. opener.model.setValue("/root/init/updtyn","N");
  191. }
  192. window.close();
  193. ]]>
  194. </script>
  195. </button>
  196. </group>
  197. <datagrid id="grd_prodlist" nodeset="/root/main/goodlist/item" caption="제품코드^제품명^거래처^거래처^제조회사^제조회사^규격^용량^Act^단가^검사실^입출고구분^지원부서" colsep="^" colwidth="76, 150, 90, 110, 65, 110, 68, 55, 55, 64, 100, 72, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:230px; top:85px; width:965px; height:665px; ">
  198. <col disabled="true" ref="goodcd" type="input"/>
  199. <col ref="goodnm" type="input"/>
  200. <col editable="false" ref="suplcustcd" type="inputbutton">
  201. <script type="javascript" ev:event="onbuttonclick">
  202. <![CDATA[
  203. misfOpenPopUpList("14", ipt_suplcmpy, "", "suplcustcd,suplcustnm");
  204. model.refresh();
  205. var selectedrow = grd_prodlist.selectedCells.item(0).row;
  206. if(model.getValue("/root/tmp/suplcustcd") != "")
  207. {
  208. var suplcustcd = model.getValue("/root/main/goodlist/item[" + selectedrow + "]/suplcustcd");
  209. var tmpsuplcustcd = model.getValue("/root/tmp/suplcustcd");
  210. if ( suplcustcd != "" && suplcustcd != tmpsuplcustcd ) {
  211. grd_prodlist.rowStatus(selectedrow) = 2;
  212. }
  213. // grd_prodlist.rowStatus(selectedrow) =2; 2009-07-28 추가(Insert)인데 Update로 인식하여 추가가 안되는현상 수정.
  214. model.setValue("/root/main/goodlist/item[" + selectedrow + "]/suplcustcd", model.getValue("/root/tmp/suplcustcd"));
  215. model.setValue("/root/main/goodlist/item[" + selectedrow + "]/suplcustnm", model.getValue("/root/tmp/suplcustnm"));
  216. model.refresh();
  217. }
  218. ]]>
  219. </script>
  220. </col>
  221. <col disabled="true" ref="suplcustnm" type="input"/>
  222. <col editable="false" ref="prodcmpycd" type="inputbutton">
  223. <script type="javascript" ev:event="onbuttonclick">
  224. <![CDATA[
  225. rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPAEB00301","","");
  226. model.refresh();
  227. var selectedrow = grd_prodlist.selectedCells.item(0).row;
  228. if(model.getValue("/root/tmp/prodcmpycd") != "")
  229. {
  230. var prodcmpycd = model.getValue("/root/main/goodlist/item[" + selectedrow + "]/prodcmpycd");
  231. var tmpprodcmpycd = model.getValue("/root/tmp/prodcmpycd");
  232. if ( prodcmpycd != "" && prodcmpycd != tmpprodcmpycd) {
  233. grd_prodlist.rowStatus(selectedrow) = 2;
  234. }
  235. model.setValue("/root/main/goodlist/item[" + selectedrow + "]/prodcmpycd", model.getValue("/root/tmp/prodcmpycd"));
  236. model.setValue("/root/main/goodlist/item[" + selectedrow + "]/prodcmpynm", model.getValue("/root/tmp/prodcmpynm"));
  237. }
  238. model.refresh();
  239. ]]>
  240. </script>
  241. </col>
  242. <col disabled="true" ref="prodcmpynm" type="input"/>
  243. <col ref="speccd" type="combo" style="text-align:center; ">
  244. <choices>
  245. <itemset nodeset="/root/combo/speclist/item">
  246. <label ref="specnm"/>
  247. <value ref="speccd"/>
  248. </itemset>
  249. </choices>
  250. </col>
  251. <col ref="vol" type="input" format="#,###.00" style="text-align:right; "/>
  252. <col ref="act" type="input" format="#,###.00" style="text-align:right; "/>
  253. <col ref="unitcost" type="input" format="#,###" style="text-align:right; "/>
  254. <col ref="excuroomcd" type="combo">
  255. <choices>
  256. <itemset nodeset="/root/init/cmb_info/initexecroom">
  257. <label ref="excuroomcdnm"/>
  258. <value ref="excuroomcdid"/>
  259. </itemset>
  260. </choices>
  261. </col>
  262. <col ref="ioflag" type="combo">
  263. <choices>
  264. <item>
  265. <label>입고</label>
  266. <value>I</value>
  267. </item>
  268. <item>
  269. <label>출고</label>
  270. <value>O</value>
  271. </item>
  272. </choices>
  273. </col>
  274. <col ref="suppdeptcd" visibility="hidden"/>
  275. <col ref="bdioflag" visibility="hidden"/>
  276. <col ref="itemflag" visibility="hidden"/>
  277. <col ref="itemcd" visibility="hidden"/>
  278. </datagrid>
  279. <caption id="caption1" class="search_name" style="left:20px; top:30px; width:99px; height:17px; ">체내외구분 :</caption>
  280. <select1 id="combo1" ref="/root/send/data/itemflag" class="combo_search" appearance="minimal" style="left:413px; top:28px; width:100px; height:19px; ">
  281. <choices>
  282. <item>
  283. <label>핵종</label>
  284. <value>N</value>
  285. </item>
  286. <item>
  287. <label>화합물</label>
  288. <value>O</value>
  289. </item>
  290. </choices>
  291. <script type="javascript" ev:event="xforms-value-changed">
  292. <![CDATA[
  293. fnGetMainList();
  294. ]]>
  295. </script>
  296. </select1>
  297. <caption id="caption2" class="search_name" style="left:308px; top:30px; width:99px; height:17px; ">물품구분 :</caption>
  298. <select1 id="cmb_ioflag" ref="/root/send/data/bdioflag" class="combo_search" appearance="minimal" style="left:125px; top:28px; width:100px; height:19px; ">
  299. <choices>
  300. <item>
  301. <label>체내</label>
  302. <value>I</value>
  303. </item>
  304. <item>
  305. <label>체외</label>
  306. <value>O</value>
  307. </item>
  308. </choices>
  309. <script type="javascript" ev:event="xforms-value-changed">
  310. <![CDATA[
  311. fnGetMainList();
  312. ]]>
  313. </script>
  314. </select1>
  315. <input id="ipt_suplcmpy" ref="/root/tmp/suplcustcd" visibility="hidden" style="left:615px; top:60px; width:150px; height:19px; "/>
  316. <input id="ipt_suplcmpynm" ref="/root/tmp/suplcustnm" visibility="hidden" style="left:615px; top:60px; width:150px; height:19px; "/>
  317. <input id="ipt_prodcmpycd" ref="/root/tmp/propcmpycd" visibility="hidden" style="left:785px; top:60px; width:150px; height:19px; "/>
  318. </xhtml:body>
  319. </xhtml:html>