SMRSD07800_선납재고초기화.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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. <main>
  10. <predeliveinit>
  11. <predeliveinitlist/>
  12. </predeliveinit>
  13. </main>
  14. <send>
  15. <search>
  16. <instcd/>
  17. <goodcd/>
  18. <goodnm/>
  19. <wareflag/>
  20. <allsizespecid/>
  21. <acntfrom/>
  22. <acntto/>
  23. <yyyymm/>
  24. </search>
  25. <save>
  26. <predeliveinitlist/>
  27. </save>
  28. <header>
  29. <custcode/>
  30. <custnm/>
  31. <poomnm/>
  32. <wareflag/>
  33. <acptdeptcd/>
  34. <acptdeptnm/>
  35. </header>
  36. <print>
  37. <instnm/>
  38. <warenm/>
  39. </print>
  40. </send>
  41. <init/>
  42. <temp/>
  43. <goodcd>
  44. <result>
  45. <value/>
  46. </result>
  47. <search>
  48. <instcd/>
  49. <goodcd/>
  50. <windd/>
  51. </search>
  52. </goodcd>
  53. <popsubdata/>
  54. <popreq>
  55. <count/>
  56. </popreq>
  57. </root>
  58. </instance>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. misfGridInit(grd_predeliveinitlist);
  62. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  63. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  64. misfComboComCdListMulti("030M0001", "cmb_wareflag");
  65. misfComboCopyItemSet(cmb_wareflag, "", grd_predeliveinitlist, "wareflag");
  66. cmb_wareflag.select(0);
  67. submit("TRRSO20602"); //계정 조회
  68. cmb_acntfrom.select(0); //계정 from 설정
  69. cmb_acntto.select(cmb_acntto.length - 1); //계정 to 설정
  70. model.setValue("/root/send/search/yyyymm", getCurrentDate().substr(0,4)+"00");
  71. model.refresh();
  72. ]]>
  73. </script>
  74. <submission id="TRRSD07801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/predeliveinit"/>
  75. <submission id="TXRSD07801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  76. <submission id="TRRSO20602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/acnt"/>
  77. </model>
  78. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  80. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  81. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  84. <script type="javascript" src="../../../mis/purcbaseweb/js/SMRFE00200.js"/>
  85. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  86. <script type="javascript">
  87. <![CDATA[
  88. ]]>
  89. </script>
  90. </xhtml:head>
  91. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  92. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  93. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:15px; ">선납재고 초기화</caption>
  94. </group>
  95. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  96. <caption id="caption21" class="tit_2" style="left:5px; top:68px; width:174px; height:8px; ">선납재고내역</caption>
  97. <line id="line16" class="line_1" style="x1:0px; y1:85px; x2:1194px; y2:84px; "/>
  98. <datagrid id="grd_predeliveinitlist" nodeset="/root/main/predeliveinit/predeliveinitlist" caption="창고^물품코드^Allsize^물품명^규격^단위^단가^초기재고량" colsep="^" colwidth="131, 147, 45, 300, 297, 55, 100, 80, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" tooltip="true" navindex="15" style="left:0px; top:88px; width:1194px; height:652px; ">
  99. <col disabled="true" ref="wareflag" type="combo" style="text-align:center; ">
  100. <choices>
  101. <itemset>
  102. <label/>
  103. <value/>
  104. </itemset>
  105. </choices>
  106. </col>
  107. <col disabled="true" ref="goodcd" type="inputbutton" style="text-align:center; "/>
  108. <col ref="allsizespecid" style="text-align:center; "/>
  109. <col ref="goodhngnm"/>
  110. <col ref="goodspec"/>
  111. <col ref="purcunit" style="text-align:center; "/>
  112. <col ref="goodunitcost" format="(-)#,###.##" style="text-align:right; "/>
  113. <col ref="stocqty" type="input" style="text-align:center; "/>
  114. <col ref="instcd" visibility="hidden"/>
  115. <col ref="endmonth" visibility="hidden"/>
  116. <script type="javascript" ev:event="onaftersort">
  117. <![CDATA[
  118. grd_predeliveinitlist.gridToInstance();
  119. ]]>
  120. </script>
  121. <script type="javascript" ev:event="onbuttonclick">
  122. <![CDATA[
  123. rszfOpenPopUpListByWndName(grd_predeliveinitlist,"","goodcd,allsizespecid,goodhngnm,goodspec,purcunit,goodunitcost,wareflag","SPRSD00210","instcd","cmb_instcd","Y");
  124. ]]>
  125. </script>
  126. </datagrid>
  127. <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  128. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_s_essential" navindex="-1" appearance="minimal" style="left:90px; top:10px; width:140px; height:19px; text-align:center; ">
  129. <choices>
  130. <itemset>
  131. <label/>
  132. <value/>
  133. </itemset>
  134. </choices>
  135. <script type="javascript" ev:event="xforms-value-changed">
  136. <![CDATA[
  137. ]]>
  138. </script>
  139. </select1>
  140. <caption id="caption14" class="search_name" style="left:5px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
  141. <button id="btn_search" class="btn1_letter2" navindex="12" style="left:1130px; top:19px; width:56px; height:22px; ">
  142. <caption>조회</caption>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. // if(ipt_windd.value == ""){
  146. // messageBox("입고일자가 없습니다. 확인하여 주십시오.", "E999", "");
  147. // model.setFocus("ipt_windd");
  148. // return;
  149. // }
  150. // if(ipt_winno.value == ""){
  151. // messageBox("입고번호가 없습니다. 확인하여 주십시오.", "E999", "");
  152. // model.setFocus("ipt_winno");
  153. // return;
  154. // }
  155. misfGridInit(grd_predeliveinitlist);
  156. submit("TRRSD07801")
  157. ]]>
  158. </script>
  159. </button>
  160. <select1 id="cmb_wareflag" ref="/root/send/search/wareflag" appearance="minimal" style="left:340px; top:10px; width:110px; height:19px; ">
  161. <choices>
  162. <itemset>
  163. <label/>
  164. <value/>
  165. </itemset>
  166. </choices>
  167. </select1>
  168. <caption id="caption4" class="search_name" style="left:260px; top:10px; width:90px; height:17px; ">창고구분:</caption>
  169. <input id="ipt_goodnm" ref="/root/send/search/goodnm" style="left:455px; top:35px; width:128px; height:19px; ">
  170. <script type="javascript" ev:event="xforms-value-changed">
  171. <![CDATA[
  172. if(ipt_goodnm.value.length == 0)
  173. ipt_goodcd.value = "";
  174. else
  175. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodnm",
  176. "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_goodnm.attribute("ref")) ,"","goodcd,goodnm",
  177. ipt_goodnm,"SPRSD00210","instcd","cmb_instcd");
  178. ipt_goodcd.refresh();
  179. ipt_goodnm.refresh();
  180. ]]>
  181. </script>
  182. </input>
  183. <caption id="caption5" class="search_name" style="left:260px; top:35px; width:90px; height:17px; ">물품코드:</caption>
  184. <input id="ipt_goodcd" ref="/root/send/search/goodcd" style="left:340px; top:35px; width:93px; height:19px; ">
  185. <script type="javascript" ev:event="xforms-value-changed">
  186. <![CDATA[
  187. if(ipt_goodcd.value.length == 0)
  188. ipt_goodnm.value = "";
  189. else
  190. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodcd",
  191. "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) ,"","goodcd,goodnm",
  192. ipt_goodcd,"SPRSD00210","instcd","cmb_instcd");
  193. ipt_goodcd.refresh();
  194. ipt_goodnm.refresh();
  195. ]]>
  196. </script>
  197. </input>
  198. <button id="btn_plceordgoodcd" class="icon_search" style="left:436px; top:37px; width:16px; height:16px; ">
  199. <caption/>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,allsizespecid,goodnm","SPRSD00210","instcd","cmb_instcd,");
  203. ipt_goodcd.refresh();
  204. ipt_goodnm.refresh();
  205. ]]>
  206. </script>
  207. </button>
  208. <caption id="caption20" class="search_name" style="left:476px; top:10px; width:64px; height:17px; vertical-align:middle; ">계정:</caption>
  209. <caption id="caption3" style="left:674px; top:8px; width:10px; height:20px; font-weight:bold; ">-</caption>
  210. <select1 id="cmb_acntfrom" ref="/root/send/search/acntfrom" class="combo_default" navindex="4" appearance="minimal" editmode="search" showvalue="true" style="left:530px; top:10px; width:143px; height:19px; ">
  211. <choices>
  212. <itemset nodeset="/root/init/acnt/acntlist">
  213. <label ref="acntnm"/>
  214. <value ref="acntcd"/>
  215. </itemset>
  216. </choices>
  217. </select1>
  218. <select1 id="cmb_acntto" ref="/root/send/search/acntto" class="combo_default" navindex="5" appearance="minimal" editmode="search" showvalue="true" style="left:680px; top:10px; width:143px; height:19px; ">
  219. <choices>
  220. <itemset nodeset="/root/init/acnt/acntlist">
  221. <label ref="acntnm"/>
  222. <value ref="acntcd"/>
  223. </itemset>
  224. </choices>
  225. </select1>
  226. <caption id="caption1" class="search_name" style="left:5px; top:35px; width:95px; height:17px; ">초기화년월 :</caption>
  227. <input id="ipt_yyyymm" ref="/root/send/search/yyyymm" maxlength="7" format="9999-99" style="left:104px; top:35px; width:100px; height:19px; text-align:center; "/>
  228. <line id="line13" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:52px; "/>
  229. <button id="btn_delapntrgst" class="btn2_letter3" style="left:1140px; top:63px; width:53px; height:19px; ">
  230. <caption>행삭제</caption>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. misfGridIUD(grd_predeliveinitlist,"D");
  234. ]]>
  235. </script>
  236. </button>
  237. <button id="btn_addapntrgst" class="btn2_letter3" navindex="14" style="left:1086px; top:63px; width:53px; height:19px; text-align:left; ">
  238. <caption>행추가</caption>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. misfGridIUD(grd_predeliveinitlist,"A");
  242. grd_predeliveinitlist.valueMatrix(grd_predeliveinitlist.row, grd_predeliveinitlist.colRef("endmonth")) = ipt_yyyymm.value;
  243. grd_predeliveinitlist.valueMatrix(grd_predeliveinitlist.row, grd_predeliveinitlist.colRef("instcd")) = cmb_instcd.value;
  244. ]]>
  245. </script>
  246. </button>
  247. </group>
  248. <group id="group4" style="left:0px; top:13; width:1195px; height:27px; ">
  249. <line id="line11" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  250. <button id="btn_save" class="btn4_letter2" style="left:1125px; top:3px; width:56px; height:22px; ">
  251. <caption>저장</caption>
  252. <script type="javascript" ev:event="DOMActivate">
  253. <![CDATA[
  254. model.setValue("/root/send/save/predeliveinitlist", grd_predeliveinitlist.getUpdateData());
  255. if(submit("TXRSD07801")){
  256. btn_search.dispatch("DOMActivate");
  257. }
  258. ]]>
  259. </script>
  260. </button>
  261. </group>
  262. </xhtml:body>
  263. </xhtml:html>