SMAES03300_재활의학팀치료환자수.xrw 15 KB

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