SPMNG02800_린넨물품(물류)조회HELP.xrw 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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. <rscdlist>
  11. <chkyn/>
  12. </rscdlist>
  13. </main>
  14. <init>
  15. </init>
  16. <send>
  17. <reqdata>
  18. <goodcd/>
  19. <srchflag/>
  20. <goodflag/>
  21. </reqdata>
  22. </send>
  23. </root>
  24. </instance>
  25. <script type="javascript" ev:event="xforms-ready">
  26. <![CDATA[
  27. grd_rscdlist.fixedcellcheckbox(0,grd_rscdlist.colRef("chkyn")) = true;
  28. rdo_goodflag.value = "L";
  29. btn_search.dispatch("DOMActivate");
  30. ]]>
  31. </script>
  32. <script type="javascript">
  33. <![CDATA[
  34. function fSettingGoodList(pnode) {
  35. var codynode = instance1.selectNodes(pnode + "/*");
  36. var addRow = grd_deptlist.rows - grd_deptlist.fixedRows;
  37. for (var j = 1; j <= codynode.length; j++)
  38. {
  39. if(addRow > grd_deptlist.rows - grd_deptlist.fixedRows)
  40. {
  41. misfGridIUD(grd_deptlist,"A");
  42. addRow = grd_deptlist.rows - grd_deptlist.fixedRows;
  43. }
  44. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/deptcd" , model.getValue(pnode +"/" + "grd_deptlist" + "[" + j + "]/deptcd"));
  45. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/deptnm" , model.getValue(pnode +"/" + "grd_deptlist" + "[" + j + "]/depthngnm"));
  46. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/supdeptcd" , cmb_dept.value);
  47. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/supdeptnm" , cmb_dept.label);
  48. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/userid" , getUserInfo("userid"));
  49. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/useyn" , "Y");
  50. addRow = addRow + 1;
  51. }
  52. model.recalculate();
  53. model.refresh();
  54. }
  55. ]]>
  56. </script>
  57. <submission id="TRMNG02802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/rscdlist"/>
  58. </model>
  59. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  61. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  62. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  63. </xhtml:head>
  64. <xhtml:body pagewidth="800" pageheight="565" guideline="1,804;2,554;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  65. <group id="group3" scroll="auto" style="left:0px; top:0px; width:782px; height:520px; ">
  66. <group id="group2" style="left:0px; top:0px; width:780px; height:30px; ">
  67. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:780px; height:29px; "/>
  68. <button id="btn_search" class="btn1_letter2" style="left:719px; top:4px; width:56px; height:22px; ">
  69. <caption>조회</caption>
  70. <script type="javascript" ev:event="DOMActivate">
  71. <![CDATA[
  72. if (ipt_good.value != null && ipt_good.value != "") {
  73. if (radio1.value == null || radio1.value == "") {
  74. alert("조회조건을 선택하세요");
  75. return;
  76. }
  77. }
  78. model.getValue("/root/send/reqdata/goodflag");
  79. submit("TRMNG02802");
  80. ]]>
  81. </script>
  82. </button>
  83. <line id="line13" class="line_4" style="x1:715px; y1:0px; x2:715px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  84. <caption id="caption2" class="search_name" style="left:10px; top:6px; width:86px; height:17px; ">조회조건:</caption>
  85. <select1 id="radio1" ref="/root/send/reqdata/srchflag" appearance="full" cols="2" overflow="visible" style="left:105px; top:5px; width:130px; height:20px; border-style:none; ">
  86. <choices>
  87. <item>
  88. <label>물품코드</label>
  89. <value>C</value>
  90. </item>
  91. <item>
  92. <label>물품명</label>
  93. <value>N</value>
  94. </item>
  95. </choices>
  96. </select1>
  97. <input id="ipt_good" ref="/root/send/reqdata/goodcd" class="input_search" style="left:235px; top:5px; width:155px; height:19px; "/>
  98. <caption id="caption3" class="search_name" style="left:410px; top:6px; width:86px; height:17px; ">구분 :</caption>
  99. <select1 id="rdo_goodflag" ref="/root/send/reqdata/goodflag" appearance="full" cols="4" overflow="visible" style="left:480px; top:5px; width:210px; height:20px; border-style:none; ">
  100. <choices>
  101. <item>
  102. <label>전체</label>
  103. <value>A</value>
  104. </item>
  105. <item>
  106. <label>L</label>
  107. <value>L</value>
  108. </item>
  109. <item>
  110. <label>K</label>
  111. <value>K</value>
  112. </item>
  113. <item>
  114. <label>E</label>
  115. <value>E</value>
  116. </item>
  117. </choices>
  118. <script type="javascript" ev:event="xforms-value-changed">
  119. <![CDATA[
  120. btn_search.dispatch("DOMActivate");
  121. ]]>
  122. </script>
  123. </select1>
  124. </group>
  125. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:133px; height:14px; ">린넨물품(물류)조회</caption>
  126. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:780px; y2:60px; "/>
  127. <datagrid id="grd_rscdlist" nodeset="/root/main/rscdlist" caption="^물품코드^물품명^물품영문명^사용여부^규격^모델명^불출단위" colsep="^" colwidth="20, 100, 160, 160, 60, 80, 80, 70" dataheight="23" defaultrows="0" explorerbar="sort" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:65px; width:780px; height:455px; ">
  128. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  129. <col editable="false" ref="goodcd"/>
  130. <col editable="false" ref="goodnm"/>
  131. <col editable="false" ref="goodengnm"/>
  132. <col editable="false" ref="useyn"/>
  133. <col ref="goodspec"/>
  134. <col ref="goodmodel"/>
  135. <col ref="deliveunit"/>
  136. <col ref="instcd" visibility="hidden"/>
  137. <script type="javascript" ev:event="onaftersort">
  138. <![CDATA[
  139. grd_rscdlist.gridToInstance();
  140. ]]>
  141. </script>
  142. <script type="javascript" ev:event="ondblclick">
  143. <![CDATA[
  144. if( grd_rscdlist.isCell(event.target) && grd_rscdlist.row >= grd_rscdlist.fixedRows )
  145. {
  146. btn_confirm.dispatch("DOMActivate");
  147. }
  148. ]]>
  149. </script>
  150. </datagrid>
  151. </group>
  152. <group id="group1" scroll="auto" style="left:0px; top:521px; width:780px; height:27px; ">
  153. <button id="btn_confirm" class="btn4_letter2" style="left:661px; top:2px; width:56px; height:22px; ">
  154. <caption>확인</caption>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. if(grd_rscdlist.rows - grd_rscdlist.fixedRows == 0)
  158. {
  159. messageBox("적용할 내역이","I004");
  160. window.close();
  161. return;
  162. }
  163. var iParam = model.getValue(grd_rscdlist.nodeset);
  164. var nodelist = instance1.selectNodes(grd_rscdlist.nodeset + "[chkyn='Y']");
  165. var rCVS = getNodeListCSV(nodelist);
  166. if ( checkOpener() ) {
  167. opener.javascript.setParameter("SPMNG02800_", rCVS);
  168. } else {
  169. var rtn = messageBox("상위화면을 찾을 수", "E001");
  170. }
  171. window.close();
  172. // misfPopUpListReturn(grd_deptlist);
  173. ]]>
  174. </script>
  175. </button>
  176. <button id="btn_cancel" class="btn4_letter2" style="left:720px; top:2px; width:56px; height:22px; ">
  177. <caption>취소</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. misfPopUpListCancel();
  181. ]]>
  182. </script>
  183. </button>
  184. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
  185. </group>
  186. </xhtml:body>
  187. </xhtml:html>