SMRAD00330_약품구매지급내역리스트.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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>약품구매지급내역LIST</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <paymentlistsheet/>
  11. </main>
  12. <send>
  13. <condition>
  14. <instcd/>
  15. <acntcd4/>
  16. <ymdd/>
  17. <balamtflag>Y</balamtflag>
  18. <deptcd/>
  19. <depthngnm/>
  20. <acntcd/>
  21. <bankcd/>
  22. <entrregno/>
  23. <custnm/>
  24. <printflag/>
  25. </condition>
  26. <data>
  27. <instcd/>
  28. <mngtcd/>
  29. </data>
  30. <retrparams>
  31. <ymdd/>
  32. <acntnm4/>
  33. <slipdeptcd/>
  34. <slipdepthngnm/>
  35. </retrparams>
  36. </send>
  37. <init>
  38. <code>
  39. <code>
  40. <acnt4/>
  41. </code>
  42. </code>
  43. <R0001list>
  44. <R0001>
  45. <cdnm/>
  46. <cdid/>
  47. </R0001>
  48. </R0001list>
  49. </init>
  50. <temp/>
  51. <hidden>
  52. <paymentlistsheet/>
  53. </hidden>
  54. </root>
  55. </instance>
  56. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  62. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  63. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  64. <script type="javascript" src="../../../mis/miscommonweb/js/RAM001.js"/>
  65. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  66. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. fInitialize();
  70. ]]>
  71. </script>
  72. <script type="javascript">
  73. <![CDATA[
  74. function fInitialize()
  75. {
  76. // 은행코드 조회
  77. misfComboComCdList("R0001", cmb_bankcd, "Y");
  78. zbcfGetCodeList(new Array("R0001"), new Array("/root/init/R0001list"));
  79. model.removenode(grd_paymentlistsheet.nodeset);
  80. var instcd = getUserInfo("dutplceinstcd");
  81. model.setValue("/root/send/condition/instcd", instcd);
  82. model.setValue(ipt_ymdd.attribute("ref"), getCurrentDate().toString());
  83. model.setValue("/root/send/data/instcd", instcd);
  84. model.setValue("/root/send/data/mngtcd", "%");
  85. submit("TRRAZ00001");
  86. model.makeNode("/root/init/code/code/acnt4");
  87. model.makeValue("/root/init/code/code/acnt4[1]/cdnm", "전 체");
  88. model.makeValue("/root/init/code/code/acnt4[1]/cdid", "");
  89. // model.makeValue("/root/init/code/code/acnt4[1]/cdgbn", "R0010");
  90. var seq = 1;
  91. for (i=1; i<= instance1.selectNodes("root/init/code/code/codelist").length; i++)
  92. {
  93. cdgbn = model.getValue("/root/init/code/code/codelist[" + i + "]/cdgbn");
  94. seq++;
  95. //alert(i + " " + cdgbn)
  96. if (cdgbn == "R0010")
  97. {
  98. //alert(i + " " + cdgbn + " " + seq)
  99. model.makeNode( "/root/init/code/code/acnt4[" + seq + "]");
  100. model.makeValue( "/root/init/code/code/acnt4[" + seq + "]/cdid", model.getValue("/root/init/code/code/codelist[" + i + "]/cdid"));
  101. model.makeNode( "/root/init/code/code/acnt4[" + seq + "]");
  102. model.makeValue( "/root/init/code/code/acnt4[" + seq + "]/cdnm", model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm"));
  103. }
  104. }
  105. cmb_supacntcd4.dispatch("xforms-value-changed");
  106. cmb_supacntcd4.select(0);
  107. }
  108. function fCheckAuth()
  109. {
  110. btn_search.disabled = !checkAuth("R");
  111. }
  112. //========================================================================================
  113. //부서코드 Help Open
  114. //========================================================================================
  115. function fOpenPopupDeptHelp(pControl, pInstance) {
  116. //02 부서코드Helper
  117. misfOpenPopUpList("02", pControl, "", pInstance);
  118. model.refresh();
  119. }
  120. ]]>
  121. </script>
  122. <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/init/code/codelist"/>
  123. <submission id="TRRAD00331" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/paymentlistsheet"/>
  124. <submission id="TRZBC00101" method="urlencoded-post" replace="instance"/>
  125. <submission id="TRRAD00332" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/hidden/paymentlistsheet"/>
  126. </model>
  127. </xhtml:head>
  128. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  129. <group id="grp_1" style="left:0px; top:0px; width:1195px; height:13px; ">
  130. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">약품 구매 지급 내역 LIST</caption>
  131. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  132. </group>
  133. <group id="grp_3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  134. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:60px; vertical-align:top; ">
  135. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  136. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:8px; width:56px; height:22px; text-align:left; ">
  137. <caption>조회</caption>
  138. <script type="javascript" ev:event="DOMActivate">
  139. <![CDATA[
  140. radfRenewalBebtClos(getUserInfo("dutplceinstcd"), '', model.getValue(ipt_ymdd.attribute("ref")));
  141. submit("TRRAD00331");
  142. ]]>
  143. </script>
  144. </button>
  145. <line id="lin_5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  146. <caption id="caption1" class="search_name" style="left:255px; top:9px; width:90px; height:17px; ">일 자 :</caption>
  147. <select1 id="cmb_supacntcd4" ref="/root/send/condition/acntcd4" class="combo_s_essential" navindex="1" appearance="minimal" style="left:126px; top:9px; width:109px; height:19px; ">
  148. <choices>
  149. <itemset nodeset="/root/init/code/code/acnt4">
  150. <label ref="cdnm"/>
  151. <value ref="cdid"/>
  152. </itemset>
  153. </choices>
  154. <script type="javascript" ev:event="xforms-value-changed">
  155. <![CDATA[
  156. racfGetSupAcntPrAcntListCombo(model.getValue("/root/send/condition/acntcd4"), cmb_acntcd, "Y");
  157. model.setValue(cmb_acntcd.choices.itemset.attribute("nodeset") + "[1]/acntnm", "전 체");
  158. cmb_acntcd.refresh();
  159. cmb_acntcd.select(0);
  160. ]]>
  161. </script>
  162. </select1>
  163. <caption id="caption37" class="search_name" style="left:25px; top:9px; width:100px; height:17px; ">계정과목 :</caption>
  164. <input id="ipt_ymdd" ref="/root/send/condition/ymdd" class="input_s_essential" inputtype="date" style="left:350px; top:9px; width:120px; height:19px; ">
  165. <script type="javascript" ev:event="xforms-value-changed">
  166. <![CDATA[
  167. ]]>
  168. </script>
  169. </input>
  170. <select1 id="rdo_balamtflag" ref="/root/send/condition/balamtflag" disabled="false" navindex="-1" appearance="full" cellspacing="40" cols="2" style="left:965px; top:9px; width:130px; height:17px; border-style:none; ">
  171. <choices>
  172. <item>
  173. <label>포함</label>
  174. <value>Y</value>
  175. </item>
  176. <item>
  177. <label>제외</label>
  178. <value>N</value>
  179. </item>
  180. </choices>
  181. </select1>
  182. <caption id="caption3" class="search_name" style="left:860px; top:9px; width:90px; height:17px; ">금액없음 :</caption>
  183. <input id="ipt_depthngnm" ref="/root/send/condition/depthngnm" class="input_essential" style="left:694px; top:8px; width:150px; height:19px; ">
  184. <script type="javascript" ev:event="xforms-value-changed">
  185. <![CDATA[
  186. racfDeptValidCheck("deptcd,depthngnm"); // 전체부서
  187. ]]>
  188. </script>
  189. <script type="javascript" ev:event="onkeypress">
  190. <![CDATA[
  191. if(event.keyCode == 13)
  192. {
  193. model.setFocus("btn_search");
  194. }
  195. ]]>
  196. </script>
  197. </input>
  198. <button id="btn_depthelp" class="icon_search" navindex="-1" style="left:674px; top:9px; width:16px; height:16px; ">
  199. <caption/>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. fOpenPopupDeptHelp(ipt_deptcd, "deptcd,depthngnm"); //전체부서
  203. ]]>
  204. </script>
  205. </button>
  206. <caption id="caption5" class="search_name" style="left:485px; top:10px; width:107px; height:17px; ">발의부서 :</caption>
  207. <input id="ipt_deptcd" ref="/root/send/condition/deptcd" class="input_essential" navindex="-1" maxlength="11" style="left:575px; top:8px; width:95px; height:19px; ">
  208. <script type="javascript" ev:event="xforms-value-changed">
  209. <![CDATA[
  210. racfDeptValidCheck("deptcd,depthngnm"); // 전체부서
  211. ]]>
  212. </script>
  213. <script type="javascript" ev:event="onkeypress">
  214. <![CDATA[
  215. if(event.keyCode == 13)
  216. {
  217. model.setFocus("btn_search");
  218. }
  219. ]]>
  220. </script>
  221. </input>
  222. <select1 id="cmb_acntcd" ref="/root/send/condition/acntcd" class="combo_s_essential" navindex="1" visibility="hidden" appearance="minimal" style="left:215px; top:9px; width:20px; height:19px; ">
  223. <choices>
  224. <itemset>
  225. <label/>
  226. <value/>
  227. </itemset>
  228. </choices>
  229. </select1>
  230. <caption id="caption12" class="search_name" style="left:256px; top:35px; width:117px; height:17px; text-align:left; ">은 행 :</caption>
  231. <caption id="caption6" class="search_name" style="left:485px; top:35px; width:104px; height:17px; ">거 래 처 :</caption>
  232. <input id="ipt_regnm" ref="/root/send/condition/custnm" navindex="6" imemode="hangul" style="left:694px; top:35px; width:150px; height:19px; ">
  233. <script type="javascript" ev:event="onkeypress">
  234. <![CDATA[
  235. if(event.keyCode == 13)
  236. {
  237. racfCustValidCheck("entrregno,custnm", "name");
  238. }
  239. ]]>
  240. </script>
  241. <script type="javascript" ev:event="xforms-value-changed">
  242. <![CDATA[
  243. racfCustValidCheck("entrregno,custnm", "name");
  244. ]]>
  245. </script>
  246. </input>
  247. <button id="btn_entregnohelp" class="icon_search" style="left:674px; top:35px; width:16px; height:16px; ">
  248. <caption/>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. misfOpenPopUpList("14", ipt_regno, "", "entrregno,custnm");
  252. model.refresh();
  253. ]]>
  254. </script>
  255. </button>
  256. <input id="ipt_regno" ref="/root/send/condition/entrregno" navindex="5" format="999-99-99999" style="left:575px; top:35px; width:95px; height:19px; text-align:center; ">
  257. <script type="javascript" ev:event="onkeypress">
  258. <![CDATA[
  259. if(event.keyCode == 13)
  260. {
  261. racfCustValidCheck("entrregno,custnm", "code");
  262. }
  263. ]]>
  264. </script>
  265. <script type="javascript" ev:event="xforms-value-changed">
  266. <![CDATA[
  267. racfCustValidCheck("entrregno,custnm", "code");
  268. ]]>
  269. </script>
  270. </input>
  271. <select1 id="cmb_bankcd" ref="/root/send/condition/bankcd" class="combo_search" navindex="1" appearance="minimal" showvalue="true" style="left:350px; top:35px; width:120px; height:19px; ">
  272. <choices>
  273. <itemset>
  274. <label/>
  275. <value/>
  276. </itemset>
  277. </choices>
  278. </select1>
  279. </group>
  280. <datagrid id="grd_paymentlistsheet" nodeset="/root/main/paymentlistsheet" backcoloralternate="#ffffff" caption="기관코드^사업자등록번호^상 호^전월잔액^지급예정액^당월지급액^당월잔액^은행명^지불월" colsep="^" colwidth="0, 150, 300, 150, 120, 120, 120, 100, 70" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:1px; top:95px; width:1193px; height:645px; font-size:10pt; ">
  281. <col ref="instcd" visibility="hidden"/>
  282. <col ref="custcd" format="999-99-99999" style="text-align:center; vertical-align:middle; "/>
  283. <col ref="custnm" style="text-align:left; vertical-align:middle; padding-left:10; "/>
  284. <col ref="prevbalamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  285. <col ref="expectpayamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  286. <col ref="payamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  287. <col ref="balamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  288. <col disabled="false" ref="bankcd" type="combo">
  289. <choices>
  290. <itemset nodeset="/root/init/R0001list/R0001">
  291. <label ref="cdnm"/>
  292. <value ref="cdid"/>
  293. </itemset>
  294. </choices>
  295. </col>
  296. <col ref="paycond" style="text-align:center; vertical-align:middle; "/>
  297. </datagrid>
  298. <caption id="caption2" class="tit_2" style="left:5px; top:76px; width:215px; height:13px; ">약품 구매 지급 내역 LIST</caption>
  299. </group>
  300. <group id="grp_4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  301. <line id="lin_2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  302. <button id="btn_11" class="btn6_letter2" visibility="visible" style="left:0px; top:3px; width:56px; height:22px; ">
  303. <caption>출력</caption>
  304. <script type="javascript" ev:event="DOMActivate">
  305. <![CDATA[
  306. radfRenewalBebtClos(getUserInfo("dutplceinstcd"), '', model.getValue(ipt_ymdd.attribute("ref")));
  307. submit("TRRAD00332");
  308. if(grd_paymentlistsheet.rows == grd_paymentlistsheet.fixedRows)
  309. {
  310. messageBox("출력할 내용이" ,"I004");
  311. return;
  312. }
  313. model.setValue("/root/send/retrparams/ymdd", ipt_ymdd.value);
  314. model.setValue("/root/send/retrparams/acntnm4", cmb_supacntcd4.label);
  315. model.setValue("/root/send/retrparams/slipdeptcd", ipt_deptcd.value);
  316. model.setValue("/root/send/retrparams/slipdepthngnm", ipt_depthngnm.value);
  317. exeReportPreview("RPRAD00330", "XMLSTR", "/root/send/retrparams");
  318. ]]>
  319. </script>
  320. </button>
  321. </group>
  322. <button id="btn_9" class="btn2_letter4" style="left:1130px; top:113px; width:64px; height:19px; text-align:left; ">
  323. <caption>엑셀출력</caption>
  324. <script type="javascript" ev:event="DOMActivate">
  325. <![CDATA[
  326. radfSaveExcel(grd_paymentlistsheet);
  327. ]]>
  328. </script>
  329. </button>
  330. </xhtml:body>
  331. </xhtml:html>