SMRSI02400_보나에스월정산.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. <bnswinsumlist/>
  11. <bnsmiwinlist/>
  12. <goodnonwin/>
  13. </main>
  14. <send>
  15. <instcd/>
  16. <goodflag/>
  17. <winym/>
  18. <instcdnm/>
  19. <suplplcecd/>
  20. <interfacegubn/>
  21. <bideliveno/>
  22. </send>
  23. <init>
  24. </init>
  25. <temp/>
  26. </root>
  27. </instance>
  28. <script type="javascript" ev:event="xforms-ready">
  29. <![CDATA[
  30. //화면 Control을 초기화한다
  31. fInitialize();
  32. ]]>
  33. </script>
  34. <submission id="TRRSI02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/bnswinsumlist"/>
  35. <submission id="TRRSI02402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/bnsmiwinlist"/>
  36. <submission id="TRRSI00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/goodnonwin"/>
  37. </model>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  40. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  41. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  44. <script type="javascript">
  45. <![CDATA[
  46. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  47. function fInitialize()
  48. {
  49. misfGridInit(grd_bnswinsumlist);
  50. misfGridInit(grd_bnsmiwinlist);
  51. misfMsterDetailSet(grd_bnswinsumlist, null, "TRRSI02401", "N");
  52. misfMsterDetailSet(grd_bnsmiwinlist, null, "TRRSI02402", "N");
  53. model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  54. model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
  55. model.setValue(opt_goodflag.attribute("ref"), "PH");
  56. model.setValue(opt_suplplcecd.attribute("ref") , rszfGetMainCust(drg_main_suplplcecd));
  57. var curdd = getCurrentDate();
  58. model.setValue(ipt_winym.attribute("ref") ,curdd.substr(0,6) );
  59. //rszfGridComboLrgcdList("P", cmb_lrgcd, "lrgcd","N");
  60. model.refresh();
  61. }
  62. function fCheckRetrieveData()
  63. {
  64. if(!isRequiredControls("opt_instcd") )return false; // 물품구분
  65. if(!isRequiredControls("opt_goodflag") )return false; // 물품구분
  66. if(!isRequiredControls("ipt_winym") )return false; // 작업년월
  67. //if(!isRequiredControls("cmb_stocdeptcd") )return false; // 부서코드
  68. }
  69. ]]>
  70. </script>
  71. </xhtml:head>
  72. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  73. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  74. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">도매상 월정산</caption>
  75. </group>
  76. <group id="grp_biz" scroll="auto" style="left:0px; top:38; width:1195; height:744; ">
  77. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1192px; height:50px; background-color:#fffbf2; border-color:#ffd799; "/>
  78. <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1190px; y2:85px; "/>
  79. <datagrid id="grd_bnswinsumlist" nodeset="/root/main/bnswinsumlist" caption="약품코드^약품명칭^도매상 코드^입고일자^발주부서^포장수량^낱개수량^입고단위^구입가^입고금액^비 고" colsep="^" colwidth="90, 260, 89, 80, 90, 80, 80, 61, 90, 105, 110" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:90px; width:1190px; height:350px; ">
  80. <col ref="goodcd" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:left; "/>
  81. <col ref="goodnm" style="text-align:left; "/>
  82. <col ref="bnscd" style="text-align:left; "/>
  83. <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
  84. <col ref="windeptnm"/>
  85. <col ref="winpackqty" format="#,###" style="text-align:right; "/>
  86. <col ref="winqty" format="#,###" style="text-align:right; "/>
  87. <col ref="winunit" style="text-align:center; "/>
  88. <col ref="goodpurccost" format="#,###.#" style="text-align:right; "/>
  89. <col ref="winamt" format="#,###.#" style="text-align:right; "/>
  90. <col ref="cmt"/>
  91. </datagrid>
  92. <caption id="caption3" class="tit_2" style="left:5px; top:69px; width:165px; height:13px; ">도매상 월정산 LIST</caption>
  93. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:26px; width:56px; height:22px; ">
  94. <caption>조회</caption>
  95. <script type="javascript" ev:event="DOMActivate">
  96. <![CDATA[
  97. misfGridInit(grd_bnswinsumlist);
  98. misfGridInit(grd_bnsmiwinlist);
  99. if(fCheckRetrieveData(false) == false)return;
  100. submit("TRRSI02401");
  101. submit("TRRSI02402");
  102. model.refresh();
  103. ]]>
  104. </script>
  105. </button>
  106. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:56px; "/>
  107. <caption id="cap_instcd" class="search_name" style="left:15px; top:26px; width:86px; height:17px; ">기관코드 :</caption>
  108. <caption id="cap_winym" class="search_name" style="left:375px; top:26px; width:101px; height:17px; ">입고년월 :</caption>
  109. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:26px; width:150px; height:19px; text-align:center; "/>
  110. <output id="opt_instcd" ref="/root/send/instcd" class="output_fix" visibility="hidden" style="left:1055px; top:25px; width:20px; height:19px; "/>
  111. <output id="opt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:1035px; top:25px; width:20px; height:19px; "/>
  112. <output id="opt_suplplcecd" ref="/root/send/suplplcecd" visibility="hidden" style="left:1075px; top:25px; width:20px; height:19px; "/>
  113. <button id="btn_excel_all" class="btn2_letter4" style="left:1125px; top:65px; width:64px; height:19px; ">
  114. <caption>엑셀저장</caption>
  115. <script type="javascript" ev:event="DOMActivate">
  116. <![CDATA[
  117. var fileName = window.fileDialog("save", ",", false, "보나에스 월정산", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  118. if (fileName != "")
  119. {
  120. grd_bnswinsumlist.saveExcel(fileName, "보나에스 월정산", true, true, "");
  121. }
  122. ]]>
  123. </script>
  124. </button>
  125. <input id="ipt_winym" ref="/root/send/winym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:460px; top:26px; width:114px; height:19px; text-align:center; "/>
  126. <datagrid id="grd_bnsmiwinlist" nodeset="/root/main/bnsmiwinlist" caption="입고일자^발주부서^도매상 파일^건수^금액" colsep="^" colwidth="114, 116, 100, 96, 114" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:475px; width:575px; height:240px; ">
  127. <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
  128. <col ref="windeptnm"/>
  129. <col ref="bideliveno"/>
  130. <col ref="cnt" format="#,###.#" style="text-align:right; "/>
  131. <col ref="winamt" format="#,###.#" style="text-align:right; "/>
  132. <script type="javascript" ev:event="onclick">
  133. <![CDATA[
  134. if(isDataCell() == true) {
  135. model.setValue("/root/send/bideliveno", grd_bnsmiwinlist.valueMatrix(grd_bnsmiwinlist.row, grd_bnsmiwinlist.colRef("bideliveno")));
  136. model.setValue("/root/send/interfacegubn", "B");
  137. submit("TRRSI00103");
  138. }
  139. ]]>
  140. </script>
  141. </datagrid>
  142. <caption id="caption1" class="tit_2" style="left:5px; top:454px; width:165px; height:14px; ">도매상 미 매입 LIST</caption>
  143. <line id="line2" class="line_1" style="x1:0px; y1:470px; x2:575px; y2:470px; "/>
  144. <line id="line3" class="line_1" style="x1:578px; y1:470px; x2:1190px; y2:470px; "/>
  145. <datagrid id="grd_nonwin" nodeset="/root/main/goodnonwin/goodnonwinlist" caption="입고유형^발주일자^약품코드^약품명^함량^모델^제조회사^발주수량^발주수량^포장^포장^포장^단가^금액^기입고량^입고수량^입고금액" colsep="^" colwidth="60, 72, 88, 243, 85, 0, 0, 51, 52, 38, 36, 31, 69, 81, 65, 67, 89" dataheight="23" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:578px; top:475px; width:612px; height:240px; ">
  146. <col ref="iokindnm" style="text-align:left; "/>
  147. <col ref="purcdmnddd" format="yyyy-mm-dd"/>
  148. <col ref="goodcd"/>
  149. <col ref="goodnm"/>
  150. <col ref="goodspec"/>
  151. <col ref="goodmodel" visibility="hidden"/>
  152. <col ref="prodcmpynm" visibility="hidden"/>
  153. <col ref="reqpackcnt" format="#,###" style="text-align:right; "/>
  154. <col ref="reqqty" format="#,###" style="text-align:right; "/>
  155. <col ref="reqpackcntperunit"/>
  156. <col ref="requnit"/>
  157. <col ref="reqpackunit"/>
  158. <col ref="winunitcost" format="#,###.##" style="text-align:right; "/>
  159. <!--// -->
  160. <col ref="reqfla" format="#,###" style="text-align:right; "/>
  161. <col ref="prewinqty" format="#,###" style="left:1096px; top:23px; width:65px; height:23px; text-align:right; "/>
  162. <col ref="winpackqty" format="#,###.##" style="text-align:right; "/>
  163. <!--// -->
  164. <col ref="winamt" format="#,###.#" style="text-align:right; "/>
  165. <script type="javascript" ev:event="onaftersort">
  166. <![CDATA[
  167. grd_nonwin.gridToInstance();
  168. ]]>
  169. </script>
  170. </datagrid>
  171. <caption id="caption2" class="tit_2" style="left:578px; top:455px; width:165px; height:14px; ">미입고조회/입고</caption>
  172. </group>
  173. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  174. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  175. <caption>초기화</caption>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. fInitialize();
  179. ]]>
  180. </script>
  181. </button>
  182. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  183. </group>
  184. </xhtml:body>
  185. </xhtml:html>