SPAGA05300_추가전송물품코드선택.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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. <ipgoinfo>
  11. <ipgolist>
  12. <chk/>
  13. <goodcd/>
  14. <goodnm/>
  15. <goodspec/>
  16. <allsizespecidnm/>
  17. <goodmodel/>
  18. <deliveunit/>
  19. <goodunitcost/>
  20. <prodcmpynm/>
  21. <custnm/>
  22. <perchgr/>
  23. <safestocqty/>
  24. <sendqty/>
  25. <rtninqty/>
  26. <allsizespecid/>
  27. <suppdeptcd/>
  28. <custcd/>
  29. <custnm/>
  30. <perchgr/>
  31. <cntctel/>
  32. <faxno/>
  33. <mpphontel/>
  34. <inflag/>
  35. <iodate/>
  36. <indate/>
  37. <inqty/>
  38. </ipgolist>
  39. </ipgoinfo>
  40. </main>
  41. <send>
  42. <custnm/>
  43. <prodcmpynm/>
  44. <goodnm/>
  45. <goodcd/>
  46. <globalinstance>
  47. <instance1/>
  48. </globalinstance>
  49. <req>
  50. <data/>
  51. </req>
  52. </send>
  53. <init>
  54. <baseinfo>
  55. <intiunit/>
  56. </baseinfo>
  57. </init>
  58. <hidden>
  59. <item/>
  60. </hidden>
  61. <cmb_info>
  62. <dpcminfo>
  63. <dpcmcust>
  64. <custnm/>
  65. <perchgr/>
  66. <cntctel/>
  67. <faxno/>
  68. <mpphontel/>
  69. <email/>
  70. <auttrsmflag/>
  71. <custcd/>
  72. <suppdeptcd/>
  73. <instcd/>
  74. <trsmtrid/>
  75. <useyn/>
  76. </dpcmcust>
  77. </dpcminfo>
  78. </cmb_info>
  79. </root>
  80. </instance>
  81. <submission id="TRAGA05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ipgoinfo"/>
  82. <submission id="TXAGA01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  83. <script type="javascript" ev:event="xforms-ready">
  84. <![CDATA[
  85. aezfSetSuppDeptcd();
  86. zbcfGetCodeList( new Array("R0039"), new Array("/root/init/baseinfo/intiunit") );
  87. submit("TRAGA00101");
  88. model.removeNodeset("/root/main/ipgoinfo/ipgolist");
  89. model.refresh();
  90. ]]>
  91. </script>
  92. <submission id="TRZBC00101"/>
  93. <submission id="TXAGA01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  94. <submission id="TRAGA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/cmb_info/dpcminfo"/>
  95. </model>
  96. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  99. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  100. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  101. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  102. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  103. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  105. </xhtml:head>
  106. <xhtml:body pagewidth="1130" pageheight="607" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  107. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1075px; height:524px; ">
  108. <group id="grp_sea" style="left:0px; top:10px; width:1074px; height:42px; vertical-align:top; ">
  109. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1074px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  110. <line id="line13" class="line_4" style="x1:977px; y1:7px; x2:977px; y2:34px; "/>
  111. <button id="btn_sea" class="btn1_letter2" navindex="6" style="left:995px; top:10px; width:56px; height:22px; ">
  112. <caption>조회</caption>
  113. <script type="javascript" ev:event="DOMActivate">
  114. <![CDATA[
  115. model.setValue("/root/send/goodcd",model.getValue("/root/send/goodcd").toUpperCase());
  116. model.removeNodeset("/root/main/ipgoinfo/ipgolist");
  117. submit("TRAGA05301");
  118. model.refresh();
  119. ]]>
  120. </script>
  121. </button>
  122. <caption id="caption3" class="search_name" style="left:15px; top:12px; width:86px; height:17px; ">거래처명 :</caption>
  123. <caption id="caption4" class="search_name" style="left:240px; top:12px; width:99px; height:17px; ">제조회사명 :</caption>
  124. <input id="input3" ref="/root/send/prodcmpynm" navindex="3" style="left:345px; top:11px; width:120px; height:19px; "/>
  125. <caption id="caption5" class="search_name" style="left:480px; top:12px; width:93px; height:17px; ">물 품 명 :</caption>
  126. <input id="input5" ref="/root/send/goodnm" navindex="5" style="left:575px; top:11px; width:125px; height:19px; "/>
  127. <caption id="caption1" class="search_name" style="left:715px; top:12px; width:105px; height:17px; ">물 품 코 드 :</caption>
  128. <input id="input1" ref="/root/send/goodcd" navindex="5" style="left:825px; top:11px; width:130px; height:19px; "/>
  129. <select1 id="combo1" ref="/root/send/custnm" appearance="minimal" editmode="input" style="left:105px; top:11px; width:130px; height:19px; ">
  130. <choices>
  131. <itemset nodeset="/root/cmb_info/dpcminfo">
  132. <label ref="dpcmcust/custnm"/>
  133. <value ref="dpcmcust/custnm"/>
  134. </itemset>
  135. </choices>
  136. </select1>
  137. </group>
  138. <line id="line1" class="line_1" style="x1:3px; y1:54px; x2:1074px; y2:55px; "/>
  139. <datagrid id="datagrid1" nodeset="/root/main/ipgoinfo/ipgolist" caption="선택^물품코드^물품명^규격^All Size^모델^단위^단가^제조회사^거래처^담당자^안전재고량^전송량^반납량^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11" colsep="^" colwidth="35, 72, 143, 86, 85, 81, 58, 76, 93, 82, 56, 72, 55, 55, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:3px; top:55px; width:1071px; height:467px; ">
  140. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  141. <col ref="goodcd"/>
  142. <col ref="goodnm"/>
  143. <col ref="goodspec"/>
  144. <col ref="allsizespecidnm"/>
  145. <col ref="goodmodel"/>
  146. <col ref="deliveunit" type="combo">
  147. <choices>
  148. <itemset nodeset="/root/init/baseinfo/intiunit/R0039">
  149. <label ref="cdnm"/>
  150. <value ref="cdid"/>
  151. </itemset>
  152. </choices>
  153. </col>
  154. <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
  155. <col ref="prodcmpynm"/>
  156. <col ref="custnm"/>
  157. <col ref="perchgr"/>
  158. <col ref="safestocqty" format="#,###" style="text-align:right; "/>
  159. <col ref="sendqty" type="input" format="#,###" style="text-align:right; "/>
  160. <col ref="rtninqty" type="input" visibility="hidden" format="#,###" style="text-align:right; "/>
  161. <col ref="allsizespecid" visibility="hidden"/>
  162. <col ref="suppdeptcd" visibility="hidden"/>
  163. <col ref="custcd" visibility="hidden"/>
  164. <col ref="custnm" visibility="hidden"/>
  165. <col ref="perchgr" visibility="hidden"/>
  166. <col ref="cntctel" visibility="hidden"/>
  167. <col ref="faxno" visibility="hidden"/>
  168. <col ref="mpphontel" visibility="hidden"/>
  169. <col ref="inflag"/>
  170. <col ref="iodate"/>
  171. <col ref="indate"/>
  172. <script type="javascript" ev:event="onaftersort">
  173. <![CDATA[
  174. datagrid1.gridToInstance();
  175. ]]>
  176. </script>
  177. <script type="javascript" ev:event="xforms-value-changed">
  178. <![CDATA[
  179. if (datagrid1.colRef("sendqty") == datagrid1.col || datagrid1.colRef("rtninqty") == datagrid1.col){
  180. if (parseInt(model.getValue("/root/main/ipgoinfo/ipgolist[" + datagrid1.row + "]/sendqty")) > 0 ||
  181. parseInt(model.getValue("/root/main/ipgoinfo/ipgolist[" + datagrid1.row + "]/rtninqty")) > 0){
  182. model.setValue("/root/main/ipgoinfo/ipgolist[" + datagrid1.row + "]/chk", "Y");
  183. }else{
  184. model.setValue("/root/main/ipgoinfo/ipgolist[" + datagrid1.row + "]/chk", "N");
  185. }
  186. model.refresh();
  187. }
  188. ]]>
  189. </script>
  190. </datagrid>
  191. </group>
  192. <group id="grp_tle" style="left:0px; top:0px; width:1074px; height:13px; ">
  193. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">추가전송물품코드조회</caption>
  194. </group>
  195. <button id="btn_exit" class="btn1_letter2" navindex="5" style="left:1020px; top:540px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  196. <caption>종료</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. window.close();
  200. ]]>
  201. </script>
  202. </button>
  203. <button id="btn_save" class="btn4_letter2" style="left:960px; top:540px; width:56px; height:22px; ">
  204. <caption>전송</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. for (var i = 1; i < datagrid1.rows; i++){
  208. if (model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/chk") == "Y"){
  209. if (model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/sendqty") == "0" || model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/sendqty") == ""){
  210. messageBox(i + "번째 선택한 행에서 전송수량이 입력되지 않았습니다.", "E999", "");
  211. return;
  212. }
  213. }
  214. if (model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/mpphontel") == ""){
  215. messageBox(i + "번째 핸드폰 번호가 등록되지 않아 전송할 수 없습니다.", "E999", "");
  216. return;
  217. }
  218. }
  219. if ( messageBox("","Q003")==6 ) {
  220. for (var i = 1; i < datagrid1.rows; i++){
  221. if (model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/chk") == "Y"){
  222. if (model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/chk") != "0"){
  223. datagrid1.addStatus(i, "update");
  224. }
  225. }
  226. }
  227. datagrid1.refresh();
  228. var update = getGridUpdateData(datagrid1);
  229. if(update == ""){
  230. messageBox("업데이트 정보가 없습니다.", "I");
  231. return 0;
  232. } else {
  233. model.setValue("/root/send/req/data", update);
  234. if (submit("TXAGA01302")){
  235. // if (submit("TXAGA01101")){
  236. messageBox("정상적으로 처리 되었습니다.", "E999", "");
  237. btn_sea.dispatch("DOMActivate");
  238. // }
  239. }
  240. }
  241. }
  242. ]]>
  243. </script>
  244. </button>
  245. </xhtml:body>
  246. </xhtml:html>