SMRSO01700_출고내역집계표 출력.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. <send>
  10. <instcd/>
  11. <goodflag/>
  12. <delivefrdd/>
  13. <delivetodd/>
  14. <lrgcd/>
  15. <lrgnm/>
  16. <mdlcd/>
  17. <mdlnm/>
  18. <delivedeptcd/>
  19. <delivedeptnm/>
  20. <prtflag/>
  21. </send>
  22. <main>
  23. <outputcostlist/>
  24. </main>
  25. </root>
  26. </instance>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. //화면 Control을 초기화한다
  30. fInitialize();
  31. ]]>
  32. </script>
  33. <submission id="TRRSO01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/outputcostlist"/>
  34. <bind id="deliveamt" ref="/root/main/outputcostlist/deliveamt" calculate="../goodunitcost * ../delivedeptqty"/>
  35. </model>
  36. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  38. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  39. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  42. <script type="javascript">
  43. <![CDATA[
  44. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  45. function fInitialize() {
  46. model.resetInstanceNode("/root/send");
  47. rszfGoodFlagListByPgmGubn(cmb_goodflag,"1","N");
  48. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  49. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  50. //rszfGetPurcIOFlagList(cmb_iokindcd, model.getValue(cmb_instcd.attribute("ref")) , "O","Y","%","","");
  51. //model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  52. //model.setValue(ipt_delivedeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  53. //model.setValue(ipt_delivedeptnm.attribute("ref") , getUserInfo("dutplcenm"));
  54. misfGridInit(grd_outputcostlist);
  55. misfMsterDetailSet(grd_outputcostlist,null, "TRRSO01701" ,"N");
  56. var curdate = getCurrentDate();
  57. var cvtdate = curdate.toDate("YYYYMMDD");
  58. model.setValue(ipt_delivefrdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  59. model.setValue(ipt_delivetodd.attribute("ref") ,curdate);
  60. model.setValue("/root/send/prtflag", "A");
  61. model.refresh();
  62. }
  63. //필수항목 체크하는 메소드
  64. function fCheckRetrieveData()
  65. {
  66. if(!isRequiredControls("cmb_instcd") )return false; // 기관코드 , commonweb/js/tfHelper.js
  67. if(!isRequiredControls("cmb_goodflag") )return false; // 물품구분
  68. if(!isRequiredControls("ipt_delivefrdd") )return false; // 출고시작일자
  69. if(!isRequiredControls("ipt_delivetodd") )return false; // 출고종료일자
  70. //if(!isRequiredControls("cmb_stocdeptcd") )return false; // 부서코드
  71. }
  72. ]]>
  73. </script>
  74. </xhtml:head>
  75. <xhtml:body>
  76. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  77. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">출고금액 집계표</caption>
  78. </group>
  79. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195; height:744px; ">
  80. <caption id="caption278" class="tit_2" style="left:5px; top:106px; width:162px; height:13px; ">출고금액 집계표</caption>
  81. <line id="line207" class="line_1" style="x1:0px; y1:120px; x2:1195px; y2:120px; "/>
  82. <datagrid id="grd_outputcostlist" nodeset="/root/main/outputcostlist" caption="대 분 류^중 분 류^수량^단가^출고금액^비 고" colsep="^" colwidth="250, 250, 100, 120, 150, 137" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:125px; width:1195px; height:610px; ">
  83. <col ref="lrgnm"/>
  84. <col ref="mdlnm"/>
  85. <col ref="delivedeptqty" style="text-align:right; "/>
  86. <col ref="goodunitcost" format="#,###.##" style="text-align:right; "/>
  87. <col ref="deliveamt" format="#,###.##" style="text-align:right; "/>
  88. <col ref="cmt"/>
  89. </datagrid>
  90. <group id="group6" style="left:0px; top:10px; width:1195px; height:87px; vertical-align:top; ">
  91. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:87px; background-color:#fffbf2; border-color:#ffd799; "/>
  92. <input id="ipt_delivedeptcd" ref="/root/send/delivedeptcd" class="input_default" style="left:595px; top:60px; width:80px; height:19px; "/>
  93. <button id="button49" class="icon_search" style="left:679px; top:10px; width:16px; height:16px; ">
  94. <caption/>
  95. <script type="javascript" ev:event="DOMActivate">
  96. <![CDATA[
  97. rszfOpenPopUpListByWndName(ipt_lrgcd_search,"","lrgcd,lrgnm","SPRSD00130","goodflag","cmb_goodflag");
  98. model.refresh();
  99. ]]>
  100. </script>
  101. </button>
  102. <button id="button1" class="icon_search" style="left:679px; top:36px; width:16px; height:16px; ">
  103. <caption/>
  104. <script type="javascript" ev:event="DOMActivate">
  105. <![CDATA[
  106. rszfOpenPopUpListByWndName(ipt_mdlcd_search,"","mdlcd,mdlnm","SPRSD00140" ,"goodflag,lrgcd,lrgnm","cmb_goodflag,ipt_lrgcd_search,ipt_lrgnm_search");
  107. model.refresh();
  108. ]]>
  109. </script>
  110. </button>
  111. <input id="ipt_delivedeptnm" ref="/root/send/delivedeptnm" class="input_default" style="left:699px; top:60px; width:220px; height:19px; "/>
  112. <button id="button2" class="icon_search" style="left:679px; top:62px; width:16px; height:16px; ">
  113. <caption/>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. var recv_list = "delivedeptcd,delivedeptnm";
  117. misfOpenPopUpList("02", ipt_delivedeptcd,"", recv_list) ;
  118. model.refresh();
  119. //btn_search.dispatch("DOMActivate");
  120. ]]>
  121. </script>
  122. </button>
  123. <caption id="cap_delivefrdd" class="search_name" style="left:15px; top:61; width:86px; height:17px; ">출고일자 :</caption>
  124. <caption id="caption11" class="search_n_b" style="left:224px; top:61px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  125. <caption id="cap_prtflag" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">출력구분 :</caption>
  126. <line id="line14" class="line_4" style="x1:1109px; y1:9px; x2:1109px; y2:76px; "/>
  127. <caption id="cap_goodflag" class="search_name" style="left:240px; top:9px; width:86px; height:17px; ">물품구분 :</caption>
  128. <caption id="caption12" class="search_name" style="left:510px; top:61; width:86px; height:17px; ">출고부서 :</caption>
  129. <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_default" appearance="minimal" style="left:325px; top:8px; width:120px; height:19px; ">
  130. <choices>
  131. <itemset nodeset="/root/init/goodflag">
  132. <label ref="cdnm"/>
  133. <value ref="cdid"/>
  134. </itemset>
  135. </choices>
  136. </select1>
  137. <caption id="caption5" class="search_name" style="left:513px; top:9px; width:86px; height:17px; ">대 분 류 :</caption>
  138. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:100px; top:8px; width:120px; height:19px; ">
  139. <choices>
  140. <itemset nodeset="/root/init/instcd">
  141. <label ref="cdnm"/>
  142. <value ref="cdid"/>
  143. </itemset>
  144. </choices>
  145. </select1>
  146. <select1 id="rdo_prtflag" ref="/root/send/prtflag" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:100px; top:35px; width:254px; height:20px; border-style:none; ">
  147. <choices>
  148. <item>
  149. <label>물품분류</label>
  150. <value>A</value>
  151. </item>
  152. <item>
  153. <label>부서별</label>
  154. <value>B</value>
  155. </item>
  156. <item>
  157. <label>부서별 + 물품분류</label>
  158. <value>C</value>
  159. </item>
  160. </choices>
  161. </select1>
  162. <input id="ipt_mdlcd_search" ref="/root/send/mdlcd" class="input_default" style="left:595px; top:34; width:80px; height:19px; "/>
  163. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  164. <input id="ipt_lrgcd_search" ref="/root/send/lrgcd" class="input_default" style="left:595px; top:8px; width:80px; height:19px; "/>
  165. <input id="ipt_lrgnm_search" ref="/root/send/lrgnm" class="input_default" style="left:699px; top:8px; width:220px; height:19px; "/>
  166. <caption id="caption8" class="search_name" style="left:513px; top:35px; width:83px; height:17px; ">중 분 류 :</caption>
  167. <input id="ipt_delivefrdd" ref="/root/send/delivefrdd" class="input_s_essential" editable="false" inputtype="date" style="left:100px; top:60px; width:120px; height:19px; "/>
  168. <input id="ipt_mdlnm_search" ref="/root/send/mdlnm" class="input_default" style="left:699px; top:34; width:220px; height:19px; "/>
  169. <input id="ipt_delivetodd" ref="/root/send/delivetodd" class="input_s_essential" editable="false" inputtype="date" style="left:240px; top:60px; width:145px; height:19px; "/>
  170. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1124px; top:31px; width:56px; height:22px; text-align:left; ">
  171. <caption>조회</caption>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. /*
  175. misfGridInit(grd_outputcostlist);
  176. if(fCheckRetrieveData(false) == false)return;
  177. misfMsterDetailRetrieve();
  178. */
  179. ]]>
  180. </script>
  181. </button>
  182. </group>
  183. </group>
  184. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  185. <button id="button36" class="btn6_letter2" visibility="hidden" style="left:0; top:3px; width:56px; height:22px; ">
  186. <caption>출력</caption>
  187. </button>
  188. <line id="line1" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  189. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  190. <caption>초기화</caption>
  191. <script type="javascript" ev:event="DOMActivate">
  192. <![CDATA[
  193. fInitialize();
  194. ]]>
  195. </script>
  196. </button>
  197. </group>
  198. </xhtml:body>
  199. </xhtml:html>