SPMNG02301_부서별보유물품(린넨)조회HELP.xrw 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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. <lnsflist>
  11. <chkyn/>
  12. </lnsflist>
  13. </main>
  14. <init>
  15. </init>
  16. <send>
  17. <reqdata>
  18. <goodcd/>
  19. <srchflag/>
  20. <deptcd/>
  21. </reqdata>
  22. </send>
  23. </root>
  24. </instance>
  25. <script type="javascript" ev:event="xforms-ready">
  26. <![CDATA[
  27. var deptcd = opener.javascript.getParameter("deptcd");
  28. model.setValue("/root/send/reqdata/deptcd", deptcd);
  29. grd_lnsflist.fixedcellcheckbox(0,grd_lnsflist.colRef("chkyn")) = true;
  30. btn_search.dispatch("DOMActivate");
  31. ]]>
  32. </script>
  33. <submission id="TRMNG02304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/lnsflist"/>
  34. </model>
  35. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  37. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  38. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  39. </xhtml:head>
  40. <xhtml:body pagewidth="810" pageheight="560" guideline="1,804;2,552;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  41. <group id="group3" scroll="auto" style="left:0px; top:0px; width:785px; height:520px; ">
  42. <group id="group2" style="left:0px; top:0px; width:780px; height:30px; ">
  43. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:780px; height:29px; "/>
  44. <button id="btn_search" class="btn1_letter2" style="left:719px; top:4px; width:56px; height:22px; ">
  45. <caption>조회</caption>
  46. <script type="javascript" ev:event="DOMActivate">
  47. <![CDATA[
  48. if (ipt_good.value != null && ipt_good.value != "") {
  49. if (radio1.value == null || radio1.value == "") {
  50. alert("조회조건을 선택하세요");
  51. return;
  52. }
  53. }
  54. submit("TRMNG02304");
  55. ]]>
  56. </script>
  57. </button>
  58. <line id="line13" class="line_4" style="x1:715px; y1:0px; x2:715px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  59. <caption id="caption2" class="search_name" style="left:10px; top:6px; width:86px; height:17px; ">조회조건:</caption>
  60. <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; ">
  61. <choices>
  62. <item>
  63. <label>물품코드</label>
  64. <value>C</value>
  65. </item>
  66. <item>
  67. <label>물품명</label>
  68. <value>N</value>
  69. </item>
  70. </choices>
  71. </select1>
  72. <input id="ipt_good" ref="/root/send/reqdata/goodcd" class="input_search" style="left:235px; top:5px; width:155px; height:19px; "/>
  73. </group>
  74. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:131px; height:14px; ">린넨 물품리스트</caption>
  75. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:780px; y2:60px; "/>
  76. <datagrid id="grd_lnsflist" nodeset="/root/main/lnsflist" caption="^물품코드^상세코드^린넨품명^규격^상세규격^불출단위^안전재고^실재고^existyn" colsep="^" colwidth="20, 100, 75, 160, 60, 80, 80, 70, 70, 100, 100" dataheight="23" defaultrows="0" explorerbar="sort" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:65px; width:780px; height:450px; ">
  77. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  78. <col editable="false" ref="goodcd"/>
  79. <col editable="false" ref="goodcdseq"/>
  80. <col editable="false" ref="lngoodnm"/>
  81. <col ref="goodspec"/>
  82. <col ref="goodmodel"/>
  83. <col ref="goodunit"/>
  84. <col ref="lnsfcnt"/>
  85. <col ref="lnrlcnt" visibility="hidden"/>
  86. <col ref="existyn" visibility="hidden"/>
  87. <col ref="deptcd" visibility="hidden"/>
  88. <script type="javascript" ev:event="onaftersort">
  89. <![CDATA[
  90. grd_lnsflist.gridToInstance();
  91. ]]>
  92. </script>
  93. <script type="javascript" ev:event="ondblclick">
  94. <![CDATA[
  95. if( grd_lnsflist.isCell(event.target) && grd_lnsflist.row >= grd_lnsflist.fixedRows )
  96. {
  97. btn_confirm.dispatch("DOMActivate");
  98. }
  99. ]]>
  100. </script>
  101. </datagrid>
  102. </group>
  103. <group id="group1" scroll="auto" style="left:0px; top:521px; width:780px; height:27px; ">
  104. <button id="btn_confirm" class="btn4_letter2" style="left:661px; top:2px; width:56px; height:22px; ">
  105. <caption>확인</caption>
  106. <script type="javascript" ev:event="DOMActivate">
  107. <![CDATA[
  108. if(grd_lnsflist.rows - grd_lnsflist.fixedRows == 0)
  109. {
  110. messageBox("적용할 내역이","I004");
  111. window.close();
  112. return;
  113. }
  114. var node = instance1.selectNodes(grd_lnsflist.nodeset + "[chkyn='Y' and existyn='Y']");
  115. if(node.length > 0) {
  116. var goodnm = model.getValue(grd_lnsflist.nodeset + "[chkyn='Y' and existyn='Y']/lngoodnm");
  117. var goodmodel = model.getValue(grd_lnsflist.nodeset + "[chkyn='Y' and existyn='Y']/goodmodel");
  118. messageBox("현재 안전재고변경 요청 중인" + "(" + goodnm + " " +goodmodel + " " + ")" + "물품은 청구하실수 없습니다.", "E");
  119. return;
  120. }
  121. var iParam = model.getValue(grd_lnsflist.nodeset);
  122. var nodelist = instance1.selectNodes(grd_lnsflist.nodeset + "[chkyn='Y']");
  123. var rCVS = getNodeListCSV(nodelist);
  124. if ( checkOpener() ) {
  125. opener.javascript.setParameter("SPMNG02301_", rCVS);
  126. } else {
  127. var rtn = messageBox("상위화면을 찾을 수", "E001");
  128. }
  129. window.close();
  130. ]]>
  131. </script>
  132. </button>
  133. <button id="btn_cancel" class="btn4_letter2" style="left:720px; top:2px; width:56px; height:22px; ">
  134. <caption>취소</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. misfPopUpListCancel();
  138. ]]>
  139. </script>
  140. </button>
  141. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
  142. </group>
  143. </xhtml:body>
  144. </xhtml:html>