SMMNG02700_세탁물이불보유현황.xrw 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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. <pnmtinfo>
  11. <pnmtlist>
  12. <instcd/>
  13. <deptnm/>
  14. <pnmtcnt/>
  15. <pnmtyymm/>
  16. <deptcd/>
  17. <ioflag/>
  18. <remark1/>
  19. <fstrgstrid/>
  20. <pnmtdeptcd/>
  21. <remark2/>
  22. <fstrgstrnm/>
  23. </pnmtlist>
  24. <csrdeptlist/>
  25. </pnmtinfo>
  26. <cond>
  27. <pnmtyymm/>
  28. <deptcd/>
  29. </cond>
  30. <csrdeptlist/>
  31. </main>
  32. <send>
  33. <pnmtyymm/>
  34. <pnmtdeptcd/>
  35. <gubuncd>01</gubuncd>
  36. </send>
  37. </root>
  38. </instance>
  39. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. fInitialize();
  45. ]]>
  46. </script>
  47. <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
  48. <submission id="TRMNG02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/pnmtinfo"/>
  49. <submission id="TXMNG02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  50. </model>
  51. <script type="javascript">
  52. <![CDATA[
  53. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  54. function fInitialize()
  55. {
  56. model.setValue(ipt_pnmtyymm.attribute("ref"), getCurrentDate().substr(0,6));
  57. //model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
  58. //cmb_deptcd.refresh();
  59. ipt_pnmtyymm.refresh();
  60. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  61. model.makeValue("/root/send/reqdata/useyn", "Y");
  62. submit("TRMNG00402");
  63. fSearch();
  64. }
  65. function fSearch() {
  66. model.setValue("/root/send/pnmtyymm", model.getValue(ipt_pnmtyymm.attribute("ref")));
  67. model.setValue("/root/send/pnmtdeptcd", "0000000000"); //컬럼삭제하여도됨 소스수정필요
  68. model.setValue("/root/send/gubuncd", model.getValue(rdo_gubuncd.attribute("ref"))); //마스터코드구분 01:물품마스터02:창고마스터
  69. submit("TRMNG02701");
  70. var ioflag;
  71. for(var i = grd_pnmtlist.fixedRows; i < grd_pnmtlist.rows; i++) {
  72. ioflag = grd_pnmtlist.valueMatrix(i, grd_pnmtlist.colRef("ioflag"));
  73. if(ioflag == "N") {
  74. grd_pnmtlist.rowStatus(i) = "1";
  75. grd_pnmtlist.valueMatrix(i, grd_pnmtlist.colRef("fstrgstrid")) = getUserInfo("userid");
  76. grd_pnmtlist.valueMatrix(i, grd_pnmtlist.colRef("fstrgstrnm")) = getUserInfo("usernm");
  77. }
  78. }
  79. }
  80. function changeSavedataChk() {
  81. if ( getGridUpdateData(grd_pnmtlist).length == 0 ) {
  82. return true;
  83. } else {
  84. messageBox("입력된 정보가 있어서 출력할 수 없습니다.", "E999");
  85. return false;
  86. }
  87. }
  88. function fPrintRex() {
  89. if (changeSavedataChk() == true) {
  90. model.makeNode("/root/send/report/pnmtlist");
  91. copyNodesetType("/root/send/report/pnmtlist", "/root/main/pnmtinfo");
  92. exeReportPreview("RPMNG02700", "XMLSTR", "/root/send/report/pnmtlist");
  93. }
  94. }
  95. ]]>
  96. </script>
  97. </xhtml:head>
  98. <xhtml:body pagewidth="743" pageheight="650" guideline="1,743;2,627;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  99. <group id="grp_tle" style="left:0px; top:0px; width:720px; height:13px; ">
  100. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">부서별 이불 보유 현황</caption>
  101. </group>
  102. <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:725px; height:453px; ">
  103. <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:149px; height:14px; ">부서별 이불 보유 현황</caption>
  104. <line id="line1" class="line_1" style="x1:5px; y1:24px; x2:715px; y2:25px; "/>
  105. <button id="btn_sav" class="btn5_letter2" style="left:678px; top:3px; width:42px; height:19px; ">
  106. <caption>저장</caption>
  107. <script type="javascript" ev:event="DOMActivate">
  108. <![CDATA[
  109. model.makeValue("/root/send/savedata/pnmtlist", getGridUpdateData(grd_pnmtlist) );
  110. //alert(instance1.selectNodesXml("/root/send"));
  111. submit("TXMNG02701");
  112. fSearch();
  113. ]]>
  114. </script>
  115. </button>
  116. <col ref="pnmtcnt" type="input"/>
  117. <col ref="pnmtcnt" type="input"/>
  118. <datagrid id="grd_pnmtlist" nodeset="/root/main/pnmtinfo/pnmtlist" caption="물품코드^부서명^보유량^관리자^비고^기관번호^년월^부서코드^현부서코드^관리자이름^caption1^망순번" colsep="^" colwidth="0, 173, 74, 100, 323, 74, 100, 65, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:30px; width:710px; height:420px; ">
  119. <col ref="ioflag" visibility="hidden"/>
  120. <col ref="deptnm" visibility="visible"/>
  121. <col ref="pnmtcnt" visibility="visible" format="#,###"/>
  122. <col ref="fstrgstrnm" visibility="visible" ype="output"/>
  123. <col ref="remark1" type="input" visibility="visible"/>
  124. <col ref="instcd" visibility="hidden"/>
  125. <col ref="pnmtyymm" visibility="hidden"/>
  126. <col ref="deptcd" visibility="hidden"/>
  127. <col ref="pnmtdeptcd" visibility="hidden"/>
  128. <col ref="fstrgstrid" visibility="hidden" ype="output"/>
  129. <col ref="remark2" visibility="hidden"/>
  130. </datagrid>
  131. <select1 id="rdo_gubuncd" ref="/root/send/gubuncd" disabled="true" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:220px; top:5px; width:390px; height:15px; border-style:none; ">
  132. <choices>
  133. <item>
  134. <label>물품마스터</label>
  135. <value>01</value>
  136. </item>
  137. <item>
  138. <label>창고마스터</label>
  139. <value>02</value>
  140. </item>
  141. </choices>
  142. </select1>
  143. </group>
  144. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:725px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
  145. <caption id="cap_csrreqdeptcd" class="search_name" style="left:15px; top:30px; width:67px; height:17px; ">년월:</caption>
  146. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:545px; top:27px; width:56px; height:22px; ">
  147. <caption>조회</caption>
  148. <script type="javascript" ev:event="DOMActivate">
  149. <![CDATA[
  150. fSearch();
  151. ]]>
  152. </script>
  153. </button>
  154. <input id="ipt_pnmtyymm" ref="/root/main/cond/pnmtyymm" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm" style="left:77px; top:28px; width:68px; height:19px; ">
  155. <script type="javascript" ev:event="xforms-value-changed">
  156. <![CDATA[
  157. fSearch();
  158. ]]>
  159. </script>
  160. </input>
  161. <line id="line2" class="line_4" style="x1:535px; y1:25px; x2:535px; y2:50px; "/>
  162. <button id="button3" class="btn1_letter2" style="left:605px; top:27px; width:56px; height:22px; ">
  163. <caption>엑셀</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. if (changeSavedataChk() == true) {
  167. var fileName = window.fileDialog("save", ",", false, "세탁물이불보유현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  168. if (fileName != "")
  169. {
  170. grd_pnmtlist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  171. }
  172. }
  173. ]]>
  174. </script>
  175. </button>
  176. <button id="btn_prt" class="btn1_letter2" style="left:665px; top:27px; width:56px; height:22px; ">
  177. <caption>출력</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. fPrintRex();
  181. ]]>
  182. </script>
  183. </button>
  184. <textarea id="txt_remark2" ref="/root/main/pnmtinfo/pnmtlist/remark2" style="left:5px; top:530px; width:710px; height:97px; ">
  185. <script type="javascript" ev:event="xforms-value-changed">
  186. <![CDATA[
  187. var remark2 = "";
  188. remark2 = model.getValue(txt_remark2.attribute("ref"));
  189. for(var i = grd_pnmtlist.fixedRows; i < grd_pnmtlist.rows; i++) {
  190. if (grd_pnmtlist.rowStatus(i) == "1" || grd_pnmtlist.rowStatus(i) == "3" ) {
  191. grd_pnmtlist.rowStatus(i) = "1";
  192. } else if (grd_pnmtlist.rowStatus(i) == "2" || grd_pnmtlist.rowStatus(i) == "0") {
  193. grd_pnmtlist.rowStatus(i) = "2";
  194. }
  195. grd_pnmtlist.valueMatrix(i, grd_pnmtlist.colRef("remark2")) = remark2;
  196. }
  197. ]]>
  198. </script>
  199. </textarea>
  200. <caption id="caption1" class="tit_2" style="left:5px; top:515px; width:149px; height:14px; ">비고</caption>
  201. </xhtml:body>
  202. </xhtml:html>