SMAES05800_재활의학팀코드별치료건수.xrw 15 KB

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