SPMNG02801_린넨물품(린넨)조회HELP.xrw 7.1 KB

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