SMPIC90200_물품조회(행위재료).xrw 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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. <!--2010.03.24 황신희 작성 -->
  6. <xhtml:title>물품조회(행위재료)</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <hidden>
  11. <rscdgood>
  12. <rscdgoodlist/>
  13. </rscdgood>
  14. <goodlist/>
  15. </hidden>
  16. <subsend>
  17. <rscdgoodlist>
  18. <instcd/>
  19. <goodflag/>
  20. <goodcd/>
  21. <goodnm/>
  22. <allsizespecid/>
  23. <actcd/>
  24. <goodcd/>
  25. <goodnm2/>
  26. <basedd/>
  27. </rscdgoodlist>
  28. <saverscdgood>
  29. <savegoodlist/>
  30. </saverscdgood>
  31. </subsend>
  32. <init>
  33. <init_instcd/>
  34. <init_goodflag/>
  35. </init>
  36. <template>
  37. <resdata>
  38. <actdata/>
  39. </resdata>
  40. </template>
  41. </root>
  42. </instance>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. model.setValue("/root/subsend/rscdgoodlist/instcd" ,getUserInfo("dutplceinstcd"));
  46. ]]>
  47. </script>
  48. <submission id="TRPIC90001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/subsend/rscdgoodlist" resultref="/root/hidden/rscdgood"/>
  49. <submission id="TRPIC90002" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send/reslist" resultref="/root/template/resdata"/>
  50. </model>
  51. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/SPZUR00100.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  56. <script type="javascript" src="../../../pam/actmatrweb/js/SMPIC90000.js"/>
  57. <script type="javascript">
  58. <![CDATA[
  59. function fItemAllChoice( vFlag ) {
  60. if( fGridItemCheck()!=true ) return;
  61. for( cnt = grd_gresult.fixedRows; cnt < grd_gresult.rows ; cnt++ ) {
  62. grd_gresult.valueMatrix( cnt, grd_gresult.colRef("select")) = vFlag;
  63. if (grd_gresult.valueMatrix( cnt, grd_gresult.colRef("select")) == "Y"){
  64. grd_gresult.rowStatus(cnt) = "2";
  65. }else{
  66. grd_gresult.rowStatus(cnt) = "0";
  67. }
  68. }
  69. }
  70. function fActcdSearch(actcd, hngnm) {
  71. // 싱글수가를 개별로 조회할 수 없도록 처리 by 조중래 20170530
  72. // var goodcd = model.getValue(ipt_goodcd.attribute("ref"));
  73. // var goodnm = model.getValue(ipt_goodnm.attribute("ref"));
  74. //
  75. // if(goodcd == "" && goodnm == "") {
  76. if (!isNull(actcd)) {
  77. model.setValue("/root/subsend/rscdgoodlist/actcd", actcd);
  78. model.setValue("/root/subsend/rscdgoodlist/goodnm2", hngnm);
  79. fSmGridInit(grd_gresult);
  80. if(submit("TRPIC90001",false)) {
  81. model.refresh();
  82. }
  83. }
  84. //model.setValue("/root/subsend/rscdgoodlist/actcd","");
  85. // }
  86. }
  87. ]]>
  88. </script>
  89. </xhtml:head>
  90. <xhtml:body pagewidth="1172" pageheight="250">
  91. <input id="ipt_instcd" ref="/root/subsend/rscdgoodlist/instcd" visibility="hidden" style="left:1095px; top:5px; width:45px; height:19px; "/>
  92. <select1 id="cmb_goodflag" ref="/root/subsend/rscdgoodlist/goodflag" visibility="hidden" appearance="minimal" style="left:1043px; top:5px; width:47px; height:19px; ">
  93. <choices>
  94. <itemset nodeset="/root/init/init_goodflag">
  95. <label ref="cdid"/>
  96. <value ref="cdnm"/>
  97. </itemset>
  98. </choices>
  99. </select1>
  100. <input id="ipt_allsizespecid" ref="/root/subsend/rscdgoodlist/allsizespecid" visibility="hidden" style="left:1145px; top:5px; width:20px; height:19px; "/>
  101. <caption id="caption1" class="tit_2" style="left:5px; top:8px; width:190px; height:15px; ">그룹수가 내 싱글수가 조회</caption>
  102. <line id="line1" class="line_1" x0="0px" style="x1:0px; y1:34px; x2:1170px; y2:34px; "/>
  103. <datagrid id="grd_gresult" nodeset="/root/hidden/rscdgood/rscdgoodlist" caption="선택^기관코드^물품구분^물품코드^물품코드^물품명^규격^단가^수량^모델^EDICD^수불단위^주거래처명^주거래처명^보조거래처명^보조거래처명" colsep="^" colwidth="36, 19, 17, 93, 29, 188, 146, 96, 45, 106, 100, 68, 12, 131, 14, 111" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:40px; width:1170px; height:210px; ">
  104. <col checkvalue="Y,N" ref="select" type="checkbox"/>
  105. <col ref="instcd" type="output" visibility="hidden" style="text-align:center; "/>
  106. <col ref="goodflag" type="output" visibility="hidden"/>
  107. <col ref="goodcd" type="output" style="text-align:center; "/>
  108. <col ref="allsizespecid" type="output" style="text-align:center; "/>
  109. <col ref="goodnm" type="output" style="text-align:left; padding-left:5; "/>
  110. <col ref="goodspec" type="output" style="text-align:left; padding-left:5; "/>
  111. <col ref="goodunitcost" type="output" format="#,###" style="text-align:right; padding-right:5; "/>
  112. <col ref="drugqty" type="output" format="#,###.##" style="text-align:right; padding-right:5; "/>
  113. <col ref="goodmodel" type="output" style="text-align:left; padding-left:5; "/>
  114. <col ref="edicd" type="output" style="text-align:center; "/>
  115. <col ref="deliveunit" type="output" style="text-align:center; "/>
  116. <col ref="maincustlastsuplplce" type="output" visibility="hidden"/>
  117. <col ref="maincustlastsuplplcenm" type="output" style="text-align:left; padding-left:5; "/>
  118. <col ref="suppcustcd" type="output" visibility="hidden"/>
  119. <col ref="suppcustnm" type="output" style="text-align:left; padding-left:5; "/>
  120. <script type="javascript" ev:event="xforms-value-changed">
  121. <![CDATA[
  122. if(grd_gresult.col == grd_gresult.colRef("select"))
  123. {
  124. if(model.getValue(grd_gresult.nodeset + "[" + (grd_gresult.row - grd_gresult.fixedRows +1)+"]/select") == "Y")
  125. {
  126. btn_goodinsert.dispatch("DOMActivate");
  127. }
  128. }
  129. ]]>
  130. </script>
  131. </datagrid>
  132. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:190px; top:1px; width:980px; height:30px; "/>
  133. <button id="btn_goodinsert" class="btn2_letter2" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1115px; top:6px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  134. <caption>추가</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. var acode = grd_synomcode.valueMatrix(grd_synomcode.rows - grd_synomcode.fixedRows , grd_synomcode.colRef("actcd"));
  138. if(acode == ""){
  139. fsetting();
  140. }
  141. ]]>
  142. </script>
  143. </button>
  144. <button id="btn_goodsearch" class="btn1_letter2" style="left:1045px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  145. <caption>조회</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. // 싱글수가를 개별로 조회할 수 없도록 처리 by 조중래 20170530
  149. // var goodcd = model.getValue(ipt_goodcd.attribute("ref"));
  150. // var goodnm = model.getValue(ipt_goodnm.attribute("ref"));
  151. // if(goodcd == "" && goodnm == "") {
  152. // messageBox("조회 정보를", "C001");
  153. // return;
  154. // }
  155. var spath = "/root/hidden/rscdgood/rscdgoodlist/";
  156. var rpath = "/root/subsend/rscdgoodlist/"
  157. fSmGridInit(grd_gresult);
  158. //model.makeValue(spath+"goodcd", goodcd);
  159. //model.makeValue(spath+"goodnm", goodnm);
  160. if(submit("TRPIC90001",false)) {
  161. grd_gresult.refresh();
  162. }
  163. ]]>
  164. </script>
  165. </button>
  166. <caption id="caption2" class="search_name" style="left:202px; top:7px; width:113px; height:17px; ">그룹수가코드 :</caption>
  167. <button id="btn_subsearch01" class="icon_search" visibility="hidden" style="left:432px; top:8px; width:16px; height:16px; ">
  168. <caption/>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. fSmGridInit(grd_gresult);
  172. fSmOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210");
  173. ipt_goodcd.refresh();
  174. ipt_goodnm.refresh();
  175. ]]>
  176. </script>
  177. </button>
  178. <input id="ipt_goodcd" ref="/root/subsend/rscdgoodlist/goodcd" class="input_essential" _chartype="upper" style="left:315px; top:7px; width:115px; height:19px; ">
  179. <script type="javascript" ev:event="onkeyup">
  180. <![CDATA[
  181. inputEnterKey("btn_goodsearch", "DOMActivate");
  182. ]]>
  183. </script>
  184. </input>
  185. <input id="ipt_goodnm" ref="/root/subsend/rscdgoodlist/goodnm2" disabled="true" visibility="visible" editable="true" style="left:595px; top:7px; width:425px; height:19px; text-align:left; padding-left:5; ">
  186. <script type="javascript" ev:event="onkeyup">
  187. <![CDATA[
  188. inputEnterKey("btn_goodsearch", "DOMActivate");
  189. ]]>
  190. </script>
  191. </input>
  192. <line id="line2" class="line_4" style="x1:1033px; y1:8px; x2:1033px; y2:26px; "/>
  193. <datagrid id="grd_synomcode" nodeset="/root/template/resdata/actdata" visibility="hidden" caption="actcd" colsep="^" colwidth="67" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1055px; top:185px; width:80px; height:52px; ">
  194. <col ref="actcd"/>
  195. </datagrid>
  196. <caption id="caption5" class="search_name" visibility="visible" style="left:460px; top:6px; width:135px; height:17px; ">그룹수가명(한글) :</caption>
  197. <input id="input1" ref="/root/subsend/rscdgoodlist/actcd" disabled="true" visibility="visible" editable="true" _chartype="upper" style="left:315px; top:7px; width:135px; height:19px; text-align:left; padding-left:5; "/>
  198. <input id="input2" ref="/root/subsend/rscdgoodlist/basedd" visibility="hidden" style="left:1060px; top:160px; width:100px; height:19px; "/>
  199. </xhtml:body>
  200. </xhtml:html>