SPPIF80204_심사자별삭감현황조회.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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. <send>
  10. <fromdd/>
  11. <todd/>
  12. <ioflag>I</ioflag>
  13. <insukind>11^21^22^41</insukind>
  14. <ordfildcd>-</ordfildcd>
  15. <judgrid/>
  16. </send>
  17. <main>
  18. <list>
  19. <deptitemcutamtlist>
  20. <judgrid/>
  21. <judgrnm/>
  22. <totcnt/>
  23. <totamt/>
  24. <clamamt/>
  25. <adjtamt/>
  26. <adjtamtper/>
  27. <totcnt_i/>
  28. <totalamt_i/>
  29. <clamamt_i/>
  30. <totadjtamt_i/>
  31. <totadjtamt_iper/>
  32. <totcnt_o/>
  33. <totalamt_o/>
  34. <totadjtamt_o/>
  35. <clamamt_o/>
  36. <adjtcnt_in/>
  37. <adjtamt_in/>
  38. <adjtamt_inper/>
  39. <adjtcnt_out/>
  40. <adjtamt_out/>
  41. </deptitemcutamtlist>
  42. </list>
  43. </main>
  44. <init>
  45. <P0028list>
  46. <P0028>
  47. <cdid/>
  48. <cdnm/>
  49. </P0028>
  50. </P0028list>
  51. <P0155list>
  52. <P0155>
  53. <cdid/>
  54. <cdnm/>
  55. </P0155>
  56. </P0155list>
  57. <M0530list>
  58. <M0530>
  59. <cdid/>
  60. <cdnm/>
  61. </M0530>
  62. </M0530list>
  63. <M0029list>
  64. <M0029>
  65. <cdid/>
  66. <cdnm/>
  67. </M0029>
  68. </M0029list>
  69. <P0443list/>
  70. <P0458list/>
  71. <list1/>
  72. </init>
  73. <hidden>
  74. <U0001>
  75. <cd/>
  76. <nm>전체</nm>
  77. </U0001>
  78. <U0002list>
  79. <U0002>
  80. <cdid/>
  81. <cdnm/>
  82. </U0002>
  83. </U0002list>
  84. <sppmc02500>
  85. <cond>
  86. <srchcond/>
  87. <pid/>
  88. <hngnm/>
  89. <rrgstno1/>
  90. <rrgstno2/>
  91. <insukind/>
  92. </cond>
  93. </sppmc02500>
  94. <excel>
  95. <seqno/>
  96. <printno/>
  97. </excel>
  98. </hidden>
  99. </root>
  100. </instance>
  101. <script type="javascript" ev:event="xforms-ready">
  102. <![CDATA[
  103. CommCode_Load();
  104. // 그리드 초기화(행을 모두 삭제한다.)
  105. model.removeNodeset("/root/main/list/deptcutamtlist");
  106. model.refresh();
  107. model.setValue("/root/send/fromdd", getCurrentDate().substr(0,6));
  108. model.setValue("/root/send/todd", getCurrentDate().substr(0,6));
  109. ipt_fromdd.refresh();
  110. ipt_todd.refresh();
  111. addComboItem("cmb_judgrid","의과전체", "A","above");
  112. ]]>
  113. </script>
  114. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  115. <submission id="TRPIJ00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/list1"/>
  116. <submission id="TRPIF80205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  117. </model>
  118. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  119. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  121. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  122. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  123. <script type="javascript" src="../../../com/commonweb/js/tfHelperAsync.js"/>
  124. <script type="javascript" src="../../../com/instantmsgweb/js/ZMI001.js"/>
  125. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  126. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  127. <script type="javascript">
  128. <![CDATA[
  129. // 공통코드 Load작업
  130. function CommCode_Load() {
  131. // 관련 Control 초기화
  132. submit("TRPIJ00203");
  133. zbcfGetCodeList(new Array("P0028", "P0155", "M0530","M0029","P0443", "P0458"),
  134. new Array("/root/init/P0028list", "/root/init/P0155list", "/root/init/M0530list", "/root/init/M0029list","/root/init/P0443list", "/root/init/P0458list"));
  135. }
  136. function responseHandlerTRPIF80205() {
  137. datagrid1.addRow();
  138. var nodecnt = parseInt(model.getXPathValue("count(/root/main/list/deptitemcutamtlist[*]/totcnt)"));
  139. if (nodecnt > 2){
  140. var totcnt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totcnt)"));
  141. var totamt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totamt)"));
  142. var clamamt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/clamamt)"));
  143. var adjtamt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/adjtamt)"));
  144. var totcnt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totcnt_i)"));
  145. var totalamt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totalamt_i)"));
  146. var totadjtamt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totadjtamt_i)"));
  147. var clamamt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/clamamt_i)"));
  148. var totcnt_o = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totcnt_o)"));
  149. var totalamt_o = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totalamt_o)"));
  150. var clamamt_o = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/clamamt_o)"));
  151. var totadjtamt_o = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totadjtamt_o)"));
  152. var adjtcnt_in = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/adjtcnt_in)"));
  153. var adjtamt_in = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/adjtamt_in)"));
  154. var adjtcnt_out = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/adjtcnt_out)"));
  155. var adjtamt_out = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/adjtamt_out)"));
  156. var totadjtcnt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totadjtcnt_i)"));
  157. var adjtcnt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/adjtcnt)"));
  158. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/judgrnm", "합계");
  159. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totcnt", totcnt);
  160. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totamt", totamt);
  161. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/clamamt", clamamt);
  162. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtamt", adjtamt);
  163. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totcnt_i", totcnt_i);
  164. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totalamt_i", totalamt_i);
  165. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totadjtamt_i", totadjtamt_i);
  166. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/clamamt_i", clamamt_i);
  167. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totcnt_o", totcnt_o);
  168. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totalamt_o", totalamt_o);
  169. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/clamamt_o", clamamt_o);
  170. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totadjtamt_o", totadjtamt_o);
  171. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtcnt_in", adjtcnt_in);
  172. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtamt_in", adjtamt_in);
  173. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtcnt_out", adjtcnt_out);
  174. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtamt_out", adjtamt_out);
  175. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totadjtcnt_i", totadjtcnt_i);
  176. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtcnt", adjtcnt);
  177. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtamtper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtamt"))/totamt*100).toFixed(2));
  178. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totadjtamt_iper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totadjtamt_i"))/totalamt_i*100).toFixed(2));
  179. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtamt_inper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtamt_in"))/totalamt_o*100).toFixed(2));
  180. model.refresh();
  181. }
  182. model.refresh();
  183. removeLoadingWindow();
  184. }
  185. ]]>
  186. </script>
  187. </xhtml:head>
  188. <xhtml:body class="datagrid2" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  189. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  190. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:311px; height:15px; ">과별삭감현황조회</caption>
  191. </group>
  192. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  193. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:38px; vertical-align:top; ">
  194. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  195. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  196. <caption>조회</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. var sWindowMsg = "데이터 조회 중입니다...";
  200. callLoadingWindow(sWindowMsg);
  201. asyncSend("TRPIF80205", "/root/send", "/root/main/list", "responseHandlerTRPIF80205");
  202. //submit("TRPIF80205");
  203. ]]>
  204. </script>
  205. </button>
  206. <line id="line13" class="line_4" style="x1:1098px; y1:7px; x2:1098px; y2:29px; "/>
  207. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" format="yyyy-mm" style="left:100px; top:10px; width:70px; height:19px; ">
  208. <script type="javascript" ev:event="xforms-value-changed">
  209. <![CDATA[
  210. ipt_todd.value = ipt_fromdd.value.substr(0,6);
  211. model.refreshpart("/root/send/todd");
  212. ]]>
  213. </script>
  214. </input>
  215. <caption id="caption13" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">청구기간 :</caption>
  216. <caption id="caption3" style="left:172px; top:10px; width:20px; height:20px; ">~</caption>
  217. <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" format="yyyy-mm" style="left:185px; top:10px; width:70px; height:19px; "/>
  218. <caption id="caption1" class="search_name" style="left:667px; top:10px; width:75px; height:17px; ">진료과 :</caption>
  219. <caption id="caption2" class="search_name" style="left:270px; top:9px; width:90px; height:17px; ">보험유형 :</caption>
  220. <caption id="caption4" class="search_name" style="left:882px; top:10px; width:109px; height:17px; ">청구분야 :</caption>
  221. <select1 id="combo1" ref="/root/send/judgrid" class="combo_search" appearance="minimal" style="left:747px; top:10px; width:115px; height:19px; ">
  222. <choices>
  223. <itemset nodeset="/root/init/list1/deptlist">
  224. <label ref="depthngnm"/>
  225. <value ref="deptcd"/>
  226. </itemset>
  227. </choices>
  228. </select1>
  229. <select1 id="cmb_judgrid" ref="/root/send/ordfildcd" class="combo_search" appearance="minimal" style="left:972px; top:10px; width:115px; height:19px; ">
  230. <choices>
  231. <itemset nodeset="/root/init/P0458list/P0458">
  232. <label ref="cdnm"/>
  233. <value ref="cdid"/>
  234. </itemset>
  235. </choices>
  236. </select1>
  237. <select id="checkbox1" ref="/root/send/insukind" overflow="visible" appearance="full" cols="5" sep="^" style="left:360px; top:10px; width:305px; height:20px; border-style:none; ">
  238. <choices>
  239. <item>
  240. <label>건강보험</label>
  241. <value>11</value>
  242. </item>
  243. <item>
  244. <label>의료급여1종</label>
  245. <value>21</value>
  246. </item>
  247. <item>
  248. <label>의료급여2종</label>
  249. <value>22</value>
  250. </item>
  251. <item>
  252. <label>산재</label>
  253. <value>41</value>
  254. </item>
  255. </choices>
  256. <script type="javascript" ev:event="xforms-select">
  257. <![CDATA[
  258. ]]>
  259. </script>
  260. </select>
  261. </group>
  262. <button id="button12" class="btn2_letter4" style="left:1130px; top:55px; width:64px; height:19px; ">
  263. <caption>액셀저장</caption>
  264. <script type="javascript" ev:event="onclick">
  265. <![CDATA[
  266. var fileName = window.fileDialog("save", ",", false, caption10.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  267. if (fileName != "") {
  268. datagrid1.saveExcel(fileName, "sheetname:sheet1;exporttype:multi");
  269. }
  270. ]]>
  271. </script>
  272. </button>
  273. <line id="line2" class="line_1" style="x1:0px; y1:75px; x2:1195px; y2:75px; "/>
  274. <caption id="caption10" class="tit_2" style="left:0px; top:58px; width:265px; height:15px; ">과별삭감현황조회</caption>
  275. <button id="button2" class="btn2_letter2" style="left:1087px; top:55px; width:42px; height:19px; ">
  276. <caption>출력</caption>
  277. <script type="javascript" ev:event="onclick">
  278. <![CDATA[
  279. exeReportPreview("RPPIF80202", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  280. ]]>
  281. </script>
  282. </button>
  283. <datagrid id="datagrid1" nodeset="/root/main/list/deptitemcutamtlist" class="datagrid2" caption="부서코드^부서명^합계^합계^합계^합계^합계^합계^입원^입원^입원^입원^입원^입원^외래^외래^외래^외래^외래^외래^외래^외래^외래|부서코드^부서명^청구&#xA;건수^청구총진료비^청구액^삭감건수^삭감액^삭감율^청구&#xA;건수^청구총진료비^청구액^삭감건수^삭감액^삭감율^청구&#xA;건수^청구총진료비^청구액^삭감액소계&#xA;(원내+원외)^원내^원내^원내^환수&#xA;건수^원외환수액|부서코드^부서명^청구&#xA;건수^청구총진료비^청구액^삭감건수^삭감액^삭감율^청구&#xA;건수^청구총진료비^청구액^삭감건수^삭감액^삭감율^청구&#xA;건수^청구총진료비^청구액^삭감액소계&#xA;(원내+원외)^삭감건수^삭감액^삭감율^환수&#xA;건수^원외환수액" colsep="^" colwidth="26, 100, 45, 90, 85, 55, 85, 45, 45, 90, 85, 55, 85, 45, 45, 90, 85, 90, 55, 100, 44, 45, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:80px; width:1195px; height:660px; ">
  284. <col ref="judgrid" visibility="hidden"/>
  285. <col ref="judgrnm"/>
  286. <col ref="totcnt" format="#,###" style="text-align:right; "/>
  287. <col ref="totamt" format="#,###" style="text-align:right; "/>
  288. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  289. <col ref="adjtcnt" format="#,###" style="text-align:right; "/>
  290. <col ref="adjtamt" format="#,###" style="text-align:right; "/>
  291. <col ref="adjtamtper" format="#,###.00" style="text-align:right; "/>
  292. <col ref="totcnt_i" format="#,###" style="text-align:right; "/>
  293. <col ref="totalamt_i" format="#,###" style="text-align:right; "/>
  294. <col ref="clamamt_i" format="#,###" style="text-align:right; "/>
  295. <col ref="totadjtcnt_i" format="#,###" style="text-align:right; "/>
  296. <col ref="totadjtamt_i" format="#,###" style="text-align:right; "/>
  297. <col ref="totadjtamt_iper" format="#,###.00" style="text-align:right; "/>
  298. <col ref="totcnt_o" format="#,###" style="text-align:right; "/>
  299. <col ref="totalamt_o" format="#,###" style="text-align:right; "/>
  300. <col ref="clamamt_o" format="#,###" style="text-align:right; "/>
  301. <col ref="totadjtamt_o" format="#,###" style="text-align:right; "/>
  302. <col ref="adjtcnt_in" format="#,###" style="text-align:right; "/>
  303. <col ref="adjtamt_in" format="#,###" style="text-align:right; "/>
  304. <col ref="adjtamt_inper" format="#,###.00" style="text-align:right; "/>
  305. <col ref="adjtcnt_out" format="#,###" style="text-align:right; "/>
  306. <col ref="adjtamt_out" format="#,###" style="text-align:right; "/>
  307. </datagrid>
  308. <caption id="caption5" style="left:130px; top:55px; width:160px; height:20px; ">※청구월 기준 조회 입니다.</caption>
  309. </group>
  310. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; "/>
  311. <group id="group1" scroll="auto" style="left:0px; top:755px; width:1195px; height:28px; ">
  312. <button id="button45" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  313. <caption>닫기</caption>
  314. <script type="javascript" ev:event="onclick">
  315. <![CDATA[
  316. window.close();
  317. ]]>
  318. </script>
  319. </button>
  320. </group>
  321. </xhtml:body>
  322. </xhtml:html>