SSMNW00100_중환자실 월별연도별 이용현황.xrw 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096
  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. <cond>
  11. <wardcd/>
  12. <yearmonth/>
  13. <year/>
  14. <fromyear/>
  15. <toyear/>
  16. <fromdd/>
  17. <todd/>
  18. <refflag/>
  19. </cond>
  20. <icupatdayinfo>
  21. <!--
  22. <icupatdaylist>
  23. <item>연환자수</item>
  24. <d1></d1>
  25. <d2></d2>
  26. <d3></d3>
  27. <d4></d4>
  28. <d5></d5>
  29. <d6></d6>
  30. <d7></d7>
  31. <d8></d8>
  32. <d9></d9>
  33. <d10></d10>
  34. <d11></d11>
  35. <d12></d12>
  36. </icupatdaylist>
  37. -->
  38. <icupatdaylist>
  39. <item/>
  40. <d01/>
  41. <d02/>
  42. <d03/>
  43. <d04/>
  44. <d05/>
  45. <d06/>
  46. <d07/>
  47. <d08/>
  48. <d09/>
  49. <d10/>
  50. <d11/>
  51. <d12/>
  52. <d13/>
  53. <d14/>
  54. <d15/>
  55. <d16/>
  56. <d17/>
  57. <d18/>
  58. <d19/>
  59. <d20/>
  60. <d21/>
  61. <d22/>
  62. <d23/>
  63. <d24/>
  64. <d25/>
  65. <d26/>
  66. <d27/>
  67. <d28/>
  68. <d29/>
  69. <d30/>
  70. <d31/>
  71. <total/>
  72. </icupatdaylist>
  73. </icupatdayinfo>
  74. <icupatmonthinfo>
  75. <icupatmonthlist>
  76. <item/>
  77. <m01/>
  78. <m02/>
  79. <m03/>
  80. <m04/>
  81. <m05/>
  82. <m06/>
  83. <m07/>
  84. <m08/>
  85. <m09/>
  86. <m10/>
  87. <m11/>
  88. <m12/>
  89. <total/>
  90. </icupatmonthlist>
  91. </icupatmonthinfo>
  92. <icupatyearinfo>
  93. <icupatyearlist>
  94. <item/>
  95. </icupatyearlist>
  96. </icupatyearinfo>
  97. <icupattermdayinfo>
  98. <icupattermdaylist>
  99. <item/>
  100. <d01/>
  101. </icupattermdaylist>
  102. </icupattermdayinfo>
  103. </main>
  104. <init>
  105. <deptinfo>
  106. <deptlist>
  107. <deptcd/>
  108. <deptnm/>
  109. </deptlist>
  110. </deptinfo>
  111. </init>
  112. <send>
  113. <reqdata/>
  114. </send>
  115. </root>
  116. </instance>
  117. <submission id="TRSNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/deptinfo"/>
  118. <submission id="TRSNW00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/icupatdaylist"/>
  119. <submission id="TRSNW00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/icupatmonthlist"/>
  120. <submission id="TRSNW00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/geticupatyearlist"/>
  121. <submission id="TRSNW00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/getpattermdaylist"/>
  122. <submission id="TRSNW00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/icupatyearlist"/>
  123. <submission id="TRSNW00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/icupattermdaylist"/>
  124. </model>
  125. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  126. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  127. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  128. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  129. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  130. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  131. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  132. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  133. </xhtml:head>
  134. <script type="javascript">
  135. <![CDATA[
  136. // 초기화
  137. function fInit(){
  138. // 해당기간 Default설정
  139. model.makeValue("/root/main/cond/yearmonth", (getCurrentDate()).substr(0,6));
  140. model.makeValue("/root/main/cond/year" , (getCurrentDate()).substr(0,4));
  141. model.makeValue("/root/main/cond/fromyear" , (getCurrentDate()).substr(0,4));
  142. model.makeValue("/root/main/cond/toyear" , (getCurrentDate()).substr(0,4));
  143. model.makeValue("/root/main/cond/fromdd" , ((((getCurrentDate()).toDate()).getAddDate(-1,"D")).getDateFormat()));
  144. model.makeValue("/root/main/cond/todd" , getCurrentDate());
  145. model.makeValue("/root/main/cond/refflag" , "A");
  146. if(getScreenMenuParameter() == "SSMNW00200"){ // 자유기간 이용현황 메뉴선택 일 경우
  147. btn_year.selected = false;
  148. ipt_yearmonth.visible = false;
  149. ipt_year.visible = false;
  150. ipt_fromyear.visible = false;
  151. ipt_toyear.visible = false;
  152. cpt_dash.visible = true;
  153. ipt_fromdd.visible = true;
  154. ipt_todd.visible = true;
  155. model.toggle("case_term");
  156. }else{
  157. btn_year.selected = true;
  158. ipt_yearmonth.visible = false;
  159. ipt_year.visible = false;
  160. ipt_fromyear.visible = true;
  161. ipt_toyear.visible = true;
  162. cpt_dash.visible = true;
  163. ipt_fromdd.visible = false;
  164. ipt_todd.visible = false;
  165. model.toggle("case_year");
  166. }
  167. grd_icupatdaylist.rowhidden(1) = true; //일
  168. grd_icupatmonthlist.rowhidden(1) = true; //월
  169. grd_icupatyearlist.rowhidden(1) = true; //연
  170. grd_pattermdaylist.rowhidden(1) = true; //자유
  171. model.removeNodeset("/root/init/deptinfo");
  172. submit("TRSNW00101"); // 중환자실 병동리스트 조회
  173. }
  174. // 중환자실 일별현황 조회
  175. function fSrchICUDayInfo(){
  176. model.removeNodeset("/root/main/icupatdayinfo");
  177. grd_icupatdaylist.refresh();
  178. if(model.getValue("/root/main/cond/refflag") == "A" && model.getValue("/root/main/cond/wardcd") == ""){
  179. return;
  180. }
  181. model.removenode("/root/send");
  182. model.makeNode ("/root/send");
  183. model.makeValue ("/root/send/reqdata/yearmonth" , model.getValue("/root/main/cond/yearmonth")); // 해당월
  184. model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd")); // 병동코드(중환자실)
  185. model.makeValue ("/root/send/reqdata/refflag" , model.getValue("/root/main/cond/refflag")); //조회구분
  186. submit("TRSNW00102"); // 중환자실 일별현황 조회
  187. //grd_icupatdaylist.rowstyle(1, "data", "height") = "0px";
  188. //grd_icupatdaylist.rowhidden(1) = true;
  189. }
  190. // 중환자실 월별현황 조회
  191. function fSrchICUMonthInfo(){
  192. model.removeNodeset("/root/main/icupatmonthinfo");
  193. grd_icupatmonthlist.refresh();
  194. if(model.getValue("/root/main/cond/refflag") == "A" && model.getValue("/root/main/cond/wardcd") == ""){
  195. return;
  196. }
  197. model.removenode("/root/send");
  198. model.makeNode ("/root/send");
  199. model.makeValue ("/root/send/reqdata/year" , model.getValue("/root/main/cond/year")); // 해당연도
  200. model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd")); // 병동코드(중환자실)
  201. model.makeValue ("/root/send/reqdata/refflag" , model.getValue("/root/main/cond/refflag")); //조회구분
  202. submit("TRSNW00103"); // 중환자실 월별현황 조회
  203. //grd_icupatmonthlist.rowstyle(1, "data", "height") = "0px";
  204. //grd_icupatmonthlist.rowhidden(1) = true;
  205. }
  206. // 중환자실 연도별현황 조회
  207. function fSrchICUYearInfo(){
  208. var fromyear = model.getValue("/root/main/cond/fromyear");
  209. var toyear = model.getValue("/root/main/cond/toyear");
  210. var interval = toyear - fromyear;
  211. if(interval > 2 ){
  212. messageBox("해당 조회기간을 3년이내로 설정하십시오.", "I");
  213. return;
  214. }
  215. if(model.getValue("/root/main/cond/refflag") == "A" ){
  216. grd_icupatyearlist.visible = true;
  217. grd_icupatordyearlist.visible = false;
  218. if(model.getValue("/root/main/cond/wardcd") == ""){
  219. return;
  220. }
  221. for( var i = 0; i <grd_icupatyearlist.cols+1000 ; i++ ) {
  222. grd_icupatyearlist.removeColumn(false);
  223. }
  224. model.removeNodeset("/root/main/icupatyearinfo");
  225. grd_icupatyearlist.refresh();
  226. if(fromyear > toyear){
  227. messageBox("해당기간이 올바르지 않습니다.","E", "확인 후 다시 조회하십시오.");
  228. model.setFocus("ipt_fromyear");
  229. return;
  230. }
  231. model.removenode("/root/send");
  232. model.makeNode ("/root/send");
  233. //model.makeValue ("/root/send/reqdata/fromyear" , model.getValue("/root/main/cond/fromyear")); // 시작연도
  234. model.makeValue ("/root/send/reqdata/fromyear" , model.getValue("/root/main/cond/fromyear").toDate().getAddDate(0,"Y").getDateFormat("YYYY")); // 시작연도
  235. model.makeValue ("/root/send/reqdata/toyear" , model.getValue("/root/main/cond/toyear") ); // 종료연도
  236. model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd") ); // 병동코드(중환자실)
  237. model.makeValue ("/root/send/reqdata/refflag" , model.getValue("/root/main/cond/refflag") ); // 조회구분
  238. submit("TRSNW00104"); // 중환자실 연도별현황 조회
  239. // 연도별 그리드 만들기(가로형태로)
  240. var cols = grd_icupatyearlist.cols - grd_icupatyearlist.fixedCols;
  241. var rows = grd_icupatyearlist.rows - grd_icupatyearlist.fixedRows;
  242. var caption = grd_icupatyearlist.caption;
  243. var tempyear = "";
  244. var yearval = "";
  245. var itemcntA = "";
  246. var itemcntB = "";
  247. var itemcnt = "";
  248. var item = "";
  249. var interval = "";
  250. var cnt = "";
  251. var q = 1;
  252. if(getNodesetCount("/root/main/icupatyearinfo/geticupatyearlist") > 0) {
  253. //var fromyear = model.getValue("/root/send/reqdata/fromyear");
  254. //var toyear = model.getValue("/root/send/reqdata/toyear");
  255. var fromyear = model.getValue("/root/main/cond/fromyear");
  256. var toyear = model.getValue("/root/main/cond/toyear");
  257. tempyear = toyear;
  258. interval = toyear - fromyear
  259. if(interval == 0){
  260. cnt = 3;
  261. }else if(interval == 1){
  262. cnt = 6;
  263. }else{
  264. cnt = 9;
  265. //cnt = Number(interval) * 3;
  266. }
  267. for(var i = 0; i < cnt; i++){
  268. if(q != 3){
  269. // 필드만들기(열)
  270. grd_icupatyearlist.addColumn("ref:year"+ tempyear +"; type:output; text-align:center;", false);
  271. caption = caption + "^"+ yearval;
  272. grd_icupatyearlist.valueMatrix(0, i+1) = toyear;
  273. grd_icupatyearlist.valueMatrix(1, i+1) = tempyear + "년";
  274. for(var j = 0; j < 28; j++){
  275. //yearval = model.getValue("/root/main/icupatyearinfo/geticupatyearlist["+ m +"]/year");
  276. //itemcnt = model.getValue("/root/main/icupatyearinfo/geticupatyearlist["+ m +"]/itemcnt");
  277. //item = model.getValue("/root/main/icupatyearinfo/geticupatyearlist["+ m +"]/item");
  278. yearval = model.getValue("/root/main/icupatyearinfo/geticupatyearlist[year = '" + tempyear + "' and sort = '" + (j+1)+ "']/year");
  279. itemcnt = model.getValue("/root/main/icupatyearinfo/geticupatyearlist[year = '" + tempyear + "' and sort = '" + (j+1)+ "']/itemcnt");
  280. item = model.getValue("/root/main/icupatyearinfo/geticupatyearlist[year = '" + tempyear + "' and sort = '" + (j+1)+ "']/item");
  281. // 구분리스트 만들기(행)
  282. if(grd_icupatyearlist.rows-grd_icupatyearlist.fixedRows < 28 ) {
  283. grd_icupatyearlist.addRow(false);
  284. }
  285. // 데이터넣기
  286. if(tempyear == yearval){
  287. grd_icupatyearlist.valueMatrix(j+2, i+1) = itemcnt;
  288. grd_icupatyearlist.valueMatrix(j+2, 0) = item;
  289. //m++;
  290. } else{
  291. grd_icupatyearlist.valueMatrix(j+2, i+1) = 0;
  292. //m = 1;
  293. }
  294. }
  295. if(q == 1){
  296. tempyear--;
  297. }
  298. q++;
  299. }else{
  300. // 필드만들기(열)
  301. grd_icupatyearlist.addColumn("ref:year"+ tempyear +"AA; type:output; text-align:center;", false);
  302. caption = caption + "^"+ yearval;
  303. grd_icupatyearlist.valueMatrix(0, i+1) = toyear;
  304. grd_icupatyearlist.valueMatrix(1, i+1) = "증감(%)";
  305. for(var j = 0; j < 28; j++){
  306. // 구분리스트 만들기(행)
  307. if(grd_icupatyearlist.rows-grd_icupatyearlist.fixedRows < 28 ) {
  308. grd_icupatyearlist.addRow(false);
  309. }
  310. itemcntA = grd_icupatyearlist.valueMatrix(j+2, i-1); //2010년도
  311. itemcntB = grd_icupatyearlist.valueMatrix(j+2, i); //2009년도
  312. // 데이터넣기
  313. if( itemcntB != 0){
  314. grd_icupatyearlist.valueMatrix(j+2, i+1) = Math.round((Number(itemcntA) - Number(itemcntB)) / Number(itemcntB) * 100 *100)/100;
  315. }else{
  316. grd_icupatyearlist.valueMatrix(j+2, i+1) = 0;
  317. }
  318. }
  319. q = 1;
  320. toyear--;
  321. }
  322. }
  323. }
  324. grd_icupatyearlist.refresh();
  325. }else{
  326. /*
  327. for( var i = 0; i <grd_icupatordyearlist.cols+1000 ; i++ ) {
  328. grd_icupatordyearlist.removeColumn(false);
  329. }
  330. */
  331. grd_icupatyearlist.visible = false;
  332. grd_icupatordyearlist.visible = true;
  333. model.removeNodeset("/root/main/icupatyearinfo");
  334. grd_icupatordyearlist.refresh();
  335. if(fromyear > toyear){
  336. messageBox("해당기간이 올바르지 않습니다.","E", "확인 후 다시 조회하십시오.");
  337. model.setFocus("ipt_fromyear");
  338. return;
  339. }
  340. model.removenode("/root/send");
  341. model.makeNode ("/root/send");
  342. //model.makeValue ("/root/send/reqdata/fromyear" , model.getValue("/root/main/cond/fromyear")); // 시작연도
  343. model.makeValue ("/root/send/reqdata/fromyear" , model.getValue("/root/main/cond/fromyear").toDate().getAddDate(0,"Y").getDateFormat("YYYY")); // 시작연도
  344. model.makeValue ("/root/send/reqdata/toyear" , model.getValue("/root/main/cond/toyear") ); // 종료연도
  345. model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd") ); // 병동코드(중환자실)
  346. model.makeValue ("/root/send/reqdata/interval" , interval); // 조회구간차
  347. submit("TRSNW00106"); // 중환자실 연도별현황 조회
  348. // 연도별 그리드 만들기(가로형태로)
  349. var cols = grd_icupatordyearlist.cols - grd_icupatordyearlist.fixedCols;
  350. var rows = grd_icupatordyearlist.rows - grd_icupatordyearlist.fixedRows;
  351. var tempyear = "";
  352. var interval = "";
  353. if(getNodesetCount("/root/main/icupatyearinfo/icupatyearlist") > 0) {
  354. var fromyear = model.getValue("/root/main/cond/fromyear");
  355. var toyear = model.getValue("/root/main/cond/toyear");
  356. tempyear = toyear;
  357. interval = toyear - fromyear
  358. for(var i = 1; i <= cols; i++){
  359. // 필드만들기(열)
  360. if(i == 3 || i == 6 || i == 9){
  361. grd_icupatordyearlist.valueMatrix(0, i) = toyear;
  362. grd_icupatordyearlist.valueMatrix(1, i) = grd_icupatordyearlist.valueMatrix(1, i+1) = "증감(%)";
  363. toyear--;
  364. }else if(i == 1 || i == 4 || i == 7){
  365. grd_icupatordyearlist.valueMatrix(0, i) = toyear;
  366. grd_icupatordyearlist.valueMatrix(1, i) = tempyear + "년";
  367. tempyear--;
  368. }else{
  369. grd_icupatordyearlist.valueMatrix(0, i) = toyear;
  370. grd_icupatordyearlist.valueMatrix(1, i) = tempyear + "년";
  371. }
  372. if(interval == 0){
  373. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y01")) = false;
  374. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y02")) = false;
  375. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per1")) = false;
  376. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y03")) = true;
  377. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y04")) = true;
  378. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per2")) = true;
  379. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y05")) = true;
  380. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y06")) = true;
  381. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per3")) = true;
  382. }else if(interval == 1){
  383. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y01")) = false;
  384. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y02")) = false;
  385. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per1")) = false;
  386. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y03")) = false;
  387. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y04")) = false;
  388. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per2")) = false;
  389. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y05")) = true;
  390. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y06")) = true;
  391. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per3")) = true;
  392. }else{
  393. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y01")) = false;
  394. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y02")) = false;
  395. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per1")) = false;
  396. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y03")) = false;
  397. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y04")) = false;
  398. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per2")) = false;
  399. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y05")) = false;
  400. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y06")) = false;
  401. grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per3")) = false;
  402. }
  403. }
  404. grd_icupatordyearlist.refresh();
  405. }
  406. }
  407. }
  408. // 중환자실 연도별현황 조회_OLD
  409. function fSrchICUYearInfo_OLD(){
  410. if(model.getValue("/root/main/cond/wardcd") == ""){
  411. return;
  412. }
  413. for( var i = 0; i <grd_icupatyearlist.cols+1000 ; i++ ) {
  414. grd_icupatyearlist.removeColumn(false);
  415. }
  416. if(model.getValue("/root/main/cond/fromyear") > model.getValue("/root/main/cond/toyear")){
  417. messageBox("해당기간이 올바르지 않습니다.","E", "확인 후 다시 조회하십시오.");
  418. model.setFocus("ipt_fromyear");
  419. return;
  420. }
  421. model.removenode("/root/send");
  422. model.makeNode ("/root/send");
  423. model.makeValue ("/root/send/reqdata/fromyear" , model.getValue("/root/main/cond/fromyear")); // 시작연도
  424. model.makeValue ("/root/send/reqdata/toyear" , model.getValue("/root/main/cond/toyear") ); // 종료연도
  425. model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd") ); // 병동코드(중환자실)
  426. model.removeNodeset("/root/main/icupatyearinfo");
  427. submit("TRSNW00104"); // 중환자실 연도별현황 조회
  428. // 연도별 그리드 만들기(가로형태로)
  429. var cols = grd_icupatyearlist.cols - grd_icupatyearlist.fixedCols;
  430. var rows = grd_icupatyearlist.rows - grd_icupatyearlist.fixedRows;
  431. var caption = grd_icupatyearlist.caption;
  432. var tempyear = "";
  433. var yearval = "";
  434. var itemcnt = "";
  435. var item = "";
  436. var k = 0, l = 1;
  437. if(getNodesetCount("/root/main/icupatyearinfo/geticupatyearlist") > 0) {
  438. var fromyear = model.getValue("/root/send/reqdata/fromyear");
  439. var toyear = model.getValue("/root/send/reqdata/toyear");
  440. tempyear = fromyear;
  441. for(var i=0; i<=(toyear-fromyear);i++){
  442. // 필드만들기(열)
  443. grd_icupatyearlist.addColumn("ref:year"+k+"; type:output; text-align:center;", false);
  444. caption = caption + "^"+ yearval;
  445. grd_icupatyearlist.valueMatrix(0,i+1) = tempyear + "년";
  446. for(var j=0;j<13;j++){
  447. yearval = model.getValue("/root/main/icupatyearinfo/geticupatyearlist["+ l +"]/year");
  448. itemcnt = model.getValue("/root/main/icupatyearinfo/geticupatyearlist["+ l +"]/itemcnt");
  449. item = model.getValue("/root/main/icupatyearinfo/geticupatyearlist["+ l +"]/item");
  450. // 구분리스트 만들기(행)
  451. if(grd_icupatyearlist.rows-grd_icupatyearlist.fixedRows <13 ) {
  452. grd_icupatyearlist.addRow(false);
  453. }
  454. // 데이터넣기
  455. if(tempyear == yearval){
  456. grd_icupatyearlist.valueMatrix(j+1,i+1) = itemcnt;
  457. grd_icupatyearlist.valueMatrix(j+1,0) = item;
  458. l++;
  459. } else{
  460. grd_icupatyearlist.valueMatrix(j+1,i+1) = 0;
  461. }
  462. }
  463. tempyear++;
  464. }
  465. }
  466. grd_icupatyearlist.refresh();
  467. //grd_icupatyearlist.cellattribute("height",1,0,1,2) = "0px";
  468. grd_icupatyearlist.rowhidden(1) = true;
  469. }
  470. // 중환자실 자유기간별현황 조회
  471. function fSrchICUTermDayInfo(){
  472. if(model.getValue("/root/main/cond/refflag") == "A" ){
  473. grd_pattermdaylist.visible = true;
  474. grd_patordtermdaylist.visible = false;
  475. if(model.getValue("/root/main/cond/wardcd") == ""){
  476. return;
  477. }
  478. for( var i = 0; i < grd_pattermdaylist.cols+10000; i++ ) {
  479. grd_pattermdaylist.removeColumn(false);
  480. }
  481. model.removeNodeset("/root/main/icupattermdayinfo");
  482. grd_pattermdaylist.refresh();
  483. if(model.getValue("/root/main/cond/fromdd") > model.getValue("/root/main/cond/todd")){
  484. messageBox("해당기간이 올바르지 않습니다.","E", "확인 후 다시 조회하십시오.");
  485. model.setFocus("ipt_fromdd");
  486. return;
  487. }
  488. model.removenode("/root/send");
  489. model.makeNode ("/root/send");
  490. model.makeValue ("/root/send/reqdata/fromdd" , model.getValue("/root/main/cond/fromdd")); // 시작일자
  491. model.makeValue ("/root/send/reqdata/todd" , model.getValue("/root/main/cond/todd") ); // 종료일자
  492. model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd") ); // 병동코드(중환자실)
  493. model.makeValue ("/root/send/reqdata/refflag" , model.getValue("/root/main/cond/refflag") ); // 조회구분
  494. submit("TRSNW00105"); // 중환자실 자유기간별현황 조회
  495. // 자유기간별 그리드 만들기(가로형태로)
  496. var cols = grd_pattermdaylist.cols - grd_pattermdaylist.fixedCols;
  497. var rows = grd_pattermdaylist.rows - grd_pattermdaylist.fixedRows;
  498. var caption = grd_pattermdaylist.caption;
  499. var tempday = "";
  500. var colday = "";
  501. var dayval = "";
  502. var itemcnt = "";
  503. var item = "";
  504. var k = 0, m = 1;
  505. if(getNodesetCount("/root/main/icupattermdayinfo/geticupattermdaylist") > 0) {
  506. var fromdd = model.getValue("/root/send/reqdata/fromdd");
  507. var todd = model.getValue("/root/send/reqdata/todd");
  508. tempday = fromdd;
  509. for(var i = 0; i <= getDateInterval(fromdd, todd); i++){
  510. // 필드만들기(열)
  511. grd_pattermdaylist.addColumn("ref:day" + tempday + "; type:output; text-align:center;", false);
  512. caption = caption + "^"+ dayval;
  513. grd_pattermdaylist.valueMatrix(0, i+1) = tempday.toString().substr(0,4) + "-" + tempday.toString().substr(4,2) + "-" + tempday.toString().substr(6,2);
  514. for(var j = 0; j < 28; j++){
  515. //dayval = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist["+ m +"]/day");
  516. //itemcnt = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist["+ m +"]/itemcnt");
  517. //item = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist["+ m +"]/item");
  518. dayval = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist[day = '" + tempday + "' and sort = '" + (j+1)+ "']/day");
  519. itemcnt = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist[day = '" + tempday + "' and sort = '" + (j+1)+ "']/itemcnt");
  520. item = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist[day = '" + tempday + "' and sort = '" + (j+1)+ "']/item");
  521. // 구분리스트 만들기(행)
  522. if(grd_pattermdaylist.rows-grd_pattermdaylist.fixedRows < 28 ) {
  523. grd_pattermdaylist.addRow(false);
  524. }
  525. // 데이터넣기
  526. if(tempday == dayval){
  527. grd_pattermdaylist.valueMatrix(j+1, i+1) = itemcnt;
  528. grd_pattermdaylist.valueMatrix(j+1, 0) = item;
  529. //m++;
  530. } else{
  531. grd_pattermdaylist.valueMatrix(j+1, i+1) = 0;
  532. }
  533. }
  534. tempday = tempday.toDate().getAddDate(1,"D").getDateFormat();
  535. }
  536. }
  537. grd_pattermdaylist.refresh();
  538. }else{
  539. /*
  540. for( var i = 0; i < grd_patordtermdaylist.cols+10000; i++ ) {
  541. grd_patordtermdaylist.removeColumn(false);
  542. }
  543. */
  544. grd_pattermdaylist.visible = false;
  545. grd_patordtermdaylist.visible = true;
  546. model.removeNodeset("/root/main/icupattermdayinfo");
  547. grd_patordtermdaylist.refresh();
  548. if(model.getValue("/root/main/cond/fromdd") > model.getValue("/root/main/cond/todd")){
  549. messageBox("해당기간이 올바르지 않습니다.","E", "확인 후 다시 조회하십시오.");
  550. model.setFocus("ipt_fromdd");
  551. return;
  552. }
  553. model.removenode("/root/send");
  554. model.makeNode ("/root/send");
  555. model.makeValue ("/root/send/reqdata/fromdd" , model.getValue("/root/main/cond/fromdd")); // 시작일자
  556. model.makeValue ("/root/send/reqdata/todd" , model.getValue("/root/main/cond/todd") ); // 종료일자
  557. model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd") ); // 병동코드(중환자실)
  558. model.makeValue ("/root/send/reqdata/refflag" , model.getValue("/root/main/cond/refflag") ); // 조회구분
  559. submit("TRSNW00107"); // 중환자실 자유기간별현황 조회
  560. // 자유기간별 그리드 만들기(가로형태로)
  561. var cols = grd_patordtermdaylist.cols - grd_patordtermdaylist.fixedCols;
  562. var rows = grd_patordtermdaylist.rows - grd_patordtermdaylist.fixedRows;
  563. var caption = grd_patordtermdaylist.caption;
  564. var tempday = "";
  565. var dayval = "";
  566. var k = 01;
  567. if(getNodesetCount("/root/main/icupattermdayinfo/icupattermdaylist") > 0) {
  568. var fromdd = model.getValue("/root/send/reqdata/fromdd");
  569. var todd = model.getValue("/root/send/reqdata/todd");
  570. tempday = fromdd;
  571. //for(var i = 0; i <= getDateInterval(fromdd, todd); i++){
  572. for(var i = 0; i < cols; i++){
  573. // 필드만들기(열)
  574. //grd_pattermdaylist.addColumn("ref:day" + tempday + "; type:output; text-align:center;", false);
  575. //caption = caption + "^"+ dayval;
  576. /*
  577. if( i < getDateInterval(fromdd, todd) + 1) { //total
  578. grd_patordtermdaylist.addColumn("ref:d" + k + "; type:output; text-align:center;", false);
  579. caption = caption + "^"+ dayval;
  580. grd_patordtermdaylist.valueMatrix(0, i+1) = tempday.toString().substr(0,4) + "-" + tempday.toString().substr(4,2) + "-" + tempday.toString().substr(6,2);
  581. k++;
  582. }else{
  583. grd_patordtermdaylist.removeColumn(false);
  584. }
  585. */
  586. grd_patordtermdaylist.valueMatrix(0, i+1) = tempday.toString().substr(0,4) + "-" + tempday.toString().substr(4,2) + "-" + tempday.toString().substr(6,2);
  587. tempday = tempday.toDate().getAddDate(1,"D").getDateFormat();
  588. }
  589. }
  590. grd_patordtermdaylist.refresh();
  591. }
  592. }
  593. // 중환자실 자유기간별현황 조회_OLD
  594. function fSrchICUTermDayInfo_OLD(){
  595. if(model.getValue("/root/main/cond/wardcd") == ""){
  596. return;
  597. }
  598. for( var i = 0; i < grd_pattermdaylist.cols+10000; i++ ) {
  599. grd_pattermdaylist.removeColumn(false);
  600. }
  601. if(model.getValue("/root/main/cond/fromdd") > model.getValue("/root/main/cond/todd")){
  602. messageBox("해당기간이 올바르지 않습니다.","E", "확인 후 다시 조회하십시오.");
  603. model.setFocus("ipt_fromdd");
  604. return;
  605. }
  606. model.removenode("/root/send");
  607. model.makeNode ("/root/send");
  608. model.makeValue ("/root/send/reqdata/fromdd" , model.getValue("/root/main/cond/fromdd")); // 시작일자
  609. model.makeValue ("/root/send/reqdata/todd" , model.getValue("/root/main/cond/todd") ); // 종료일자
  610. model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd") ); // 병동코드(중환자실)
  611. model.removeNodeset("/root/main/icupattermdayinfo");
  612. submit("TRSNW00105"); // 중환자실 자유기간별현황 조회
  613. // 자유기간별 그리드 만들기(가로형태로)
  614. var cols = grd_pattermdaylist.cols - grd_pattermdaylist.fixedCols;
  615. var rows = grd_pattermdaylist.rows - grd_pattermdaylist.fixedRows;
  616. var caption = grd_pattermdaylist.caption;
  617. var tempday = "";
  618. var colday = "";
  619. var dayval = "";
  620. var itemcnt = "";
  621. var item = "";
  622. var k = 0, l = 1;
  623. if(getNodesetCount("/root/main/icupattermdayinfo/geticupattermdaylist") > 0) {
  624. var fromdd = model.getValue("/root/send/reqdata/fromdd");
  625. var todd = model.getValue("/root/send/reqdata/todd");
  626. tempday = fromdd;
  627. // colday = (fromdd.toDate()).getDateFormat("YYYY-MM-DD");
  628. for(var i=0; i<=(todd-fromdd);i++){
  629. // 필드만들기(열)
  630. grd_pattermdaylist.addColumn("ref:day"+k+"; type:output; text-align:center;", false);
  631. caption = caption + "^"+ dayval;
  632. grd_pattermdaylist.valueMatrix(0,i+1) = tempday.toString().substr(0,4) + "-" + tempday.toString().substr(4,2) + "-" + tempday.toString().substr(6,2);
  633. //grd_pattermdaylist.valueMatrix(0,i+1) = colday;
  634. for(var j=0;j<10;j++){
  635. dayval = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist["+ l +"]/day");
  636. itemcnt = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist["+ l +"]/itemcnt");
  637. item = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist["+ l +"]/item");
  638. // 구분리스트 만들기(행)
  639. if(grd_pattermdaylist.rows-grd_pattermdaylist.fixedRows <10) {
  640. grd_pattermdaylist.addRow(false);
  641. }
  642. // 데이터넣기
  643. if(tempday == dayval){
  644. grd_pattermdaylist.valueMatrix(j+1,i+1) = itemcnt;
  645. grd_pattermdaylist.valueMatrix(j+1,0) = item;
  646. l++;
  647. } else{
  648. grd_pattermdaylist.valueMatrix(j+1,i+1) = 0;
  649. }
  650. }
  651. tempday++;
  652. //colday = (((tempday).getAddDate(1,"D")).getDateFormat("YYYY-MM-DD"));
  653. }
  654. }
  655. grd_pattermdaylist.refresh();
  656. grd_pattermdaylist.rowhidden(1) = true;
  657. }
  658. // 탭에 따른 조회
  659. function fSwitchSrchICUPatList(){
  660. switch(swt_icupatlist.selectedIndex){
  661. // 연도별
  662. case 0: fSrchICUYearInfo(); // 중환자실 연도별현황 조회
  663. break;
  664. // 월별
  665. case 1: fSrchICUMonthInfo(); // 중환자실 월별현황 조회
  666. break;
  667. // 일자별
  668. case 2: fSrchICUDayInfo(); // 중환자실 일별현황 조회
  669. break;
  670. // 자유기간별
  671. case 3: fSrchICUTermDayInfo(); // 중환자실 자유기간별현황 조회
  672. break;
  673. }
  674. }
  675. ]]>
  676. </script>
  677. <script type="javascript" ev:event="xforms-ready">
  678. <![CDATA[
  679. fInit(); // 초기화
  680. ]]>
  681. </script>
  682. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  683. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  684. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:207px; height:14px; ">중환자실 이용현황</caption>
  685. </group>
  686. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  687. <button id="btn_year" class="btn_sw" group="tab" selected="true" style="left:0px; top:55px; width:68px; height:22px; ">
  688. <caption>연도별</caption>
  689. <script type="javascript" ev:event="DOMActivate">
  690. <![CDATA[
  691. model.toggle("case_year");
  692. ipt_yearmonth.visible = false;
  693. ipt_year.visible = false;
  694. ipt_fromyear.visible = true;
  695. ipt_toyear.visible = true;
  696. cpt_dash.visible = true;
  697. ipt_fromdd.visible = false;
  698. ipt_todd.visible = false;
  699. fSrchICUYearInfo(); // 중환자실 연도별현황 조회
  700. ]]>
  701. </script>
  702. </button>
  703. <button id="btn_day" class="btn_sw" group="tab" selected="true" style="left:136px; top:55px; width:68px; height:22px; ">
  704. <caption>일별</caption>
  705. <script type="javascript" ev:event="DOMActivate">
  706. <![CDATA[
  707. model.toggle("case_day");
  708. ipt_yearmonth.visible = true;
  709. ipt_year.visible = false;
  710. ipt_fromyear.visible = false;
  711. ipt_toyear.visible = false;
  712. cpt_dash.visible = false;
  713. ipt_fromdd.visible = false;
  714. ipt_todd.visible = false;
  715. fSrchICUDayInfo(); // 중환자실 일별현황 조회
  716. ]]>
  717. </script>
  718. </button>
  719. <button id="btn_month" class="btn_sw" group="tab" style="left:68px; top:55px; width:68px; height:22px; ">
  720. <caption>월별</caption>
  721. <script type="javascript" ev:event="DOMActivate">
  722. <![CDATA[
  723. model.toggle("case_month");
  724. ipt_yearmonth.visible = false;
  725. ipt_year.visible = true;
  726. ipt_fromyear.visible = false;
  727. ipt_toyear.visible = false;
  728. cpt_dash.visible = false;
  729. ipt_fromdd.visible = false;
  730. ipt_todd.visible = false;
  731. fSrchICUMonthInfo(); // 중환자실 월별현황 조회
  732. ]]>
  733. </script>
  734. </button>
  735. <button id="button2" class="btn_sw" visibility="hidden" group="tab" selected="true" style="left:204px; top:55px; width:73px; height:22px; ">
  736. <caption>자유기간별</caption>
  737. <script type="javascript" ev:event="DOMActivate">
  738. <![CDATA[
  739. model.toggle("case_term");
  740. ipt_yearmonth.visible = false;
  741. ipt_year.visible = false;
  742. ipt_fromyear.visible = false;
  743. ipt_toyear.visible = false;
  744. cpt_dash.visible = true;
  745. ipt_fromdd.visible = true;
  746. ipt_todd.visible = true;
  747. fSrchICUTermDayInfo(); // 중환자실 자유기간별현황 조회
  748. ]]>
  749. </script>
  750. </button>
  751. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  752. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  753. <button id="button1" class="btn1_letter2" style="left:1128px; top:7px; width:56px; height:22px; ">
  754. <caption>조회</caption>
  755. <script type="javascript" ev:event="DOMActivate">
  756. <![CDATA[
  757. fSwitchSrchICUPatList(); // 탭에 따른 조회
  758. ]]>
  759. </script>
  760. </button>
  761. <line id="line13" class="line_4" style="x1:1112px; y1:7px; x2:1112px; y2:29px; "/>
  762. <caption id="caption3" class="search_name" style="left:20px; top:10px; width:105px; height:17px; ">중환자실별 :</caption>
  763. <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_search" appearance="minimal" style="left:130px; top:9px; width:135px; height:19px; ">
  764. <choices>
  765. <itemset nodeset="/root/init/deptinfo/deptlist">
  766. <label ref="deptnm"/>
  767. <value ref="deptcd"/>
  768. </itemset>
  769. </choices>
  770. <script type="javascript" ev:event="xforms-value-changed">
  771. <![CDATA[
  772. fSwitchSrchICUPatList(); // 탭에 따른 조회
  773. ]]>
  774. </script>
  775. </select1>
  776. <caption id="caption2" class="search_name" style="left:310px; top:10px; width:90px; height:17px; ">해당기간 :</caption>
  777. <input id="ipt_yearmonth" ref="/root/main/cond/yearmonth" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:401px; top:9px; width:90px; height:19px; text-align:center; ">
  778. <script type="javascript" ev:event="xforms-value-changed">
  779. <![CDATA[
  780. fSwitchSrchICUPatList(); // 탭에 따른 조회
  781. ]]>
  782. </script>
  783. </input>
  784. <input id="ipt_year" ref="/root/main/cond/year" class="input_s_essential" inputtype="date" format="yyyy" style="left:401px; top:9px; width:90px; height:19px; text-align:center; ">
  785. <script type="javascript" ev:event="xforms-value-changed">
  786. <![CDATA[
  787. fSwitchSrchICUPatList(); // 탭에 따른 조회
  788. ]]>
  789. </script>
  790. </input>
  791. <input id="ipt_fromyear" ref="/root/main/cond/fromyear" class="input_s_essential" inputtype="date" format="yyyy" style="left:401px; top:9px; width:90px; height:19px; text-align:center; "/>
  792. <input id="ipt_toyear" ref="/root/main/cond/toyear" class="input_s_essential" inputtype="date" format="yyyy" style="left:510px; top:9px; width:90px; height:19px; text-align:center; "/>
  793. <caption id="cpt_dash" class="search_no_b" visibility="hidden" style="left:494px; top:10px; width:17px; height:17px; ">~</caption>
  794. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:401px; top:9px; width:90px; height:19px; text-align:center; "/>
  795. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:510px; top:9px; width:90px; height:19px; text-align:center; "/>
  796. <caption id="caption1" class="search_name" style="left:655px; top:10px; width:105px; height:17px; ">조회구분 :</caption>
  797. <select1 id="rdo_refflag" ref="/root/main/cond/refflag" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:750px; top:11px; width:160px; height:19px; border-style:none; ">
  798. <choices>
  799. <item>
  800. <label>통계항목별</label>
  801. <value>A</value>
  802. </item>
  803. <item>
  804. <label>진료과별</label>
  805. <value>B</value>
  806. </item>
  807. </choices>
  808. <script type="javascript" ev:event="xforms-value-changed">
  809. <![CDATA[
  810. //조회구분
  811. if(model.getValue("/root/main/cond/refflag") == "A"){
  812. cmb_wardcd.disabled = false;
  813. }else{
  814. cmb_wardcd.disabled = true;
  815. model.setValue("/root/main/cond/wardcd", "");
  816. cmb_wardcd.refresh();
  817. }
  818. fSwitchSrchICUPatList();
  819. ]]>
  820. </script>
  821. </select1>
  822. </group>
  823. <switch id="swt_icupatlist" style="left:0px; top:75px; width:1194px; height:660px; border-style:solid; ">
  824. <case id="case_year" selected="true">
  825. <!--
  826. <datagrid id="grd_icupatyearlist" nodeset="/root/main/icupatyearinfo/icupatyearlist" allowselection="false" caption="구분" colsep="^" colwidth="137" dataheight="25" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:0px; width:1192px; height:635px; ">
  827. <col ref="item"/>
  828. </datagrid>
  829. -->
  830. <datagrid id="grd_icupatyearlist" nodeset="/root/main/icupatyearinfo/icupatyearlist" allowselection="false" caption="구분|구분" colsep="^" colwidth="175" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:1px; top:0px; width:1187px; height:655px; ">
  831. <col ref="item"/>
  832. </datagrid>
  833. <datagrid id="grd_icupatordyearlist" nodeset="/root/main/icupatyearinfo/icupatyearlist" visibility="hidden" caption="구분^1^2^증감^2^3^증감^3^4^증감^10일|구분^1^2^증감^2^3^증감^3^4^증감^10일" colsep="^" colwidth="175, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90" dataheight="25" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:1px; top:0px; width:1187px; height:655px; ">
  834. <col ref="item"/>
  835. <col ref="y01" visibility="hidden" style="text-align:right; "/>
  836. <col ref="y02" visibility="hidden" style="text-align:right; "/>
  837. <col ref="per1" visibility="hidden" style="text-align:right; "/>
  838. <col ref="y03" visibility="hidden" style="text-align:right; "/>
  839. <col ref="y04" visibility="hidden" style="text-align:right; "/>
  840. <col ref="per2" visibility="hidden" style="text-align:right; "/>
  841. <col ref="y05" visibility="hidden" style="text-align:right; "/>
  842. <col ref="y06" visibility="hidden" style="text-align:right; "/>
  843. <col ref="per3" visibility="hidden" style="text-align:right; "/>
  844. </datagrid>
  845. </case>
  846. <case id="case_month">
  847. <datagrid id="grd_icupatmonthlist" nodeset="/root/main/icupatmonthinfo/icupatmonthlist" caption="구분^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^Total/평균" colsep="^" colwidth="175, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 100" dataheight="25" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:0px; width:1187px; height:655px; ">
  848. <col ref="item"/>
  849. <col ref="m01" style="text-align:right; "/>
  850. <col ref="m02" style="text-align:right; "/>
  851. <col ref="m03" style="text-align:right; "/>
  852. <col ref="m04" style="text-align:right; "/>
  853. <col ref="m05" style="text-align:right; "/>
  854. <col ref="m06" style="text-align:right; "/>
  855. <col ref="m07" style="text-align:right; "/>
  856. <col ref="m08" style="text-align:right; "/>
  857. <col ref="m09" style="text-align:right; "/>
  858. <col ref="m10" style="text-align:right; "/>
  859. <col ref="m11" style="text-align:right; "/>
  860. <col ref="m12" style="text-align:right; "/>
  861. <col ref="total" style="text-align:right; "/>
  862. </datagrid>
  863. </case>
  864. <case id="case_day">
  865. <datagrid id="grd_icupatdaylist" nodeset="/root/main/icupatdayinfo/icupatdaylist" 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일^Total/평균" colsep="^" colwidth="175, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 64" dataheight="25" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:1px; width:1187px; height:655px; ">
  866. <col ref="item"/>
  867. <col ref="d01" style="text-align:right; "/>
  868. <col ref="d02" style="text-align:right; "/>
  869. <col ref="d03" style="text-align:right; "/>
  870. <col ref="d04" style="text-align:right; "/>
  871. <col ref="d05" style="text-align:right; "/>
  872. <col ref="d06" style="text-align:right; "/>
  873. <col ref="d07" style="text-align:right; "/>
  874. <col ref="d08" style="text-align:right; "/>
  875. <col ref="d09" style="text-align:right; "/>
  876. <col ref="d10" style="text-align:right; "/>
  877. <col ref="d11" style="text-align:right; "/>
  878. <col ref="d12" style="text-align:right; "/>
  879. <col ref="d13" style="text-align:right; "/>
  880. <col ref="d14" style="text-align:right; "/>
  881. <col ref="d15" style="text-align:right; "/>
  882. <col ref="d16" style="text-align:right; "/>
  883. <col ref="d17" style="text-align:right; "/>
  884. <col ref="d18" style="text-align:right; "/>
  885. <col ref="d19" style="text-align:right; "/>
  886. <col ref="d20" style="text-align:right; "/>
  887. <col ref="d21" style="text-align:right; "/>
  888. <col ref="d22" style="text-align:right; "/>
  889. <col ref="d23" style="text-align:right; "/>
  890. <col ref="d24" style="text-align:right; "/>
  891. <col ref="d25" style="text-align:right; "/>
  892. <col ref="d26" style="text-align:right; "/>
  893. <col ref="d27" style="text-align:right; "/>
  894. <col ref="d28" style="text-align:right; "/>
  895. <col ref="d29" style="text-align:right; "/>
  896. <col ref="d30" style="text-align:right; "/>
  897. <col ref="d31" style="text-align:right; "/>
  898. <col ref="total" style="text-align:right; "/>
  899. </datagrid>
  900. </case>
  901. <case id="case_term">
  902. <datagrid id="grd_pattermdaylist" nodeset="/root/main/icupattermdayinfo/icupattermdaylist" allowselection="false" caption="구분" colsep="^" colwidth="175" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:1px; top:0px; width:1187px; height:655px; ">
  903. <col ref="item"/>
  904. </datagrid>
  905. <!--
  906. <datagrid id="grd_patordtermdaylist" nodeset="/root/main/icupattermdayinfo/icupattermdaylist" 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일^Total" colsep="^" colwidth="137, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 63" dataheight="25" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:0px; width:1187px; height:655px; ">
  907. -->
  908. <datagrid id="grd_patordtermdaylist" nodeset="/root/main/icupattermdayinfo/icupattermdaylist" caption="구분^1일^2일^3일^4일^5일^6일^7일^8일^9일^10일" colsep="^" colwidth="175, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90" dataheight="25" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:1px; top:0px; width:1187px; height:655px; ">
  909. <col ref="item"/>
  910. <col ref="d01" style="text-align:right; "/>
  911. <col ref="d02" style="text-align:right; "/>
  912. <col ref="d03" style="text-align:right; "/>
  913. <col ref="d04" style="text-align:right; "/>
  914. <col ref="d05" style="text-align:right; "/>
  915. <col ref="d06" style="text-align:right; "/>
  916. <col ref="d07" style="text-align:right; "/>
  917. <col ref="d08" style="text-align:right; "/>
  918. <col ref="d09" style="text-align:right; "/>
  919. <col ref="d10" style="text-align:right; "/>
  920. <!--
  921. <col ref="d11" style="text-align:right; "/>
  922. <col ref="d12" style="text-align:right; "/>
  923. <col ref="d13" style="text-align:right; "/>
  924. <col ref="d14" style="text-align:right; "/>
  925. <col ref="d15" style="text-align:right; "/>
  926. <col ref="d16" style="text-align:right; "/>
  927. <col ref="d17" style="text-align:right; "/>
  928. <col ref="d18" style="text-align:right; "/>
  929. <col ref="d19" style="text-align:right; "/>
  930. <col ref="d20" style="text-align:right; "/>
  931. <col ref="d21" style="text-align:right; "/>
  932. <col ref="d22" style="text-align:right; "/>
  933. <col ref="d23" style="text-align:right; "/>
  934. <col ref="d24" style="text-align:right; "/>
  935. <col ref="d25" style="text-align:right; "/>
  936. <col ref="d26" style="text-align:right; "/>
  937. <col ref="d27" style="text-align:right; "/>
  938. <col ref="d28" style="text-align:right; "/>
  939. <col ref="d29" style="text-align:right; "/>
  940. <col ref="d30" style="text-align:right; "/>
  941. <col ref="d31" style="text-align:right; "/>
  942. <col ref="total" style="text-align:right; "/>
  943. -->
  944. </datagrid>
  945. </case>
  946. </switch>
  947. <button id="btn_excel" class="btn2_letter2" style="left:1150px; top:55px; width:42px; height:19px; ">
  948. <caption>엑셀</caption>
  949. <script type="javascript" ev:event="DOMActivate">
  950. <![CDATA[
  951. var refflag = model.getValue("/root/main/cond/refflag");
  952. var fileName = window.fileDialog("save", ",", false, "중환자실 이용현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  953. if (fileName != ""){
  954. switch(swt_icupatlist.selectedIndex){
  955. // 연도별
  956. case 0:
  957. if(refflag == "A"){
  958. grd_icupatyearlist.saveExcel(fileName, "중환자실 연도별 이용현황;colhiddenextend:false; ", true, true, "", "", false); // 중환자실 연도별현황 조회
  959. }else{
  960. grd_icupatordyearlist.saveExcel(fileName, "중환자실 연도별 이용현황;colhiddenextend:false;", true, true, "", "", false); // 중환자실 연도별현황 조회
  961. }
  962. break;
  963. // 월별
  964. case 1:
  965. grd_icupatmonthlist.saveExcel(fileName, "중환자실 월별 이용현황;colhiddenextend:false; ", true, true, "", "", false); // 중환자실 월별현황 조회
  966. break;
  967. // 일자별
  968. case 2:
  969. grd_icupatdaylist.saveExcel(fileName, "중환자실 일별 이용현황;colhiddenextend:false; ", true, true, "", "", false); // 중환자실 일별현황 조회
  970. break;
  971. // 자유기간별
  972. case 3:
  973. if(refflag == "A"){
  974. grd_pattermdaylist.saveExcel(fileName, "중환자실 기간별 이용현황;colhiddenextend:false; ", true, true, "", "", false); // 중환자실 자유기간별현황 조회
  975. }else{
  976. grd_patordtermdaylist.saveExcel(fileName, "중환자실 기간별 이용현황;colhiddenextend:false; ", true, true, "", "", false); // 중환자실 자유기간별현황 조회
  977. }
  978. break;
  979. }
  980. }
  981. ]]>
  982. </script>
  983. </button>
  984. <button id="button3" class="btn2_letter4" style="left:1083px; top:55px; width:64px; height:19px; ">
  985. <caption>용어정의</caption>
  986. <script type="javascript" ev:event="DOMActivate">
  987. <![CDATA[
  988. open("SSMNW00500_중환자실통계기준정보.xrw");
  989. ]]>
  990. </script>
  991. </button>
  992. </group>
  993. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; "/>
  994. </xhtml:body>
  995. </xhtml:html>