SMAGA01500_물품사용량관리.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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>물품사용량관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <ipgoinfo>
  11. <ipgolist>
  12. <goodcd/>
  13. <goodnm/>
  14. <goodspec/>
  15. <allsizespecidnm/>
  16. <goodmodel/>
  17. <deliveunit/>
  18. <prodcmpynm/>
  19. <custnm/>
  20. <prcpqty/>
  21. <prcpqty2/>
  22. <rtninqty/>
  23. <iodate/>
  24. <allsizespecid/>
  25. <suppdeptcd/>
  26. <custcd/>
  27. <iudgb/>
  28. <inflag/>
  29. <indate/>
  30. </ipgolist>
  31. </ipgoinfo>
  32. </main>
  33. <send>
  34. <iodate/>
  35. <custnm/>
  36. <prodcmpynm/>
  37. <goodcd/>
  38. <goodnm/>
  39. <totinqty/>
  40. <totrtninqty/>
  41. <globalinstance>
  42. <instance1/>
  43. </globalinstance>
  44. <req>
  45. <data/>
  46. </req>
  47. <openerid>SMAGA01500</openerid>
  48. </send>
  49. <init>
  50. <baseinfo>
  51. <intiunit/>
  52. </baseinfo>
  53. </init>
  54. <hidden>
  55. <item/>
  56. </hidden>
  57. <cmb_info>
  58. <dpcminfo>
  59. <dpcmcust>
  60. <custnm/>
  61. <perchgr/>
  62. <cntctel/>
  63. <faxno/>
  64. <mpphontel/>
  65. <email/>
  66. <auttrsmflag/>
  67. <custcd/>
  68. <suppdeptcd/>
  69. <instcd/>
  70. <trsmtrid/>
  71. <useyn/>
  72. </dpcmcust>
  73. </dpcminfo>
  74. </cmb_info>
  75. </root>
  76. </instance>
  77. <submission id="TRAGA01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ipgoinfo"/>
  78. <submission id="TXAGA01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  79. <script type="javascript" ev:event="xforms-ready">
  80. <![CDATA[
  81. aezfSetSuppDeptcd();
  82. zbcfGetCodeList( new Array("R0039"), new Array("/root/init/baseinfo/intiunit") );
  83. submit("TRAGA00101");
  84. model.setValue("/root/send/iodate", getCurrentDate());
  85. btn_sea.dispatch("DOMActivate");
  86. ]]>
  87. </script>
  88. <submission id="TRZBC00101"/>
  89. <submission id="TRAGA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/cmb_info/dpcminfo"/>
  90. <submission id="TXAGA01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  91. </model>
  92. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  95. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  96. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  97. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  98. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  99. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  101. </xhtml:head>
  102. <xhtml:body guideline="1,1195;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  103. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  104. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:67px; vertical-align:top; ">
  105. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  106. <line id="line13" class="line_4" style="x1:1102px; y1:7px; x2:1102px; y2:59px; "/>
  107. <button id="btn_sea" class="btn1_letter2" navindex="6" style="left:1120px; top:20px; width:56px; height:22px; ">
  108. <caption>조회</caption>
  109. <script type="javascript" ev:event="DOMActivate">
  110. <![CDATA[
  111. model.removeNodeset("/root/main/ipgoinfo/ipgolist");
  112. submit("TRAGA01501");
  113. var inqty = 0;
  114. var rtninqty = 0;
  115. for (var i = 1; i < datagrid1.rows; i++){
  116. inqty = parseFloat(inqty) + parseFloat(model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/prcpqty"));
  117. }
  118. model.setValue("/root/send/totinqty", inqty);
  119. model.refresh();
  120. ]]>
  121. </script>
  122. </button>
  123. <caption id="caption2" class="search_name" style="left:15px; top:12px; width:86px; height:17px; ">사용일자 :</caption>
  124. <input id="input1" ref="/root/send/iodate" navindex="1" inputtype="date" style="left:110px; top:11px; width:120px; height:19px; text-align:center; ">
  125. <script type="javascript" ev:event="xforms-value-changed">
  126. <![CDATA[
  127. btn_sea.dispatch("DOMActivate");
  128. ]]>
  129. </script>
  130. </input>
  131. <caption id="caption3" class="search_name" style="left:300px; top:12px; width:86px; height:17px; ">거래처명 :</caption>
  132. <caption id="caption4" class="search_name" style="left:600px; top:12px; width:99px; height:17px; ">제조회사명 :</caption>
  133. <input id="input3" ref="/root/send/prodcmpynm" navindex="3" style="left:710px; top:11px; width:145px; height:19px; "/>
  134. <caption id="caption1" class="search_name" style="left:15px; top:42px; width:86px; height:17px; ">물품코드 :</caption>
  135. <caption id="caption5" class="search_name" style="left:300px; top:42px; width:93px; height:17px; ">물 품 명 :</caption>
  136. <input id="input4" ref="/root/send/goodcd" navindex="4" style="left:110px; top:39px; width:120px; height:19px; "/>
  137. <input id="input5" ref="/root/send/goodnm" navindex="5" style="left:395px; top:39px; width:145px; height:19px; "/>
  138. <button id="button9" class="btn3_letter4" style="left:1000px; top:40px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  139. <caption>물품코드</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. modal("SPAGA05100", "", "200", "200", "popup", "", "");
  143. ]]>
  144. </script>
  145. </button>
  146. <caption id="caption7" style="left:605px; top:45px; width:65px; height:20px; ">총사용량 :</caption>
  147. <output id="output1" ref="/root/send/totinqty" format="#,###" style="left:665px; top:45px; width:75px; height:19px; text-align:center; "/>
  148. <select1 id="combo1" ref="/root/send/custnm" appearance="minimal" editmode="input" style="left:395px; top:11px; width:145px; height:19px; ">
  149. <choices>
  150. <itemset nodeset="/root/cmb_info/dpcminfo">
  151. <label ref="dpcmcust/custnm"/>
  152. <value ref="dpcmcust/custnm"/>
  153. </itemset>
  154. </choices>
  155. </select1>
  156. </group>
  157. <line id="line1" class="line_1" style="x1:3px; y1:79px; x2:1194px; y2:80px; "/>
  158. <datagrid id="datagrid1" nodeset="/root/main/ipgoinfo/ipgolist" caption="물품코드^물품명^규격^All Size^모델^단위^제조회사^거래처^사용량^처방사용량^반납량^사용일자^caption2^caption3^caption4^caption1^caption5^caption6" colsep="^" colwidth="92, 163, 122, 125, 105, 95, 132, 125, 74, 74, 79, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:3px; top:82px; width:1191px; height:660px; ">
  159. <col ref="goodcd" style="text-align:left; "/>
  160. <col ref="goodnm" style="text-align:left; "/>
  161. <col ref="goodspec" style="text-align:left; "/>
  162. <col ref="allsizespecidnm" style="text-align:left; "/>
  163. <col ref="goodmodel" style="text-align:left; "/>
  164. <col disabled="true" ref="deliveunit" type="combo" style="text-align:left; ">
  165. <choices>
  166. <itemset nodeset="/root/init/baseinfo/intiunit/R0039">
  167. <label ref="cdnm"/>
  168. <value ref="cdid"/>
  169. </itemset>
  170. </choices>
  171. </col>
  172. <col ref="prodcmpynm" style="text-align:left; "/>
  173. <col ref="custnm" style="text-align:left; "/>
  174. <col ref="prcpqty" type="input" format="999999" style="text-align:right; "/>
  175. <col ref="prcpqty2" format="999999" style="text-align:right; "/>
  176. <col ref="rtninqty" type="input" format="999999" style="text-align:right; "/>
  177. <col ref="iodate" visibility="hidden"/>
  178. <col ref="allsizespecid" visibility="hidden"/>
  179. <col ref="suppdeptcd" visibility="hidden"/>
  180. <col ref="custcd" visibility="hidden"/>
  181. <col ref="iudgb" visibility="hidden"/>
  182. <col ref="inflag"/>
  183. <col ref="indate"/>
  184. <script type="javascript" ev:event="xforms-value-changed">
  185. <![CDATA[
  186. ]]>
  187. </script>
  188. <script type="javascript" ev:event="onendedit">
  189. <![CDATA[
  190. /*
  191. var scol = datagrid1.col;
  192. if (datagrid1.colRef("inqty") == scol){
  193. var irow = datagrid1.row;
  194. datagrid1.row = irow;
  195. datagrid1.col = datagrid1.colRef("rtninqty");
  196. datagrid1.dispatch("onentercell");
  197. datagrid1.editCell();
  198. datagrid1.refresh();
  199. }else{
  200. var irow = datagrid1.row + 1;
  201. if (irow <= datagrid1.rows){
  202. datagrid1.row = irow;
  203. datagrid1.col = datagrid1.colRef("inqty");
  204. datagrid1.dispatch("onentercell");
  205. datagrid1.editCell();
  206. datagrid1.refresh();
  207. }
  208. }
  209. */
  210. ]]>
  211. </script>
  212. <script type="javascript" ev:event="onaftersort">
  213. <![CDATA[
  214. datagrid1.gridToInstance();
  215. ]]>
  216. </script>
  217. <script type="javascript" ev:event="onclick">
  218. <![CDATA[
  219. /*
  220. var irow = datagrid1.row;
  221. datagrid1.row = irow;
  222. var scol = datagrid1.col;
  223. if (datagrid1.colRef("inqty") == scol){
  224. datagrid1.col = datagrid1.colRef("inqty");
  225. }else if (datagrid1.colRef("rtninqty") == scol){
  226. datagrid1.col = datagrid1.colRef("rtninqty");
  227. }
  228. datagrid1.dispatch("onentercell");
  229. datagrid1.editCell();
  230. datagrid1.refresh();
  231. */
  232. ]]>
  233. </script>
  234. </datagrid>
  235. </group>
  236. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  237. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  238. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:4px; width:56px; height:22px; ">
  239. <caption>저장</caption>
  240. <script type="javascript" ev:event="DOMActivate">
  241. <![CDATA[
  242. if ( messageBox("","Q002")==6 ) {
  243. for (var i = 1; i < datagrid1.rows; i++){
  244. model.setValue("/root/main/ipgoinfo/ipgolist[" + i + "]/iodate", model.getValue("/root/send/iodate"));
  245. }
  246. datagrid1.refresh();
  247. var update = getGridUpdateData(datagrid1);
  248. if(update == ""){
  249. messageBox("업데이트 정보가 없습니다.", "I");
  250. return 0;
  251. } else {
  252. model.setValue("/root/send/req/data", update);
  253. if (submit("TXAGA01501")){
  254. if (submit("TXAGA01101")){
  255. btn_sea.dispatch("DOMActivate");
  256. }
  257. }
  258. }
  259. }
  260. ]]>
  261. </script>
  262. </button>
  263. </group>
  264. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  265. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:144px; height:14px; ">물품사용량관리</caption>
  266. </group>
  267. </xhtml:body>
  268. </xhtml:html>