SMAES03500_재활의학팀평균부도환자수.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  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. <main>
  10. <list>
  11. <item>
  12. <curerm/>
  13. <inrsrvcnt/>
  14. <outrsrvcnt/>
  15. <sumrsrv/>
  16. <intestexeccnt/>
  17. <outtestexeccnt/>
  18. <sumprcp/>
  19. <innopaycnt/>
  20. <outnopaycnt/>
  21. <sumnopay/>
  22. <inmonthsum/>
  23. <outmonthsum/>
  24. <monthsum/>
  25. <inpaycnt/>
  26. <outpaycnt/>
  27. <paycnt/>
  28. <incomparerate/>
  29. <outcomparerate/>
  30. <comparerate/>
  31. </item>
  32. </list>
  33. </main>
  34. <send>
  35. <srchdate/>
  36. <globalinstance>
  37. <instance1/>
  38. </globalinstance>
  39. <suppdeptcd/>
  40. <execfromdd/>
  41. <exectodd/>
  42. <comparefromdd/>
  43. <comparetodd/>
  44. <orddeptcd/>
  45. <fstpatyn/>
  46. <curerm/>
  47. <curedr/>
  48. <prcpcd/>
  49. <execdrid/>
  50. <srchflag/>
  51. </send>
  52. <inti/>
  53. <hidden/>
  54. </root>
  55. </instance>
  56. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  61. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  62. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  63. <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
  64. <script type="javascript" ev:event="xforms-ready">
  65. <![CDATA[
  66. aezfSetSuppDeptcd();
  67. // 진료과/진료의 조회
  68. // submit("TRPMOCOM01", false);
  69. submit("TRAES09000", false);
  70. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  71. var fromdd = getCurrentDate().substr(0,4) + "0101"
  72. var todd = getCurrentDate().substr(0,6) + fromdd.toDate().getMonthDay();
  73. var comparefromdd = getCurrentDate().substr(0,6).toDate().getAddDate(0,"Y").getDateFormat("YYYY") + "0101";
  74. var comparetodd = comparefromdd.substr(0,4) + todd.substr(4,4);
  75. addComboItem("cmb_orddept","--전체--","","above");
  76. addComboItem("cmb_curerm","--전체--","","above");
  77. addComboItem("cmb_execdrid","--전체--","","above");
  78. model.removenode("/root/main/list");
  79. model.setValue("/root/send/srchflag","P");
  80. model.setValue("/root/send/execfromdd", fromdd);
  81. model.setValue("/root/send/exectodd", todd);
  82. model.setValue("/root/send/comparefromdd",comparefromdd);
  83. model.setValue("/root/send/comparetodd",comparetodd);
  84. model.refresh();
  85. ]]>
  86. </script>
  87. <submission id="TRAES09000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/inti"/>
  88. <submission id="TRAES01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  89. </model>
  90. <script type="javascript">
  91. <![CDATA[
  92. function setRound(str){
  93. // var str2 = round(str, 2);
  94. return str2;
  95. }
  96. ]]>
  97. </script>
  98. </xhtml:head>
  99. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  100. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  101. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">재활의학팀평균부도환자수</caption>
  102. </group>
  103. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  104. <caption id="caption1" class="tit_2" style="left:5px; top:80px; width:200px; height:13px; ">재활의학팀평균부도 환자수</caption>
  105. <button id="btn_excsave" class="btn2_letter4" visibility="hidden" style="left:1130px; top:45px; width:64px; height:19px; ">
  106. <caption>엑셀저장</caption>
  107. <script type="javascript" ev:event="DOMActivate">
  108. <![CDATA[
  109. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  110. if (fileName != "") {
  111. grd_list.saveExcel(fileName);
  112. }
  113. ]]>
  114. </script>
  115. </button>
  116. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:60px; vertical-align:top; ">
  117. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  118. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회기간 :</caption>
  119. <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:52px; "/>
  120. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1120px; top:20px; width:56px; height:22px; ">
  121. <caption>조회</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. model.removenode("/root/main/list");
  125. if (submit("TRAES01201")) {
  126. var cnt = getNodesetCount("/root/main/list/item");
  127. if (cnt > 1) {
  128. grd_list.subtotal("sum", -1, 1, "#,###", "background-color:#99ff99", 0, "합계");
  129. for(i=2; i<grd_list.colRef("inpaycnt"); i++) {
  130. grd_list.subtotal("sum", -1, i, "(-)#,###");
  131. }
  132. var inrsrvcnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("inrsrvcnt"));
  133. var innopaycnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("innopaycnt"));
  134. var innopayrate = ( parseInt(innopaycnt) / parseInt(inrsrvcnt) ) *100;
  135. var outrsrvcnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("outrsrvcnt"));
  136. var outnopaycnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("outnopaycnt"));
  137. var outnopayrate = ( parseInt(outnopaycnt) / parseInt(outrsrvcnt) ) *100;
  138. var sumrsrv = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("sumrsrv"));
  139. var sumnopay = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("sumnopay"));
  140. var sumnopayrate = ( parseInt(sumnopay) / parseInt(sumrsrv) ) *100;
  141. if(innopayrate != null) {
  142. //grd_list.valueMatrix(grd_list.rows-1, 11) = nopayrate;
  143. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("inpaycnt")) = innopayrate.toString().getRound(-1,"HALF_UP");
  144. } else {
  145. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("inpaycnt")) = 0;
  146. }
  147. grd_list.cellformat (grd_list.rows-1, grd_list.colRef("inpaycnt")) = "(-)#,###.#%";
  148. if(outnopayrate != null) {
  149. //grd_list.valueMatrix(grd_list.rows-1, 11) = nopayrate;
  150. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("outpaycnt")) = outnopayrate.toString().getRound(-1,"HALF_UP");
  151. } else {
  152. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("outpaycnt")) = 0;
  153. }
  154. grd_list.cellformat (grd_list.rows-1, grd_list.colRef("outpaycnt")) = "(-)#,###.#%";
  155. if(sumnopayrate != null) {
  156. //grd_list.valueMatrix(grd_list.rows-1, 11) = nopayrate;
  157. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("paycnt")) = sumnopayrate.toString().getRound(-1,"HALF_UP");
  158. } else {
  159. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("paycnt")) = 0;
  160. }
  161. grd_list.cellformat (grd_list.rows-1, grd_list.colRef("paycnt")) = "(-)#,###.#%";
  162. var intestexeccnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("intestexeccnt"));
  163. var insumcnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("insumcnt"));
  164. var outtestexeccnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("outtestexeccnt"));
  165. var outsumcnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("outsumcnt"));
  166. var sumprcp = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("sumprcp"));
  167. var sumcnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("sumcnt"));
  168. var incomparerate = ( ( parseInt(intestexeccnt) - parseInt(insumcnt) ) / parseInt(intestexeccnt) ) * 100;
  169. var outcomparerate = ( ( parseInt(outtestexeccnt) - parseInt(outsumcnt) ) / parseInt(outtestexeccnt) ) * 100;
  170. var comparerate = ( ( parseInt(sumprcp) - parseInt(sumcnt) ) / parseInt(sumprcp) ) * 100;
  171. if ( parseInt(incomparerate) > 0 ) {
  172. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("incomparerate")) = incomparerate.toString().getRound(-1,"HALF_UP");
  173. } else {
  174. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("incomparerate")) = 0;
  175. }
  176. grd_list.cellformat (grd_list.rows-1, grd_list.colRef("incomparerate")) = "(-)#,###.#%";
  177. if (parseInt(outcomparerate) > 0 ) {
  178. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("outcomparerate")) = outcomparerate.toString().getRound(-1,"HALF_UP");
  179. } else {
  180. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("outcomparerate")) = 0;
  181. }
  182. grd_list.cellformat (grd_list.rows-1, grd_list.colRef("outcomparerate")) = "(-)#,###.#%";
  183. if (parseInt(comparerate ) > 0 ) {
  184. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("comparerate")) = comparerate.toString().getRound(-1,"HALF_UP");
  185. } else {
  186. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("comparerate")) = 0;
  187. }
  188. grd_list.cellformat (grd_list.rows-1, grd_list.colRef("comparerate")) = "(-)#,###.#%";
  189. }
  190. }
  191. ]]>
  192. </script>
  193. </button>
  194. <input id="ipt_todd" ref="/root/send/exectodd" class="input_default" navindex="2" inputtype="date" style="left:227px; top:9px; width:100px; height:19px; text-align:center; ">
  195. <script type="javascript" ev:event="xforms-value-changed">
  196. <![CDATA[
  197. var exectodd = model.getValue("/root/send/exectodd");
  198. var execfromdd = model.getValue("/root/send/execfromdd");
  199. if (execfromdd > exectodd) {
  200. messageBox("조회기간 종료일자가 조회기간 시작일자 이전 일자입니다.", "I");
  201. model.setValue("/root/send/exectodd",execfromdd);
  202. exectodd = execfromdd;
  203. }
  204. // var comparetodd = exectodd.toDate().getAddDate(-1,"Y").getDateFormat("YYYYMMDD");
  205. // model.setValue("/root/send/comparetodd",comparetodd);
  206. model.refresh();
  207. ]]>
  208. </script>
  209. </input>
  210. <caption id="caption5" class="search_noutb" style="left:212px; top:10px; width:12px; height:17px; ">~</caption>
  211. <input id="ipt_fromdd" ref="/root/send/execfromdd" class="input_default" navindex="1" inputtype="date" style="left:109px; top:9px; width:100px; height:19px; text-align:center; ">
  212. <script type="javascript" ev:event="xforms-value-changed">
  213. <![CDATA[
  214. var execfromdd = model.getValue("/root/send/execfromdd");
  215. var exectodd = model.getValue("/root/send/exectodd");
  216. if (execfromdd > exectodd) {
  217. messageBox("조회기간 시작일자가 조회기간 종료일자 이후 일자입니다.", "I");
  218. model.setValue("/root/send/execfromdd",exectodd);
  219. execfromdd = exectodd;
  220. }
  221. // var comparefromdd = execfromdd.toDate().getAddDate(-1,"Y").getDateFormat("YYYYMMDD");
  222. // model.setValue("/root/send/comparefromdd",comparefromdd);
  223. model.refresh();
  224. ]]>
  225. </script>
  226. </input>
  227. <caption id="caption3" class="search_name" style="left:15px; top:33px; width:86px; height:17px; ">비교기간 :</caption>
  228. <input id="input1" ref="/root/send/comparetodd" class="input_default" navindex="2" inputtype="date" style="left:227px; top:33px; width:100px; height:19px; text-align:center; ">
  229. <script type="javascript" ev:event="xforms-value-changed">
  230. <![CDATA[
  231. var comparefromdd = model.getValue("/root/send/comparefromdd");
  232. var comparetodd = model.getValue("/root/send/comparetodd");
  233. if (comparefromdd > comparetodd) {
  234. messageBox("비교조회기간 종료일자가 비교조회기간 시작일자 이전 일자입니다.", "I");
  235. model.setValue("/root/send/comparetodd",comparefromdd);
  236. comparetodd = comparefromdd;
  237. }
  238. // var exectodd = comparetodd.toDate().getAddDate(1,"Y").getDateFormat("YYYYMMDD");
  239. // model.setValue("/root/send/exectodd",exectodd);
  240. model.refresh();
  241. ]]>
  242. </script>
  243. </input>
  244. <caption id="caption4" class="search_noutb" style="left:212px; top:33px; width:12px; height:17px; ">~</caption>
  245. <input id="input2" ref="/root/send/comparefromdd" class="input_default" navindex="1" inputtype="date" style="left:109px; top:33px; width:100px; height:19px; text-align:center; ">
  246. <script type="javascript" ev:event="xforms-value-changed">
  247. <![CDATA[
  248. var comparefromdd = model.getValue("/root/send/comparefromdd");
  249. var comparetodd = model.getValue("/root/send/comparetodd");
  250. if (comparefromdd > comparetodd) {
  251. messageBox("비교조회기간 시작일자가 비교조회기간 종료일자 이후 일자입니다.", "I");
  252. model.setValue("/root/send/comparefromdd",comparetodd);
  253. comparefromdd = comparetodd;
  254. }
  255. // var execfromdd = comparefromdd.toDate().getAddDate(1,"Y").getDateFormat("YYYYMMDD");
  256. // model.setValue("/root/send/execfromdd",execfromdd);
  257. model.refresh();
  258. ]]>
  259. </script>
  260. </input>
  261. <caption id="caption7" class="search_name" style="left:380px; top:10px; width:86px; height:17px; ">처방과 :</caption>
  262. <caption id="caption8" class="search_name" style="left:620px; top:10px; width:86px; height:17px; ">치료실 :</caption>
  263. <select1 id="cmb_orddept" ref="/root/send/orddeptcd" appearance="minimal" itemcount="10" style="left:460px; top:9px; width:115px; height:19px; ">
  264. <choices>
  265. <itemset nodeset="/root/init/orddeptcd">
  266. <label ref="nm"/>
  267. <value ref="cd"/>
  268. </itemset>
  269. </choices>
  270. <script type="javascript" ev:event="xforms-value-changed">
  271. <![CDATA[
  272. // cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp = '"+ cmb_orddept.value +"']";
  273. // cmb_orddr.refresh();
  274. ]]>
  275. </script>
  276. </select1>
  277. <select1 id="cmb_curerm" ref="/root/send/curerm" appearance="minimal" itemcount="10" style="left:700px; top:9px; width:115px; height:19px; ">
  278. <choices>
  279. <itemset nodeset="/root/init/curerm">
  280. <label ref="nm"/>
  281. <value ref="cd"/>
  282. </itemset>
  283. </choices>
  284. </select1>
  285. <select1 id="cmb_execdrid" ref="/root/send/execdrid" appearance="minimal" itemcount="10" style="left:460px; top:33px; width:115px; height:19px; ">
  286. <choices>
  287. <itemset nodeset="/root/init/execdrid">
  288. <label ref="nm"/>
  289. <value ref="cd"/>
  290. </itemset>
  291. </choices>
  292. </select1>
  293. <caption id="caption9" class="search_name" style="left:380px; top:33px; width:78px; height:17px; ">치료사 :</caption>
  294. </group>
  295. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:95px; "/>
  296. <datagrid id="grd_list" nodeset="/root/main/list/item" caption="치료실^예약건수(당일포함)^예약건수(당일포함)^예약건수(당일포함)^치료건수^치료건수^치료건수^부도건수^부도건수^부도건수^합계^합계^합계^입원비교기간건수^외래비교기간건수^전체비교기간건수^부도율^부도율^부도율^증감율^증감율^증감율|치료실^입원^외래^전체^입원^외래^전체^입원^외래^전체^입원^외래^전체^입원비교기간건수^외래비교기간건수^전체비교기간건수^입원^외래^전체^입원^외래^전체" colsep="^" colwidth="140, 57, 57, 57, 57, 57, 57, 57, 57, 57, 65, 65, 65, 100, 100, 100, 57, 57, 57, 57, 57, 57" mergecellsfixedrows="bycolrec" rowsep="|" subtotalposition="below" style="left:0px; top:100px; width:1195px; height:640px; ">
  297. <col ref="curerm"/>
  298. <col ref="inrsrvcnt" format="(-)#,###" style="text-align:right; "/>
  299. <col ref="outrsrvcnt" format="(-)#,###" style="text-align:right; "/>
  300. <col ref="sumrsrv" format="(-)#,###" style="text-align:right; "/>
  301. <col ref="intestexeccnt" format="(-)#,###" style="text-align:right; "/>
  302. <col ref="outtestexeccnt" format="(-)#,###" style="text-align:right; "/>
  303. <col ref="sumprcp" format="(-)#,###" style="text-align:right; "/>
  304. <col ref="innopaycnt" format="(-)#,###" style="text-align:right; "/>
  305. <col ref="outnopaycnt" format="(-)#,###" style="text-align:right; "/>
  306. <col ref="sumnopay" format="(-)#,###" style="text-align:right; "/>
  307. <col ref="inmonthsum" format="(-)#,###" style="text-align:right; "/>
  308. <col ref="outmonthsum" format="(-)#,###" style="text-align:right; "/>
  309. <col ref="monthsum" format="(-)#,###" style="text-align:right; "/>
  310. <col ref="insumcnt" visibility="hidden"/>
  311. <col ref="outsumcnt" visibility="hidden"/>
  312. <col ref="sumcnt" visibility="hidden"/>
  313. <col ref="inpaycnt" format="(-)#,###.#%" style="text-align:right; "/>
  314. <col ref="outpaycnt" format="(-)#,###.#%" style="text-align:right; "/>
  315. <col ref="paycnt" format="(-)#,###.#%" style="text-align:right; "/>
  316. <col ref="incomparerate" format="(-)#,###.#%" style="text-align:right; "/>
  317. <col ref="outcomparerate" format="(-)#,###.##%" style="text-align:right; "/>
  318. <col ref="comparerate" format="(-)#,###.##%" style="text-align:right; "/>
  319. </datagrid>
  320. <button id="button1" class="btn2_letter4" style="left:1131px; top:75px; width:64px; height:19px; ">
  321. <caption>엑셀저장</caption>
  322. <script type="javascript" ev:event="DOMActivate">
  323. <![CDATA[
  324. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  325. if (fileName != "") {
  326. grd_list.saveExcel(fileName);
  327. }
  328. ]]>
  329. </script>
  330. </button>
  331. </group>
  332. </xhtml:body>
  333. </xhtml:html>