SMMNG03400_린넨수선폐품관리.xrw 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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. <whioinfo>
  11. <whiolist>
  12. <goodcd/>
  13. <goodnm/>
  14. <goodspec/>
  15. <outcnt/>
  16. <delcnt/>
  17. <remark1/>
  18. <fstrgstrid/>
  19. <ioseq/>
  20. <ioflag/>
  21. <iodd/>
  22. </whiolist>
  23. <csrdeptlist/>
  24. </whioinfo>
  25. <csrdeptlist/>
  26. </main>
  27. <send>
  28. <instcdnm/>
  29. <iodd/>
  30. <gubuncd>01</gubuncd>
  31. </send>
  32. <cond>
  33. <iodd/>
  34. <selyymmdd>DD</selyymmdd>
  35. </cond>
  36. </root>
  37. </instance>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. fInitialize();
  44. ]]>
  45. </script>
  46. <submission id="TRMNG03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/whioinfo"/>
  47. <submission id="TXMNG03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  48. <submission id="TRMNG03402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/whiorexinfo"/>
  49. </model>
  50. <script type="javascript">
  51. <![CDATA[
  52. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  53. function fInitialize()
  54. {
  55. model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
  56. model.setValue(ipt_iodd.attribute("ref"), getCurrentDate()); //년월
  57. rdo_selyymmdd.refresh();
  58. fSearch();
  59. }
  60. function fSearch() {
  61. model.setValue("/root/send/gubuncd", model.getValue(rdo_gubuncd.attribute("ref"))); //마스터코드구분 01:물품마스터02:창고마스터
  62. var reqdd = model.getValue(ipt_iodd.attribute("ref"));
  63. btn_sav.disabled = false;
  64. if (model.getValue(rdo_selyymmdd.attribute("ref")) == 'MM' ) {
  65. reqdd = reqdd.substr(0,6);
  66. btn_sav.disabled = true;
  67. } else if (model.getValue(rdo_selyymmdd.attribute("ref")) == 'YY' ){
  68. reqdd = reqdd.substr(0,4);
  69. btn_sav.disabled = true;
  70. }
  71. model.setValue("/root/send/iodd", reqdd);
  72. submit("TRMNG03401");
  73. var ioflag;
  74. for(var i = grd_whiolist.fixedRows; i < grd_whiolist.rows; i++) {
  75. ioflag = grd_whiolist.valueMatrix(i, grd_whiolist.colRef("ioflag"));
  76. if(ioflag == "N") {
  77. grd_whiolist.rowStatus(i) = "1";
  78. }
  79. }
  80. }
  81. function fPrintRex() {
  82. submit("TRMNG03402");
  83. model.makeNode("/root/send/report/csmtrexinfo");
  84. copyNodesetType("/root/send/report/csmtrexinfo", "/root/main/whiorexinfo");
  85. exeReportPreview("RPMNG03400", "XMLSTR", "/root/send/report/csmtrexinfo");
  86. }
  87. ]]>
  88. </script>
  89. </xhtml:head>
  90. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1210;2,756;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  91. <group id="grp_tle" style="left:0px; top:0px; width:1185px; height:13px; ">
  92. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">린넨 수선/폐품 관리</caption>
  93. </group>
  94. <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:1185px; height:655px; ">
  95. <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:138px; height:14px; ">린넨 수선/폐품 관리</caption>
  96. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1185px; y2:26px; "/>
  97. <button id="btn_sav" class="btn5_letter2" style="left:1137px; top:3px; width:42px; height:19px; ">
  98. <caption>저장</caption>
  99. <script type="javascript" ev:event="DOMActivate">
  100. <![CDATA[
  101. model.makeValue("/root/send/savedata/whiolist", getGridUpdateData(grd_whiolist) );
  102. submit("TXMNG03401");
  103. fSearch();
  104. ]]>
  105. </script>
  106. </button>
  107. <datagrid id="grd_whiolist" nodeset="/root/main/whioinfo/whiolist" visibility="visible" caption="상태^물품코드^상세코드^물품명^규격^의뢰수량^수선수량^폐품수량^관리자^비고^폐품확정" colsep="^" colwidth="80, 136, 80, 197, 115, 100, 100, 110, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:35px; width:1185px; height:615px; ">
  108. <col ref="lnrpwtflag"/>
  109. <col ref="goodcd" visibility="visible"/>
  110. <col ref="goodcdseq" visibility="visible"/>
  111. <col ref="goodnm" visibility="visible"/>
  112. <col ref="goodspec" visibility="visible"/>
  113. <col ref="reqcnt"/>
  114. <col ref="outcnt" type="input" visibility="visible" format="#,###"/>
  115. <col ref="delcnt" type="input" visibility="visible" format="#,###"/>
  116. <col ref="fstrgstrid"/>
  117. <col ref="remark1" type="input" visibility="visible"/>
  118. <col ref="lnwtflag"/>
  119. <col ref="ioseq" visibility="hidden"/>
  120. <col ref="ioflag" visibility="hidden"/>
  121. <col ref="iodd" visibility="hidden"/>
  122. <script type="javascript" ev:event="onkeypress">
  123. <![CDATA[
  124. var row = grd_whiolist.row;
  125. if(event.keyCode == 13) { // Enter 쳤을 경우 아래 수량으로
  126. if(grd_whiolist.col == grd_whiolist.colRef("outcnt") || grd_whiolist.col == grd_whiolist.colRef("delcnt")) { //불출수량이나 미불출수량 엔터시
  127. if(grd_whiolist.row + 1 < grd_whiolist.rows) {
  128. grd_whiolist.row = row + 1;
  129. }
  130. }
  131. }
  132. ]]>
  133. </script>
  134. </datagrid>
  135. <select1 id="rdo_gubuncd" ref="/root/send/gubuncd" disabled="true" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:220px; top:5px; width:390px; height:15px; border-style:none; ">
  136. <choices>
  137. <item>
  138. <label>물품마스터</label>
  139. <value>01</value>
  140. </item>
  141. <item>
  142. <label>창고마스터</label>
  143. <value>02</value>
  144. </item>
  145. </choices>
  146. </select1>
  147. <button id="button1" class="btn2_letter3" style="left:1080px; top:3px; width:53px; height:19px; ">
  148. <caption>행추가</caption>
  149. </button>
  150. </group>
  151. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1185px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
  152. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1007px; top:27px; width:56px; height:22px; ">
  153. <caption>조회</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. fSearch();
  157. ]]>
  158. </script>
  159. </button>
  160. <line id="line2" class="line_4" style="x1:1000px; y1:25px; x2:1000px; y2:50px; "/>
  161. <caption id="cap_csrreqdeptcd" class="search_name" style="left:285px; top:30px; width:81px; height:17px; ">일자:</caption>
  162. <input id="ipt_iodd" ref="/root/cond/iodd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:345px; top:30px; width:85px; height:19px; ">
  163. <script type="javascript" ev:event="xforms-value-changed">
  164. <![CDATA[
  165. fSearch();
  166. ]]>
  167. </script>
  168. </input>
  169. <caption id="cap_instcd" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
  170. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:30px; width:175px; height:19px; text-align:center; "/>
  171. <button id="btn_prt" class="btn1_letter2" style="left:1125px; top:27px; width:56px; height:22px; ">
  172. <caption>출력</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. fPrintRex();
  176. ]]>
  177. </script>
  178. </button>
  179. <select1 id="rdo_selyymmdd" ref="/root/cond/selyymmdd" appearance="full" cols="3" overflow="visible" style="left:525px; top:30px; width:175px; height:20px; border-style:none; ">
  180. <choices>
  181. <item>
  182. <label>일별</label>
  183. <value>DD</value>
  184. </item>
  185. <item>
  186. <label>월별</label>
  187. <value>MM</value>
  188. </item>
  189. <item>
  190. <label>년별</label>
  191. <value>YY</value>
  192. </item>
  193. </choices>
  194. <script type="javascript" ev:event="xforms-value-changed">
  195. <![CDATA[
  196. fSearch();
  197. ]]>
  198. </script>
  199. </select1>
  200. <caption id="caption2" class="search_name" style="left:440px; top:30px; width:85px; height:17px; ">일자구분:</caption>
  201. <button id="button3" class="btn1_letter2" style="left:1066px; top:27px; width:56px; height:22px; ">
  202. <caption>엑셀</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. var fileName = window.fileDialog("save", ",", false, "세탁물폐품관리", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  206. if (fileName != "")
  207. {
  208. grd_whiolist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  209. }
  210. ]]>
  211. </script>
  212. </button>
  213. </xhtml:body>
  214. </xhtml:html>