SMMNG02100_세탁물보유량관리.xrw 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. <possinfo>
  11. <posslist>
  12. <instcd/>
  13. <goodcd/>
  14. <goodnm/>
  15. <posscnt/>
  16. <possyymm/>
  17. <deptcd/>
  18. <ioflag/>
  19. <remark1/>
  20. <fstrgstrid/>
  21. <fstrgstrnm/>
  22. </posslist>
  23. <csrdeptlist/>
  24. </possinfo>
  25. <cond>
  26. <possyymm/>
  27. <deptcd/>
  28. </cond>
  29. <csrdeptlist/>
  30. </main>
  31. <send>
  32. <possyymm/>
  33. <deptcd/>
  34. <instcdnm/>
  35. <gubuncd>01</gubuncd>
  36. </send>
  37. <init>
  38. <csrdeptinfo/>
  39. </init>
  40. </root>
  41. </instance>
  42. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  45. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. fInitialize();
  49. ]]>
  50. </script>
  51. <submission id="TRMNG02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/possinfo"/>
  52. <submission id="TXMNG02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  53. <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
  54. <submission id="TRMNV00001" mediatype="application/x-www-form-urlencoded" method="post"/>
  55. </model>
  56. <script type="javascript">
  57. <![CDATA[
  58. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  59. function fInitialize()
  60. {
  61. model.setValue(ipt_possyymm.attribute("ref"), getCurrentDate().substr(0,6));
  62. model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
  63. model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
  64. fGetHardCodeInfo("/root/send/cdgrupid", "/root/init/csrdeptinfo", "160"); // 중앙공급실 부서코드 조회
  65. var userdutplcecd = model.getValue("/root/init/csrdeptinfo/codelist[cdid = '"+getUserInfo("dutplcecd")+"']/cdid");
  66. if (!isNull(userdutplcecd)) {
  67. cmb_deptcd.disabled = false;
  68. } else {
  69. model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
  70. cmb_deptcd.disabled = true; //중앙공급실이 아닐 경우 부서선택 숨김
  71. }
  72. ipt_possyymm.refresh();
  73. cmb_deptcd.refresh();
  74. opt_instcdnm.refresh();
  75. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  76. model.makeValue("/root/send/reqdata/useyn", "Y");
  77. submit("TRMNG00402");
  78. fSearch();
  79. }
  80. function fSearch() {
  81. model.setValue("/root/send/possyymm", model.getValue(ipt_possyymm.attribute("ref")));
  82. model.setValue("/root/send/deptcd", model.getValue(cmb_deptcd.attribute("ref")));
  83. model.setValue("/root/send/gubuncd", model.getValue(rdo_gubuncd.attribute("ref"))); //마스터코드구분 01:물품마스터02:창고마스터
  84. submit("TRMNG02101");
  85. var ioflag;
  86. for(var i = grd_posslist.fixedRows; i < grd_posslist.rows; i++) {
  87. ioflag = grd_posslist.valueMatrix(i, grd_posslist.colRef("ioflag"));
  88. if(ioflag == "N") {
  89. grd_posslist.rowStatus(i) = "1";
  90. }
  91. }
  92. grd_posslist.mergecol(1)=false;
  93. grd_posslist.mergecol(2)=false;
  94. grd_posslist.mergecol(3)=false;
  95. grd_posslist.mergecol(4)=false;
  96. grd_posslist.mergecells="bycol";
  97. }
  98. ]]>
  99. </script>
  100. </xhtml:head>
  101. <xhtml:body pagewidth="800" pageheight="500" guideline="1,801;2,546;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  102. <group id="grp_tle" style="left:0px; top:0px; width:775px; height:13px; ">
  103. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">보유량 관리</caption>
  104. </group>
  105. <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:775px; height:420px; ">
  106. <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:121px; height:14px; ">보유량관리</caption>
  107. <button id="btn_sav" class="btn5_letter2" style="left:731px; top:3px; width:42px; height:19px; ">
  108. <caption>저장</caption>
  109. <script type="javascript" ev:event="DOMActivate">
  110. <![CDATA[
  111. model.makeValue("/root/send/savedata/posslist", getGridUpdateData(grd_posslist) );
  112. //alert(instance1.selectNodesXml("/root/send"));
  113. submit("TXMNG02101");
  114. fSearch();
  115. ]]>
  116. </script>
  117. </button>
  118. <col ref="posscnt" type="input"/>
  119. <col ref="posscnt" type="input"/>
  120. <datagrid id="grd_posslist" nodeset="/root/main/possinfo/posslist" caption="물품코드^품목명^보유량^관리자^비고^기관번호^년월^품목코드^부서코드^caption1^망순번" colsep="^" colwidth="0, 226, 74, 100, 337, 74, 100, 65, 76, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:775px; height:385px; ">
  121. <col ref="ioflag" visibility="hidden"/>
  122. <col ref="goodnm"/>
  123. <col ref="posscnt" type="input" visibility="visible" format="#,###"/>
  124. <col ref="fstrgstrnm" visibility="visible" ype="output"/>
  125. <col ref="remark1" type="input" visibility="visible"/>
  126. <col ref="instcd" visibility="hidden"/>
  127. <col ref="possyymm" visibility="hidden"/>
  128. <col ref="goodcd" type="hidden" visibility="hidden"/>
  129. <col ref="deptcd" visibility="hidden"/>
  130. <col ref="fstrgstrid" visibility="hidden" ype="output"/>
  131. <script type="javascript" ev:event="xforms-value-changed">
  132. <![CDATA[
  133. var remark1 = "";
  134. if(grd_posslist.col == grd_posslist.colRef("remark1") || grd_posslist.col == grd_posslist.colRef("posscnt") ) {
  135. remark1 = grd_posslist.valueMatrix(grd_posslist.row, grd_posslist.colRef("remark1"));
  136. for(var i = grd_posslist.fixedRows; i < grd_posslist.rows; i++) {
  137. if (grd_posslist.rowStatus(i) == "1" || grd_posslist.rowStatus(i) == "3" ) {
  138. grd_posslist.rowStatus(i) = "1";
  139. } else if (grd_posslist.rowStatus(i) == "2" || grd_posslist.rowStatus(i) == "0") {
  140. grd_posslist.rowStatus(i) = "2";
  141. }
  142. grd_posslist.valueMatrix(i, grd_posslist.colRef("remark1")) = remark1;
  143. }
  144. }
  145. ]]>
  146. </script>
  147. <script type="javascript" ev:event="onkeypress">
  148. <![CDATA[
  149. var row = grd_posslist.row;
  150. if(event.keyCode == 13) { // Enter 쳤을 경우 아래 수량으로
  151. if(grd_posslist.col == grd_posslist.colRef("posscnt")) { //불출수량이나 미불출수량 엔터시
  152. if(grd_posslist.row + 1 < grd_posslist.rows) {
  153. grd_posslist.row = row + 1;
  154. }
  155. }
  156. }
  157. ]]>
  158. </script>
  159. </datagrid>
  160. <line id="line5" class="line_1" style="x1:1px; y1:26px; x2:775px; y2:25px; "/>
  161. <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; ">
  162. <choices>
  163. <item>
  164. <label>물품마스터</label>
  165. <value>01</value>
  166. </item>
  167. <item>
  168. <label>창고마스터</label>
  169. <value>02</value>
  170. </item>
  171. </choices>
  172. </select1>
  173. </group>
  174. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:775px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
  175. <caption id="caption2" class="search_name" style="left:435px; top:30px; width:88px; height:17px; ">부 서 명 :</caption>
  176. <caption id="cap_csrreqdeptcd" class="search_name" style="left:290px; top:30px; width:67px; height:17px; ">년월:</caption>
  177. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:714px; top:27px; width:56px; height:22px; ">
  178. <caption>조회</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. fSearch();
  182. ]]>
  183. </script>
  184. </button>
  185. <input id="ipt_possyymm" ref="/root/main/cond/possyymm" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm" style="left:350px; top:30px; width:68px; height:19px; ">
  186. <script type="javascript" ev:event="xforms-value-changed">
  187. <![CDATA[
  188. fSearch();
  189. ]]>
  190. </script>
  191. </input>
  192. <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" disabled="true" appearance="minimal" style="left:520px; top:30px; width:100px; height:19px; ">
  193. <choices>
  194. <itemset nodeset="/root/main/csrdeptlist">
  195. <label ref="deptnm"/>
  196. <value ref="deptcd"/>
  197. </itemset>
  198. </choices>
  199. <script type="javascript" ev:event="xforms-value-changed">
  200. <![CDATA[
  201. fSearch();
  202. ]]>
  203. </script>
  204. </select1>
  205. <line id="line2" class="line_4" style="x1:705px; y1:25px; x2:705px; y2:50px; "/>
  206. <caption id="cap_instcd" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
  207. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:30px; width:175px; height:19px; text-align:center; "/>
  208. </xhtml:body>
  209. </xhtml:html>