SMAEQ01000_일계표(핵의학).xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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. <daysumrept/>
  11. <detail>
  12. <wlnlist/>
  13. <delivelist/>
  14. <mngtlist/>
  15. </detail>
  16. </main>
  17. <send>
  18. <srchdd/>
  19. <tempym/>
  20. <srchbdioflag/>
  21. <srchym/>
  22. <globalinstance>
  23. <instance1/>
  24. </globalinstance>
  25. <wlnlist/>
  26. <delivelist/>
  27. <mngtlist/>
  28. <srchitemcd/>
  29. <srchflag/>
  30. </send>
  31. <tmp>
  32. <tmpym/>
  33. <qty/>
  34. </tmp>
  35. </root>
  36. </instance>
  37. <submission id="TRAEQ01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/daysumrept"/>
  38. <submission id="TRAEQ01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detail"/>
  39. <submission id="TXAEQ01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. aezfSetSuppDeptcd();
  43. model.setValue("/root/send/srchflag","A");
  44. model.setValue("/root/send/srchbdioflag","I");
  45. model.setValue("/root/send/srchym", (new Date()).getDateFormat("YYYYMM"));
  46. model.refresh();
  47. ]]>
  48. </script>
  49. </model>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  53. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  54. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  56. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  57. </xhtml:head>
  58. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  59. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  60. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">일계표</caption>
  61. </group>
  62. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  63. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  64. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  65. <line id="line1" style="x1:1115px; y1:9px; x2:1115px; y2:24px; border-color:#ffe4bb; border-left-style:solid; "/>
  66. <input id="input3" ref="/root/send/srchym" class="input_default" inputtype="date" format="yyyy-mm" style="left:100px; top:8px; width:90px; height:19px; "/>
  67. <caption id="caption11" class="search_name" style="left:10px; top:8px; width:86px; height:17px; text-align:left; ">기준월 :</caption>
  68. <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:5px; width:56px; height:22px; ">
  69. <caption>조회</caption>
  70. <script type="javascript" ev:event="DOMActivate">
  71. <![CDATA[
  72. model.setValue("/root/tmp/tmpym", model.getValue("/root/send/srchym"));
  73. submit("TRAEQ01001");
  74. ]]>
  75. </script>
  76. </button>
  77. </group>
  78. <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  79. <datagrid id="grd_list" nodeset="/root/main/daysumrept/daysumreptlist" allowbigselection="false" allowselection="false" caption="품명^규격^구분^이월^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^합계" colsep="^" colwidth="130,80,80,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50" fixedcols="3" mergecellsfixedcols="bycol" rowsep="|" selectionmode="free" style="left:0px; top:75px; width:1195px; height:405px; ">
  80. <col ref="itemnm" style="text-align:center; "/>
  81. <col ref="specnm" style="text-align:center; "/>
  82. <col ref="ioflag" style="left:210px; top:23px; width:80px; height:23px; text-align:center; "/>
  83. <col ref="d00" style="text-align:right; "/>
  84. <col ref="d01" style="text-align:right; "/>
  85. <col ref="d02" style="text-align:right; "/>
  86. <col ref="d03" style="text-align:right; "/>
  87. <col ref="d04" style="text-align:right; "/>
  88. <col ref="d05" style="text-align:right; "/>
  89. <col ref="d06" style="text-align:right; "/>
  90. <col ref="d07" style="text-align:right; "/>
  91. <col ref="d08" style="text-align:right; "/>
  92. <col ref="d09" style="text-align:right; "/>
  93. <col ref="d10" style="text-align:right; "/>
  94. <col ref="d11" style="text-align:right; "/>
  95. <col ref="d12" style="text-align:right; "/>
  96. <col ref="d13" style="text-align:right; "/>
  97. <col ref="d14" style="text-align:right; "/>
  98. <col ref="d15" style="text-align:right; "/>
  99. <col ref="d16" style="text-align:right; "/>
  100. <col ref="d17" style="text-align:right; "/>
  101. <col ref="d18" style="text-align:right; "/>
  102. <col ref="d19" style="text-align:right; "/>
  103. <col ref="d20" style="text-align:right; "/>
  104. <col ref="d21" style="text-align:right; "/>
  105. <col ref="d22" style="text-align:right; "/>
  106. <col ref="d23" style="text-align:right; "/>
  107. <col ref="d24" style="text-align:right; "/>
  108. <col ref="d25" style="text-align:right; "/>
  109. <col ref="d26" style="text-align:right; "/>
  110. <col ref="d27" style="text-align:right; "/>
  111. <col ref="d28" style="text-align:right; "/>
  112. <col ref="d29" style="text-align:right; "/>
  113. <col ref="d30" style="text-align:right; "/>
  114. <col ref="d31" style="text-align:right; "/>
  115. <col ref="d32" style="text-align:right; "/>
  116. <script type="javascript" ev:event="onclick">
  117. <![CDATA[
  118. if ( grd_list.isCell(event.target) && grd_list.row >= grd_list.fixedRows ) {
  119. var col = grd_list.colAttribute(grd_list.col, "ref")
  120. col = col.replace("d", "");
  121. model.setValue("/root/send/srchdd", model.getValue("/root/tmp/tmpym") + col);
  122. model.setValue("/root/send/srchitemcd", model.getValue("/root/main/daysumrept/daysumreptlist[" + grd_list.row + "]/itemcd"));
  123. submit("TRAEQ01002");
  124. var itemnm = grd_list.valueMatrix(grd_list.row, grd_list.colRef("itemnm"));
  125. var specnm = grd_list.valueMatrix(grd_list.row, grd_list.colRef("specnm"));
  126. var ioflag = grd_list.valueMatrix(grd_list.row, grd_list.colRef("ioflag"));
  127. var icol = grd_list.col;
  128. var itemnm1 = ""
  129. var qty = ""
  130. var ioflag1 = ""
  131. for (var i=1; i <grd_list.rows; i ++) {
  132. itemnm1 = grd_list.valueMatrix(i, grd_list.colRef("itemnm"));
  133. ioflag1 = grd_list.valueMatrix(i, grd_list.colRef("ioflag"));
  134. if (itemnm == itemnm1 && ioflag1 == "재고") {
  135. qty = grd_list.valueMatrix(i, icol);
  136. model.setValue("/root/tmp/qty", qty);
  137. }
  138. }
  139. model.refresh();
  140. }
  141. ]]>
  142. </script>
  143. </datagrid>
  144. <datagrid id="grd_wlnlist" nodeset="/root/main/detail/wlnlist" caption="거래처^항목^규격^수량" colsep="^" colwidth="140,100,65,65" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:510px; width:390px; height:220px; ">
  145. <col ref="suplcustnm" type="output"/>
  146. <col ref="goodnm" type="output"/>
  147. <col ref="specnm" type="output"/>
  148. <col ref="qty" type="output"/>
  149. <col ref="suplcustcd" visibility="hidden"/>
  150. <col ref="lossresncd" visibility="hidden"/>
  151. <col ref="iodd" visibility="hidden"/>
  152. <col ref="ioflag" visibility="hidden"/>
  153. <col ref="bdioflag" visibility="hidden"/>
  154. <col ref="itemflag" visibility="hidden"/>
  155. <col ref="goodcd" visibility="hidden"/>
  156. <col ref="rem" visibility="hidden"/>
  157. <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
  158. </datagrid>
  159. <datagrid id="grd_delivelist" nodeset="/root/main/detail/delivelist" caption="거래처^항목^규격^수량" colsep="^" colwidth="140,100,65,65" mergecellsfixedrows="bycolrec" rowsep="|" style="left:400px; top:510px; width:395px; height:220px; ">
  160. <col ref="suplcustnm" type="output"/>
  161. <col ref="goodnm" type="output"/>
  162. <col ref="specnm" type="output"/>
  163. <col ref="qty" type="output"/>
  164. <col ref="suplcustcd" visibility="hidden"/>
  165. <col ref="lossresncd" visibility="hidden"/>
  166. <col ref="iodd" visibility="hidden"/>
  167. <col ref="ioflag" visibility="hidden"/>
  168. <col ref="bdioflag" visibility="hidden"/>
  169. <col ref="itemflag" visibility="hidden"/>
  170. <col ref="goodcd" visibility="hidden"/>
  171. <col ref="rem" visibility="hidden"/>
  172. <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
  173. </datagrid>
  174. <datagrid id="grd_mngtlist" nodeset="/root/main/detail/mngtlist" caption="거래처^항목^규격^수량^사유" colsep="^" colwidth="140, 100, 65, 65, 180" mergecellsfixedrows="bycolrec" rowsep="|" style="left:805px; top:510px; width:390px; height:220px; ">
  175. <col ref="suplcustnm" type="output"/>
  176. <col ref="goodnm" type="output"/>
  177. <col ref="specnm" type="output"/>
  178. <col ref="qty" type="input"/>
  179. <col ref="suplcustcd" visibility="hidden"/>
  180. <col ref="lossresncd" visibility="hidden"/>
  181. <col ref="iodd" visibility="hidden"/>
  182. <col ref="ioflag" visibility="hidden"/>
  183. <col ref="bdioflag" visibility="hidden"/>
  184. <col ref="itemflag" visibility="hidden"/>
  185. <col ref="goodcd" visibility="hidden"/>
  186. <col ref="rem" visibility="hidden"/>
  187. <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
  188. </datagrid>
  189. <caption id="caption4" class="tit_2" style="left:400px; top:495px; width:84px; height:13px; ">사용 현황</caption>
  190. <caption id="caption1" class="tit_2" style="left:5px; top:495px; width:84px; height:13px; ">입고현황</caption>
  191. <caption id="caption2" class="tit_2" style="left:805px; top:495px; width:84px; height:13px; ">관리 현황</caption>
  192. <button id="btn_excsave" class="btn2_letter4" visibility="visible" style="left:1130px; top:50px; width:64px; height:19px; ">
  193. <caption>엑셀저장</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  197. if (fileName != "")
  198. {
  199. grd_list.saveExcel(fileName);
  200. }
  201. ]]>
  202. </script>
  203. </button>
  204. <caption id="caption26" class="cell_1" style="left:1020px; top:485px; width:84px; height:23px; font-weight:bold; text-align:center; vertical-align:middle; ">재고량</caption>
  205. <input id="input1" ref="/root/tmp/qty" style="left:1105px; top:487px; width:84px; height:19px; font-weight:bold; text-align:right; "/>
  206. </group>
  207. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; "/>
  208. <button id="btnSave" class="btn4_letter2" style="left:1136px; top:762px; width:56px; height:22px; ">
  209. <caption>저장</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. var uptwln = getGridUpdateData(grd_wlnlist);
  213. var uptdelive = getGridUpdateData(grd_delivelist);
  214. var uptmngt = getGridUpdateData(grd_mngtlist);
  215. model.setValue("/root/send/wlnlist", uptwln);
  216. model.setValue("/root/send/delivelist", uptdelive);
  217. model.setValue("/root/send/mngtlist", uptmngt);
  218. if ( submit("TXAEQ01001")) {
  219. // 저장 후 재 조회
  220. submit("TRAEQ01001");
  221. model.refresh();
  222. }
  223. ]]>
  224. </script>
  225. </button>
  226. </xhtml:body>
  227. </xhtml:html>