SMAGR03100_물품입고내역.xrw 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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. <inqty/>
  21. <rtninqty/>
  22. <outqty/>
  23. <sendqty/>
  24. </ipgolist>
  25. </ipgoinfo>
  26. </main>
  27. <send>
  28. <iodate/>
  29. <custnm/>
  30. <prodcmpynm/>
  31. <goodcd/>
  32. <goodnm/>
  33. <totinqty/>
  34. <totrtninqty/>
  35. <totoutqty/>
  36. <prcpdd/>
  37. <globalinstance>
  38. <instance1/>
  39. </globalinstance>
  40. <req>
  41. <data/>
  42. </req>
  43. </send>
  44. <init>
  45. <baseinfo>
  46. <intiunit/>
  47. </baseinfo>
  48. </init>
  49. <hidden>
  50. <item/>
  51. </hidden>
  52. <cmb_info>
  53. <dpcminfo>
  54. <dpcmcust>
  55. <custnm/>
  56. <perchgr/>
  57. <cntctel/>
  58. <faxno/>
  59. <mpphontel/>
  60. <email/>
  61. <auttrsmflag/>
  62. <custcd/>
  63. <suppdeptcd/>
  64. <instcd/>
  65. <trsmtrid/>
  66. <useyn/>
  67. </dpcmcust>
  68. </dpcminfo>
  69. </cmb_info>
  70. </root>
  71. </instance>
  72. <submission id="TRAGR03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ipgoinfo"/>
  73. <script type="javascript" ev:event="xforms-ready">
  74. <![CDATA[
  75. aezfSetSuppDeptcd();
  76. zbcfGetCodeList( new Array("R0039"), new Array("/root/init/baseinfo/intiunit") );
  77. submit("TRAGA00101");
  78. model.setValue("/root/send/iodate", getCurrentDate());
  79. model.setValue("/root/send/prcpdd", getCurrentDate());
  80. btn_sea.dispatch("DOMActivate");
  81. ]]>
  82. </script>
  83. <submission id="TRZBC00101"/>
  84. <submission id="TRAGA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/cmb_info/dpcminfo"/>
  85. </model>
  86. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  89. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  90. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  91. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  92. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  93. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  95. </xhtml:head>
  96. <xhtml:body guideline="1,1195;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  97. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  98. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:67px; vertical-align:top; ">
  99. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  100. <line id="line13" class="line_4" style="x1:1102px; y1:7px; x2:1102px; y2:59px; "/>
  101. <button id="btn_sea" class="btn1_letter2" navindex="6" style="left:1120px; top:20px; width:56px; height:22px; ">
  102. <caption>조회</caption>
  103. <script type="javascript" ev:event="DOMActivate">
  104. <![CDATA[
  105. model.removeNodeset("/root/main/ipgoinfo/ipgolist");
  106. submit("TRAGR03101");
  107. var inqty = 0;
  108. var rtninqty = 0;
  109. var outqty = 0;
  110. for (var i = 1; i < datagrid1.rows; i++){
  111. inqty = parseFloat(inqty) + parseFloat(model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/inqty"));
  112. rtninqty = parseFloat(rtninqty) + parseFloat(model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/rtninqty"));
  113. outqty = parseFloat(outqty) + parseFloat(model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/outqty"));
  114. }
  115. model.setValue("/root/send/totinqty", inqty);
  116. model.setValue("/root/send/totrtninqty", rtninqty);
  117. model.setValue("/root/send/totoutqty", outqty);
  118. model.refresh();
  119. ]]>
  120. </script>
  121. </button>
  122. <caption id="caption2" class="search_name" style="left:15px; top:12px; width:86px; height:17px; ">입고일자 :</caption>
  123. <input id="input1" ref="/root/send/iodate" navindex="1" inputtype="date" style="left:110px; top:11px; width:120px; height:19px; text-align:center; "/>
  124. <caption id="caption3" class="search_name" style="left:485px; top:12px; width:86px; height:17px; ">거래처명 :</caption>
  125. <caption id="caption4" class="search_name" style="left:745px; top:12px; width:99px; height:17px; ">제조회사명 :</caption>
  126. <input id="input3" ref="/root/send/prodcmpynm" navindex="3" style="left:855px; top:11px; width:145px; height:19px; "/>
  127. <caption id="caption1" class="search_name" style="left:15px; top:42px; width:86px; height:17px; ">물품코드 :</caption>
  128. <caption id="caption5" class="search_name" style="left:250px; top:42px; width:93px; height:17px; ">물 품 명 :</caption>
  129. <input id="input4" ref="/root/send/goodcd" navindex="4" style="left:110px; top:39px; width:120px; height:19px; "/>
  130. <input id="input5" ref="/root/send/goodnm" navindex="5" style="left:345px; top:39px; width:120px; height:19px; "/>
  131. <caption id="caption7" style="left:580px; top:45px; width:65px; height:20px; ">총입고량 :</caption>
  132. <output id="output1" ref="/root/send/totinqty" format="#,###" style="left:645px; top:45px; width:75px; height:19px; text-align:center; "/>
  133. <input id="input6" ref="/root/send/prcpdd" navindex="1" inputtype="date" style="left:260px; top:11px; width:120px; height:19px; text-align:center; "/>
  134. <caption id="caption8" style="left:235px; top:13px; width:20px; height:20px; text-align:center; ">~</caption>
  135. <button id="btn_excel" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1016px; top:45px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  136. <caption>엑셀저장</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. var file = window.fileDialog("save","","true","","xls","Excel Files(*.xls)|*.xls");
  140. if(file == "") return;
  141. datagrid1.saveExcel(file, "sheet1");
  142. ]]>
  143. </script>
  144. </button>
  145. <caption id="caption9" style="left:725px; top:45px; width:65px; height:20px; ">총반납량 :</caption>
  146. <output id="output2" ref="/root/send/totrtninqty" format="#,###" style="left:790px; top:45px; width:75px; height:19px; text-align:center; "/>
  147. <caption id="caption10" style="left:870px; top:45px; width:65px; height:20px; ">총사용량 :</caption>
  148. <output id="output3" ref="/root/send/totoutqty" format="#,###" style="left:935px; top:45px; width:75px; height:19px; text-align:center; "/>
  149. <select1 id="combo1" ref="/root/send/custnm" appearance="minimal" editmode="input" style="left:585px; top:11px; width:145px; height:19px; ">
  150. <choices>
  151. <itemset nodeset="/root/cmb_info/dpcminfo">
  152. <label ref="dpcmcust/custnm"/>
  153. <value ref="dpcmcust/custnm"/>
  154. </itemset>
  155. </choices>
  156. </select1>
  157. </group>
  158. <line id="line1" class="line_1" style="x1:3px; y1:79px; x2:1194px; y2:80px; "/>
  159. <datagrid id="datagrid1" nodeset="/root/main/ipgoinfo/ipgolist" caption="물품코드^물품명^규격^All Size^모델^단위^제조회사^거래처^입고량^반납량^사용량^전송량" colsep="^" colwidth="83, 212, 107, 101, 87, 75, 123, 99, 72, 69, 67, 75" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:3px; top:82px; width:1191px; height:660px; ">
  160. <col ref="goodcd" style="text-align:left; "/>
  161. <col ref="goodnm" style="text-align:left; "/>
  162. <col ref="goodspec" style="text-align:left; "/>
  163. <col ref="allsizespecidnm" style="text-align:left; "/>
  164. <col ref="goodmodel" style="text-align:left; "/>
  165. <col disabled="true" ref="deliveunit" type="combo" style="text-align:left; ">
  166. <choices>
  167. <itemset nodeset="/root/init/baseinfo/intiunit/R0039">
  168. <label ref="cdnm"/>
  169. <value ref="cdid"/>
  170. </itemset>
  171. </choices>
  172. </col>
  173. <col ref="prodcmpynm" style="text-align:left; "/>
  174. <col ref="custnm" style="text-align:left; "/>
  175. <col ref="inqty" format="999999" style="text-align:right; "/>
  176. <col ref="rtninqty" format="999999" style="text-align:right; "/>
  177. <col ref="outqty" format="#,###" style="text-align:right; "/>
  178. <col ref="sendqty" format="#,###" style="text-align:right; "/>
  179. <script type="javascript" ev:event="xforms-value-changed">
  180. <![CDATA[
  181. ]]>
  182. </script>
  183. <script type="javascript" ev:event="onendedit">
  184. <![CDATA[
  185. var scol = datagrid1.col;
  186. if (datagrid1.colRef("inqty") == scol){
  187. var irow = datagrid1.row + 1;
  188. if (irow <= datagrid1.rows){
  189. datagrid1.row = irow;
  190. datagrid1.col = datagrid1.colRef("inqty");
  191. datagrid1.dispatch("onentercell");
  192. datagrid1.editCell();
  193. datagrid1.refresh();
  194. }
  195. }
  196. ]]>
  197. </script>
  198. <script type="javascript" ev:event="onaftersort">
  199. <![CDATA[
  200. datagrid1.gridToInstance();
  201. ]]>
  202. </script>
  203. </datagrid>
  204. </group>
  205. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  206. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  207. </group>
  208. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  209. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:310px; height:13px; ">물품입고내역조회(처방/사용량/추가전송/반납)</caption>
  210. </group>
  211. </xhtml:body>
  212. </xhtml:html>