SMAES04900_검사통합예약통계(예약기준).xrw 31 KB

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