SMMNG03300_세탁물창고수불현황.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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. <whiostatelist>
  12. <goodcd/>
  13. <goodnm/>
  14. <goodspec/>
  15. <bfstockdd/>
  16. <bfstockcnt/>
  17. <incnt/>
  18. <outcnt/>
  19. <nowstockdd/>
  20. <nowstockcnt/>
  21. <ioflag/>
  22. <ioseq/>
  23. <iodd/>
  24. <remark1/>
  25. <lastupdtrid/>
  26. </whiostatelist>
  27. <csrdeptlist/>
  28. </whioinfo>
  29. <csrdeptlist/>
  30. </main>
  31. <send>
  32. <instcdnm/>
  33. <iodd/>
  34. <nowdd/>
  35. <report/>
  36. <selyymmdd/>
  37. <gubuncd>02</gubuncd>
  38. <siodd/>
  39. <eiodd/>
  40. </send>
  41. <cond>
  42. <iodd/>
  43. <selyymmdd>MM</selyymmdd>
  44. <siodd/>
  45. <eiodd/>
  46. </cond>
  47. </root>
  48. </instance>
  49. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. fInitialize();
  55. ]]>
  56. </script>
  57. <submission id="TRMNG03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/whioinfo"/>
  58. <submission id="TXMNG03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  59. </model>
  60. <script type="javascript">
  61. <![CDATA[
  62. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  63. function fInitialize()
  64. {
  65. model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
  66. model.setValue(ipt_iodd.attribute("ref"), getCurrentDate()); //년월일
  67. model.setValue(ipt_siodd.attribute("ref"), getCurrentDate()); //년월일
  68. model.setValue(ipt_eiodd.attribute("ref"), getCurrentDate()); //년월일
  69. fSearch();
  70. }
  71. function fSearch() {
  72. var iodd = model.getValue(ipt_iodd.attribute("ref"));
  73. var siodd = model.getValue(ipt_siodd.attribute("ref"));
  74. var eiodd = model.getValue(ipt_eiodd.attribute("ref"));
  75. if (model.getValue(rdo_selyymmdd.attribute("ref")) == 'MM' ) {
  76. iodd = iodd.substr(0,6) ;
  77. } else if (model.getValue(rdo_selyymmdd.attribute("ref")) == 'DD' ) {
  78. }
  79. model.setValue("/root/send/iodd", iodd);
  80. model.setValue("/root/send/siodd", siodd);
  81. model.setValue("/root/send/eiodd", eiodd);
  82. model.setValue("/root/send/nowdd", model.getValue(ipt_iodd.attribute("ref")));
  83. model.setValue("/root/send/selyymmdd", model.getValue(rdo_selyymmdd.attribute("ref")));
  84. model.setValue("/root/send/gubuncd", model.getValue(rdo_gubuncd.attribute("ref")));
  85. submit("TRMNG03301");
  86. var ioflag;
  87. for(var i = grd_whiostatelist.fixedRows; i < grd_whiostatelist.rows; i++) {
  88. ioflag = grd_whiostatelist.valueMatrix(i, grd_whiostatelist.colRef("ioflag"));
  89. if(ioflag == "N") {
  90. grd_whiostatelist.rowStatus(i) = "1";
  91. }
  92. }
  93. if (model.getValue(rdo_selyymmdd.attribute("ref")) == 'MM' ) {
  94. grd_whiostatelist.valuematrix(0, grd_whiostatelist.colRef('bfstockcnt') ) = "전월재고";
  95. grd_whiostatelist.colhidden(grd_whiostatelist.colRef('remark1')) = true;
  96. grd_whiostatelist.colhidden(grd_whiostatelist.colRef('nowstockdd')) = true;
  97. grd_whiostatelist.colhidden(grd_whiostatelist.colRef('lastupdtrid')) = true;
  98. grd_whiostatelist.colType(grd_whiostatelist.colRef('incnt')) = "output";
  99. grd_whiostatelist.colType(grd_whiostatelist.colRef('outcnt')) = "output";
  100. caption2.attribute("visibility") = "hidden";
  101. caption3.attribute("visibility") = "hidden";
  102. ipt_siodd.visible = false;
  103. ipt_eiodd.visible = false;
  104. btn_sav.disabled = true;
  105. } else if (model.getValue(rdo_selyymmdd.attribute("ref")) == 'DATE' ){
  106. grd_whiostatelist.valuematrix(0, grd_whiostatelist.colRef('bfstockcnt') ) = "전월재고";
  107. grd_whiostatelist.colhidden(grd_whiostatelist.colRef('remark1')) = true;
  108. grd_whiostatelist.colhidden(grd_whiostatelist.colRef('nowstockdd')) = true;
  109. grd_whiostatelist.colhidden(grd_whiostatelist.colRef('lastupdtrid')) = true;
  110. grd_whiostatelist.colType(grd_whiostatelist.colRef('incnt')) = "output";
  111. grd_whiostatelist.colType(grd_whiostatelist.colRef('outcnt')) = "output";
  112. caption2.attribute("visibility") = "visible";
  113. caption3.attribute("visibility") = "visible";
  114. ipt_siodd.visible = true;
  115. ipt_eiodd.visible = true;
  116. btn_sav.disabled = true;
  117. } else if (model.getValue(rdo_selyymmdd.attribute("ref")) == 'DD' ) {
  118. grd_whiostatelist.valuematrix(0, grd_whiostatelist.colRef('bfstockcnt') ) = "전일재고";
  119. grd_whiostatelist.colhidden(grd_whiostatelist.colRef('remark1')) = false;
  120. grd_whiostatelist.colhidden(grd_whiostatelist.colRef('lastupdtrid')) = true;
  121. grd_whiostatelist.colhidden(grd_whiostatelist.colRef('nowstockdd')) = true;
  122. grd_whiostatelist.colType(grd_whiostatelist.colRef('incnt')) = "input";
  123. grd_whiostatelist.colType(grd_whiostatelist.colRef('outcnt')) = "input";
  124. caption2.attribute("visibility") = "hidden";
  125. caption3.attribute("visibility") = "hidden";
  126. ipt_siodd.visible = false;
  127. ipt_eiodd.visible = false;
  128. btn_sav.disabled = false;
  129. }
  130. grd_whiostatelist.refresh();
  131. }
  132. function fPrintRex() {
  133. model.makeNode("/root/send/report/porqrexlist");
  134. copyNodesetType("/root/send/report/porqrexlist", "/root/main/whioinfo/whiostatelist");
  135. exeReportPreview("RPMNG03300", "XMLSTR", "/root/send/report/porqrexlist");
  136. }
  137. ]]>
  138. </script>
  139. </xhtml:head>
  140. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1210;2,757;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  141. <group id="grp_tle" style="left:0px; top:0px; width:1185px; height:13px; ">
  142. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">세탁물 창고수불 관리</caption>
  143. </group>
  144. <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:1185px; height:680px; ">
  145. <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:180px; height:14px; ">세탁물 창고수불 관리</caption>
  146. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1180px; y2:26px; "/>
  147. <datagrid id="grd_whiostatelist" nodeset="/root/main/whioinfo/whiostatelist" visibility="visible" autoresize="true" caption="물품코드^물품명^규격^전월재고^전재고일자^입고^출고^현재고^현재고일자^비고^관리자^ioflag^일자^순번" colsep="^" colwidth="94, 205, 198, 73, 73, 71, 73, 74, 73, 222, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:1180px; height:635px; ">
  148. <col ref="goodcd" type="output" visibility="visible"/>
  149. <col ref="goodnm" type="output" visibility="visible"/>
  150. <col ref="goodspec" type="output" visibility="visible"/>
  151. <col ref="bfstockcnt" type="output" visibility="visible" format="#,###" style="text-align:right; "/>
  152. <col ref="bfstockdd" type="output" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  153. <col ref="incnt" type="input" visibility="visible" format="#,###" style="text-align:right; "/>
  154. <col ref="outcnt" type="input" visibility="visible" format="#,###" style="text-align:right; "/>
  155. <col ref="nowstockcnt" type="output" visibility="visible" format="#,###" style="text-align:right; "/>
  156. <col ref="nowstockdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  157. <col ref="remark1" type="input" visibility="hidden"/>
  158. <col ref="lastupdtrid" type="output" visibility="hidden"/>
  159. <col ref="ioflag" visibility="hidden"/>
  160. <col ref="ioseq" visibility="hidden"/>
  161. <col ref="iodd" visibility="hidden"/>
  162. <script type="javascript" ev:event="onkeypress">
  163. <![CDATA[
  164. var row = grd_whiostatelist.row;
  165. if(event.keyCode == 13) { // Enter 쳤을 경우 아래 수량으로
  166. if(grd_whiostatelist.col == grd_whiostatelist.colRef("incnt") || grd_whiostatelist.col == grd_whiostatelist.colRef("outcnt") || grd_whiostatelist.col == grd_whiostatelist.colRef("remark1")) { //불출수량이나 미불출수량 엔터시
  167. if(grd_whiostatelist.row + 1 < grd_whiostatelist.rows) {
  168. grd_whiostatelist.row = row + 1;
  169. }
  170. }
  171. }
  172. ]]>
  173. </script>
  174. </datagrid>
  175. <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; ">
  176. <choices>
  177. <item>
  178. <label>물품마스터</label>
  179. <value>01</value>
  180. </item>
  181. <item>
  182. <label>창고마스터</label>
  183. <value>02</value>
  184. </item>
  185. </choices>
  186. </select1>
  187. <button id="btn_sav" class="btn5_letter2" style="left:1137px; top:3px; width:42px; height:19px; ">
  188. <caption>저장</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. model.makeValue("/root/send/savedata/whiolist", getGridUpdateData(grd_whiostatelist) );
  192. submit("TXMNG03201");
  193. fSearch();
  194. ]]>
  195. </script>
  196. </button>
  197. </group>
  198. <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>
  199. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1005px; top:28px; width:56px; height:22px; ">
  200. <caption>조회</caption>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. fSearch();
  204. ]]>
  205. </script>
  206. </button>
  207. <line id="line2" class="line_4" style="x1:995px; y1:27px; x2:995px; y2:52px; "/>
  208. <caption id="cap_csrreqdeptcd" class="search_name" style="left:285px; top:30px; width:81px; height:17px; ">일자:</caption>
  209. <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; ">
  210. <script type="javascript" ev:event="xforms-value-changed">
  211. <![CDATA[
  212. fSearch();
  213. ]]>
  214. </script>
  215. </input>
  216. <caption id="cap_instcd" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
  217. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:30px; width:175px; height:19px; text-align:center; "/>
  218. <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; ">
  219. <choices>
  220. <item>
  221. <label>일자별</label>
  222. <value>DD</value>
  223. </item>
  224. <item>
  225. <label>월별</label>
  226. <value>MM</value>
  227. </item>
  228. <item>
  229. <label>기간별</label>
  230. <value>DATE</value>
  231. </item>
  232. </choices>
  233. <script type="javascript" ev:event="xforms-value-changed">
  234. <![CDATA[
  235. fSearch();
  236. ]]>
  237. </script>
  238. </select1>
  239. <button id="button3" class="btn1_letter2" style="left:1064px; top:28px; width:56px; height:22px; ">
  240. <caption>엑셀</caption>
  241. <script type="javascript" ev:event="DOMActivate">
  242. <![CDATA[
  243. if (getGridUpdateData(grd_whiostatelist).length == 0) {
  244. var fileName = window.fileDialog("save", ",", false, "세탁물창고재고현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  245. if (fileName != "")
  246. {
  247. grd_whiostatelist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  248. }
  249. } else {
  250. messageBox("입력된 정보가 있어서 출력할 수 없습니다.", "E999");
  251. return;
  252. }
  253. ]]>
  254. </script>
  255. </button>
  256. <button id="btn_prt" class="btn1_letter2" style="left:1122px; top:28px; width:56px; height:22px; ">
  257. <caption>출력</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. fPrintRex();
  261. /*
  262. if (getGridUpdateData(grd_whiostatelist).length == 0) {
  263. } else {
  264. messageBox("입력된 정보가 있어서 출력할 수 없습니다.", "E999");
  265. return;
  266. }*/
  267. ]]>
  268. </script>
  269. </button>
  270. <caption id="caption1" class="search_name" style="left:440px; top:30px; width:81px; height:17px; ">구분일자:</caption>
  271. <input id="ipt_siodd" ref="/root/cond/siodd" class="input_default" visibility="hidden" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:795px; top:30px; width:85px; height:19px; ">
  272. <script type="javascript" ev:event="xforms-value-changed">
  273. <![CDATA[
  274. fSearch();
  275. ]]>
  276. </script>
  277. </input>
  278. <input id="ipt_eiodd" ref="/root/cond/eiodd" class="input_default" visibility="hidden" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:900px; top:30px; width:85px; height:19px; ">
  279. <script type="javascript" ev:event="xforms-value-changed">
  280. <![CDATA[
  281. fSearch();
  282. ]]>
  283. </script>
  284. </input>
  285. <caption id="caption2" visibility="hidden" style="left:885px; top:35px; width:15px; height:14px; ">~</caption>
  286. <caption id="caption3" class="search_name" visibility="hidden" style="left:710px; top:30px; width:81px; height:17px; ">조회기간:</caption>
  287. </xhtml:body>
  288. </xhtml:html>