SMAES04300_핵의학체내치료별통합통계.xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  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. <systkey1/>
  13. <systkey2/>
  14. <systkey3/>
  15. <item01/>
  16. <item02/>
  17. <item03/>
  18. <item04/>
  19. <item05/>
  20. <item06/>
  21. <item07/>
  22. <item08/>
  23. <item09/>
  24. <item10/>
  25. <item11/>
  26. <item12/>
  27. <item13/>
  28. <item14/>
  29. <item15/>
  30. <item16/>
  31. <item17/>
  32. <item18/>
  33. <item19/>
  34. <item20/>
  35. <item21/>
  36. <item22/>
  37. <item23/>
  38. <item24/>
  39. <item25/>
  40. <item26/>
  41. <item27/>
  42. <item28/>
  43. <item29/>
  44. <item30/>
  45. <item31/>
  46. <total/>
  47. </item>
  48. </list>
  49. <isublist>
  50. <item>
  51. <ioflag/>
  52. <drugqty/>
  53. <cnt/>
  54. <total/>
  55. </item>
  56. </isublist>
  57. <osublist>
  58. <item>
  59. <ioflag/>
  60. <drugqty/>
  61. <cnt/>
  62. <total/>
  63. </item>
  64. </osublist>
  65. <examsum>
  66. <isum/>
  67. <osum/>
  68. <total/>
  69. </examsum>
  70. </main>
  71. <send>
  72. <srchdate/>
  73. <globalinstance>
  74. <instance1/>
  75. </globalinstance>
  76. <suppdeptcd/>
  77. <srchstatsflag>A</srchstatsflag>
  78. <excuroomgrpcdid/>
  79. <excuroomcdid/>
  80. <srchflag>D</srchflag>
  81. <srchioflag>A</srchioflag>
  82. <srchseanflag>G</srchseanflag>
  83. </send>
  84. <inti>
  85. <cmb_info>
  86. <initexcuroomgrp/>
  87. <excuroom/>
  88. </cmb_info>
  89. </inti>
  90. <hidden/>
  91. <inti_com>
  92. <srchdate/>
  93. </inti_com>
  94. </root>
  95. </instance>
  96. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  101. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  102. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  103. <script type="javascript" ev:event="xforms-ready">
  104. <![CDATA[
  105. aezfSetSuppDeptcd();
  106. // 검사실
  107. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  108. model.setValue("/root/send/srchdate", getCurrentDate().substr(0,6));
  109. model.removenode("/root/main/list");
  110. model.setValue("/root/send/srchioflag", "A");
  111. btn_case1.selected = true;
  112. submit("TRAES09001", false);
  113. addComboItem("cmb_excuroomgrp","--전체--","","above");
  114. setTitle();
  115. model.refresh();
  116. ]]>
  117. </script>
  118. <submission id="TRAES09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  119. <submission id="TRAEA01418" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/cmb_info"/>
  120. <submission id="TRAES04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  121. </model>
  122. <script type="javascript">
  123. <![CDATA[
  124. /* @group : 통합 통계
  125. * @ver :
  126. * @by :
  127. * @-----------------------------------
  128. * @type : function
  129. * @access : public
  130. * @desc : 검사별 통합 통계 리스트 조회
  131. */
  132. function getNmedSytsStatsCaseList(){
  133. // 일별
  134. if (btn_case1.selected == true) {
  135. model.setValue("/root/send/srchflag","D");
  136. grd_list = grd_daylist;
  137. // 월별
  138. } else if (btn_case2.selected == true) {
  139. model.setValue("/root/send/srchflag","M");
  140. grd_list = grd_monthlist;
  141. // 분기별
  142. } else if (btn_case3.selected == true) {
  143. model.setValue("/root/send/srchflag","Q");
  144. grd_list = grd_qurtlist;
  145. // 년도별
  146. } else if (btn_case4.selected == true) {
  147. model.setValue("/root/send/srchflag","Y");
  148. grd_list = grd_yearlist;
  149. }
  150. model.removenode("/root/main/list");
  151. model.removenode("/root/main/sublist");
  152. model.removenode("/root/main/isublist");
  153. model.removenode("/root/main/osublist");
  154. if (submit("TRAES04301")) {
  155. var cnt = getNodesetCount("/root/main/list/item");
  156. if (cnt > 1) {
  157. var srchstatsflag = model.getValue("/root/send/srchstatsflag");
  158. grd_isublist.attribute("nodeset") = "/root/main/sublist/item[ioflag='입원']" ;
  159. grd_osublist.attribute("nodeset") = "/root/main/sublist/item[ioflag='외래']" ;
  160. grd_isublist.rebuild();
  161. grd_osublist.rebuild();
  162. var rowCnt = getNodesetCount("/root/main/sublist/item");
  163. var ioflag = "";
  164. var iSum = 0;
  165. var oSum = 0;
  166. var total = 0;
  167. for (i=1; i<=rowCnt; i++) {
  168. ioflag = model.getValue("/root/main/sublist/item[" + i + "]/ioflag");
  169. if (ioflag == "입원") {
  170. iSum = iSum + eval(model.getValue("/root/main/sublist/item[" + i + "]/cnt"));
  171. } else if (ioflag == "외래") {
  172. oSum = oSum + eval(model.getValue("/root/main/sublist/item[" + i + "]/cnt"));
  173. }
  174. }
  175. total = eval(iSum) + eval(oSum);
  176. model.makeValue("/root/main/examsum/isum", iSum);
  177. model.makeValue("/root/main/examsum/osum", oSum);
  178. model.makeValue("/root/main/examsum/total", total);
  179. // 소계 및 합계 구하는 함수 호출 - grid Object, 통계구분, 탭구분)
  180. fSetSubTotal(grd_list, srchstatsflag , model.getValue("/root/send/srchflag"));
  181. }
  182. }
  183. }
  184. /* @group : 통합 통계
  185. * @ver :
  186. * @by :
  187. * @-----------------------------------
  188. * @type : function
  189. * @access : public
  190. * @desc : 조회된 통계 데이타에 대한 소계 및 총계를 구하는 함수
  191. */
  192. function fSetSubTotal(grd_list, srchstatsflag, srchflag) {
  193. var colpos = 0;
  194. var rowCnt = 0;
  195. grd_list.colSort(0) = "asc";
  196. grd_list.sort(0, 0, grd_list.rows, grd_list.cols) = "usersort";
  197. for(i=3; i<grd_list.cols; i++) {
  198. grd_list.subtotal("sum", -1, i, "#,###", "background-color:#CCFFCC; color:#0000ff; font-weight:bold; ", 1, "총계");
  199. }
  200. grd_list.mergeByFree(grd_list.rows-1, 1 , grd_list.rows-1, 3);
  201. //총계 증감율 합계
  202. var total = 0;
  203. var comparecnt = 0;
  204. var comparerate = "";
  205. // 분기별일 경우 총계 분기별 증감율 구하기
  206. if (srchflag == "Q") {
  207. // 1분기
  208. total = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item01"));
  209. comparecnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item09"));
  210. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item02")) = setCompareRate(total, comparecnt);
  211. // 2분기
  212. total = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item03"));
  213. comparecnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item10"));
  214. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item04")) = setCompareRate(total, comparecnt);
  215. // 3분기
  216. total = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item05"));
  217. comparecnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item11"));
  218. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item06")) = setCompareRate(total, comparecnt);
  219. // 4분기
  220. total = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item07"));
  221. comparecnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item12"));
  222. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("item08")) = setCompareRate(total, comparecnt);
  223. grd_list.cellformat(grd_list.rows-1, grd_list.colRef("item02")) = "(-)#,### %";
  224. grd_list.cellformat(grd_list.rows-1, grd_list.colRef("item04")) = "(-)#,### %";
  225. grd_list.cellformat(grd_list.rows-1, grd_list.colRef("item06")) = "(-)#,### %";
  226. grd_list.cellformat(grd_list.rows-1, grd_list.colRef("item08")) = "(-)#,### %";
  227. }
  228. //총계 증감율 합계
  229. total = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("total"));
  230. comparecnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("comparecnt"));
  231. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("comparerate")) = setCompareRate(total, comparecnt) ;
  232. grd_list.cellformat(grd_list.rows-1, grd_list.colRef("comparerate")) = "(-)#,### %";
  233. model.refresh();
  234. }
  235. /* @group : 통합 통계
  236. * @ver :
  237. * @by :
  238. * @-----------------------------------
  239. * @type : function
  240. * @access : public
  241. * @desc : 증감율을 구하는 함수
  242. */
  243. function setCompareRate(total, comparecnt) {
  244. var comparerate = 0;
  245. if (parseInt(comparecnt) > 0) {
  246. comparerate = ( ( parseInt(total) - parseInt(comparecnt) ) / parseInt(comparecnt) ) * 100;
  247. if (comparerate != null) {
  248. comparerate = comparerate.toString().getRound(-1,"HALF_UP");
  249. } else {
  250. comparerate = 0;
  251. }
  252. } else {
  253. comparerate = 0;
  254. }
  255. return comparerate;
  256. }
  257. /* @group : 통합 통계
  258. * @ver :
  259. * @by :
  260. * @-----------------------------------
  261. * @type : function
  262. * @access : public
  263. * @desc : 통계 구분별 그리드 header를 정의하는 함수
  264. */
  265. function setTitle() {
  266. var baseDate = model.getValue("/root/send/srchdate") + "01";
  267. model.removenode("/root/main/list");
  268. var stHeader = "";
  269. var stMonthHeader = "";
  270. var stDay = "";
  271. var stMonth = "";
  272. var stQurt = "";
  273. var stYear = "";
  274. var sDayCnt = baseDate.toDate().getMonthDay();
  275. var baseYear = baseDate.substr(0,4);
  276. stHeader = "구분^병실^처방량^";
  277. stDay = "1일^2일^3일^4일^5일^6일^7일^8일^9일^10일^11일^12일^13일^14일^15일^16일^17일^18일^19일^20일^21일^22일^23일^24일^25일^26일^27일^28일^29일^30일^31일^합계";
  278. stMonth = baseYear + "년^"+ baseYear + "년^"+ baseYear + "년^"+ baseYear + "년^"+ baseYear + "년^"+ baseYear + "년^"+ baseYear + "년^"+ baseYear + "년^"+ baseYear + "년^"+ baseYear + "년^"+ baseYear + "년^"+ baseYear + "년^합계^전년도합계^증감율|"+ stHeader +"1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^합계^전년도합계^증감율";
  279. stQurt = "1분기^1분기^2분기^2분기^3분기^3분기^4분기^4분기^합계^전년도합계^증감율|"+ stHeader +"환자수^증감율^환자수^증감율^환자수^증감율^환자수^증감율^합계^전년도합계^증감율";
  280. var dtYearMonth = baseDate.toDate().getAddDate(-4, "Y");
  281. var addYear = "";
  282. for (var i = 0; i <= 4; i++) {
  283. addYear = dtYearMonth.getDateFormat("YYYY");
  284. stYear = stYear + addYear + "년^";
  285. dtYearMonth.getAddDate(1, "Y");
  286. }
  287. stYear = stYear + "합계^비교기간^증감율";
  288. // 일별
  289. stDay = stHeader + stDay;
  290. grd_daylist.caption = stDay;
  291. // 월별
  292. stMonth = stHeader + stMonth;
  293. grd_monthlist.caption = stMonth;
  294. // 분기별
  295. stQurt = stHeader + stQurt;
  296. grd_qurtlist.caption = stQurt;
  297. // 년도별
  298. stYear = stHeader + stYear;
  299. grd_yearlist.caption =stYear;
  300. if(sDayCnt > 30) {
  301. grd_daylist.colHidden(grd_daylist.colRef("item29")) = false;
  302. grd_daylist.colHidden(grd_daylist.colRef("item30")) = false;
  303. grd_daylist.colHidden(grd_daylist.colRef("item31")) = false;
  304. }else if(sDayCnt == 29) {
  305. grd_daylist.colHidden(grd_daylist.colRef("item29")) = false;
  306. grd_daylist.colHidden(grd_daylist.colRef("item30")) = true;
  307. grd_daylist.colHidden(grd_daylist.colRef("item31")) = true;
  308. }else if(sDayCnt < 29) {
  309. grd_daylist.colHidden(grd_daylist.colRef("item29")) = true;
  310. grd_daylist.colHidden(grd_daylist.colRef("item30")) = true;
  311. grd_daylist.colHidden(grd_daylist.colRef("item31")) = true;
  312. }else {
  313. grd_daylist.colHidden(grd_daylist.colRef("item29")) = false;
  314. grd_daylist.colHidden(grd_daylist.colRef("item30")) = false;
  315. grd_daylist.colHidden(grd_daylist.colRef("item31")) = true;
  316. }
  317. grd_daylist.rebuild();
  318. grd_monthlist.rebuild();
  319. grd_qurtlist.rebuild();
  320. grd_yearlist.rebuild();
  321. }
  322. ]]>
  323. </script>
  324. </xhtml:head>
  325. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  326. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  327. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:335px; height:14px; ">치료 통합 통계</caption>
  328. </group>
  329. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  330. <button id="btn_excsave" class="btn2_letter4" visibility="visible" style="left:1130px; top:50px; width:64px; height:19px; ">
  331. <caption>엑셀저장</caption>
  332. <script type="javascript" ev:event="DOMActivate">
  333. <![CDATA[
  334. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  335. if (fileName != "") {
  336. // 일별
  337. if (btn_case1.selected == true) {
  338. grd_daylist.saveExcel(fileName);
  339. // 월별
  340. } else if (btn_case2.selected == true) {
  341. grd_monthlist.saveExcel(fileName);
  342. // 분기별
  343. } else if (btn_case3.selected == true) {
  344. grd_qurtlist.saveExcel(fileName);
  345. // 년도별
  346. } else if (btn_case4.selected == true) {
  347. grd_yearlist.saveExcel(fileName);
  348. }
  349. }
  350. ]]>
  351. </script>
  352. </button>
  353. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:30px; vertical-align:top; ">
  354. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  355. <line id="line13" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:25px; "/>
  356. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1120px; top:4px; width:56px; height:22px; ">
  357. <caption>조회</caption>
  358. <script type="javascript" ev:event="DOMActivate">
  359. <![CDATA[
  360. // 치료별 통합 통계 조회
  361. getNmedSytsStatsCaseList();
  362. ]]>
  363. </script>
  364. </button>
  365. <caption id="caption3" class="search_name" style="left:15px; top:7px; width:86px; height:17px; ">기준년월 :</caption>
  366. <input id="input4" ref="/root/send/srchdate" class="input_default" inputtype="date" format="yyyy-mm" style="left:105px; top:6px; width:90px; height:19px; ">
  367. <script type="javascript" ev:event="xforms-value-changed">
  368. <![CDATA[
  369. setTitle();
  370. ]]>
  371. </script>
  372. </input>
  373. <select1 id="cmb_excuroomgrp" ref="/root/send/excuroomgrpcdid" class="combo_default" visibility="hidden" appearance="minimal" style="left:290px; top:6px; width:118px; height:19px; ">
  374. <choices>
  375. <itemset nodeset="/root/init/initexcuroomgrp">
  376. <label ref="nm"/>
  377. <value ref="cd"/>
  378. </itemset>
  379. </choices>
  380. <script type="javascript" ev:event="xforms-value-changed">
  381. <![CDATA[
  382. var excuroomgrpcdid = model.getValue("/root/send/excuroomgrpcdid");
  383. if (excuroomgrpcdid == "") {
  384. cmb_excuroom.disabled = true;
  385. } else {
  386. cmb_excuroom.disabled = false;
  387. }
  388. if (submit("TRAEA01418", false)) {
  389. model.makeNode("/root/init/cmb_info/excuroom");
  390. copyNodeType("/root/init/cmb_info/excuroom","/root/hidden/cmb_info/excuroom","replace");
  391. }
  392. model.refresh();
  393. //getNmedSytsStatsCaseList();
  394. ]]>
  395. </script>
  396. </select1>
  397. <select1 id="cmb_excuroom" ref="/root/send/excuroomcdid" class="combo_default" visibility="hidden" appearance="minimal" style="left:410px; top:6px; width:130px; height:19px; ">
  398. <choices>
  399. <itemset nodeset="/root/init/cmb_info/excuroom/initexcuroom">
  400. <label ref="excuroomcdnm"/>
  401. <value ref="excuroomcdid"/>
  402. </itemset>
  403. </choices>
  404. <script type="javascript" ev:event="xforms-value-changed">
  405. <![CDATA[
  406. // 치료별 통합 통계 조회
  407. getNmedSytsStatsCaseList();
  408. ]]>
  409. </script>
  410. </select1>
  411. <caption id="caption7" class="search_name" visibility="hidden" style="left:210px; top:7px; width:80px; height:17px; ">검사실 :</caption>
  412. <caption id="caption12" class="search_name" visibility="hidden" style="left:605px; top:7px; width:62px; height:17px; ">구분 :</caption>
  413. <select1 id="radio2" ref="/root/send/srchioflag" visibility="hidden" appearance="full" cols="3" overflow="visible" style="left:669px; top:7px; width:136px; height:18px; border-style:none; ">
  414. <choices>
  415. <item>
  416. <label>전체</label>
  417. <value>A</value>
  418. </item>
  419. <item>
  420. <label>입원</label>
  421. <value>I</value>
  422. </item>
  423. <item>
  424. <label>외래</label>
  425. <value>O</value>
  426. </item>
  427. </choices>
  428. <script type="javascript" ev:event="xforms-value-changed">
  429. <![CDATA[
  430. getNmedSytsStatsCaseList();
  431. ]]>
  432. </script>
  433. </select1>
  434. </group>
  435. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  436. <switch id="switch1" style="left:0px; top:75px; width:1195px; height:517px; ">
  437. <case id="case1" selected="true">
  438. <datagrid id="grd_daylist" nodeset="/root/main/list/item" backcoloralternate="transparent" caption="구분^병실^처방량^1일^2일^3일^4일^5일^6일^7일^8일^9일^10일^11일^12일^13일^14일^15일^16일^17일^18일^19일^20일^21일^22일^23일^24일^25일^26일^27일^28일^29일^30일^31일^합계" colsep="^" colwidth="80, 80, 80, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 60" frozencols="3" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" multitotal="true" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:0px; width:1192px; height:510px; ">
  439. <col ref="systkey1" style="text-align:center; "/>
  440. <col ref="systkey2" style="text-align:center; "/>
  441. <col ref="systkey3" style="text-align:center; "/>
  442. <col ref="item01" format="#,###" style="text-align:right; "/>
  443. <col ref="item02" format="#,###" style="text-align:right; "/>
  444. <col ref="item03" format="#,###" style="text-align:right; "/>
  445. <col ref="item04" format="#,###" style="text-align:right; "/>
  446. <col ref="item05" format="#,###" style="text-align:right; "/>
  447. <col ref="item06" format="#,###" style="text-align:right; "/>
  448. <col ref="item07" format="#,###" style="text-align:right; "/>
  449. <col ref="item08" format="#,###" style="text-align:right; "/>
  450. <col ref="item09" format="#,###" style="text-align:right; "/>
  451. <col ref="item10" format="#,###" style="text-align:right; "/>
  452. <col ref="item11" format="#,###" style="text-align:right; "/>
  453. <col ref="item12" format="#,###" style="text-align:right; "/>
  454. <col ref="item13" format="#,###" style="text-align:right; "/>
  455. <col ref="item14" format="#,###" style="text-align:right; "/>
  456. <col ref="item15" format="#,###" style="text-align:right; "/>
  457. <col ref="item16" format="#,###" style="text-align:right; "/>
  458. <col ref="item17" format="#,###" style="text-align:right; "/>
  459. <col ref="item18" format="#,###" style="text-align:right; "/>
  460. <col ref="item19" format="#,###" style="text-align:right; "/>
  461. <col ref="item20" format="#,###" style="text-align:right; "/>
  462. <col ref="item21" format="#,###" style="text-align:right; "/>
  463. <col ref="item22" format="#,###" style="text-align:right; "/>
  464. <col ref="item23" format="#,###" style="text-align:right; "/>
  465. <col ref="item24" format="#,###" style="text-align:right; "/>
  466. <col ref="item25" format="#,###" style="text-align:right; "/>
  467. <col ref="item26" format="#,###" style="text-align:right; "/>
  468. <col ref="item27" format="#,###" style="text-align:right; "/>
  469. <col ref="item28" format="#,###" style="text-align:right; "/>
  470. <col ref="item29" format="#,###" style="text-align:right; "/>
  471. <col ref="item30" format="#,###" style="text-align:right; "/>
  472. <col ref="item31" format="#,###" style="text-align:right; "/>
  473. <col ref="total" format="#,###" style="text-align:right; "/>
  474. </datagrid>
  475. </case>
  476. <case id="case2">
  477. <datagrid id="grd_monthlist" nodeset="/root/main/list/item" backcoloralternate="transparent" caption="구분^병실^처방량^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^합계^전년도합계^증감율^전년도합계^증감(%)|구분^병실^처방량^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^합계^전년도합계^증감율" colsep="^" colwidth="100, 100, 100, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 80, 80, 80" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:0px; width:1192px; height:510px; ">
  478. <col ref="systkey1" style="text-align:center; "/>
  479. <col ref="systkey2" style="text-align:center; "/>
  480. <col ref="systkey3" style="text-align:center; "/>
  481. <col ref="item01" style="text-align:right; "/>
  482. <col ref="item02" style="text-align:right; "/>
  483. <col ref="item03" style="text-align:right; "/>
  484. <col ref="item04" style="text-align:right; "/>
  485. <col ref="item05" style="text-align:right; "/>
  486. <col ref="item06" style="text-align:right; "/>
  487. <col ref="item07" style="text-align:right; "/>
  488. <col ref="item08" style="text-align:right; "/>
  489. <col ref="item09" style="text-align:right; "/>
  490. <col ref="item10" style="text-align:right; "/>
  491. <col ref="item11" style="text-align:right; "/>
  492. <col ref="item12" style="text-align:right; "/>
  493. <col ref="total" style="text-align:right; "/>
  494. <col ref="comparecnt" style="text-align:right; "/>
  495. <col ref="comparerate" format="(-)#,### %" style="text-align:right; "/>
  496. </datagrid>
  497. </case>
  498. <case id="case3">
  499. <datagrid id="grd_qurtlist" nodeset="/root/main/list/item" backcoloralternate="transparent" caption="구분^병실^처방량^1분기^1분기^2분기^2분기^3분기^3분기^4분기^4분기^합계^전년도합계^증감율|구분^병실^처방량^환자수^증감율^환자수^증감율^환자수^증감율^환자수^증감율^합계^전년도합계^증감율" colsep="^" colwidth="100, 100, 100, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:0px; width:1192px; height:510px; ">
  500. <col ref="systkey1" style="text-align:center; "/>
  501. <col ref="systkey2" style="text-align:center; "/>
  502. <col ref="systkey3" style="text-align:center; "/>
  503. <col ref="item01" style="text-align:right; "/>
  504. <col ref="item02" format="(-)#,### %" style="text-align:right; "/>
  505. <col ref="item03" style="text-align:right; "/>
  506. <col ref="item04" format="(-)#,### %" style="text-align:right; "/>
  507. <col ref="item05" style="text-align:right; "/>
  508. <col ref="item06" format="(-)#,### %" style="text-align:right; "/>
  509. <col ref="item07" style="text-align:right; "/>
  510. <col ref="item08" format="(-)#,### %" style="text-align:right; "/>
  511. <col ref="total" style="text-align:right; "/>
  512. <col ref="comparecnt" style="text-align:right; "/>
  513. <col ref="comparerate" format="(-)#,### %" style="text-align:right; "/>
  514. </datagrid>
  515. </case>
  516. <case id="case4">
  517. <datagrid id="grd_yearlist" nodeset="/root/main/list/item" backcoloralternate="transparent" caption="구분^병실^처방량^2005년^2006년^2007년^2008년^2009년^합계^비교기간^증감율" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:0px; width:1192px; height:510px; ">
  518. <col ref="systkey1" style="text-align:center; "/>
  519. <col ref="systkey2" style="text-align:center; "/>
  520. <col ref="systkey3" style="text-align:center; "/>
  521. <col ref="item01" style="text-align:right; "/>
  522. <col ref="item02" style="text-align:right; "/>
  523. <col ref="item03" style="text-align:right; "/>
  524. <col ref="item04" style="text-align:right; "/>
  525. <col ref="item05" style="text-align:right; "/>
  526. <col ref="total" style="text-align:right; "/>
  527. <col ref="comparecnt" style="text-align:right; "/>
  528. <col ref="comparerate" format="(-)#,### %" style="text-align:right; "/>
  529. </datagrid>
  530. </case>
  531. </switch>
  532. <button id="btn_case1" class="btn_sw" group="tab2" selected="true" style="left:2px; top:48px; width:60px; height:22px; ">
  533. <caption>일별</caption>
  534. <toggle case="case1" ev:event="onclick"/>
  535. <script type="javascript" ev:event="DOMActivate">
  536. <![CDATA[
  537. model.removenode("/root/main/list");
  538. model.refresh();
  539. model.toggle("case1");
  540. rdo_srchioflag.visible = false;
  541. // 치료별 통합 통계 조회
  542. getNmedSytsStatsCaseList();
  543. ]]>
  544. </script>
  545. </button>
  546. <button id="btn_case2" class="btn_sw" group="tab2" style="left:62px; top:48px; width:60px; height:22px; ">
  547. <caption>월별</caption>
  548. <toggle case="case1" ev:event="onclick"/>
  549. <script type="javascript" ev:event="DOMActivate">
  550. <![CDATA[
  551. model.removenode("/root/main/list");
  552. model.refresh();
  553. model.toggle("case2");
  554. rdo_srchioflag.visible = false;
  555. // 치료별 통합 통계 조회
  556. getNmedSytsStatsCaseList();
  557. ]]>
  558. </script>
  559. </button>
  560. <button id="btn_case3" class="btn_sw" group="tab2" style="left:122px; top:48px; width:60px; height:22px; ">
  561. <caption>분기별</caption>
  562. <toggle case="case1" ev:event="onclick"/>
  563. <script type="javascript" ev:event="DOMActivate">
  564. <![CDATA[
  565. model.removenode("/root/main/list");
  566. model.refresh();
  567. model.toggle("case3");
  568. rdo_srchioflag.visible = true;
  569. // 치료별 통합 통계 조회
  570. getNmedSytsStatsCaseList();
  571. ]]>
  572. </script>
  573. </button>
  574. <button id="btn_case4" class="btn_sw" group="tab2" style="left:182px; top:48px; width:60px; height:22px; ">
  575. <caption>년도별</caption>
  576. <toggle case="case1" ev:event="onclick"/>
  577. <script type="javascript" ev:event="DOMActivate">
  578. <![CDATA[
  579. model.removenode("/root/main/list");
  580. model.refresh();
  581. model.toggle("case4");
  582. rdo_srchioflag.visible = false;
  583. // 치료별 통합 통계 조회
  584. getNmedSytsStatsCaseList();
  585. ]]>
  586. </script>
  587. </button>
  588. <select1 id="rdo_srchioflag" ref="/root/send/srchseanflag" appearance="full" cols="3" overflow="visible" style="left:260px; top:50px; width:115px; height:18px; border-style:none; ">
  589. <choices>
  590. <item>
  591. <label>일반</label>
  592. <value>G</value>
  593. </item>
  594. <item>
  595. <label>회기별</label>
  596. <value>H</value>
  597. </item>
  598. </choices>
  599. <script type="javascript" ev:event="xforms-value-changed">
  600. <![CDATA[
  601. // 치료별 통합 통계 조회
  602. getNmedSytsStatsCaseList();
  603. ]]>
  604. </script>
  605. </select1>
  606. <datagrid id="grd_isublist" nodeset="/root/main/isublist/item" caption="구분^처방량^건수" colsep="^" colwidth="75, 80, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:600px; width:258px; height:140px; ">
  607. <col ref="ioflag" style="text-align:center; "/>
  608. <col ref="drugqty" style="text-align:right; "/>
  609. <col ref="cnt" style="text-align:right; "/>
  610. </datagrid>
  611. <datagrid id="grd_osublist" nodeset="/root/main/osublist/item" caption="구분^처방량^건수" colsep="^" colwidth="75, 90, 90" mergecellsfixedrows="bycolrec" rowsep="|" style="left:265px; top:600px; width:258px; height:140px; ">
  612. <col ref="ioflag" style="text-align:center; "/>
  613. <col ref="drugqty" style="text-align:right; "/>
  614. <col ref="cnt" style="text-align:right; "/>
  615. </datagrid>
  616. <caption id="caption2" class="cell_1" style="left:526px; top:627px; width:127px; height:23px; vertical-align:middle; ">외래합계</caption>
  617. <caption id="caption4" class="cell_1" style="left:526px; top:652px; width:127px; height:23px; vertical-align:middle; ">총합계</caption>
  618. <input id="input1" ref="/root/main/examsum/isum" style="left:655px; top:604px; width:129px; height:19px; text-align:right; "/>
  619. <input id="input2" ref="/root/main/examsum/osum" style="left:655px; top:630px; width:129px; height:19px; text-align:right; "/>
  620. <caption id="caption8" class="cell_1" style="left:526px; top:602px; width:127px; height:23px; vertical-align:middle; ">병실합계</caption>
  621. <input id="input3" ref="/root/main/examsum/total" style="left:655px; top:655px; width:129px; height:19px; text-align:right; "/>
  622. </group>
  623. </xhtml:body>
  624. </xhtml:html>