SMRAS00400_약품구매지급내역집계표.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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. <deptacntpaymentsheet/>
  11. </main>
  12. <send>
  13. <condition>
  14. <instcd/>
  15. <acntcd4/>
  16. <acntcd/>
  17. <balamtflag>Y</balamtflag>
  18. <slipdeptcd/>
  19. <slipdepthngnm/>
  20. <ymdd/>
  21. </condition>
  22. <data>
  23. <instcd/>
  24. <mngtcd/>
  25. </data>
  26. </send>
  27. <init>
  28. <code>
  29. <code>
  30. <acnt4/>
  31. </code>
  32. </code>
  33. </init>
  34. <temp/>
  35. <hidden>
  36. </hidden>
  37. </root>
  38. </instance>
  39. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  45. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  46. <script type="javascript" src="../../../mis/miscommonweb/js/RAM001.js"/>
  47. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  48. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  49. <script type="javascript" ev:event="xforms-ready">
  50. <![CDATA[
  51. fInitialize();
  52. ]]>
  53. </script>
  54. <script type="javascript">
  55. <![CDATA[
  56. function fInitialize()
  57. {
  58. model.removenode(grd_deptacntpaymentsheet.nodeset);
  59. grd_deptacntpaymentsheet.refresh();
  60. var instcd = getUserInfo("dutplceinstcd");
  61. model.setValue("/root/send/condition/instcd", instcd);
  62. model.setValue(ipt_ymdd.attribute("ref"), getCurrentDate().toString());
  63. model.setValue("/root/send/data/instcd", instcd);
  64. model.setValue("/root/send/data/mngtcd", "%");
  65. submit("TRRAS00110");
  66. model.makeNode("/root/init/code/code/acnt4");
  67. model.makeValue("/root/init/code/code/acnt4[1]/cdnm", "전 체");
  68. model.makeValue("/root/init/code/code/acnt4[1]/cdid", "");
  69. // model.makeValue("/root/init/code/code/acnt4[1]/cdgbn", "R0010");
  70. var seq = 1;
  71. for (i=1; i<= instance1.selectNodes("root/init/code/code/codelist").length; i++)
  72. {
  73. cdgbn = model.getValue("/root/init/code/code/codelist[" + i + "]/cdgbn");
  74. seq++;
  75. //alert(i + " " + cdgbn)
  76. if (cdgbn == "R0010")
  77. {
  78. //alert(i + " " + cdgbn + " " + seq)
  79. model.makeNode( "/root/init/code/code/acnt4[" + seq + "]");
  80. model.makeValue( "/root/init/code/code/acnt4[" + seq + "]/cdid", model.getValue("/root/init/code/code/codelist[" + i + "]/cdid"));
  81. model.makeNode( "/root/init/code/code/acnt4[" + seq + "]");
  82. model.makeValue( "/root/init/code/code/acnt4[" + seq + "]/cdnm", model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm"));
  83. }
  84. }
  85. cmb_supacntcd4.dispatch("xforms-value-changed");
  86. cmb_supacntcd4.select(0);
  87. }
  88. function fCheckAuth()
  89. {
  90. btn_search.disabled = !checkAuth("R");
  91. }
  92. //========================================================================================
  93. // 부서코드 조회
  94. //========================================================================================
  95. function fOpenPopupDeptHelp(pControl, pInstance)
  96. {
  97. misfOpenPopUpList("02", pControl, "", pInstance);
  98. model.refresh();
  99. }
  100. ]]>
  101. </script>
  102. <submission id="TRRAS00130" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/balancesheet"/>
  103. <submission id="TRRAS00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/init/code/codelist"/>
  104. </model>
  105. </xhtml:head>
  106. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  107. <group id="grp_1" style="left:0px; top:0px; width:1195px; height:13px; ">
  108. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">약품구매지급내역</caption>
  109. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  110. </group>
  111. <group id="grp_3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  112. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:60px; vertical-align:top; ">
  113. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  114. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:8px; width:56px; height:22px; text-align:left; ">
  115. <caption>조회</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. model.removeNodeset(grd_deptacntpaymentsheet.nodeset);
  119. grd_deptacntpaymentsheet.refresh();
  120. submit("TRRAS00130");
  121. grd_deptacntpaymentsheet.subtotalposition = "below";
  122. grd_deptacntpaymentsheet.multitotals = true;
  123. grd_deptacntpaymentsheet.subtotal("sum", 1, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#00ffff; color:#000000; ", 4, "합 계", true);
  124. grd_deptacntpaymentsheet.subtotal("sum", 1, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#00ffff; color:#000000; ", 4, "합 계", true);
  125. grd_deptacntpaymentsheet.subtotal("sum", 1, 9, "format:#,###; roundmode:round; roundpostion:2", "background-color:#00ffff; color:#000000; ", 4, "합 계", true);
  126. grd_deptacntpaymentsheet.subtotal("sum", 1, 10, "format:#,###; roundmode:round; roundpostion:2", "background-color:#00ffff; color:#000000; ", 4, "합 계", true);
  127. grd_deptacntpaymentsheet.refresh();
  128. ]]>
  129. </script>
  130. </button>
  131. <line id="lin_5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  132. <button id="btn_slipdepthelp" class="icon_search" navindex="-1" style="left:614px; top:9px; width:16px; height:16px; ">
  133. <caption/>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. fOpenPopupDeptHelp(ipt_slipdeptcd, "slipdeptcd,slipdepthngnm"); //전체부서
  137. ]]>
  138. </script>
  139. </button>
  140. <select1 id="cmb_acntcd" ref="/root/send/condition/acntcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:270px; top:9px; width:160px; height:19px; ">
  141. <choices>
  142. <itemset>
  143. <label/>
  144. <value/>
  145. </itemset>
  146. </choices>
  147. </select1>
  148. <caption id="caption1" class="search_name" style="left:790px; top:10px; width:90px; height:17px; ">일 자 :</caption>
  149. <input id="ipt_slipdeptcd" ref="/root/send/condition/slipdeptcd" class="input_essential" navindex="-1" maxlength="11" style="left:535px; top:8px; width:74px; height:19px; ">
  150. <script type="javascript" ev:event="xforms-value-changed">
  151. <![CDATA[
  152. racfDeptValidCheck("slipdeptcd,slipdepthngnm"); // 전체부서
  153. ]]>
  154. </script>
  155. <script type="javascript" ev:event="onkeypress">
  156. <![CDATA[
  157. if(event.keyCode == 13)
  158. {
  159. model.setFocus("btn_search");
  160. }
  161. ]]>
  162. </script>
  163. </input>
  164. <caption id="caption12" class="search_name" style="left:445px; top:10px; width:107px; height:17px; ">발의부서 :</caption>
  165. <caption id="caption3" class="search_name" style="left:790px; top:35px; width:90px; height:17px; ">잔액없음 :</caption>
  166. <select1 id="cmb_supacntcd4" ref="/root/send/condition/acntcd4" class="combo_s_essential" navindex="1" appearance="minimal" style="left:156px; top:9px; width:109px; height:19px; ">
  167. <choices>
  168. <itemset nodeset="/root/init/code/code/acnt4">
  169. <label ref="cdnm"/>
  170. <value ref="cdid"/>
  171. </itemset>
  172. </choices>
  173. <script type="javascript" ev:event="xforms-value-changed">
  174. <![CDATA[
  175. racfGetSupAcntPrAcntListCombo(model.getValue("/root/send/condition/acntcd4"), cmb_acntcd, "Y");
  176. model.setValue(cmb_acntcd.choices.itemset.attribute("nodeset") + "[1]/acntnm", "전 체");
  177. cmb_acntcd.refresh();
  178. cmb_acntcd.select(0);
  179. ]]>
  180. </script>
  181. </select1>
  182. <caption id="caption37" class="search_name" style="left:55px; top:10px; width:100px; height:17px; ">계정과목 :</caption>
  183. <select1 id="rdo_balamtflag" ref="/root/send/condition/balamtflag" disabled="false" navindex="-1" appearance="full" cellspacing="75" cols="2" style="left:885px; top:35px; width:163px; height:17px; border-style:none; ">
  184. <choices>
  185. <item>
  186. <label>포함</label>
  187. <value>Y</value>
  188. </item>
  189. <item>
  190. <label>제외</label>
  191. <value>N</value>
  192. </item>
  193. </choices>
  194. </select1>
  195. <input id="ipt_slipdepthngnm" ref="/root/send/condition/slipdepthngnm" class="input_essential" style="left:634px; top:8px; width:135px; height:19px; ">
  196. <script type="javascript" ev:event="xforms-value-changed">
  197. <![CDATA[
  198. racfDeptValidCheck("slipdeptcd,slipdepthngnm"); // 전체부서
  199. ]]>
  200. </script>
  201. <script type="javascript" ev:event="onkeypress">
  202. <![CDATA[
  203. if(event.keyCode == 13)
  204. {
  205. model.setFocus("btn_search");
  206. }
  207. ]]>
  208. </script>
  209. </input>
  210. <input id="ipt_ymdd" ref="/root/send/condition/ymdd" class="input_s_essential" inputtype="date" style="left:885px; top:10px; width:125px; height:19px; ">
  211. <script type="javascript" ev:event="xforms-value-changed">
  212. <![CDATA[
  213. ]]>
  214. </script>
  215. </input>
  216. </group>
  217. <datagrid id="grd_deptacntpaymentsheet" nodeset="/root/main/deptacntpaymentsheet" backcoloralternate="#ffffff" caption="FLAG^기관코드^부서코드^발의부서명^계정코드^계정명^청구액^전월결재액^결재액^잔액" colsep="^" colwidth="0, 0, 0, 280, 0, 190, 150, 150, 150, 150" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:1px; top:95px; width:1193px; height:645px; font-size:10pt; ">
  218. <col ref="flag" visibility="hidden"/>
  219. <col ref="instcd" visibility="hidden"/>
  220. <col ref="slipdeptcd" visibility="hidden"/>
  221. <col ref="slipdeptnm"/>
  222. <col ref="acntcd" visibility="hidden"/>
  223. <col ref="acntnm"/>
  224. <col ref="expectpayamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  225. <col ref="prevpayamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  226. <col ref="payamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  227. <col ref="balamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  228. </datagrid>
  229. <caption id="caption2" class="tit_2" style="left:5px; top:76px; width:215px; height:13px; ">약품구매지급내역</caption>
  230. </group>
  231. <group id="grp_4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  232. <line id="lin_2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  233. <button id="btn_11" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  234. <caption>출력</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. ]]>
  238. </script>
  239. </button>
  240. </group>
  241. <button id="btn_9" class="btn2_letter4" style="left:1130px; top:113px; width:64px; height:19px; text-align:left; ">
  242. <caption>엑셀출력</caption>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. radfSaveExcel(grd_deptacntpaymentsheet);
  246. ]]>
  247. </script>
  248. </button>
  249. </xhtml:body>
  250. </xhtml:html>