SMRSD07710_발주조회.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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. <plceord>
  11. <plceordlist/>
  12. </plceord>
  13. </main>
  14. <send>
  15. <search>
  16. <instcd/>
  17. <orderno/>
  18. <orderdd/>
  19. <custcode/>
  20. <custnm/>
  21. <ordercust>1</ordercust>
  22. <orderddto/>
  23. </search>
  24. </send>
  25. <init/>
  26. <temp/>
  27. <popsend>
  28. <plceordlist/>
  29. </popsend>
  30. </root>
  31. </instance>
  32. <script type="javascript" ev:event="xforms-ready">
  33. <![CDATA[
  34. misfGridInit(grd_plceordlist);
  35. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  36. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  37. model.setValue("/root/send/search/orderdd", getCurrentDate().toDate().getAddDate(-7).getDateFormat("YYYYMMDD"));
  38. model.setValue("/root/send/search/orderddto", getCurrentDate());
  39. //model.setValue("/root/send/search/orderno", "0001");
  40. rbo_ordercust.dispatch("xforms-value-changed");
  41. model.refresh();
  42. ]]>
  43. </script>
  44. <submission id="TRRSD07711" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/plceord"/>
  45. </model>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  49. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  52. <script type="javascript" src="../../../mis/purcbaseweb/js/SMRFE00200.js"/>
  53. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  54. <script type="javascript">
  55. <![CDATA[
  56. ]]>
  57. </script>
  58. </xhtml:head>
  59. <xhtml:body pagewidth="920" pageheight="570" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  60. <group id="grp_tle" style="left:0px; top:0px; width:900px; height:13px; ">
  61. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:15px; ">발주조회</caption>
  62. </group>
  63. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:900px; height:520px; ">
  64. <caption id="caption21" class="tit_2" style="left:5px; top:37px; width:174px; height:13px; ">발주내역</caption>
  65. <line id="line16" class="line_1" style="x1:0px; y1:54px; x2:900px; y2:53px; "/>
  66. <datagrid id="grd_plceordlist" nodeset="/root/main/plceord/plceordlist" caption="선택^발주일자^발주번호^물품코드^Allsize^물품명^규격^단위^발주수량^caption1^파일" colsep="^" colwidth="35, 80, 65, 100, 45, 246, 213, 55, 55, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" tooltip="true" style="left:0px; top:57px; width:900px; height:458px; ">
  67. <col checkvalue="Y,N" ref="chkrow" type="checkbox"/>
  68. <col ref="orderdd" format="yyyy-mm-dd" style="text-align:center; "/>
  69. <col ref="orderno" style="text-align:center; "/>
  70. <col disabled="true" ref="goodcd" type="output" style="text-align:center; "/>
  71. <col ref="allsizespecid" style="text-align:center; "/>
  72. <col ref="goodhngnm"/>
  73. <col ref="goodspec"/>
  74. <col ref="purcunit" style="text-align:center; "/>
  75. <col ref="orderqty" type="output" style="text-align:center; "/>
  76. <col ref="orderseq" visibility="hidden"/>
  77. <col ref="instcd" visibility="hidden"/>
  78. <col ref="custcode" visibility="hidden"/>
  79. <col ref="custnm" visibility="hidden"/>
  80. <col ref="acptdeptcd" visibility="hidden"/>
  81. <col ref="acptdeptnm" visibility="hidden"/>
  82. <col ref="mainusedeptcd" visibility="hidden"/>
  83. <col ref="poomnm" visibility="hidden"/>
  84. <col ref="goodunitcost" visibility="hidden"/>
  85. <script type="javascript" ev:event="onaftersort">
  86. <![CDATA[
  87. grd_plceordlist.gridToInstance();
  88. ]]>
  89. </script>
  90. </datagrid>
  91. <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:900px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  92. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:90px; top:9px; width:125px; height:19px; text-align:center; ">
  93. <choices>
  94. <itemset>
  95. <label/>
  96. <value/>
  97. </itemset>
  98. </choices>
  99. <script type="javascript" ev:event="xforms-value-changed">
  100. <![CDATA[
  101. ]]>
  102. </script>
  103. </select1>
  104. <input id="ipt_orderno" ref="/root/send/search/orderno" navindex="4" visibility="hidden" format="9999" style="left:780px; top:20px; width:55px; height:19px; text-align:center; "/>
  105. <caption id="caption14" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  106. <caption id="caption22" class="search_name" visibility="hidden" style="left:380px; top:9px; width:90px; height:17px; ">발주일자 :</caption>
  107. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:835px; top:5px; width:56px; height:22px; ">
  108. <caption>조회</caption>
  109. <script type="javascript" ev:event="DOMActivate">
  110. <![CDATA[
  111. // if(!(ipt_orderdd.value == "" && ipt_custnm.value == "")){
  112. // messageBox("발주일자와 거래처를 동시에 조회할순 없습니다.", "E999", "");
  113. // return;
  114. // }
  115. // if(ipt_orderdd.value == ""){
  116. // messageBox("발주일자가 없습니다. 확인하여 주십시오.", "E999", "");
  117. // model.setFocus("ipt_orderdd");
  118. // return;
  119. // }
  120. // if(ipt_orderno.value == ""){
  121. // messageBox("발주번호가 없습니다. 확인하여 주십시오.", "E999", "");
  122. // model.setFocus("ipt_orderno");
  123. // return;
  124. // }
  125. misfGridInit(grd_plceordlist);
  126. submit("TRRSD07711")
  127. ]]>
  128. </script>
  129. </button>
  130. <caption id="caption1" class="search_name" visibility="hidden" style="left:380px; top:9px; width:90px; height:17px; ">거래처 :</caption>
  131. <input id="ipt_custcode" ref="/root/send/search/custcode" navindex="5" visibility="hidden" style="left:465px; top:9px; width:120px; height:19px; ">
  132. <script type="javascript" ev:event="xforms-value-changed">
  133. <![CDATA[
  134. if(ipt_custcode.value != '')
  135. {
  136. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  137. cmb_instcd.value + "," + "entrregno," + ipt_custcode.value, "", "custcode,custnm",
  138. ipt_custcode, "SPRSD00220", "instcd","cmb_instcd");
  139. }else
  140. {
  141. ipt_custnm.value = '';
  142. }
  143. ipt_custcode.refresh();
  144. ipt_custnm.refresh();
  145. ]]>
  146. </script>
  147. </input>
  148. <button id="btn_custcode" class="icon_search" navindex="-1" visibility="hidden" style="left:588px; top:9px; width:16px; height:16px; ">
  149. <caption/>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. rszfOpenPopUpListByWndName(ipt_custcode,"","custcode,custnm","SPRSD00220","instcd","cmb_instcd");
  153. ipt_custcode.refresh();
  154. ipt_custnm.refresh();
  155. ]]>
  156. </script>
  157. </button>
  158. <input id="ipt_custnm" ref="/root/send/search/custnm" disabled="true" navindex="6" visibility="hidden" style="left:605px; top:9px; width:120px; height:19px; "/>
  159. <input id="ipt_orderdd" ref="/root/send/search/orderdd" navindex="3" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:467px; top:9px; width:98px; height:19px; text-align:center; "/>
  160. <select1 id="rbo_ordercust" ref="/root/send/search/ordercust" navindex="2" appearance="full" cols="2" overflow="visible" style="left:220px; top:9px; width:145px; height:20px; border-style:none; ">
  161. <choices>
  162. <item>
  163. <label>발주일자</label>
  164. <value>1</value>
  165. </item>
  166. <item>
  167. <label>거래처</label>
  168. <value>2</value>
  169. </item>
  170. </choices>
  171. <script type="javascript" ev:event="xforms-value-changed">
  172. <![CDATA[
  173. if(rbo_ordercust.value == "1"){
  174. caption1.visible = false;
  175. ipt_custcode.visible = false;
  176. ipt_custnm.visible = false;
  177. btn_custcode.visible = false;
  178. caption22.visible = true;
  179. ipt_orderdd.visible = true;
  180. ipt_orderddto.visible = true;
  181. caption2.visible = true;
  182. //ipt_orderno.visible = true;
  183. ipt_custcode.value = "";
  184. ipt_custnm.value = "";
  185. model.setValue("/root/send/search/orderdd", getCurrentDate()-7);
  186. model.setValue("/root/send/search/orderddto", getCurrentDate());
  187. //model.setValue("/root/send/search/orderno", "0001");
  188. ipt_orderdd.refresh();
  189. ipt_orderddto.refresh();
  190. }else if(rbo_ordercust.value == "2"){
  191. caption1.visible = true;
  192. ipt_custcode.visible = true;
  193. ipt_custnm.visible = true;
  194. btn_custcode.visible = true;
  195. caption22.visible = false;
  196. ipt_orderdd.visible = false;
  197. ipt_orderddto.visible = false;
  198. caption2.visible = false;
  199. //ipt_orderno.visible = false;
  200. ipt_orderdd.value = "";
  201. ipt_orderddto.value = "";
  202. //ipt_orderno.value = "";
  203. }
  204. ]]>
  205. </script>
  206. </select1>
  207. <input id="ipt_orderddto" ref="/root/send/search/orderddto" navindex="3" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:580px; top:9px; width:98px; height:19px; text-align:center; "/>
  208. <caption id="caption2" visibility="hidden" style="left:567px; top:9px; width:15px; height:20px; ">~</caption>
  209. </group>
  210. <group id="group4" style="left:0px; top:13px; width:900px; height:27px; ">
  211. <line id="line11" class="line_6" style="x1:0px; y1:25; x2:900px; y2:25; "/>
  212. <button id="btn_confirm" class="btn4_letter2" style="left:835px; top:3px; width:56px; height:22px; ">
  213. <caption>확인</caption>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. var chkrow = "";
  217. var vrow = 0;
  218. for(i = 1 ; i < grd_plceordlist.rows ; i++){
  219. chkrow = grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("chkrow"));
  220. if(chkrow == "Y"){
  221. vrow++;
  222. }
  223. }
  224. if(cnt == 0) window.close();
  225. //copyNodesetType(opener.root.popsubdata, "/root/main/plceord/plceordlist[chkrow = 'Y']","replace");
  226. copyNodesetType("/root/popsend/plceordlist", "/root/main/plceord/plceordlist[chkrow = 'Y']","replace");
  227. model.copyNode(opener.root.popsubdata, "/root/popsend");
  228. opener.model.setValue("/root/popreq/count", vrow);
  229. window.close();
  230. ]]>
  231. </script>
  232. </button>
  233. </group>
  234. </xhtml:body>
  235. </xhtml:html>