SMAGA01100_물품일괄입고.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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. <ipgoinfo>
  11. <ipgolist>
  12. <iodate/>
  13. <goodcd/>
  14. <goodnm/>
  15. <goodspec/>
  16. <allsizespecidnm/>
  17. <goodmodel/>
  18. <deliveunit/>
  19. <prodcmpynm/>
  20. <custnm/>
  21. <sendqty/>
  22. <inqty/>
  23. <rtninqty/>
  24. <indate/>
  25. <allsizespecid/>
  26. <suppdeptcd/>
  27. <custcd/>
  28. <iudgb/>
  29. </ipgolist>
  30. </ipgoinfo>
  31. </main>
  32. <send>
  33. <iodate/>
  34. <custnm/>
  35. <prodcmpynm/>
  36. <goodcd/>
  37. <goodnm/>
  38. <totinqty/>
  39. <totrtninqty/>
  40. <gb/>
  41. <globalinstance>
  42. <instance1/>
  43. </globalinstance>
  44. <req>
  45. <data/>
  46. </req>
  47. <openerid>SMAGA01100</openerid>
  48. <senddate1/>
  49. <senddate2/>
  50. </send>
  51. <init>
  52. <baseinfo>
  53. <intiunit/>
  54. </baseinfo>
  55. </init>
  56. <hidden>
  57. <item/>
  58. </hidden>
  59. <cmb_info>
  60. <dpcminfo>
  61. <dpcmcust>
  62. <custnm/>
  63. <perchgr/>
  64. <cntctel/>
  65. <faxno/>
  66. <mpphontel/>
  67. <email/>
  68. <auttrsmflag/>
  69. <custcd/>
  70. <suppdeptcd/>
  71. <instcd/>
  72. <trsmtrid/>
  73. <useyn/>
  74. </dpcmcust>
  75. </dpcminfo>
  76. </cmb_info>
  77. </root>
  78. </instance>
  79. <submission id="TRAGA01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ipgoinfo"/>
  80. <submission id="TXAGA01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  81. <script type="javascript" ev:event="xforms-ready">
  82. <![CDATA[
  83. aezfSetSuppDeptcd();
  84. zbcfGetCodeList( new Array("R0039"), new Array("/root/init/baseinfo/intiunit") );
  85. submit("TRAGA00101");
  86. //model.refresh();
  87. model.setValue("/root/send/iodate", getCurrentDate());
  88. model.setValue("/root/send/senddate1", getCurrentDate());
  89. model.setValue("/root/send/senddate2", getCurrentDate());
  90. model.setValue("/root/send/gb", "1");
  91. btn_sea.dispatch("DOMActivate");
  92. ]]>
  93. </script>
  94. <submission id="TRZBC00101"/>
  95. <submission id="TRAGA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/cmb_info/dpcminfo"/>
  96. </model>
  97. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  100. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  101. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  102. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  103. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  104. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  106. </xhtml:head>
  107. <xhtml:body guideline="1,1195;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  108. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  109. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:67px; vertical-align:top; ">
  110. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  111. <line id="line13" class="line_4" style="x1:1102px; y1:7px; x2:1102px; y2:59px; "/>
  112. <button id="btn_sea" class="btn1_letter2" navindex="6" style="left:1120px; top:20px; width:56px; height:22px; ">
  113. <caption>조회</caption>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. model.removeNodeset("/root/main/ipgoinfo/ipgolist");
  117. submit("TRAGA01101");
  118. var inqty = 0;
  119. var rtninqty = 0;
  120. for (var i = 1; i < datagrid1.rows; i++){
  121. inqty = parseFloat(inqty) + parseFloat(model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/inqty"));
  122. rtninqty = parseFloat(rtninqty) + parseFloat(model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/rtninqty"));
  123. }
  124. model.setValue("/root/send/totinqty", inqty);
  125. model.setValue("/root/send/totrtninqty", rtninqty);
  126. model.refresh();
  127. ]]>
  128. </script>
  129. </button>
  130. <caption id="caption2" class="search_name" style="left:405px; top:12px; width:86px; height:17px; ">입고일자 :</caption>
  131. <input id="input1" ref="/root/send/iodate" navindex="1" inputtype="date" style="left:500px; top:11px; width:120px; height:19px; text-align:center; ">
  132. <script type="javascript" ev:event="xforms-value-changed">
  133. <![CDATA[
  134. //btn_sea.dispatch("DOMActivate");
  135. ]]>
  136. </script>
  137. </input>
  138. <caption id="caption3" class="search_name" style="left:630px; top:12px; width:86px; height:17px; ">거래처명 :</caption>
  139. <caption id="caption4" class="search_name" style="left:860px; top:12px; width:99px; height:17px; ">제조회사명 :</caption>
  140. <input id="input3" ref="/root/send/prodcmpynm" navindex="3" style="left:969px; top:11px; width:120px; height:19px; "/>
  141. <caption id="caption1" class="search_name" style="left:15px; top:42px; width:86px; height:17px; ">물품코드 :</caption>
  142. <caption id="caption5" class="search_name" style="left:300px; top:42px; width:93px; height:17px; ">물 품 명 :</caption>
  143. <input id="input4" ref="/root/send/goodcd" navindex="4" style="left:110px; top:39px; width:120px; height:19px; "/>
  144. <input id="input5" ref="/root/send/goodnm" navindex="5" style="left:395px; top:39px; width:145px; height:19px; "/>
  145. <button id="button9" class="btn3_letter6" style="left:990px; top:40px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  146. <caption>반납물품코드</caption>
  147. <script type="javascript" ev:event="DOMActivate">
  148. <![CDATA[
  149. modal("SPAGA05100", "", "200", "200", "popup", "", "");
  150. ]]>
  151. </script>
  152. </button>
  153. <caption id="caption7" style="left:595px; top:45px; width:65px; height:20px; ">총입고량 :</caption>
  154. <output id="output1" ref="/root/send/totinqty" format="#,###" style="left:655px; top:45px; width:75px; height:19px; text-align:center; "/>
  155. <caption id="caption8" style="left:740px; top:45px; width:65px; height:20px; ">총반납량 :</caption>
  156. <output id="output2" ref="/root/send/totrtninqty" format="#,###" style="left:800px; top:45px; width:75px; height:19px; text-align:center; "/>
  157. <button id="button1" class="btn3_letter6" style="left:880px; top:40px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  158. <caption>전송수량적용</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. for (var i = 1; i < datagrid1.rows; i ++){
  162. model.setValue("/root/main/ipgoinfo/ipgolist[" + i + "]/inqty", model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/sendqty"));
  163. if (model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/sendqty") != "0"){
  164. datagrid1.addStatus(i, "update");
  165. }
  166. }
  167. model.refresh();
  168. ]]>
  169. </script>
  170. </button>
  171. <select1 id="radio1" ref="/root/send/gb" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:1075px; top:10px; width:110px; height:20px; border-style:none; ">
  172. <choices>
  173. <item>
  174. <label>추가전송</label>
  175. <value>1</value>
  176. </item>
  177. <item>
  178. <label>일반</label>
  179. <value>2</value>
  180. </item>
  181. </choices>
  182. </select1>
  183. <select1 id="combo1" ref="/root/send/custnm" appearance="minimal" editmode="input" style="left:725px; top:11px; width:130px; height:19px; ">
  184. <choices>
  185. <itemset nodeset="/root/cmb_info/dpcminfo">
  186. <label ref="dpcmcust/custnm"/>
  187. <value ref="dpcmcust/custnm"/>
  188. </itemset>
  189. </choices>
  190. </select1>
  191. <caption id="caption9" class="search_name" style="left:15px; top:10px; width:115px; height:17px; ">추가전송일자 :</caption>
  192. <input id="input2" ref="/root/send/senddate1" navindex="1" inputtype="date" style="left:130px; top:10px; width:120px; height:19px; text-align:center; ">
  193. <script type="javascript" ev:event="xforms-value-changed">
  194. <![CDATA[
  195. //btn_sea.dispatch("DOMActivate");
  196. ]]>
  197. </script>
  198. </input>
  199. <input id="input6" ref="/root/send/senddate2" navindex="1" inputtype="date" style="left:270px; top:10px; width:120px; height:19px; text-align:center; ">
  200. <script type="javascript" ev:event="xforms-value-changed">
  201. <![CDATA[
  202. //btn_sea.dispatch("DOMActivate");
  203. ]]>
  204. </script>
  205. </input>
  206. <caption id="caption10" style="left:250px; top:13px; width:20px; height:20px; text-align:center; ">~</caption>
  207. </group>
  208. <line id="line1" class="line_1" style="x1:3px; y1:79px; x2:1194px; y2:80px; "/>
  209. <datagrid id="datagrid1" nodeset="/root/main/ipgoinfo/ipgolist" caption="추가전송일자^물품코드^물품명^규격^All Size^모델^단위^제조회사^거래처^전송수량^입고량^반납량^입고일자^caption2^caption3^caption4^caption1" colsep="^" colwidth="85, 92, 167, 111, 100, 105, 95, 115, 115, 67, 66, 69, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:3px; top:82px; width:1191px; height:660px; ">
  210. <col ref="iodate" visibility="visible" format="yyyy-mm-dd"/>
  211. <col ref="goodcd" style="text-align:left; "/>
  212. <col ref="goodnm" style="font-weight:bold; text-align:left; "/>
  213. <col ref="goodspec" style="font-weight:bold; text-align:left; "/>
  214. <col ref="allsizespecidnm" style="text-align:left; "/>
  215. <col ref="goodmodel" style="text-align:left; "/>
  216. <col disabled="true" ref="deliveunit" type="combo" style="text-align:left; ">
  217. <choices>
  218. <itemset nodeset="/root/init/baseinfo/intiunit/R0039">
  219. <label ref="cdnm"/>
  220. <value ref="cdid"/>
  221. </itemset>
  222. </choices>
  223. </col>
  224. <col ref="prodcmpynm" style="text-align:left; "/>
  225. <col ref="custnm" style="text-align:left; "/>
  226. <col ref="sendqty" format="#,###" style="text-align:right; "/>
  227. <col ref="inqty" type="input" format="999999" style="text-align:right; "/>
  228. <col ref="rtninqty" type="input" format="999999" style="text-align:right; "/>
  229. <col ref="indate" visibility="visible" format="yyyy-mm-dd"/>
  230. <col ref="allsizespecid" visibility="hidden"/>
  231. <col ref="suppdeptcd" visibility="hidden"/>
  232. <col ref="custcd" visibility="hidden"/>
  233. <col ref="iudgb" visibility="hidden"/>
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. ]]>
  237. </script>
  238. <script type="javascript" ev:event="onendedit">
  239. <![CDATA[
  240. /*
  241. var scol = datagrid1.col;
  242. if (datagrid1.colRef("inqty") == scol){
  243. var irow = datagrid1.row;
  244. datagrid1.row = irow;
  245. datagrid1.col = datagrid1.colRef("rtninqty");
  246. datagrid1.dispatch("onentercell");
  247. datagrid1.editCell();
  248. datagrid1.refresh();
  249. }else{
  250. var irow = datagrid1.row + 1;
  251. if (irow <= datagrid1.rows){
  252. datagrid1.row = irow;
  253. datagrid1.col = datagrid1.colRef("inqty");
  254. datagrid1.dispatch("onentercell");
  255. datagrid1.editCell();
  256. datagrid1.refresh();
  257. }
  258. }
  259. */
  260. ]]>
  261. </script>
  262. <script type="javascript" ev:event="onaftersort">
  263. <![CDATA[
  264. datagrid1.gridToInstance();
  265. ]]>
  266. </script>
  267. <script type="javascript" ev:event="onclick">
  268. <![CDATA[
  269. /*
  270. var irow = datagrid1.row;
  271. datagrid1.row = irow;
  272. var scol = datagrid1.col;
  273. if (datagrid1.colRef("inqty") == scol){
  274. datagrid1.col = datagrid1.colRef("inqty");
  275. }else if (datagrid1.colRef("rtninqty") == scol){
  276. datagrid1.col = datagrid1.colRef("rtninqty");
  277. }
  278. datagrid1.dispatch("onentercell");
  279. datagrid1.editCell();
  280. datagrid1.refresh();
  281. */
  282. ]]>
  283. </script>
  284. </datagrid>
  285. </group>
  286. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  287. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  288. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:4px; width:56px; height:22px; ">
  289. <caption>저장</caption>
  290. <script type="javascript" ev:event="DOMActivate">
  291. <![CDATA[
  292. if ( messageBox("","Q002")==6 ) {
  293. for (var i = 1; i < datagrid1.rows; i++){
  294. //model.setValue("/root/main/ipgoinfo/ipgolist[" + i + "]/iodate", model.getValue("/root/send/iodate"));
  295. model.setValue("/root/main/ipgoinfo/ipgolist[" + i + "]/indate", model.getValue("/root/send/iodate"));
  296. }
  297. datagrid1.refresh();
  298. var update = getGridUpdateData(datagrid1);
  299. if(update == ""){
  300. messageBox("업데이트 정보가 없습니다.", "I");
  301. return 0;
  302. } else {
  303. model.setValue("/root/send/req/data", update);
  304. if (submit("TXAGA01101")){
  305. btn_sea.dispatch("DOMActivate");
  306. }
  307. }
  308. }
  309. ]]>
  310. </script>
  311. </button>
  312. </group>
  313. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  314. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:144px; height:14px; ">추가전송입고</caption>
  315. </group>
  316. </xhtml:body>
  317. </xhtml:html>