SMRSO02200_부서별출고현황 출력.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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. <deptoutcostlist/>
  11. </main>
  12. <init/>
  13. <send>
  14. <instcd/>
  15. <goodflag/>
  16. <delivefrdd/>
  17. <delivetodd/>
  18. <goodcd/>
  19. <goodnm/>
  20. <lrgcd/>
  21. <lrgnm/>
  22. <mdlcd/>
  23. <mdlnm/>
  24. <mainusedeptcd/>
  25. <mainusedeptnm/>
  26. </send>
  27. </root>
  28. </instance>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. //화면 Control을 초기화한다
  32. fInitialize();
  33. ]]>
  34. </script>
  35. <submission id="TRRSO02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/deptoutcostlist"/>
  36. <bind id="deliveamt" ref="/root/main/deptoutcostlist/deliveamt" calculate="../delivedeptqty * ../goodunitcost"/>
  37. </model>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  40. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  41. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  44. <script type="javascript">
  45. <![CDATA[
  46. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  47. function fInitialize() {
  48. model.resetInstanceNode("/root/send");
  49. rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
  50. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  51. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  52. //rszfGetPurcIOFlagList(cmb_iokindcd, model.getValue(cmb_instcd.attribute("ref")) , "O","Y","%","","");
  53. //model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  54. //model.setValue(ipt_delivedeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  55. //model.setValue(ipt_delivedeptnm.attribute("ref") , getUserInfo("dutplcenm"));
  56. misfGridInit(grd_deptoutcostlist);
  57. misfMsterDetailSet(grd_deptoutcostlist,null, "TRRSO02201" ,"N");
  58. var curdate = getCurrentDate();
  59. var cvtdate = curdate.toDate("YYYYMMDD");
  60. model.setValue(ipt_delivefrdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  61. model.setValue(ipt_delivetodd.attribute("ref") ,curdate);
  62. model.refresh();
  63. }
  64. //필수항목 체크하는 메소드
  65. function fCheckRetrieveData()
  66. {
  67. if(!isRequiredControls("cmb_instcd") )return false; // 기관코드 , commonweb/js/tfHelper.js
  68. if(!isRequiredControls("cmb_goodflag") )return false; // 물품구분
  69. if(!isRequiredControls("ipt_delivefrdd") )return false; // 출고시작일자
  70. if(!isRequiredControls("ipt_delivetodd") )return false; // 출고종료일자
  71. //if(!isRequiredControls("cmb_stocdeptcd") )return false; // 부서코드
  72. }
  73. ]]>
  74. </script>
  75. </xhtml:head>
  76. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  77. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  78. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">부서별 출고금액현황 출력</caption>
  79. </group>
  80. <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  81. <caption id="caption21" class="tit_2" style="left:5px; top:109px; width:188px; height:13px; ">부서별 출고금액현황</caption>
  82. <group id="group6" style="left:0px; top:13px; width:1195px; height:87px; vertical-align:top; ">
  83. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:87px; background-color:#fffbf2; border-color:#ffd799; "/>
  84. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1124px; top:31px; width:56px; height:22px; text-align:left; ">
  85. <caption>조회</caption>
  86. <script type="javascript" ev:event="DOMActivate">
  87. <![CDATA[
  88. misfGridInit(grd_deptoutcostlist);
  89. if(fCheckRetrieveData(false) == false)return;
  90. misfGridInit(grd_deptoutcostlist)
  91. misfMsterDetailRetrieve();
  92. ]]>
  93. </script>
  94. </button>
  95. <line id="line14" class="line_4" style="x1:1109px; y1:12px; x2:1109px; y2:76px; border-color:#ffe4bb; border-left-style:solid; "/>
  96. <caption id="caption1" class="search_name" style="left:490px; top:9px; width:86px; height:17px; ">대 분 류 :</caption>
  97. <caption id="cap_goodflag" class="search_name" style="left:236px; top:9px; width:93px; height:17px; ">물품구분 :</caption>
  98. <caption id="caption4" class="search_name" style="left:487px; top:61px; width:86px; height:17px; ">물품코드 :</caption>
  99. <caption id="cap_delivefrdd" class="search_name" style="left:15; top:35px; width:93px; height:17px; ">출고일자 :</caption>
  100. <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_s_essential" appearance="minimal" style="left:322px; top:8px; width:103px; height:19px; ">
  101. <choices>
  102. <itemset nodeset="/root/init/goodflag">
  103. <label ref="cdnm"/>
  104. <value ref="cdid"/>
  105. </itemset>
  106. </choices>
  107. </select1>
  108. <input id="ipt_delivefrdd" ref="/root/send/delivefrdd" class="input_s_essential" inputtype="date" style="left:100px; top:34px; width:126px; height:19px; "/>
  109. <input id="ipt_delivetodd" ref="/root/send/delivetodd" class="input_s_essential" inputtype="date" style="left:242px; top:34px; width:126px; height:19px; "/>
  110. <caption id="caption11" class="search_n_b" style="left:228px; top:37px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  111. <input id="ipt_mdlcd_search" ref="/root/send/mdlcd" class="input_s_essential" style="left:572px; top:34px; width:100px; height:19px; "/>
  112. <button id="btn_mdlcd" class="icon_search" style="left:679px; top:36px; width:16px; height:16px; ">
  113. <caption/>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. rszfOpenPopUpListByWndName(ipt_mdlcd_search,"","mdlcd,mdlnm","SPRSD00140" ,"goodflag,lrgcd,lrgnm","cmb_goodflag,ipt_lrgcd_search,ipt_lrgnm_search");
  117. model.refresh();
  118. ]]>
  119. </script>
  120. </button>
  121. <input id="ipt_mdlnm_search" ref="/root/send/mdlnm" class="input_s_essential" style="left:702px; top:34px; width:200px; height:19px; "/>
  122. <caption id="caption3" class="search_name" style="left:490px; top:35px; width:93px; height:17px; ">중 분 류 :</caption>
  123. <caption id="caption5" class="search_name" style="left:15; top:61px; width:86px; height:17px; ">사용부서 :</caption>
  124. <button id="button3" class="icon_search" style="left:678px; top:62px; width:16px; height:16px; ">
  125. <caption/>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
  129. model.refresh();
  130. ]]>
  131. </script>
  132. </button>
  133. <input id="ipt_goodcd" ref="/root/send/goodcd" class="input_s_essential" style="left:572px; top:60px; width:100px; height:19px; "/>
  134. <input id="ipt_goodnm" ref="/root/send/goodnm" class="input_s_essential" style="left:700px; top:60px; width:200px; height:19px; "/>
  135. <input id="ipt_lrgcd_search" ref="/root/send/lrgcd" class="input_s_essential" style="left:572px; top:8px; width:100px; height:19px; "/>
  136. <input id="ipt_lrgnm_search" ref="/root/send/lrgnm" class="input_s_essential" style="left:702px; top:8px; width:200px; height:19px; "/>
  137. <button id="btn_lrgcd" class="icon_search" style="left:679px; top:10px; width:16px; height:16px; ">
  138. <caption/>
  139. <script type="javascript" ev:event="DOMActivate">
  140. <![CDATA[
  141. rszfOpenPopUpListByWndName(ipt_lrgcd_search,"","lrgcd,lrgnm","SPRSD00130","goodflag","cmb_goodflag");
  142. model.refresh();
  143. ]]>
  144. </script>
  145. </button>
  146. <input id="ipt_mainusedeptcd" ref="/root/send/mainusedeptcd" class="input_s_essential" style="left:100px; top:60px; width:100px; height:19px; "/>
  147. <input id="ipt_mainusedeptnm" ref="/root/send/mainusedeptnm" class="input_s_essential" style="left:225px; top:60px; width:200px; height:19px; "/>
  148. <button id="btn_mainusedeptcd_search" class="icon_search" style="left:204px; top:62px; width:16px; height:16px; ">
  149. <caption/>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. misfOpenPopUpList("02", ipt_mainusedeptcd,"","mainusedeptcd,mainusedeptnm");
  153. model.refresh();
  154. ]]>
  155. </script>
  156. </button>
  157. <caption id="cap_instcd" class="search_name" style="left:15; top:9px; width:93px; height:17px; ">기관코드 :</caption>
  158. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8px; width:126px; height:19px; ">
  159. <choices>
  160. <itemset nodeset="/root/init/instcd">
  161. <label ref="cdnm"/>
  162. <value ref="cdid"/>
  163. </itemset>
  164. </choices>
  165. </select1>
  166. </group>
  167. <line id="line15" class="line_1" style="x1:0px; y1:124px; x2:1195px; y2:124px; "/>
  168. <datagrid id="grd_deptoutcostlist" nodeset="/root/main/deptoutcostlist" caption="물품코드^물품명^단 위^출고수량^단 가^금 액" colsep="^" colwidth="150, 450, 130, 110, 160, 145" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:128px; width:1195px; height:600px; ">
  169. <col ref="goodcd"/>
  170. <col ref="goodnm"/>
  171. <col ref="deliveunit"/>
  172. <col ref="delivedeptqty" style="text-align:right; "/>
  173. <col ref="goodunitcost" format="#,###.##" style="text-align:right; "/>
  174. <col ref="deliveamt" format="#,###.##" style="text-align:right; "/>
  175. </datagrid>
  176. <button id="button14" class="btn2_letter6" style="left:1109px; top:103px; width:86px; height:19px; ">
  177. <caption>엑셀파일저장</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. misfSaveExcel(grd_deptoutcostlist,"부서별출고금액현황");
  181. ]]>
  182. </script>
  183. </button>
  184. <button id="button5" class="btn2_letter6" visibility="hidden" style="left:1021px; top:103px; width:86px; height:19px; ">
  185. <caption>엑셀파일열기</caption>
  186. </button>
  187. </group>
  188. <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  189. <button id="button34" class="btn6_letter2" visibility="hidden" style="left:0; top:3px; width:56px; height:22px; ">
  190. <caption>출력</caption>
  191. </button>
  192. <line id="line1" class="line_2" style="x1:0; y1:25; x2:1195; y2:25; "/>
  193. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  194. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  195. <caption>초기화</caption>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. fInitialize();
  199. ]]>
  200. </script>
  201. </button>
  202. </group>
  203. </xhtml:body>
  204. </xhtml:html>