SMMNG03100_세탁물창고기초재고관리.xrw 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. <whstinfo>
  11. <whstlist>
  12. <goodcd/>
  13. <goodnm/>
  14. <goodspec/>
  15. <stockcnt/>
  16. <remark1/>
  17. <fstrgstrid/>
  18. <ioflag/>
  19. <stockdd/>
  20. </whstlist>
  21. <csrdeptlist/>
  22. </whstinfo>
  23. <csrdeptlist/>
  24. </main>
  25. <send>
  26. <instcdnm/>
  27. <stockdd/>
  28. <gubuncd>02</gubuncd>
  29. </send>
  30. <cond>
  31. <stockdd/>
  32. </cond>
  33. </root>
  34. </instance>
  35. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. fInitialize();
  41. ]]>
  42. </script>
  43. <submission id="TRMNG03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/whstinfo"/>
  44. <submission id="TXMNG03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  45. </model>
  46. <script type="javascript">
  47. <![CDATA[
  48. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  49. function fInitialize()
  50. {
  51. model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
  52. model.setValue(ipt_stockdd.attribute("ref"), getCurrentDate()); //년월
  53. fSearch();
  54. }
  55. function fSearch() {
  56. model.setValue("/root/send/stockdd", model.getValue(ipt_stockdd.attribute("ref")));
  57. model.setValue("/root/send/gubuncd", model.getValue(rdo_gubuncd.attribute("ref"))); //마스터코드구분 01:물품마스터02:창고마스터
  58. submit("TRMNG03101");
  59. var ioflag;
  60. for(var i = grd_whstlist.fixedRows; i < grd_whstlist.rows; i++) {
  61. ioflag = grd_whstlist.valueMatrix(i, grd_whstlist.colRef("ioflag"));
  62. if(ioflag == "N") {
  63. grd_whstlist.rowStatus(i) = "1";
  64. }
  65. }
  66. }
  67. ]]>
  68. </script>
  69. </xhtml:head>
  70. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1210;2,756;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  71. <group id="grp_tle" style="left:0px; top:0px; width:1185px; height:13px; ">
  72. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">세탁물 창고기초재고 등록</caption>
  73. </group>
  74. <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:1185px; height:680px; ">
  75. <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:121px; height:14px; ">세탁물 창고기초재고 등록</caption>
  76. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1185px; y2:26px; "/>
  77. <button id="btn_sav" class="btn5_letter2" style="left:1137px; top:3px; width:42px; height:19px; ">
  78. <caption>저장</caption>
  79. <script type="javascript" ev:event="DOMActivate">
  80. <![CDATA[
  81. model.makeValue("/root/send/savedata/whstlist", getGridUpdateData(grd_whstlist) );
  82. submit("TXMNG03101");
  83. fSearch();
  84. ]]>
  85. </script>
  86. </button>
  87. <col ref="whstcnt" type="input"/>
  88. <col ref="whstcnt" type="input"/>
  89. <datagrid id="grd_whstlist" nodeset="/root/main/whstinfo/whstlist" visibility="visible" caption="물품코드^물품명^규격^재고수량^관리자^비고^flag^일자" colsep="^" colwidth="136, 197, 182, 101, 110, 408, 100, 162" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:1185px; height:635px; ">
  90. <col ref="goodcd" visibility="visible"/>
  91. <col ref="goodnm" visibility="visible"/>
  92. <col ref="goodspec" visibility="visible"/>
  93. <col ref="stockcnt" type="input" visibility="visible" format="#,###"/>
  94. <col ref="fstrgstrid" visibility="visible"/>
  95. <col ref="remark1" type="input" visibility="visible"/>
  96. <col ref="ioflag" visibility="hidden"/>
  97. <col ref="stockdd" visibility="hidden"/>
  98. <script type="javascript" ev:event="onkeypress">
  99. <![CDATA[
  100. var row = grd_whstlist.row;
  101. if(event.keyCode == 13) { // Enter 쳤을 경우 아래 수량으로
  102. if(grd_whstlist.col == grd_whstlist.colRef("stockcnt")) { //불출수량이나 미불출수량 엔터시
  103. if(grd_whstlist.row + 1 < grd_whstlist.rows) {
  104. grd_whstlist.row = row + 1;
  105. }
  106. }
  107. }
  108. ]]>
  109. </script>
  110. <script type="javascript" ev:event="xforms-value-changed">
  111. <![CDATA[
  112. //grd_whstlist.valueMatrix(grd_whstlist.row, grd_whstlist.colRef("fstrgstrid")) = getUserInfo("userid");
  113. ]]>
  114. </script>
  115. </datagrid>
  116. </group>
  117. <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>
  118. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1120px; top:25px; width:56px; height:22px; ">
  119. <caption>조회</caption>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. fSearch();
  123. ]]>
  124. </script>
  125. </button>
  126. <line id="line2" class="line_4" style="x1:1100px; y1:25px; x2:1100px; y2:50px; "/>
  127. <caption id="cap_csrreqdeptcd" class="search_name" style="left:285px; top:30px; width:81px; height:17px; ">일자:</caption>
  128. <input id="ipt_stockdd" ref="/root/cond/stockdd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:345px; top:30px; width:85px; height:19px; ">
  129. <script type="javascript" ev:event="xforms-value-changed">
  130. <![CDATA[
  131. fSearch();
  132. ]]>
  133. </script>
  134. </input>
  135. <caption id="cap_instcd" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
  136. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:30px; width:175px; height:19px; text-align:center; "/>
  137. <select1 id="rdo_gubuncd" ref="/root/send/gubuncd" disabled="true" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:480px; top:30px; width:390px; height:15px; border-style:none; ">
  138. <choices>
  139. <item>
  140. <label>물품마스터</label>
  141. <value>01</value>
  142. </item>
  143. <item>
  144. <label>창고마스터</label>
  145. <value>02</value>
  146. </item>
  147. </choices>
  148. </select1>
  149. </xhtml:body>
  150. </xhtml:html>