SMAES05700_재활의학팀코드별월별통계.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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. <i_month01/>
  14. <o_month01/>
  15. <a_month01/>
  16. <i_month02/>
  17. <o_month02/>
  18. <a_month02/>
  19. <i_month03/>
  20. <o_month03/>
  21. <a_month03/>
  22. <i_month04/>
  23. <o_month04/>
  24. <a_month04/>
  25. <i_month05/>
  26. <o_month05/>
  27. <a_month05/>
  28. <i_month06/>
  29. <o_month06/>
  30. <a_month06/>
  31. <i_month07/>
  32. <o_month07/>
  33. <a_month07/>
  34. <i_month08/>
  35. <o_month08/>
  36. <a_month08/>
  37. <i_month09/>
  38. <o_month09/>
  39. <a_month09/>
  40. <i_month10/>
  41. <o_month10/>
  42. <a_month10/>
  43. <i_month11/>
  44. <o_month11/>
  45. <a_month11/>
  46. <i_month12/>
  47. <o_month12/>
  48. <a_month12/>
  49. <i_monthsum/>
  50. <o_monthsum/>
  51. <a_monthsum/>
  52. <totexeccnt/>
  53. <totrsrvcnt/>
  54. <comparerate/>
  55. </item>
  56. </list>
  57. </main>
  58. <send>
  59. <srchdate/>
  60. <globalinstance>
  61. <instance1/>
  62. </globalinstance>
  63. <suppdeptcd/>
  64. <execfromdd/>
  65. <exectodd/>
  66. <comparefromdd/>
  67. <comparetodd/>
  68. <orddeptcd/>
  69. <fstpatyn/>
  70. <curerm/>
  71. <curedr/>
  72. <prcpcd/>
  73. <execdrid/>
  74. <srchflag>T</srchflag>
  75. <srchioflag/>
  76. </send>
  77. <inti/>
  78. <hidden/>
  79. </root>
  80. </instance>
  81. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  86. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  87. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  88. <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
  89. <script type="javascript" ev:event="xforms-ready">
  90. <![CDATA[
  91. aezfSetSuppDeptcd();
  92. // 진료과/진료의 조회
  93. // submit("TRPMOCOM01", false);
  94. submit("TRAES09000", false);
  95. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  96. var fromdd = getCurrentDate().substr(0,4) + "01"
  97. var todd = getCurrentDate().substr(0,4) + "12";
  98. var comparefromdd = getCurrentDate().substr(0,6).toDate().getAddDate(-1,"Y").getDateFormat("YYYY") + "01";
  99. var comparetodd = comparefromdd.substr(0,4) + todd.substr(4,2);
  100. addComboItem("cmb_orddept","--전체--","","above");
  101. addComboItem("cmb_curerm","--전체--","","above");
  102. addComboItem("cmb_execdrid","--전체--","","above");
  103. model.removenode("/root/main/list/item");
  104. // 검사수/환자수 - 검사[T], 환자[P]
  105. model.setValue("/root/send/srchflag", "T");
  106. // 입원/외래구분 - 전체[A], 입원[I], 외래[O]
  107. model.setValue("/root/send/srchioflag","A");
  108. // 초환/재환구분 - 전체[], 초환[F], 재환[R]
  109. model.setValue("/root/send/fstpatyn","");
  110. model.setValue("/root/send/execfromdd", fromdd);
  111. model.setValue("/root/send/exectodd", todd);
  112. setTitle();
  113. model.setValue("/root/send/comparefromdd",comparefromdd);
  114. model.setValue("/root/send/comparetodd",comparetodd);
  115. model.refresh();
  116. ]]>
  117. </script>
  118. <submission id="TRAES09000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/inti"/>
  119. <submission id="TRAES05701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  120. </model>
  121. <script type="javascript">
  122. <![CDATA[
  123. function setTitle() {
  124. model.removenode("/root/main/list");
  125. // 치료 Title Setting
  126. var stYearMonth = model.getValue("/root/send/execfromdd") + "01";
  127. var dtYearMonth = stYearMonth.toDate();
  128. var stEndMonth = model.getValue("/root/send/exectodd") + "01";
  129. var dtEndMonth = stEndMonth.toDate();
  130. var stYearHeader = "처방명^";
  131. var stMonthHeader = "처방명^";
  132. for (var i = 1; i <= 12; i++) {
  133. // 년도
  134. var stYear = dtYearMonth.getDateFormat("YYYY");
  135. // 월
  136. var stMonth = dtYearMonth.getDateFormat("MM");
  137. stYearHeader = stYearHeader + stYear + "년^";
  138. stMonthHeader = stMonthHeader + stMonth + "월^";
  139. if(dtYearMonth.getDateFormat("YYYYMM") > dtEndMonth.getDateFormat("YYYYMM")) {
  140. grd_list.colHidden(1 + i) = true;
  141. } else {
  142. grd_list.colHidden(1 + i) = false;
  143. }
  144. dtYearMonth.getAddDate(1, "M");
  145. }
  146. stYearHeader = stYearHeader + "합계^비교기간건수^증감^증감율|";
  147. stMonthHeader = stMonthHeader + "합계^비교기간건수^증감^증감율";
  148. grd_list.caption = stYearHeader + stMonthHeader;
  149. // model.setValue("/root/send/comparefromdd", stYearMonth.toDate().getAddDate(-12, "M").getDateFormat("YYYYMM"));
  150. // model.setValue("/root/send/comparetodd", stEndMonth.toDate().getAddDate(-12, "M").getDateFormat("YYYYMM"));
  151. model.refresh();
  152. }
  153. ]]>
  154. </script>
  155. </xhtml:head>
  156. <xhtml:body pagewidth="1211" pageheight="784" style="text-align:left; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  157. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  158. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">처방별 월별통계</caption>
  159. </group>
  160. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  161. <caption id="caption1" class="tit_2" style="left:5px; top:80px; width:200px; height:14px; ">치료건수</caption>
  162. <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:75px; width:64px; height:19px; ">
  163. <caption>엑셀저장</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  167. if (fileName != "") {
  168. grd_list.saveExcel(fileName);
  169. }
  170. ]]>
  171. </script>
  172. </button>
  173. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:60px; vertical-align:top; ">
  174. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  175. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회기간 :</caption>
  176. <line id="line13" class="line_4" style="x1:1100px; y1:7px; x2:1100px; y2:52px; "/>
  177. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1120px; top:20px; width:56px; height:22px; ">
  178. <caption>조회</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. model.removenode("/root/main/list");
  182. if (submit("TRAES05701")) {
  183. var cnt = getNodesetCount("/root/main/list/item");
  184. if (cnt > 1) {
  185. grd_list.subtotal("sum", -1, 0, "#,###", "background-color:#99ff99", 1, "합계");
  186. for(i=2; i<17; i++) {
  187. grd_list.subtotal("sum", -1, i, "(-)#,###");
  188. }
  189. var a_monthsum = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("a_monthsum"));
  190. var totexeccnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("totexeccnt"));
  191. var comparerate = ( ( parseInt(a_monthsum) - parseInt(totexeccnt) ) / parseInt(a_monthsum) ) * 100;
  192. if(parseInt(comparerate) != 0) {
  193. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("comparerate")) = comparerate.toString().getRound(-1,"HALF_UP");
  194. } else {
  195. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("comparerate")) = 0;
  196. }
  197. grd_list.cellformat (grd_list.rows-1, grd_list.colRef("comparerate")) = "(-)#,###.#%";
  198. }
  199. }
  200. ]]>
  201. </script>
  202. </button>
  203. <input id="ipt_todd" ref="/root/send/exectodd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm" style="left:210px; top:9px; width:88px; height:19px; text-align:center; "/>
  204. <caption id="caption5" class="search_no_b" style="left:195px; top:10px; width:12px; height:17px; ">~</caption>
  205. <input id="ipt_fromdd" ref="/root/send/execfromdd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm" style="left:104px; top:9px; width:88px; height:19px; text-align:center; ">
  206. <script type="javascript" ev:event="xforms-value-changed">
  207. <![CDATA[
  208. var fromdd = model.getValue("/root/send/execfromdd") + "01";
  209. model.setValue("/root/send/exectodd", fromdd.toDate().getAddDate(11,"M").getDateFormat("YYYYMM"));
  210. setTitle();
  211. ]]>
  212. </script>
  213. </input>
  214. <caption id="caption3" class="search_name" style="left:15px; top:33px; width:86px; height:17px; ">비교기간 :</caption>
  215. <input id="input1" ref="/root/send/comparetodd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm" style="left:210px; top:33px; width:88px; height:19px; text-align:center; "/>
  216. <caption id="caption4" class="search_no_b" style="left:195px; top:33px; width:12px; height:17px; ">~</caption>
  217. <input id="input2" ref="/root/send/comparefromdd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm" style="left:104px; top:33px; width:88px; height:19px; text-align:center; ">
  218. <script type="javascript" ev:event="xforms-value-changed">
  219. <![CDATA[
  220. var comparefromdd = model.getValue("/root/send/comparefromdd") + "01";
  221. model.setValue("/root/send/comparetodd", comparefromdd.toDate().getAddDate(11,"M").getDateFormat("YYYYMM"));
  222. model.refresh();
  223. ]]>
  224. </script>
  225. </input>
  226. <caption id="caption7" class="search_name" style="left:330px; top:10px; width:78px; height:17px; ">처방과 :</caption>
  227. <caption id="caption8" class="search_name" style="left:580px; top:10px; width:86px; height:17px; ">치료실 :</caption>
  228. <caption id="caption9" class="search_name" style="left:580px; top:33px; width:78px; height:17px; ">치료사 :</caption>
  229. <select1 id="cmb_orddept" ref="/root/send/orddeptcd" appearance="minimal" itemcount="10" style="left:407px; top:9px; width:143px; height:19px; ">
  230. <choices>
  231. <itemset nodeset="/root/init/orddeptcd">
  232. <label ref="nm"/>
  233. <value ref="cd"/>
  234. </itemset>
  235. </choices>
  236. <script type="javascript" ev:event="xforms-value-changed">
  237. <![CDATA[
  238. // cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp = '"+ cmb_orddept.value +"']";
  239. // cmb_orddr.refresh();
  240. ]]>
  241. </script>
  242. </select1>
  243. <select1 id="cmb_execdrid" ref="/root/send/execdrid" appearance="minimal" itemcount="10" style="left:665px; top:33px; width:115px; height:19px; ">
  244. <choices>
  245. <itemset nodeset="/root/init/execdrid">
  246. <label ref="nm"/>
  247. <value ref="cd"/>
  248. </itemset>
  249. </choices>
  250. </select1>
  251. <select1 id="cmb_curerm" ref="/root/send/curerm" appearance="minimal" itemcount="10" style="left:665px; top:9px; width:115px; height:19px; ">
  252. <choices>
  253. <itemset nodeset="/root/init/curerm">
  254. <label ref="nm"/>
  255. <value ref="cd"/>
  256. </itemset>
  257. </choices>
  258. </select1>
  259. <caption id="caption11" class="search_name" style="left:810px; top:10px; width:119px; height:17px; ">초환/재환구분 :</caption>
  260. <select1 id="radio1" ref="/root/send/fstpatyn" appearance="full" cols="3" overflow="visible" style="left:935px; top:10px; width:140px; height:18px; border-style:none; ">
  261. <choices>
  262. <item>
  263. <label>전체</label>
  264. <value/>
  265. </item>
  266. <item>
  267. <label>초환</label>
  268. <value>F</value>
  269. </item>
  270. <item>
  271. <label>재환</label>
  272. <value>R</value>
  273. </item>
  274. </choices>
  275. </select1>
  276. <caption id="caption13" class="search_name" style="left:810px; top:35px; width:119px; height:17px; ">입원/외래구분 :</caption>
  277. <select1 id="radio3" ref="/root/send/srchioflag" appearance="full" cols="3" overflow="visible" style="left:935px; top:35px; width:140px; height:18px; border-style:none; ">
  278. <choices>
  279. <item>
  280. <label>전체</label>
  281. <value>A</value>
  282. </item>
  283. <item>
  284. <label>입원</label>
  285. <value>I</value>
  286. </item>
  287. <item>
  288. <label>외래</label>
  289. <value>O</value>
  290. </item>
  291. </choices>
  292. </select1>
  293. </group>
  294. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:95px; "/>
  295. <datagrid id="grd_list" nodeset="/root/main/list/item" caption="처방명^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^합계^비교기간&#xA;건수^증감^증감율|처방명^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^합계^비교기간&#xA;건수^증감^증감율" colsep="^" colwidth="203, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 83, 60, 60" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:100px; width:1195px; height:640px; text-align:center; ">
  296. <col ref="prcpnm" style="text-align:left; "/>
  297. <col ref="a_month1" style="text-align:right; "/>
  298. <col ref="a_month2" style="text-align:right; "/>
  299. <col ref="a_month3" style="text-align:right; "/>
  300. <col ref="a_month4" style="text-align:right; "/>
  301. <col ref="a_month5" style="text-align:right; "/>
  302. <col ref="a_month6" style="text-align:right; "/>
  303. <col ref="a_month7" style="text-align:right; "/>
  304. <col ref="a_month8" style="text-align:right; "/>
  305. <col ref="a_month9" style="text-align:right; "/>
  306. <col ref="a_month10" style="text-align:right; "/>
  307. <col ref="a_month11" style="text-align:right; "/>
  308. <col ref="a_month12" style="text-align:right; "/>
  309. <col ref="a_monthsum" style="text-align:right; "/>
  310. <col ref="totexeccnt" style="text-align:right; "/>
  311. <col ref="totrsrvcnt" style="text-align:right; "/>
  312. <col ref="comparerate" format="(-)#,###.#%" style="text-align:right; "/>
  313. </datagrid>
  314. </group>
  315. </xhtml:body>
  316. </xhtml:html>