SPRSP00200_구매품의조회.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>구매품의 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <purccnsttninfo>
  12. <purccnsttnlist/>
  13. </purccnsttninfo>
  14. <purccnsttnnoinfo>
  15. <maxpurccnsttnno>
  16. <purccnsttnno/>
  17. </maxpurccnsttnno>
  18. </purccnsttnnoinfo>
  19. </list>
  20. </main>
  21. <target/>
  22. <init>
  23. </init>
  24. <send>
  25. <search>
  26. <instcd/>
  27. <acntcd/>
  28. <purccnsttndd/>
  29. <purccnsttnno/>
  30. </search>
  31. <nosearch>
  32. <instcd/>
  33. <purccnsttndd/>
  34. </nosearch>
  35. </send>
  36. <temp/>
  37. </root>
  38. </instance>
  39. <script type="javascript">
  40. <![CDATA[
  41. function fInitialize()
  42. {
  43. // 금일 날자 설정
  44. var curdate = getCurrentDate();
  45. var cvtdate = curdate.toDate("YYYYMMDD");
  46. var csv_parainfo = opener.window.javascript.getParameter("SMRSP00100_parainfo");
  47. model.removenode("/root/main/list/purccnsttninfo/purccnsttnlist");
  48. model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); // 기관코드
  49. model.setValue(ipt_acntcd.attribute("ref") , csv_parainfo); // 계정코드
  50. model.setValue(cal_purccnsttndd.attribute("ref") , curdate); // 품의일자
  51. cal_purccnsttndd.dispatch("xforms-value-changed");
  52. btn_search.dispatch("DOMActivate");
  53. model.refresh();
  54. }
  55. ]]>
  56. </script>
  57. <script type="javascript" ev:event="xforms-ready">
  58. <![CDATA[
  59. fInitialize();
  60. ]]>
  61. </script>
  62. <submission id="TRRSK00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nosearch" resultref="/root/main/list/purccnsttnnoinfo"/>
  63. <submission id="TRRSP00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/purccnsttninfo"/>
  64. </model>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  71. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  72. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  73. </xhtml:head>
  74. <xhtml:body pagewidth="1100" pageheight="480" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  75. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:600px; height:14px; ">구매품의 조회</caption>
  76. <button id="btn_confirm" class="btn4_letter2" style="left:1015px; top:440px; width:56px; height:22px; ">
  77. <caption>닫기</caption>
  78. <script type="javascript" ev:event="DOMActivate">
  79. <![CDATA[
  80. model.close();
  81. ]]>
  82. </script>
  83. </button>
  84. <group id="grp_search" style="left:0px; top:22px; width:1080px; height:48px; vertical-align:top; ">
  85. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1075px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  86. <button id="btn_search" class="btn1_letter2" style="left:1005px; top:7px; width:56px; height:22px; ">
  87. <caption>조회</caption>
  88. <script type="javascript" ev:event="DOMActivate">
  89. <![CDATA[
  90. model.removeNodeset("/root/main/list/purccnsttninfo/purccnsttnlist");
  91. submit("TRRSP00201");
  92. ]]>
  93. </script>
  94. </button>
  95. <input id="cal_purccnsttndd" ref="/root/send/search/purccnsttndd" inputtype="date" style="left:101px; top:10px; width:105px; height:19px; ">
  96. <script type="javascript" ev:event="xforms-value-changed">
  97. <![CDATA[
  98. model.setValue("/root/send/nosearch/instcd" , model.getValue(ipt_instcd.attribute("ref")));
  99. model.setValue("/root/send/nosearch/purccnsttndd" , model.getValue(cal_purccnsttndd.attribute("ref")));
  100. if (submit("TRRSK00102")){
  101. var purccnsttnno = model.getValue("/root/main/list/purccnsttnnoinfo/maxpurccnsttnno/purccnsttnno");
  102. model.setValue(ipt_purccnsttnno.attribute("ref"), purccnsttnno);
  103. }
  104. model.setValue("/root/send/nosearch/instcd" , "");
  105. model.setValue("/root/send/nosearch/purccnsttndd" , "");
  106. model.setFocus("ipt_purccnsttnno");
  107. model.refresh();
  108. ]]>
  109. </script>
  110. </input>
  111. <caption id="caption20" class="search_name" style="left:10px; top:10px; width:96px; height:17px; vertical-align:middle; ">품의일자 :</caption>
  112. <input id="ipt_purccnsttnno" ref="/root/send/search/purccnsttnno" class="input_default" style="left:215px; top:10px; width:75px; height:19px; text-align:center; ">
  113. <script type="javascript" ev:event="onkeyup">
  114. <![CDATA[
  115. inputEnterKey("btn_search", "DOMActivate");
  116. ]]>
  117. </script>
  118. </input>
  119. <input id="ipt_instcd" ref="/root/send/search/instcd" class="input_default" disabled="true" visibility="hidden" style="left:315px; top:10px; width:75px; height:19px; text-align:center; "/>
  120. <input id="ipt_acntcd" ref="/root/send/search/acntcd" class="input_default" disabled="true" visibility="hidden" style="left:405px; top:10px; width:75px; height:19px; text-align:center; "/>
  121. </group>
  122. <caption id="caption4" class="tit_2" style="left:10px; top:79px; width:131px; height:13px; ">구매품의 내역</caption>
  123. <line id="line2" class="line_1" style="x1:5px; y1:99px; x2:1080px; y2:99px; "/>
  124. <button id="button1" class="btn4_letter2" style="left:950px; top:440px; width:56px; height:22px; ">
  125. <caption>적용</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. var iParam = model.getValue(grd_ccnsttninfo.nodeset);
  129. var nodelist = instance1.selectNodes(grd_ccnsttninfo.nodeset);
  130. var rCVS = getNodeListCSV(nodelist);
  131. if ( checkOpener() ) {
  132. opener.javascript.setParameter("SMRSD00400_", rCVS);
  133. } else {
  134. var rtn = messageBox("상위화면을 찾을 수", "E001");
  135. }
  136. model.close();
  137. ]]>
  138. </script>
  139. </button>
  140. <datagrid id="grd_ccnsttninfo" nodeset="/root/main/list/purccnsttninfo/purccnsttnlist" caption="순번^품명코드/명칭^품명코드/명칭^품명코드/명칭^규격^단위^품의량^계약량^품의단가^계약단가^계약금액^계약NO^계약NO^품의요구일자/NO^품의요구일자/NO^계정과목코드^계정과목^계약Key^계약일련번호^요구포장단위당갯수^구매단위(FULL)^기관코드^물품구분^구매요구부서^거래처코드^거래처명" colsep="^" colwidth="54, 84, 26, 139, 167, 50, 63, 61, 80, 80, 99, 84, 56, 86, 58, 37, 80, 118, 32, 31, 29, 27, 28, 35, 30, 30" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="24" rowsep="|" style="left:5px; top:105px; width:1075px; height:320px; font-weight:normal; text-align:center; ">
  141. <col ref="purccnsttnseq" type="output" _key="true" style="text-align:center; "/>
  142. <col ref="goodcd" type="output" _key="true" style="text-align:center; "/>
  143. <col ref="allsizespecid" type="output" _key="true" style="text-align:center; "/>
  144. <col ref="goodnm" type="output" style="text-align:left; padding-left:10; "/>
  145. <col ref="goodspec" type="output" style="text-align:left; padding-left:10; "/>
  146. <col ref="cnsttnunit" type="output" style="text-align:left; padding-left:10; "/>
  147. <col ref="cnsttnqty" format="#,###" style="text-align:right; "/>
  148. <col ref="conqty" type="input" format="#,###" style="text-align:right; "/>
  149. <col ref="cnsttngoodunitcost" format="#,###" style="text-align:right; "/>
  150. <col ref="congoodunitcost" type="input" format="#,###" style="text-align:right; "/>
  151. <col ref="conamt" format="#,###" style="text-align:right; "/>
  152. <col ref="purccondd" type="output" format="yyyy-mm-dd" _key="true" style="text-align:center; "/>
  153. <col ref="purcconno" type="output" _key="true" style="text-align:center; "/>
  154. <col ref="purccnsttndd" type="output" format="yyyy-mm-dd" _key="true" style="text-align:center; "/>
  155. <col ref="purccnsttnno" type="output" _key="true" style="text-align:center; "/>
  156. <col ref="acntcd" visibility="hidden" style="text-align:center; "/>
  157. <col ref="acntnm" type="output" style="text-align:left; padding-left:10; "/>
  158. <col ref="purcconfullno" type="output" _key="true" style="text-align:center; "/>
  159. <col ref="purcconseq" visibility="hidden" style="text-align:center; "/>
  160. <col ref="reqpackcntperunit" visibility="hidden" style="text-align:center; "/>
  161. <col ref="fullpurcunit" visibility="hidden" style="text-align:center; "/>
  162. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  163. <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
  164. <col ref="reqdeptcd" visibility="hidden" style="text-align:center; "/>
  165. <col ref="suplplcecd" visibility="hidden"/>
  166. <col ref="suplplcenm" visibility="hidden"/>
  167. <script type="javascript" ev:event="xforms-value-changed">
  168. <![CDATA[
  169. if( grd_ccnsttninfo.col == grd_ccnsttninfo.colRef("conqty")
  170. || grd_ccnsttninfo.col == grd_ccnsttninfo.colRef("congoodunitcost")){
  171. grd_ccnsttninfo.valueMatrix(grd_ccnsttninfo.row, grd_ccnsttninfo.colRef("conamt")) = parseFloat(grd_ccnsttninfo.valueMatrix(grd_ccnsttninfo.row, grd_ccnsttninfo.colRef("conqty"))) * parseFloat(grd_ccnsttninfo.valueMatrix(grd_ccnsttninfo.row, grd_ccnsttninfo.colRef("congoodunitcost")));
  172. }
  173. ]]>
  174. </script>
  175. </datagrid>
  176. </xhtml:body>
  177. </xhtml:html>