SPPIF80202_과별삭감현황조회.xrw 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  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. <send>
  10. <fromdd/>
  11. <todd/>
  12. <ioflag>I</ioflag>
  13. <insukind>11^21^22^41</insukind>
  14. <ordfildcd>-</ordfildcd>
  15. <orddeptcd/>
  16. <judgrid/>
  17. <patunitsrch1/>
  18. <acptno/>
  19. <patunitsrch2/>
  20. </send>
  21. <main>
  22. <list>
  23. <deptitemcutamtlist>
  24. <orddeptcd/>
  25. <orddeptnm/>
  26. <totcnt/>
  27. <totamt/>
  28. <clamamt/>
  29. <adjtamt/>
  30. <adjtamtper/>
  31. <totcnt_i/>
  32. <totalamt_i/>
  33. <clamamt_i/>
  34. <totadjtamt_i/>
  35. <totadjtamt_iper/>
  36. <totcnt_o/>
  37. <totalamt_o/>
  38. <totadjtamt_o/>
  39. <clamamt_o/>
  40. <adjtcnt_in/>
  41. <adjtamt_in/>
  42. <adjtamt_inper/>
  43. <adjtcnt_out/>
  44. <adjtamt_out/>
  45. </deptitemcutamtlist>
  46. </list>
  47. <patinfo>
  48. <patinfolist>
  49. <pid/>
  50. </patinfolist>
  51. </patinfo>
  52. </main>
  53. <init>
  54. <P0028list>
  55. <P0028>
  56. <cdid/>
  57. <cdnm/>
  58. </P0028>
  59. </P0028list>
  60. <P0155list>
  61. <P0155>
  62. <cdid/>
  63. <cdnm/>
  64. </P0155>
  65. </P0155list>
  66. <M0530list>
  67. <M0530>
  68. <cdid/>
  69. <cdnm/>
  70. </M0530>
  71. </M0530list>
  72. <M0029list>
  73. <M0029>
  74. <cdid/>
  75. <cdnm/>
  76. </M0029>
  77. </M0029list>
  78. <P0443list/>
  79. <P0458list/>
  80. <list1/>
  81. </init>
  82. <hidden>
  83. <U0001>
  84. <cd/>
  85. <nm>전체</nm>
  86. </U0001>
  87. <U0002list>
  88. <U0002>
  89. <cdid/>
  90. <cdnm/>
  91. </U0002>
  92. </U0002list>
  93. <sppmc02500>
  94. <cond>
  95. <srchcond/>
  96. <pid/>
  97. <hngnm/>
  98. <rrgstno1/>
  99. <rrgstno2/>
  100. <insukind/>
  101. </cond>
  102. </sppmc02500>
  103. <excel>
  104. <seqno/>
  105. <printno/>
  106. </excel>
  107. </hidden>
  108. </root>
  109. </instance>
  110. <script type="javascript" ev:event="xforms-ready">
  111. <![CDATA[
  112. CommCode_Load();
  113. // 그리드 초기화(행을 모두 삭제한다.)
  114. model.removeNodeset("/root/main/list/deptcutamtlist");
  115. model.refresh();
  116. model.setValue("/root/send/fromdd", getCurrentDate().substr(0,6));
  117. model.setValue("/root/send/todd", getCurrentDate().substr(0,6));
  118. ipt_fromdd.refresh();
  119. ipt_todd.refresh();
  120. addComboItem("cmb_orddeptcd","의과전체", "A","above");
  121. ]]>
  122. </script>
  123. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  124. <submission id="TRPIJ00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/list1"/>
  125. <submission id="TRPIF80203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  126. <submission id="TRPIJ00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/send" resultref="/root/hidden"/>
  127. </model>
  128. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  129. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  130. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  131. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  132. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  133. <script type="javascript" src="../../../com/commonweb/js/tfHelperAsync.js"/>
  134. <script type="javascript" src="../../../com/instantmsgweb/js/ZMI001.js"/>
  135. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  136. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  137. <script type="javascript">
  138. <![CDATA[
  139. // 공통코드 Load작업
  140. function CommCode_Load() {
  141. // 관련 Control 초기화
  142. submit("TRPIJ00203",false);
  143. submit("TRPIJ00202",false);
  144. zbcfGetCodeList(new Array("P0028", "P0155", "M0530","M0029","P0443", "P0458"),
  145. new Array("/root/init/P0028list", "/root/init/P0155list", "/root/init/M0530list", "/root/init/M0029list","/root/init/P0443list", "/root/init/P0458list"));
  146. }
  147. function responseHandlerTRPIF80203() {
  148. datagrid1.addRow();
  149. var nodecnt = parseInt(model.getXPathValue("count(/root/main/list/deptitemcutamtlist[*]/totcnt)"));
  150. if (nodecnt > 2){
  151. var totcnt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totcnt)"));
  152. var totamt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totamt)"));
  153. var clamamt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/clamamt)"));
  154. var adjtamt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/adjtamt)"));
  155. var totcnt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totcnt_i)"));
  156. var totalamt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totalamt_i)"));
  157. var totadjtamt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totadjtamt_i)"));
  158. var clamamt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/clamamt_i)"));
  159. var totcnt_o = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totcnt_o)"));
  160. var totalamt_o = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totalamt_o)"));
  161. var clamamt_o = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/clamamt_o)"));
  162. var totadjtamt_o = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totadjtamt_o)"));
  163. var adjtcnt_in = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/adjtcnt_in)"));
  164. var adjtamt_in = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/adjtamt_in)"));
  165. var adjtcnt_out = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/adjtcnt_out)"));
  166. var adjtamt_out = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/adjtamt_out)"));
  167. var totadjtcnt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/totadjtcnt_i)"));
  168. var adjtcnt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/adjtcnt)"));
  169. var obtappcnt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/obtappcnt)"));
  170. var obtappamt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/obtappamt)"));
  171. var abdcnt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/abdcnt)"));
  172. var abdamt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/abdamt)"));
  173. var decicnt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/decicnt)"));
  174. var deciamt = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/deciamt)"));
  175. var obtappcnt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/obtappcnt_i)"));
  176. var obtappamt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/obtappamt_i)"));
  177. var obtappcnt_o = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/obtappcnt_o)"));
  178. var obtappamt_o = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/obtappamt_o)"));
  179. var abdcnt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/abdcnt_i)"));
  180. var abdamt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/abdamt_i)"));
  181. var abdcnt_o = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/abdcnt_o)"));
  182. var abdamt_o = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/abdamt_o)"));
  183. var decicnt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/decicnt_i)"));
  184. var deciamt_i = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/deciamt_i)"));
  185. var decicnt_o = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/decicnt_o)"));
  186. var deciamt_o = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/deciamt_o)"));
  187. var obtappamt_in = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/obtappamt_in)"));
  188. var obtappcnt_in = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/obtappcnt_in)"));
  189. var abdamt_in = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/abdamt_in)"));
  190. var abdcnt_in = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/abdcnt_in)"));
  191. var deciamt_in = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/deciamt_in)"));
  192. var decicnt_in = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/decicnt_in)"));
  193. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/orddeptnm", "합계");
  194. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totcnt", totcnt);
  195. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totamt", totamt);
  196. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/clamamt", clamamt);
  197. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtamt", adjtamt);
  198. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totcnt_i", totcnt_i);
  199. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totalamt_i", totalamt_i);
  200. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totadjtamt_i", totadjtamt_i);
  201. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/clamamt_i", clamamt_i);
  202. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totcnt_o", totcnt_o);
  203. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totalamt_o", totalamt_o);
  204. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/clamamt_o", clamamt_o);
  205. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totadjtamt_o", totadjtamt_o);
  206. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtcnt_in", adjtcnt_in);
  207. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtamt_in", adjtamt_in);
  208. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtcnt_out", adjtcnt_out);
  209. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtamt_out", adjtamt_out);
  210. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totadjtcnt_i", totadjtcnt_i);
  211. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtcnt", adjtcnt);
  212. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappcnt", obtappcnt);
  213. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappamt", obtappamt);
  214. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdcnt", abdcnt);
  215. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdamt", abdamt);
  216. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/decicnt", decicnt);
  217. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/deciamt", deciamt);
  218. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappcnt_i", obtappcnt_i);
  219. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappamt_i", obtappamt_i);
  220. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappcnt_o", obtappcnt_o);
  221. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappamt_o", obtappamt_o);
  222. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdcnt_i", abdcnt_i);
  223. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdamt_i", abdamt_i);
  224. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdcnt_o", abdcnt_o);
  225. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdamt_o", abdamt_o);
  226. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/decicnt_i", decicnt_i);
  227. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/deciamt_i", deciamt_i);
  228. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/decicnt_o", decicnt_o);
  229. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/deciamt_o", deciamt_o);
  230. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappamt_in", obtappamt_in);
  231. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappcnt_in", obtappcnt_in);
  232. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdamt_in", abdamt_in);
  233. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdcnt_in", abdcnt_in);
  234. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/deciamt_in", deciamt_in);
  235. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/decicnt_in", decicnt_in);
  236. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtamtper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtamt"))/totamt*100).toFixed(2));
  237. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totadjtamt_iper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/totadjtamt_i"))/totalamt_i*100).toFixed(2));
  238. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtamt_inper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/adjtamt_in"))/totalamt_o*100).toFixed(2));
  239. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappamtper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappamt"))/adjtamt*100).toFixed(2));
  240. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdamtper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdamt"))/adjtamt*100).toFixed(2));
  241. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/deciamtper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/deciamt"))/obtappamt*100).toFixed(2));
  242. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappamt_iper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappamt_i"))/totadjtamt_i*100).toFixed(2));
  243. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappamt_oper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappamt_o"))/totadjtamt_o*100).toFixed(2));
  244. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdamt_iper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdamt_i"))/totadjtamt_i*100).toFixed(2));
  245. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdamt_oper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdamt_o"))/totadjtamt_o*100).toFixed(2));
  246. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/deciamt_iper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/deciamt_i"))/obtappamt_i*100).toFixed(2));
  247. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/deciamt_oper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/deciamt_o"))/obtappamt_o*100).toFixed(2));
  248. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappamt_inper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/obtappamt_in"))/adjtamt_in*100).toFixed(2));
  249. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdamt_inper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/abdamt_in"))/adjtamt_in*100).toFixed(2));
  250. model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/deciamt_inper", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/deciamt_in"))/obtappamt_in*100).toFixed(2));
  251. model.refresh();
  252. }
  253. model.refresh();
  254. removeLoadingWindow();
  255. }
  256. function fGetInAftJudgTrgtManList() {
  257. // 환자로 조회를 하는 경우
  258. var patunitsrch1 = model.getValue("/root/send/patunitsrch1").getTrim(); // (stringHelper.js) 문자열 앞뒤에 있는 공백 제거
  259. model.makeValue("/root/main/patinfo/patinfolist/pid", "");
  260. model.setValue("/root/send/patunitsrch1", patunitsrch1);
  261. if (patunitsrch1 == "") {
  262. model.setValue("/root/send/patunitsrch2", "");
  263. }
  264. // (numericHelper.js) 숫자가 입력된 경우 환자번호로 조회
  265. else if (patunitsrch1.isNumber()) {
  266. // Table Layout 상에는 pid가 VARCHAR(10) 이지만, 테스트용 data에서는 VARCHAR(8) 이므로 8자리로 구현함
  267. // if (patunitsrch1.length < 8) {
  268. // model.setValue("/root/send/patunitsrch1", patunitsrch1.getLeftPad(8, "0")); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
  269. // }
  270. model.setValue("/root/send/patunitsrch2", "pidSrch");
  271. }
  272. // 문자가 입력된 경우 환자이름으로 조회
  273. else {
  274. if (patunitsrch1.length > 1) {
  275. model.setValue("/root/send/patunitsrch2", "nmSrch");
  276. }
  277. else {
  278. model.setValue("/root/send/patunitsrch2", "");
  279. model.refresh();
  280. messageBox("환자로 조회시 검색할 환자이름은 2글자 이상", "C001"); ///환자로 조회시 검색할 환자이름은 2글자 이상 입력하십시오.
  281. return;
  282. }
  283. }
  284. }
  285. ]]>
  286. </script>
  287. </xhtml:head>
  288. <xhtml:body class="datagrid2" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  289. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  290. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:311px; height:15px; ">과별삭감현황조회</caption>
  291. </group>
  292. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  293. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:70px; vertical-align:top; ">
  294. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
  295. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  296. <caption>조회</caption>
  297. <script type="javascript" ev:event="DOMActivate">
  298. <![CDATA[
  299. var sWindowMsg = "데이터 조회 중입니다...";
  300. callLoadingWindow(sWindowMsg);
  301. asyncSend("TRPIF80203", "/root/send", "/root/main/list", "responseHandlerTRPIF80203");
  302. //submit("TRPIF80203");
  303. ]]>
  304. </script>
  305. </button>
  306. <line id="line13" class="line_4" style="x1:1098px; y1:7px; x2:1098px; y2:29px; "/>
  307. <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; ">
  308. <script type="javascript" ev:event="xforms-value-changed">
  309. <![CDATA[
  310. ipt_todd.value = ipt_fromdd.value.substr(0,6);
  311. model.refreshpart("/root/send/todd");
  312. ]]>
  313. </script>
  314. </input>
  315. <caption id="caption13" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">청구기간 :</caption>
  316. <caption id="caption3" style="left:172px; top:10px; width:20px; height:20px; ">~</caption>
  317. <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; "/>
  318. <caption id="caption1" class="search_name" style="left:667px; top:10px; width:75px; height:17px; ">진료과 :</caption>
  319. <caption id="caption2" class="search_name" style="left:270px; top:9px; width:90px; height:17px; ">보험유형 :</caption>
  320. <caption id="caption4" class="search_name" style="left:882px; top:10px; width:109px; height:17px; ">청구분야 :</caption>
  321. <select1 id="combo1" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:747px; top:10px; width:115px; height:19px; ">
  322. <choices>
  323. <itemset nodeset="/root/init/list1/deptlist">
  324. <label ref="depthngnm"/>
  325. <value ref="deptcd"/>
  326. </itemset>
  327. </choices>
  328. </select1>
  329. <select1 id="cmb_orddeptcd" ref="/root/send/ordfildcd" class="combo_search" appearance="minimal" style="left:972px; top:10px; width:115px; height:19px; ">
  330. <choices>
  331. <itemset nodeset="/root/init/P0458list/P0458">
  332. <label ref="cdnm"/>
  333. <value ref="cdid"/>
  334. </itemset>
  335. </choices>
  336. </select1>
  337. <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; ">
  338. <choices>
  339. <item>
  340. <label>건강보험</label>
  341. <value>11</value>
  342. </item>
  343. <item>
  344. <label>의료급여1종</label>
  345. <value>21</value>
  346. </item>
  347. <item>
  348. <label>의료급여2종</label>
  349. <value>22</value>
  350. </item>
  351. <item>
  352. <label>산재</label>
  353. <value>41</value>
  354. </item>
  355. </choices>
  356. <script type="javascript" ev:event="xforms-select">
  357. <![CDATA[
  358. ]]>
  359. </script>
  360. </select>
  361. <caption id="caption7" class="search_name" style="left:667px; top:40px; width:75px; height:17px; ">심사자 :</caption>
  362. <select1 id="combo2" ref="/root/send/judgrid" class="combo_search" appearance="minimal" style="left:747px; top:40px; width:115px; height:19px; ">
  363. <choices>
  364. <itemset nodeset="/root/list/judglist">
  365. <label ref="judgnm"/>
  366. <value ref="judgid"/>
  367. </itemset>
  368. </choices>
  369. </select1>
  370. <input id="ipt_personalsearch" ref="/root/send/patunitsrch1" class="input_search" inputtype="button" style="left:358px; top:40px; width:84px; height:19px; ">
  371. <script type="javascript" ev:event="onkeypress">
  372. <![CDATA[
  373. // Enter 입력
  374. if (event.keyCode == "13") {
  375. // 2글자 이상이면
  376. if (ipt_personalsearch.currentText.length > 1) {
  377. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  378. fGetInAftJudgTrgtManList();
  379. }
  380. }
  381. ]]>
  382. </script>
  383. <script type="javascript" ev:event="onbuttonclick">
  384. <![CDATA[
  385. var ipt_pid = model.getValue("/root/send/patunitsrch1");
  386. model.makeValue("/root/main/patinfo/patinfolist/pid", "");
  387. if (ipt_pid) {
  388. model.makeValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  389. model.makeValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  390. }
  391. else {
  392. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  393. }
  394. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
  395. var srch_pid = model.getValue ("/root/main/patinfo/patinfolist/pid");
  396. // SPPMC02500_환자조회 화면에서 조회한 경우임
  397. if (srch_pid) {
  398. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  399. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  400. model.setValue("/root/send/patunitsrch1", srch_pid);
  401. }
  402. model.refresh();
  403. fGetInAftJudgTrgtManList();
  404. ]]>
  405. </script>
  406. </input>
  407. <caption id="caption18" class="search_name" style="left:270px; top:40px; width:90px; height:17px; ">환자조회 :</caption>
  408. <caption id="caption8" class="search_name" style="left:10px; top:39px; width:99px; height:17px; ">접수번호 :</caption>
  409. <input id="ipt_acptno" ref="/root/send/acptno" class="input_search" navindex="6" style="left:99px; top:40px; width:71px; height:19px; ">
  410. <script type="javascript" ev:event="onkeypress">
  411. <![CDATA[
  412. if (event.keyCode == "13") {
  413. setInputNodeCurText();
  414. }
  415. ]]>
  416. </script>
  417. </input>
  418. </group>
  419. <button id="button12" class="btn2_letter4" style="left:1130px; top:85px; width:64px; height:19px; ">
  420. <caption>액셀저장</caption>
  421. <script type="javascript" ev:event="onclick">
  422. <![CDATA[
  423. var fileName = window.fileDialog("save", ",", false, caption10.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  424. if (fileName != "") {
  425. datagrid1.saveExcel(fileName, "sheetname:sheet1;exporttype:multi");
  426. }
  427. ]]>
  428. </script>
  429. </button>
  430. <line id="line2" class="line_1" style="x1:0px; y1:105px; x2:1195px; y2:105px; "/>
  431. <caption id="caption10" class="tit_2" style="left:0px; top:88px; width:265px; height:13px; ">과별삭감현황조회</caption>
  432. <button id="button2" class="btn2_letter2" style="left:1087px; top:85px; width:42px; height:19px; ">
  433. <caption>출력</caption>
  434. <script type="javascript" ev:event="onclick">
  435. <![CDATA[
  436. exeReportPreview("RPPIF80202", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  437. ]]>
  438. </script>
  439. </button>
  440. <datagrid id="datagrid1" nodeset="/root/main/list/deptitemcutamtlist" class="datagrid2" caption="부서코드^부서명^합계^합계^합계^합계^합계^합계^합계^합계^합계^합계^합계^합계^합계^합계^합계^입원^입원^입원^입원^입원^입원^입원^입원^입원^입원^입원^입원^입원^입원^입원^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래^외래|부서코드^부서명^청구&#xA;건수^청구총진료비^청구액^삭감건수^삭감액^삭감율^이신&#xA;건수^이신금액^이신율^부제&#xA;건수^부제기금액^부제율^회수&#xA;건수^회수금액^회수율^청구&#xA;건수^청구총진료비^청구액^삭감건수^삭감액^삭감율^이신&#xA;건수^이신금액^이신율^부제&#xA;건수^부제기금액^부제율^회수&#xA;건수^회수금액^회수율^청구&#xA;건수^청구총진료비^청구액^삭감액소계&#xA;(원내+원외)^원내^원내^원내^원내^원내^원내^원내^원내^원내^원내^원내^원내^환수&#xA;건수^원외환수액^이신&#xA;건수^이신금액^이신율^부제&#xA;건수^부제기금액^부제율^회수&#xA;건수^회수금액^회수율|부서코드^부서명^청구&#xA;건수^청구총진료비^청구액^삭감건수^삭감액^삭감율^이신&#xA;건수^이신금액^이신율^부제&#xA;건수^부제기금액^부제율^회수&#xA;건수^회수금액^회수율^청구&#xA;건수^청구총진료비^청구액^삭감건수^삭감액^삭감율^이신&#xA;건수^이신금액^이신율^부제&#xA;건수^부제기금액^부제율^회수&#xA;건수^회수금액^회수율^청구&#xA;건수^청구총진료비^청구액^삭감액소계&#xA;(원내+원외)^삭감건수^삭감액^삭감율^이의건수^이의액^이의율^부제건수^부제액^부제율^회수건수^회수액^회수율^환수&#xA;건수^원외환수액^이신&#xA;건수^이신금액^이신율^부제&#xA;건수^부제기금액^부제율^회수&#xA;건수^회수금액^회수율" colsep="^" colwidth="26, 100, 45, 90, 85, 55, 85, 45, 45, 85, 45, 45, 85, 45, 45, 85, 45, 45, 90, 85, 55, 85, 45, 45, 85, 45, 45, 85, 45, 45, 85, 45, 45, 85, 85, 85, 54, 80, 45, 54, 80, 45, 54, 80, 45, 54, 80, 45, 44, 85, 45, 85, 45, 45, 85, 45, 45, 85, 45" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:110px; width:1195px; height:630px; ">
  441. <col ref="orddeptcd" visibility="hidden"/>
  442. <col ref="orddeptnm"/>
  443. <col ref="totcnt" format="#,###" style="text-align:right; "/>
  444. <col ref="totamt" format="#,###" style="text-align:right; "/>
  445. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  446. <col ref="adjtcnt" format="#,###" style="text-align:right; "/>
  447. <col ref="adjtamt" format="#,###" style="text-align:right; "/>
  448. <col ref="adjtamtper" format="#,###.00" style="text-align:right; "/>
  449. <col ref="obtappcnt" format="#,###" style="text-align:right; "/>
  450. <col ref="obtappamt" format="#,###" style="text-align:right; "/>
  451. <col ref="obtappamtper" format="#,###.00" style="text-align:right; "/>
  452. <col ref="abdcnt" format="#,###" style="text-align:right; "/>
  453. <col ref="abdamt" format="#,###" style="text-align:right; "/>
  454. <col ref="abdamtper" format="#,###.00" style="text-align:right; "/>
  455. <col ref="decicnt" format="#,###" style="text-align:right; "/>
  456. <col ref="deciamt" format="#,###" style="text-align:right; "/>
  457. <col ref="deciamtper" format="#,###.00" style="text-align:right; "/>
  458. <col ref="totcnt_i" format="#,###" style="text-align:right; "/>
  459. <col ref="totalamt_i" format="#,###" style="text-align:right; "/>
  460. <col ref="clamamt_i" format="#,###" style="text-align:right; "/>
  461. <col ref="totadjtcnt_i" format="#,###" style="text-align:right; "/>
  462. <col ref="totadjtamt_i" format="#,###" style="text-align:right; "/>
  463. <col ref="totadjtamt_iper" format="#,###.00" style="text-align:right; "/>
  464. <col ref="obtappcnt_i" format="#,###" style="text-align:right; "/>
  465. <col ref="obtappamt_i" format="#,###" style="text-align:right; "/>
  466. <col ref="obtappamt_iper" format="#,###.00" style="text-align:right; "/>
  467. <col ref="abdcnt_i" format="#,###" style="text-align:right; "/>
  468. <col ref="abdamt_i" format="#,###" style="text-align:right; "/>
  469. <col ref="abdamt_iper" format="#,###.00" style="text-align:right; "/>
  470. <col ref="decicnt_i" format="#,###" style="text-align:right; "/>
  471. <col ref="deciamt_i" format="#,###" style="text-align:right; "/>
  472. <col ref="deciamt_iper" format="#,###.00" style="text-align:right; "/>
  473. <col ref="totcnt_o" format="#,###" style="text-align:right; "/>
  474. <col ref="totalamt_o" format="#,###" style="text-align:right; "/>
  475. <col ref="clamamt_o" format="#,###" style="text-align:right; "/>
  476. <col ref="totadjtamt_o" format="#,###" style="text-align:right; "/>
  477. <col ref="adjtcnt_in" format="#,###" style="text-align:right; "/>
  478. <col ref="adjtamt_in" format="#,###" style="text-align:right; "/>
  479. <col ref="adjtamt_inper" format="#,###.00" style="text-align:right; "/>
  480. <col ref="obtappcnt_in" format="#,###" style="text-align:right; "/>
  481. <col ref="obtappamt_in" format="#,###" style="text-align:right; "/>
  482. <col ref="obtappamt_inper" format="#,###.00" style="text-align:right; "/>
  483. <col ref="abdcnt_in" format="#,###" style="text-align:right; "/>
  484. <col ref="abdamt_in" format="#,###" style="text-align:right; "/>
  485. <col ref="abdamt_inper" format="#,###.00" style="text-align:right; "/>
  486. <col ref="decicnt_in" format="#,###" style="text-align:right; "/>
  487. <col ref="deciamt_in" format="#,###" style="text-align:right; "/>
  488. <col ref="deciamt_inper" format="#,###.00" style="text-align:right; "/>
  489. <col ref="adjtcnt_out" format="#,###" style="text-align:right; "/>
  490. <col ref="adjtamt_out" format="#,###" style="text-align:right; "/>
  491. <col ref="obtappcnt_o" format="#,###" style="text-align:right; "/>
  492. <col ref="obtappamt_o" format="#,###" style="text-align:right; "/>
  493. <col ref="obtappamt_oper" format="#,###.00" style="text-align:right; "/>
  494. <col ref="abdcnt_o" format="#,###" style="text-align:right; "/>
  495. <col ref="abdamt_o" format="#,###" style="text-align:right; "/>
  496. <col ref="abdamt_oper" format="#,###.00" style="text-align:right; "/>
  497. <col ref="decicnt_o" format="#,###" style="text-align:right; "/>
  498. <col ref="deciamt_o" format="#,###" style="text-align:right; "/>
  499. <col ref="deciamt_oper" format="#,###.00" style="text-align:right; "/>
  500. </datagrid>
  501. <caption id="caption5" style="left:130px; top:85px; width:160px; height:20px; ">※청구월 기준 조회 입니다.</caption>
  502. </group>
  503. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; "/>
  504. <group id="group1" scroll="auto" style="left:0px; top:755px; width:1195px; height:28px; ">
  505. <button id="button45" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  506. <caption>닫기</caption>
  507. <script type="javascript" ev:event="onclick">
  508. <![CDATA[
  509. window.close();
  510. ]]>
  511. </script>
  512. </button>
  513. </group>
  514. </xhtml:body>
  515. </xhtml:html>