SPPIF80201_과별항목별삭감현황조회.xrw 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  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. <orddeptcd/>
  16. </send>
  17. <main>
  18. <list>
  19. <deptitemcutamtlist>
  20. <orddeptcd/>
  21. <orddeptnm/>
  22. <clinclrg/>
  23. <ediamta/>
  24. <cutcnta/>
  25. <realcutamta/>
  26. <cutpera/>
  27. <cuttotpera/>
  28. <ediamti/>
  29. <cutcnti/>
  30. <realcutamti/>
  31. <cutperi/>
  32. <cuttotperi/>
  33. <ediamto/>
  34. <cutcnto/>
  35. <realcutamto/>
  36. <cutpero/>
  37. <cuttotpero/>
  38. </deptitemcutamtlist>
  39. </list>
  40. </main>
  41. <init>
  42. <P0028list>
  43. <P0028>
  44. <cdid/>
  45. <cdnm/>
  46. </P0028>
  47. </P0028list>
  48. <P0155list>
  49. <P0155>
  50. <cdid/>
  51. <cdnm/>
  52. </P0155>
  53. </P0155list>
  54. <M0530list>
  55. <M0530>
  56. <cdid/>
  57. <cdnm/>
  58. </M0530>
  59. </M0530list>
  60. <M0029list>
  61. <M0029>
  62. <cdid/>
  63. <cdnm/>
  64. </M0029>
  65. </M0029list>
  66. <P0443list/>
  67. <P0458list/>
  68. <list1/>
  69. <P0277list>
  70. <P0277>
  71. <cdid/>
  72. <cdnm/>
  73. </P0277>
  74. </P0277list>
  75. </init>
  76. <hidden>
  77. <U0001>
  78. <cd/>
  79. <nm>전체</nm>
  80. </U0001>
  81. <U0002list>
  82. <U0002>
  83. <cdid/>
  84. <cdnm/>
  85. </U0002>
  86. </U0002list>
  87. <sppmc02500>
  88. <cond>
  89. <srchcond/>
  90. <pid/>
  91. <hngnm/>
  92. <rrgstno1/>
  93. <rrgstno2/>
  94. <insukind/>
  95. </cond>
  96. </sppmc02500>
  97. <excel>
  98. <seqno/>
  99. <printno/>
  100. </excel>
  101. </hidden>
  102. </root>
  103. </instance>
  104. <script type="javascript" ev:event="xforms-ready">
  105. <![CDATA[
  106. CommCode_Load();
  107. // 그리드 초기화(행을 모두 삭제한다.)
  108. model.removeNodeset("/root/main/list/deptcutamtlist");
  109. model.refresh();
  110. model.setValue("/root/send/fromdd", getCurrentDate().substr(0,6));
  111. model.setValue("/root/send/todd", getCurrentDate().substr(0,6));
  112. ipt_fromdd.refresh();
  113. ipt_todd.refresh();
  114. addComboItem("cmb_orddeptcd","의과전체", "A","above");
  115. ]]>
  116. </script>
  117. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  118. <submission id="TRPIJ00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/list1"/>
  119. <submission id="TRPIF80202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  120. </model>
  121. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  122. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  123. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  124. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  125. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  126. <script type="javascript" src="../../../com/commonweb/js/tfHelperAsync.js"/>
  127. <script type="javascript" src="../../../com/instantmsgweb/js/ZMI001.js"/>
  128. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  129. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  130. <script type="javascript">
  131. <![CDATA[
  132. // 공통코드 Load작업
  133. function CommCode_Load() {
  134. // 관련 Control 초기화
  135. submit("TRPIJ00203");
  136. zbcfGetCodeList(new Array("P0028", "P0155", "M0530","M0029","P0443", "P0458","P0277"),
  137. new Array("/root/init/P0028list", "/root/init/P0155list", "/root/init/M0530list", "/root/init/M0029list","/root/init/P0443list", "/root/init/P0458list","/root/init/P0277list"));
  138. }
  139. function responseHandlerTRPIF80202() {
  140. //삭감구성비입력
  141. var nodecnt = parseInt(model.getXPathValue("count(/root/main/list/deptitemcutamtlist[*]/ediamta)"));
  142. var ediamta = 0;
  143. var ediamti = 0;
  144. var ediamto = 0;
  145. for (var i=1; i <= nodecnt; i++) {
  146. var orddeptcd = model.getXPathValue("sum(/root/main/list/deptitemcutamtlist["+i+"]/orddeptcd)");
  147. var deptediamtatot = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[orddeptcd='"+orddeptcd+"']/ediamta)"));
  148. var deptediamtitot = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[orddeptcd='"+orddeptcd+"']/ediamti)"));
  149. var deptediamtotot = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[orddeptcd='"+orddeptcd+"']/ediamto)"));
  150. ediamta = parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+i+"]/ediamta"));
  151. ediamti = parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+i+"]/ediamti"));
  152. ediamto = parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+i+"]/ediamto"));
  153. model.setValue("/root/main/list/deptitemcutamtlist["+i+"]/cuttotpera", (ediamta/deptediamtatot*100).toFixed(2));
  154. model.setValue("/root/main/list/deptitemcutamtlist["+i+"]/cuttotperi", (ediamti/deptediamtitot*100).toFixed(2));
  155. model.setValue("/root/main/list/deptitemcutamtlist["+i+"]/cuttotpero", (ediamto/deptediamtotot*100).toFixed(2));
  156. }
  157. datagrid1.subtotalPosition = "below";
  158. datagrid1.subtotal("sum", -1, 2 , "#,###", "background-color:#99ff99", 2, "합계");
  159. datagrid1.subtotal("sum", -1, 3 , "#,###", "background-color:#99ff99", 2, "합계");
  160. datagrid1.subtotal("sum", -1, 4 , "#,###", "background-color:#99ff99", 2, "합계");
  161. datagrid1.subtotal("sum", -1, 5 , "#,###", "background-color:#99ff99", 2, "합계");
  162. datagrid1.subtotal("sum", -1, 6 , "#,###.00", "background-color:#99ff99", 2, "합계");
  163. datagrid1.subtotal("sum", -1, 7 , "#,###.00", "background-color:#99ff99", 2, "합계");
  164. datagrid1.subtotal("sum", -1, 8 , "#,###", "background-color:#99ff99", 2, "합계");
  165. datagrid1.subtotal("sum", -1, 9 , "#,###", "background-color:#99ff99", 2, "합계");
  166. datagrid1.subtotal("sum", -1, 10 , "#,###", "background-color:#99ff99", 2, "합계");
  167. datagrid1.subtotal("sum", -1, 11 , "#,###.00", "background-color:#99ff99", 2, "합계");
  168. datagrid1.subtotal("sum", -1, 12 , "#,###.00", "background-color:#99ff99", 2, "합계");
  169. datagrid1.subtotal("sum", -1, 13 , "#,###", "background-color:#99ff99", 2, "합계");
  170. datagrid1.subtotal("sum", -1, 14 , "#,###", "background-color:#99ff99", 2, "합계");
  171. datagrid1.subtotal("sum", -1, 15 , "#,###", "background-color:#99ff99", 2, "합계");
  172. datagrid1.subtotal("sum", -1, 16 , "#,###.00", "background-color:#99ff99", 2, "합계");
  173. datagrid1.subtotal("sum", -1, 17 , "#,###.00", "background-color:#99ff99", 2, "합계");
  174. //datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 2 , "#,###", "background-color:#99ff99", 1, datagrid1.valueMatrix( 1 ));
  175. datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 3 , "#,###", "background-color:#99ff99", null, null);
  176. datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 4 , "#,###", "background-color:#99ff99", 2, "소계");
  177. datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 5 , "#,###", "background-color:#99ff99", 2, "소계");
  178. datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 6 , "#,###.00", "background-color:#99ff99", 2, "소계");
  179. datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 7 , "#,###.00", "background-color:#99ff99", 2, "소계");
  180. datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 8 , "#,###", "background-color:#99ff99", 2, "소계");
  181. datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 9 , "#,###", "background-color:#99ff99", 2, "소계");
  182. datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 10 , "#,###", "background-color:#99ff99", 2, "소계");
  183. datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 11 , "#,###.00", "background-color:#99ff99", 2, "소계");
  184. datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 12 , "#,###.00", "background-color:#99ff99", 2, "소계");
  185. datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 13 , "#,###", "background-color:#99ff99", 2, "소계");
  186. datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 14 , "#,###", "background-color:#99ff99", 2, "소계");
  187. datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 15 , "#,###", "background-color:#99ff99", 2, "소계");
  188. datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 16 , "#,###.00", "background-color:#99ff99", 2, "소계");
  189. datagrid1.subtotal("sum", datagrid1.colRef("orddeptnm"), 17 , "#,###.00", "background-color:#99ff99", 2, "소계");
  190. for (var i=datagrid1.fixedRows ; i < datagrid1.rows; i++) {
  191. if (datagrid1.labelMatrix(i, datagrid1.colRef("clinclrg")) == "소계" || datagrid1.labelMatrix(i, datagrid1.colRef("clinclrg")) == "합계" ) {
  192. var realcutamta = parseInt(datagrid1.valueMatrix(i, datagrid1.colRef("realcutamta")));
  193. var realcutamti = parseInt(datagrid1.valueMatrix(i, datagrid1.colRef("realcutamti")));
  194. var realcutamto = parseInt(datagrid1.valueMatrix(i, datagrid1.colRef("realcutamto")));
  195. var deptediamtatot = parseInt(datagrid1.valueMatrix(i, datagrid1.colRef("ediamta")));
  196. var deptediamtitot = parseInt(datagrid1.valueMatrix(i, datagrid1.colRef("ediamti")));
  197. var deptediamtotot = parseInt(datagrid1.valueMatrix(i, datagrid1.colRef("ediamto")));
  198. datagrid1.valueMatrix(i, datagrid1.colRef("cutpera")) = (realcutamta/deptediamtatot*100).toFixed(2);
  199. datagrid1.valueMatrix(i, datagrid1.colRef("cutperi")) = (realcutamti/deptediamtatot*100).toFixed(2);
  200. datagrid1.valueMatrix(i, datagrid1.colRef("cutpero")) = (realcutamto/deptediamtatot*100).toFixed(2);
  201. }
  202. }
  203. // datagrid1.addRow();
  204. //
  205. // var nodecnt = parseInt(model.getXPathValue("count(/root/main/list/deptitemcutamtlist[*]/ediamta)"));
  206. // if (nodecnt > 2){
  207. // var ediamtatot = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/ediamta)"));
  208. // var realcutamtatot = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/realcutamta)"));
  209. // var ediamtitot = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/ediamti)"));
  210. // var realcutamtitot = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/realcutamti)"));
  211. // var ediamtotot = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/ediamto)"));
  212. // var realcutamtotot = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/realcutamto)"));
  213. // var cutcntatot = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/cutcnta)"));
  214. // var cutcntitot = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/cutcnti)"));
  215. // var cutcntotot = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[*]/cutcnto)"));
  216. //
  217. // model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/orddeptnm", "합계");
  218. // model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/ediamta", ediamtatot);
  219. // model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/ediamti", ediamtitot);
  220. // model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/ediamto", ediamtotot);
  221. // model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/realcutamta", realcutamtatot);
  222. // model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/realcutamti", realcutamtitot);
  223. // model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/realcutamto", realcutamtotot);
  224. // model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/cutcnta", cutcntatot);
  225. // model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/cutcnti", cutcntitot);
  226. // model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/cutcnto", cutcntotot);
  227. //
  228. // model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/cutpera", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/realcutamta"))/ediamtatot*100).toFixed(2));
  229. // model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/cutperi", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/realcutamti"))/ediamtitot*100).toFixed(2));
  230. // model.setValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/cutpero", (parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+nodecnt+"]/realcutamto"))/ediamtotot*100).toFixed(2));
  231. //
  232. // model.refresh();
  233. //
  234. // var ediamta = 0;
  235. // var ediamti = 0;
  236. // var ediamto = 0;
  237. // for (var i=1; i <= nodecnt; i++) {
  238. // var orddeptcd = model.getXPathValue("sum(/root/main/list/deptitemcutamtlist["+i+"]/orddeptcd)");
  239. // var deptediamtatot = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[orddeptcd='"+orddeptcd+"']/ediamta)"));
  240. // var deptediamtitot = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[orddeptcd='"+orddeptcd+"']/ediamti)"));
  241. // var deptediamtotot = parseInt(model.getXPathValue("sum(/root/main/list/deptitemcutamtlist[orddeptcd='"+orddeptcd+"']/ediamto)"));
  242. // ediamta = parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+i+"]/ediamta"));
  243. // ediamti = parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+i+"]/ediamti"));
  244. // ediamto = parseInt(model.getValue("/root/main/list/deptitemcutamtlist["+i+"]/ediamto"));
  245. //
  246. // model.setValue("/root/main/list/deptitemcutamtlist["+i+"]/cuttotpera", (ediamta/deptediamtatot*100).toFixed(2));
  247. // model.setValue("/root/main/list/deptitemcutamtlist["+i+"]/cuttotperi", (ediamti/deptediamtitot*100).toFixed(2));
  248. // model.setValue("/root/main/list/deptitemcutamtlist["+i+"]/cuttotpero", (ediamto/deptediamtotot*100).toFixed(2));
  249. // }
  250. // }
  251. // var maxcnt = model.getXPathValue("count(/root/main/list/deptcutamtlist[*]/orddeptcd)") ;
  252. //
  253. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/orddeptcd", 0);
  254. // model.setValue("/root/main/list/deptcutamtlist["+maxcnt+"]/orddeptnm", '총 합계');
  255. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/totalamt", totalamt);
  256. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/amtper", (totamt/totalamt*100).toFixed(2) );
  257. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/totcnt", totcnt);
  258. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/cutcnt", cutcnt);
  259. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/totamt", totamt);
  260. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item01", item01);
  261. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item02", item02);
  262. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item03", item03);
  263. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item04", item04);
  264. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/itemblood", itemblood);
  265. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item05", item05);
  266. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item06", item06);
  267. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item07", item07);
  268. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item08", item08);
  269. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item09", item09);
  270. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item10", item10);
  271. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/itemss", itemss);
  272. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/itemct", itemct);
  273. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/itemmri", itemmri);
  274. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/itempetct", itempetct);
  275. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item01per", (item01/totamt*100).toFixed(2) );
  276. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item02per", (item02/totamt*100).toFixed(2));
  277. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item03per", (item03/totamt*100).toFixed(2) );
  278. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item04per", (item04/totamt*100).toFixed(2) );
  279. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/itembloodper", (itemblood/totamt*100).toFixed(2) );
  280. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item05per", (item05/totamt*100).toFixed(2));
  281. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item06per", (item06/totamt*100).toFixed(2));
  282. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item07per", (item07/totamt*100).toFixed(2));
  283. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item08per", (item08/totamt*100).toFixed(2) );
  284. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item09per", (item09/totamt*100).toFixed(2) );
  285. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/item10per", (item10/totamt*100).toFixed(2) );
  286. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/itemssper", (itemss/totamt*100).toFixed(2) );
  287. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/itemctper", (itemct/totamt*100).toFixed(2) );
  288. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/itemmriper", (itemmri/totamt*100).toFixed(2));
  289. // model.setXPathValue("/root/main/list/deptcutamtlist["+maxcnt+"]/itempetctper", (itempetct/totamt*100).toFixed(2) );
  290. model.refresh();
  291. removeLoadingWindow();
  292. for (var i=2; i < datagrid1.cols; i++) {
  293. datagrid1.mergeCol(i) = false;
  294. }
  295. datagrid1.merge();
  296. }
  297. ]]>
  298. </script>
  299. </xhtml:head>
  300. <xhtml:body class="datagrid2" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  301. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  302. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:311px; height:15px; ">과별항목별삭감현황조회</caption>
  303. </group>
  304. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  305. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:38px; vertical-align:top; ">
  306. <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; "/>
  307. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  308. <caption>조회</caption>
  309. <script type="javascript" ev:event="DOMActivate">
  310. <![CDATA[
  311. var sWindowMsg = "데이터 조회 중입니다...";
  312. callLoadingWindow(sWindowMsg);
  313. asyncSend("TRPIF80202", "/root/send", "/root/main/list", "responseHandlerTRPIF80202");
  314. //submit("TRPIF80202");
  315. ]]>
  316. </script>
  317. </button>
  318. <line id="line13" class="line_4" style="x1:1098px; y1:7px; x2:1098px; y2:29px; "/>
  319. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" format="yyyy-mm" style="left:105px; top:10px; width:70px; height:19px; ">
  320. <script type="javascript" ev:event="xforms-value-changed">
  321. <![CDATA[
  322. ipt_todd.value = ipt_fromdd.value.substr(0,6);
  323. model.refreshpart("/root/send/todd");
  324. ]]>
  325. </script>
  326. </input>
  327. <caption id="caption13" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">청구기간 :</caption>
  328. <caption id="caption3" style="left:177px; top:10px; width:20px; height:20px; ">~</caption>
  329. <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" format="yyyy-mm" style="left:190px; top:10px; width:70px; height:19px; "/>
  330. <caption id="caption1" class="search_name" style="left:667px; top:10px; width:75px; height:17px; ">진료과 :</caption>
  331. <caption id="caption2" class="search_name" style="left:275px; top:9px; width:90px; height:17px; ">보험유형 :</caption>
  332. <caption id="caption4" class="search_name" style="left:882px; top:10px; width:109px; height:17px; ">청구분야 :</caption>
  333. <select1 id="combo1" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:747px; top:10px; width:115px; height:19px; ">
  334. <choices>
  335. <itemset nodeset="/root/init/list1/deptlist">
  336. <label ref="depthngnm"/>
  337. <value ref="deptcd"/>
  338. </itemset>
  339. </choices>
  340. </select1>
  341. <select1 id="cmb_orddeptcd" ref="/root/send/ordfildcd" class="combo_search" appearance="minimal" style="left:972px; top:10px; width:115px; height:19px; ">
  342. <choices>
  343. <itemset nodeset="/root/init/P0458list/P0458">
  344. <label ref="cdnm"/>
  345. <value ref="cdid"/>
  346. </itemset>
  347. </choices>
  348. </select1>
  349. <select id="checkbox1" ref="/root/send/insukind" overflow="visible" appearance="full" cols="5" sep="^" style="left:365px; top:10px; width:305px; height:20px; border-style:none; ">
  350. <choices>
  351. <item>
  352. <label>건강보험</label>
  353. <value>11</value>
  354. </item>
  355. <item>
  356. <label>의료급여1종</label>
  357. <value>21</value>
  358. </item>
  359. <item>
  360. <label>의료급여2종</label>
  361. <value>22</value>
  362. </item>
  363. <item>
  364. <label>산재</label>
  365. <value>41</value>
  366. </item>
  367. </choices>
  368. <script type="javascript" ev:event="xforms-select">
  369. <![CDATA[
  370. ]]>
  371. </script>
  372. </select>
  373. </group>
  374. <caption id="caption5" style="left:440px; top:60px; width:160px; height:20px; ">※청구월 기준 조회 입니다.</caption>
  375. <switch id="switch1" style="left:0px; top:79px; width:1195px; height:659px; ">
  376. <case id="case1" selected="true">
  377. <datagrid id="datagrid1" nodeset="/root/main/list/deptitemcutamtlist" class="datagrid2" caption="부서코드^부서명^항목명^합계^합계^합계^합계^합계^입원^입원^입원^입원^입원^외래^외래^외래^외래^외래|부서코드^부서명^항목명^청구진료비^삭감&#xA;건수^삭감액^삭감율^삭감&#xA;구성비^청구진료비^삭감&#xA;건수^삭감액^삭감율^삭감&#xA;구성비^청구진료비^삭감&#xA;건수^삭감액^삭감율^삭감구성비|부서코드^부서명^항목명^청구진료비^삭감&#xA;건수^삭감액^삭감율^삭감&#xA;구성비^청구진료비^삭감&#xA;건수^삭감액^삭감율^삭감&#xA;구성비^청구진료비^삭감&#xA;건수^삭감액^삭감율^삭감구성비" colsep="^" colwidth="26, 141, 80, 100, 40, 85, 45, 45, 100, 40, 85, 45, 45, 100, 40, 85, 45, 45" mergecells="bycol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:29px; width:1193px; height:626px; ">
  378. <col ref="orddeptcd" visibility="hidden"/>
  379. <col ref="orddeptnm"/>
  380. <col disabled="true" ref="clinclrg" type="combo">
  381. <choices>
  382. <item>
  383. <label>전체</label>
  384. <value>-</value>
  385. </item>
  386. <item>
  387. <label>진찰</label>
  388. <value>01</value>
  389. </item>
  390. <item>
  391. <label>입원</label>
  392. <value>02</value>
  393. </item>
  394. <item>
  395. <label>투약</label>
  396. <value>03</value>
  397. </item>
  398. <item>
  399. <label>주사</label>
  400. <value>04</value>
  401. </item>
  402. <item>
  403. <label>마취</label>
  404. <value>05</value>
  405. </item>
  406. <item>
  407. <label>이학</label>
  408. <value>06</value>
  409. </item>
  410. <item>
  411. <label>정신</label>
  412. <value>07</value>
  413. </item>
  414. <item>
  415. <label>수술</label>
  416. <value>08</value>
  417. </item>
  418. <item>
  419. <label>검사</label>
  420. <value>09</value>
  421. </item>
  422. <item>
  423. <label>방사선</label>
  424. <value>10</value>
  425. </item>
  426. <item>
  427. <label>특수</label>
  428. <value>SS</value>
  429. </item>
  430. <item>
  431. <label>Pet CT</label>
  432. <value>PCT</value>
  433. </item>
  434. <item>
  435. <label>CT</label>
  436. <value>CT</value>
  437. </item>
  438. <item>
  439. <label>혈액</label>
  440. <value>BLD</value>
  441. </item>
  442. <item>
  443. <label>기타</label>
  444. <value>ETC</value>
  445. </item>
  446. <item>
  447. <label>정액</label>
  448. <value>ZZ</value>
  449. </item>
  450. <item>
  451. <label>소계</label>
  452. <value>소계</value>
  453. </item>
  454. </choices>
  455. </col>
  456. <col ref="ediamta" format="#,###" style="text-align:right; "/>
  457. <col ref="cutcnta" format="#,###" style="text-align:right; "/>
  458. <col ref="realcutamta" format="#,###" style="text-align:right; "/>
  459. <col ref="cutpera" format="#,###.00" style="text-align:right; "/>
  460. <col ref="cuttotpera" format="#,###.00" style="text-align:right; "/>
  461. <col ref="ediamti" format="#,###" style="text-align:right; "/>
  462. <col ref="cutcnti" format="#,###" style="text-align:right; "/>
  463. <col ref="realcutamti" format="#,###" style="text-align:right; "/>
  464. <col ref="cutperi" format="#,###.00" style="text-align:right; "/>
  465. <col ref="cuttotperi" format="#,###.00" style="text-align:right; "/>
  466. <col ref="ediamto" format="#,###" style="text-align:right; "/>
  467. <col ref="cutcnto" format="#,###" style="text-align:right; "/>
  468. <col ref="realcutamto" format="#,###" style="text-align:right; "/>
  469. <col ref="cutpero" format="#,###.00" style="text-align:right; "/>
  470. <col ref="cuttotpero" format="#,###.00" style="text-align:right; "/>
  471. <script type="javascript" ev:event="onclick">
  472. <![CDATA[
  473. button3.dispatch("xforms-activate");
  474. button3.selected = true;
  475. ]]>
  476. </script>
  477. </datagrid>
  478. <button id="button2" class="btn2_letter2" style="left:1083px; top:3px; width:42px; height:19px; ">
  479. <caption>출력</caption>
  480. <script type="javascript" ev:event="onclick">
  481. <![CDATA[
  482. exeReportPreview("RPPIF80201", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  483. ]]>
  484. </script>
  485. </button>
  486. <button id="button12" class="btn2_letter4" style="left:1127px; top:3px; width:64px; height:19px; ">
  487. <caption>액셀저장</caption>
  488. <script type="javascript" ev:event="onclick">
  489. <![CDATA[
  490. var fileName = window.fileDialog("save", ",", false, caption6.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  491. if (fileName != "") {
  492. datagrid1.saveExcel(fileName, "sheetname:sheet1;exporttype:multi");
  493. }
  494. ]]>
  495. </script>
  496. </button>
  497. <line id="line2" class="line_1" style="x1:0px; y1:23px; x2:1193px; y2:23px; "/>
  498. </case>
  499. <case id="case2">
  500. <datagrid id="griddocuall" nodeset="/root/main/list/griddocuall" class="datagrid2" caption="통보월^교수명^사번^진료과^현 소속과^구분^환자번호^수진자명^처방코드^삭감처방^원내삭감액&#xA;①^원외삭감액&#xA;②^보험유형^청구번호^접수번호^명일련^줄^사유^삭감사유" colsep="^" colwidth="60, 60, 45, 115, 115, 38, 76, 63, 86, 234, 94, 95, 73, 75, 75, 67, 27, 37, 237" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="true" style="left:0px; top:28px; width:1193px; height:626px; vertical-align:middle; ">
  501. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  502. <col ref="orddridnm" style="text-align:center; "/>
  503. <col ref="orddrid" visibility="visible" style="text-align:center; "/>
  504. <col ref="orddeptcd" type="combo" style="text-align:left; ">
  505. <choices>
  506. <itemset nodeset="/root/init/list1/deptlist">
  507. <label ref="depthngnm"/>
  508. <value ref="deptcd"/>
  509. </itemset>
  510. </choices>
  511. </col>
  512. <col ref="orddeptcd1" type="combo">
  513. <choices>
  514. <itemset nodeset="/root/init/list1/deptlist">
  515. <label ref="depthngnm"/>
  516. <value ref="deptcd"/>
  517. </itemset>
  518. </choices>
  519. </col>
  520. <col ref="ioflag" type="combo" style="text-align:center; ">
  521. <choices>
  522. <item>
  523. <label>입원</label>
  524. <value>I</value>
  525. </item>
  526. <item>
  527. <label>외래</label>
  528. <value>O</value>
  529. </item>
  530. </choices>
  531. </col>
  532. <col ref="pid" style="text-align:center; "/>
  533. <col ref="patnm" style="text-align:center; "/>
  534. <col ref="snglcalcscorcd"/>
  535. <col ref="calcscorcdnm" style="text-align:left; "/>
  536. <col ref="adjtamt_in" format="(-)#,###" style="text-align:right; "/>
  537. <col ref="adjtamt_out" format="(-)#,###" style="text-align:right; "/>
  538. <col ref="insukind" type="combo">
  539. <choices>
  540. <item>
  541. <label>건강보험</label>
  542. <value>11</value>
  543. </item>
  544. <item>
  545. <label>의료급여</label>
  546. <value>21</value>
  547. </item>
  548. <item>
  549. <label>의료급여</label>
  550. <value>22</value>
  551. </item>
  552. <item>
  553. <label>산재</label>
  554. <value>41</value>
  555. </item>
  556. </choices>
  557. </col>
  558. <col ref="clamno" style="text-align:center; "/>
  559. <col ref="acptno" style="text-align:center; "/>
  560. <col ref="docuseqno" style="text-align:center; "/>
  561. <col ref="edilnno" style="text-align:center; "/>
  562. <col ref="adjtresncd" style="text-align:center; "/>
  563. <col disabled="true" ref="adjtresncd" type="combo" visibility="visible" style="text-align:left; ">
  564. <choices>
  565. <itemset nodeset="/root/init/P0277list/P0277">
  566. <label ref="cdnm"/>
  567. <value ref="cdid"/>
  568. </itemset>
  569. </choices>
  570. </col>
  571. </datagrid>
  572. <button id="button4" class="btn2_letter4" style="left:1128px; top:3px; width:64px; height:19px; ">
  573. <caption>액셀저장</caption>
  574. <script type="javascript" ev:event="onclick">
  575. <![CDATA[
  576. var fileName = window.fileDialog("save", ",", false, caption6.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  577. if (fileName != "") {
  578. griddocuall.saveExcel(fileName, "sheetname:sheet1;exporttype:multi;col_4:label;col_5:label;col_6:label;col_13:label;col_19:label;");
  579. }
  580. ]]>
  581. </script>
  582. </button>
  583. <line id="line1" class="line_1" style="x1:0px; y1:23px; x2:1193px; y2:23px; "/>
  584. </case>
  585. </switch>
  586. <button id="btn_prescond" class="btn_sw" group="tab" selected="true" style="left:0px; top:55px; width:145px; height:22px; ">
  587. <caption>과별항목별삭감현황조회</caption>
  588. <toggle case="case1" ev:event="xforms-activate"/>
  589. </button>
  590. <button id="button3" class="btn_sw" group="tab" style="left:145px; top:55px; width:110px; height:22px; ">
  591. <caption>항목별 상세조회</caption>
  592. <toggle case="case2" ev:event="xforms-activate"/>
  593. </button>
  594. </group>
  595. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; "/>
  596. <group id="group1" scroll="auto" style="left:0px; top:760px; width:1195px; height:23px; ">
  597. <button id="button45" class="btn4_letter2" style="left:1138px; top:0px; width:56px; height:22px; ">
  598. <caption>닫기</caption>
  599. <script type="javascript" ev:event="onclick">
  600. <![CDATA[
  601. window.close();
  602. ]]>
  603. </script>
  604. </button>
  605. </group>
  606. </xhtml:body>
  607. </xhtml:html>