SPRSD00120_물품별 정량보충 기준량 조회HELP.xrw 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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>물품별 정량보충 기준량 조회HELP</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <goodlist>
  11. <goodcd/>
  12. <goodnm/>
  13. <goodspec/>
  14. <goodmodel/>
  15. <prodcmpynm/>
  16. <purcunit/>
  17. <exchqty/>
  18. <stocmngtflag/>
  19. </goodlist>
  20. <keepdeptlist>
  21. <keepdeptcd/>
  22. <keepdeptnm/>
  23. <basevol/>
  24. </keepdeptlist>
  25. </main>
  26. <init>
  27. <refcond>
  28. <label>물품코드</label>
  29. <value>goodcd</value>
  30. <label>물품명</label>
  31. <value>goodnm</value>
  32. </refcond>
  33. </init>
  34. <send>
  35. <goodref>
  36. <lrgcd/>
  37. <refcond/>
  38. <goodnm/>
  39. <goodcd/>
  40. <reqmthd/>
  41. </goodref>
  42. <goodlist/>
  43. </send>
  44. </root>
  45. </instance>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. var reqmthd = '2';
  49. rszfComboLrgCdList("",reqmthd, cmb_lrgcd); //물품분류(정량보충에 해당하는 물품의 대분류코드)
  50. model.setValue("/root/send/goodref/reqmthd",reqmthd);
  51. misfGridInit(grd_goodlist);
  52. misfGridInit(grd_keepdeptlist);
  53. misfMsterDetailSet(grd_goodlist,null,"TRRSD00121","Y");
  54. misfMsterDetailSet(grd_keepdeptlist,grd_goodlist,"TRRSD00122","Y");
  55. rdo_refcond.select(1);
  56. model.setFocus("ipt_refcond");
  57. ]]>
  58. </script>
  59. <submission id="TRRSD00121" ref="/root/send/goodref" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/goodlist"/>
  60. <submission id="TRRSD00122" ref="/root/send/goodlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/keepdeptlist"/>
  61. </model>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  65. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  66. </xhtml:head>
  67. <xhtml:body pagewidth="1071" pageheight="640" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  68. <group id="group3" scroll="auto" style="left:8px; top:0px; width:1040px; height:611px; ">
  69. <group id="group2" style="left:0px; top:5px; width:1040px; height:35px; ">
  70. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1040px; height:35; "/>
  71. <input id="ipt_refcond" ref="/root/send/goodref/goodnm" style="left:455px; top:8; width:235px; height:19px; ">
  72. <script type="javascript" ev:event="onkeyup">
  73. <![CDATA[
  74. inputEnterKey("btn_search", "DOMActivate");
  75. ]]>
  76. </script>
  77. </input>
  78. <button id="btn_search" class="btn1_letter2" style="left:969px; top:7; width:56px; height:22px; ">
  79. <caption>조회</caption>
  80. <script type="javascript" ev:event="DOMActivate">
  81. <![CDATA[
  82. if(rdo_refcond.value == "goodnm") {
  83. model.setValue("/root/send/goodref/goodnm",ipt_refcond.label);
  84. }
  85. else {
  86. model.setValue("/root/send/goodref/goodcd",ipt_refcond.label);
  87. }
  88. misfMsterDetailRetrieve();
  89. model.refresh();
  90. ]]>
  91. </script>
  92. </button>
  93. <line id="line13" class="line_4" style="x1:954px; y1:7; x2:954px; y2:25px; border-color:#ffe4bb; border-left-style:solid; "/>
  94. <caption id="caption2" class="search_name" style="left:370px; top:9; width:86px; height:17px; ">조회조건 :</caption>
  95. <select1 id="rdo_refcond" ref="/root/send/goodref/refcond" class="radio_search" overflow="visible" appearance="full" cols="2" style="left:230px; top:9; width:110px; height:20px; border-style:solid; ">
  96. <choices>
  97. <itemset nodeset="/root/init/refcond">
  98. <label ref="label"/>
  99. <value ref="value"/>
  100. </itemset>
  101. </choices>
  102. <script type="javascript" ev:event="xforms-select">
  103. <![CDATA[
  104. if(rdo_refcond.value == "goodnm") {
  105. ipt_refcond.attribute("imemode") = "hangul";
  106. }
  107. else if (rdo_refcond.value == "goodcd") {
  108. ipt_refcond.attribute("imemode") = "disabled";
  109. }
  110. else {
  111. ipt_refcond.attribute("imemode") = "disabled";
  112. }
  113. model.setFocus("ipt_refcond");
  114. ]]>
  115. </script>
  116. </select1>
  117. <caption id="caption5" class="search_name" style="left:15; top:9; width:86px; height:17px; ">물품분류 :</caption>
  118. <select1 id="cmb_lrgcd" ref="/root/send/goodref/lrgcd" class="combo_s_essential" appearance="minimal" style="left:100; top:8; width:125px; height:19px; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  119. <choices>
  120. <itemset>
  121. <label/>
  122. <value/>
  123. </itemset>
  124. </choices>
  125. </select1>
  126. </group>
  127. <caption id="caption1" class="tit_2" style="left:5px; top:49px; width:113px; height:13px; ">물품 리스트</caption>
  128. <line id="line1" class="line_1" style="x1:0px; y1:63px; x2:795px; y2:63px; "/>
  129. <datagrid id="grd_goodlist" nodeset="/root/main/goodlist" caption="물품코드^물품명^규격^모델^제조회사^포장단위^환상수량^재고" colwidth="90, 170, 100, 80, 150, 65, 65, 50" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" selectionmode="listbox" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:68px; width:795px; height:538px; ">
  130. <col ref="goodcd" disabled="true"/>
  131. <col ref="goodnm" disabled="true"/>
  132. <col ref="goodspec" disabled="true"/>
  133. <col ref="goodmodel" disabled="true"/>
  134. <col ref="prodcmpynm" disabled="true"/>
  135. <col ref="purcunit" disabled="true"/>
  136. <col ref="exchqty" disabled="true"/>
  137. <col ref="stocmngtflag" type="checkbox" checkvalue="Y,N" disabled="true"/>
  138. <script type="javascript" ev:event="onrowchanged">
  139. <![CDATA[
  140. if( grd_goodlist.isCell( event.target ) && grd_goodlist.row >= grd_goodlist.fixedRows ) {
  141. var currow = grd_goodlist.row;
  142. var goodlist = model.getValue("root/main/goodlist["+currow+"]/goodcd");
  143. model.setValue("/root/send/goodlist",goodlist);
  144. submit("TRRSD00122");
  145. }
  146. ]]>
  147. </script>
  148. <script type="javascript" ev:event="onaftersort">
  149. <![CDATA[
  150. grd_goodlist.gridToInstance();
  151. ]]>
  152. </script>
  153. </datagrid>
  154. <caption id="caption3" class="tit_2" style="left:805px; top:49px; width:157px; height:13px; ">보유부서</caption>
  155. <line id="line2" class="line_1" style="x1:800px; y1:64px; x2:1040px; y2:65px; "/>
  156. <datagrid id="grd_keepdeptlist" nodeset="/root/main/keepdeptlist" allowuserresize="false" caption="보유부서^보유부서^기준량" colwidth="60, 87, 70" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" style="left:800px; top:68px; width:240px; height:538px; ">
  157. <col ref="keepdeptcd" disabled="true"/>
  158. <col ref="keepdeptnm" disabled="true"/>
  159. <col ref="basevol"/>
  160. </datagrid>
  161. </group>
  162. <group id="group1" scroll="auto" style="left:8px; top:610px; width:1040px; height:27px; ">
  163. <button id="btn_cancel" class="btn4_letter2" style="left:984px; top:5px; width:56px; height:22px; ">
  164. <caption>닫기</caption>
  165. <close ev:event="DOMActivate"/>
  166. </button>
  167. <line id="line3" class="line_6" style="x1:0px; y1:0px; x2:1040; y2:0px; "/>
  168. </group>
  169. </xhtml:body>
  170. </xhtml:html>