SMRAS00300_약품구매지급내역리스트.xrw 13 KB

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