SMAES05000_내시경실통합통계.xrw 33 KB

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