1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>중환자실 이용현황</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <wardcd/>
- <yearmonth/>
- <year/>
- <fromyear/>
- <toyear/>
- <fromdd/>
- <todd/>
- <refflag/>
- </cond>
- <icupatdayinfo>
- <!--
- <icupatdaylist>
- <item>연환자수</item>
- <d1></d1>
- <d2></d2>
- <d3></d3>
- <d4></d4>
- <d5></d5>
- <d6></d6>
- <d7></d7>
- <d8></d8>
- <d9></d9>
- <d10></d10>
- <d11></d11>
- <d12></d12>
- </icupatdaylist>
- -->
- <icupatdaylist>
- <item/>
- <d01/>
- <d02/>
- <d03/>
- <d04/>
- <d05/>
- <d06/>
- <d07/>
- <d08/>
- <d09/>
- <d10/>
- <d11/>
- <d12/>
- <d13/>
- <d14/>
- <d15/>
- <d16/>
- <d17/>
- <d18/>
- <d19/>
- <d20/>
- <d21/>
- <d22/>
- <d23/>
- <d24/>
- <d25/>
- <d26/>
- <d27/>
- <d28/>
- <d29/>
- <d30/>
- <d31/>
- <total/>
- </icupatdaylist>
- </icupatdayinfo>
- <icupatmonthinfo>
- <icupatmonthlist>
- <item/>
- <m01/>
- <m02/>
- <m03/>
- <m04/>
- <m05/>
- <m06/>
- <m07/>
- <m08/>
- <m09/>
- <m10/>
- <m11/>
- <m12/>
- <total/>
- </icupatmonthlist>
- </icupatmonthinfo>
- <icupatyearinfo>
- <icupatyearlist>
- <item/>
- </icupatyearlist>
- </icupatyearinfo>
- <icupattermdayinfo>
- <icupattermdaylist>
- <item/>
- <d01/>
- </icupattermdaylist>
- </icupattermdayinfo>
- </main>
- <init>
- <deptinfo>
- <deptlist>
- <deptcd/>
- <deptnm/>
- </deptlist>
- </deptinfo>
- </init>
- <send>
- <reqdata/>
- </send>
- </root>
- </instance>
- <submission id="TRSNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/deptinfo"/>
- <submission id="TRSNW00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/icupatdaylist"/>
- <submission id="TRSNW00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/icupatmonthlist"/>
- <submission id="TRSNW00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/geticupatyearlist"/>
- <submission id="TRSNW00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/getpattermdaylist"/>
- <submission id="TRSNW00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/icupatyearlist"/>
- <submission id="TRSNW00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/icupattermdaylist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- </xhtml:head>
- <script type="javascript">
- <![CDATA[
- // 초기화
- function fInit(){
- // 해당기간 Default설정
- model.makeValue("/root/main/cond/yearmonth", (getCurrentDate()).substr(0,6));
- model.makeValue("/root/main/cond/year" , (getCurrentDate()).substr(0,4));
- model.makeValue("/root/main/cond/fromyear" , (getCurrentDate()).substr(0,4));
- model.makeValue("/root/main/cond/toyear" , (getCurrentDate()).substr(0,4));
- model.makeValue("/root/main/cond/fromdd" , ((((getCurrentDate()).toDate()).getAddDate(-1,"D")).getDateFormat()));
- model.makeValue("/root/main/cond/todd" , getCurrentDate());
- model.makeValue("/root/main/cond/refflag" , "A");
-
- if(getScreenMenuParameter() == "SSMNW00200"){ // 자유기간 이용현황 메뉴선택 일 경우
- btn_year.selected = false;
- ipt_yearmonth.visible = false;
- ipt_year.visible = false;
- ipt_fromyear.visible = false;
- ipt_toyear.visible = false;
- cpt_dash.visible = true;
- ipt_fromdd.visible = true;
- ipt_todd.visible = true;
- model.toggle("case_term");
- }else{
- btn_year.selected = true;
- ipt_yearmonth.visible = false;
- ipt_year.visible = false;
- ipt_fromyear.visible = true;
- ipt_toyear.visible = true;
- cpt_dash.visible = true;
- ipt_fromdd.visible = false;
- ipt_todd.visible = false;
- model.toggle("case_year");
- }
-
-
- grd_icupatdaylist.rowhidden(1) = true; //일
- grd_icupatmonthlist.rowhidden(1) = true; //월
- grd_icupatyearlist.rowhidden(1) = true; //연
- grd_pattermdaylist.rowhidden(1) = true; //자유
-
- model.removeNodeset("/root/init/deptinfo");
- submit("TRSNW00101"); // 중환자실 병동리스트 조회
- }
-
- // 중환자실 일별현황 조회
- function fSrchICUDayInfo(){
- model.removeNodeset("/root/main/icupatdayinfo");
- grd_icupatdaylist.refresh();
- if(model.getValue("/root/main/cond/refflag") == "A" && model.getValue("/root/main/cond/wardcd") == ""){
- return;
- }
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/yearmonth" , model.getValue("/root/main/cond/yearmonth")); // 해당월
- model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd")); // 병동코드(중환자실)
- model.makeValue ("/root/send/reqdata/refflag" , model.getValue("/root/main/cond/refflag")); //조회구분
-
- submit("TRSNW00102"); // 중환자실 일별현황 조회
- //grd_icupatdaylist.rowstyle(1, "data", "height") = "0px";
- //grd_icupatdaylist.rowhidden(1) = true;
- }
-
- // 중환자실 월별현황 조회
- function fSrchICUMonthInfo(){
- model.removeNodeset("/root/main/icupatmonthinfo");
- grd_icupatmonthlist.refresh();
-
- if(model.getValue("/root/main/cond/refflag") == "A" && model.getValue("/root/main/cond/wardcd") == ""){
- return;
- }
-
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/year" , model.getValue("/root/main/cond/year")); // 해당연도
- model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd")); // 병동코드(중환자실)
- model.makeValue ("/root/send/reqdata/refflag" , model.getValue("/root/main/cond/refflag")); //조회구분
-
- submit("TRSNW00103"); // 중환자실 월별현황 조회
- //grd_icupatmonthlist.rowstyle(1, "data", "height") = "0px";
- //grd_icupatmonthlist.rowhidden(1) = true;
- }
-
- // 중환자실 연도별현황 조회
- function fSrchICUYearInfo(){
- var fromyear = model.getValue("/root/main/cond/fromyear");
- var toyear = model.getValue("/root/main/cond/toyear");
- var interval = toyear - fromyear;
-
- if(interval > 2 ){
- messageBox("해당 조회기간을 3년이내로 설정하십시오.", "I");
- return;
- }
-
- if(model.getValue("/root/main/cond/refflag") == "A" ){
- grd_icupatyearlist.visible = true;
- grd_icupatordyearlist.visible = false;
-
- if(model.getValue("/root/main/cond/wardcd") == ""){
- return;
- }
-
- for( var i = 0; i <grd_icupatyearlist.cols+1000 ; i++ ) {
- grd_icupatyearlist.removeColumn(false);
- }
- model.removeNodeset("/root/main/icupatyearinfo");
- grd_icupatyearlist.refresh();
-
-
- if(fromyear > toyear){
- messageBox("해당기간이 올바르지 않습니다.","E", "확인 후 다시 조회하십시오.");
- model.setFocus("ipt_fromyear");
- return;
- }
-
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- //model.makeValue ("/root/send/reqdata/fromyear" , model.getValue("/root/main/cond/fromyear")); // 시작연도
- model.makeValue ("/root/send/reqdata/fromyear" , model.getValue("/root/main/cond/fromyear").toDate().getAddDate(0,"Y").getDateFormat("YYYY")); // 시작연도
- model.makeValue ("/root/send/reqdata/toyear" , model.getValue("/root/main/cond/toyear") ); // 종료연도
- model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd") ); // 병동코드(중환자실)
- model.makeValue ("/root/send/reqdata/refflag" , model.getValue("/root/main/cond/refflag") ); // 조회구분
-
- submit("TRSNW00104"); // 중환자실 연도별현황 조회
-
- // 연도별 그리드 만들기(가로형태로)
- var cols = grd_icupatyearlist.cols - grd_icupatyearlist.fixedCols;
- var rows = grd_icupatyearlist.rows - grd_icupatyearlist.fixedRows;
- var caption = grd_icupatyearlist.caption;
- var tempyear = "";
- var yearval = "";
- var itemcntA = "";
- var itemcntB = "";
- var itemcnt = "";
- var item = "";
- var interval = "";
- var cnt = "";
- var q = 1;
-
- if(getNodesetCount("/root/main/icupatyearinfo/geticupatyearlist") > 0) {
- //var fromyear = model.getValue("/root/send/reqdata/fromyear");
- //var toyear = model.getValue("/root/send/reqdata/toyear");
- var fromyear = model.getValue("/root/main/cond/fromyear");
- var toyear = model.getValue("/root/main/cond/toyear");
-
- tempyear = toyear;
- interval = toyear - fromyear
-
- if(interval == 0){
- cnt = 3;
- }else if(interval == 1){
- cnt = 6;
- }else{
- cnt = 9;
- //cnt = Number(interval) * 3;
- }
-
- for(var i = 0; i < cnt; i++){
- if(q != 3){
- // 필드만들기(열)
- grd_icupatyearlist.addColumn("ref:year"+ tempyear +"; type:output; text-align:center;", false);
- caption = caption + "^"+ yearval;
- grd_icupatyearlist.valueMatrix(0, i+1) = toyear;
- grd_icupatyearlist.valueMatrix(1, i+1) = tempyear + "년";
-
- for(var j = 0; j < 28; j++){
- //yearval = model.getValue("/root/main/icupatyearinfo/geticupatyearlist["+ m +"]/year");
- //itemcnt = model.getValue("/root/main/icupatyearinfo/geticupatyearlist["+ m +"]/itemcnt");
- //item = model.getValue("/root/main/icupatyearinfo/geticupatyearlist["+ m +"]/item");
- yearval = model.getValue("/root/main/icupatyearinfo/geticupatyearlist[year = '" + tempyear + "' and sort = '" + (j+1)+ "']/year");
- itemcnt = model.getValue("/root/main/icupatyearinfo/geticupatyearlist[year = '" + tempyear + "' and sort = '" + (j+1)+ "']/itemcnt");
- item = model.getValue("/root/main/icupatyearinfo/geticupatyearlist[year = '" + tempyear + "' and sort = '" + (j+1)+ "']/item");
-
- // 구분리스트 만들기(행)
- if(grd_icupatyearlist.rows-grd_icupatyearlist.fixedRows < 28 ) {
- grd_icupatyearlist.addRow(false);
- }
-
- // 데이터넣기
- if(tempyear == yearval){
- grd_icupatyearlist.valueMatrix(j+2, i+1) = itemcnt;
- grd_icupatyearlist.valueMatrix(j+2, 0) = item;
- //m++;
- } else{
- grd_icupatyearlist.valueMatrix(j+2, i+1) = 0;
- //m = 1;
- }
- }
- if(q == 1){
- tempyear--;
- }
- q++;
-
- }else{
- // 필드만들기(열)
- grd_icupatyearlist.addColumn("ref:year"+ tempyear +"AA; type:output; text-align:center;", false);
- caption = caption + "^"+ yearval;
- grd_icupatyearlist.valueMatrix(0, i+1) = toyear;
- grd_icupatyearlist.valueMatrix(1, i+1) = "증감(%)";
-
- for(var j = 0; j < 28; j++){
- // 구분리스트 만들기(행)
- if(grd_icupatyearlist.rows-grd_icupatyearlist.fixedRows < 28 ) {
- grd_icupatyearlist.addRow(false);
- }
- itemcntA = grd_icupatyearlist.valueMatrix(j+2, i-1); //2010년도
- itemcntB = grd_icupatyearlist.valueMatrix(j+2, i); //2009년도
-
- // 데이터넣기
- if( itemcntB != 0){
- grd_icupatyearlist.valueMatrix(j+2, i+1) = Math.round((Number(itemcntA) - Number(itemcntB)) / Number(itemcntB) * 100 *100)/100;
- }else{
- grd_icupatyearlist.valueMatrix(j+2, i+1) = 0;
- }
- }
- q = 1;
- toyear--;
- }
- }
- }
- grd_icupatyearlist.refresh();
-
- }else{
- /*
- for( var i = 0; i <grd_icupatordyearlist.cols+1000 ; i++ ) {
- grd_icupatordyearlist.removeColumn(false);
- }
- */
- grd_icupatyearlist.visible = false;
- grd_icupatordyearlist.visible = true;
-
- model.removeNodeset("/root/main/icupatyearinfo");
- grd_icupatordyearlist.refresh();
-
- if(fromyear > toyear){
- messageBox("해당기간이 올바르지 않습니다.","E", "확인 후 다시 조회하십시오.");
- model.setFocus("ipt_fromyear");
- return;
- }
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- //model.makeValue ("/root/send/reqdata/fromyear" , model.getValue("/root/main/cond/fromyear")); // 시작연도
- model.makeValue ("/root/send/reqdata/fromyear" , model.getValue("/root/main/cond/fromyear").toDate().getAddDate(0,"Y").getDateFormat("YYYY")); // 시작연도
- model.makeValue ("/root/send/reqdata/toyear" , model.getValue("/root/main/cond/toyear") ); // 종료연도
- model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd") ); // 병동코드(중환자실)
- model.makeValue ("/root/send/reqdata/interval" , interval); // 조회구간차
-
- submit("TRSNW00106"); // 중환자실 연도별현황 조회
-
- // 연도별 그리드 만들기(가로형태로)
- var cols = grd_icupatordyearlist.cols - grd_icupatordyearlist.fixedCols;
- var rows = grd_icupatordyearlist.rows - grd_icupatordyearlist.fixedRows;
- var tempyear = "";
- var interval = "";
-
- if(getNodesetCount("/root/main/icupatyearinfo/icupatyearlist") > 0) {
- var fromyear = model.getValue("/root/main/cond/fromyear");
- var toyear = model.getValue("/root/main/cond/toyear");
-
- tempyear = toyear;
- interval = toyear - fromyear
-
- for(var i = 1; i <= cols; i++){
-
- // 필드만들기(열)
- if(i == 3 || i == 6 || i == 9){
- grd_icupatordyearlist.valueMatrix(0, i) = toyear;
- grd_icupatordyearlist.valueMatrix(1, i) = grd_icupatordyearlist.valueMatrix(1, i+1) = "증감(%)";
- toyear--;
- }else if(i == 1 || i == 4 || i == 7){
- grd_icupatordyearlist.valueMatrix(0, i) = toyear;
- grd_icupatordyearlist.valueMatrix(1, i) = tempyear + "년";
- tempyear--;
- }else{
- grd_icupatordyearlist.valueMatrix(0, i) = toyear;
- grd_icupatordyearlist.valueMatrix(1, i) = tempyear + "년";
- }
-
- if(interval == 0){
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y01")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y02")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per1")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y03")) = true;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y04")) = true;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per2")) = true;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y05")) = true;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y06")) = true;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per3")) = true;
- }else if(interval == 1){
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y01")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y02")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per1")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y03")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y04")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per2")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y05")) = true;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y06")) = true;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per3")) = true;
- }else{
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y01")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y02")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per1")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y03")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y04")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per2")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y05")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("y06")) = false;
- grd_icupatordyearlist.colHidden(grd_icupatordyearlist.colRef("per3")) = false;
- }
- }
- grd_icupatordyearlist.refresh();
- }
- }
- }
-
- // 중환자실 연도별현황 조회_OLD
- function fSrchICUYearInfo_OLD(){
- if(model.getValue("/root/main/cond/wardcd") == ""){
- return;
- }
-
- for( var i = 0; i <grd_icupatyearlist.cols+1000 ; i++ ) {
- grd_icupatyearlist.removeColumn(false);
- }
-
- if(model.getValue("/root/main/cond/fromyear") > model.getValue("/root/main/cond/toyear")){
- messageBox("해당기간이 올바르지 않습니다.","E", "확인 후 다시 조회하십시오.");
- model.setFocus("ipt_fromyear");
- return;
- }
-
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/fromyear" , model.getValue("/root/main/cond/fromyear")); // 시작연도
- model.makeValue ("/root/send/reqdata/toyear" , model.getValue("/root/main/cond/toyear") ); // 종료연도
- model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd") ); // 병동코드(중환자실)
- model.removeNodeset("/root/main/icupatyearinfo");
-
- submit("TRSNW00104"); // 중환자실 연도별현황 조회
-
- // 연도별 그리드 만들기(가로형태로)
- var cols = grd_icupatyearlist.cols - grd_icupatyearlist.fixedCols;
- var rows = grd_icupatyearlist.rows - grd_icupatyearlist.fixedRows;
- var caption = grd_icupatyearlist.caption;
- var tempyear = "";
- var yearval = "";
- var itemcnt = "";
- var item = "";
- var k = 0, l = 1;
- if(getNodesetCount("/root/main/icupatyearinfo/geticupatyearlist") > 0) {
- var fromyear = model.getValue("/root/send/reqdata/fromyear");
- var toyear = model.getValue("/root/send/reqdata/toyear");
- tempyear = fromyear;
- for(var i=0; i<=(toyear-fromyear);i++){
- // 필드만들기(열)
- grd_icupatyearlist.addColumn("ref:year"+k+"; type:output; text-align:center;", false);
- caption = caption + "^"+ yearval;
- grd_icupatyearlist.valueMatrix(0,i+1) = tempyear + "년";
-
- for(var j=0;j<13;j++){
- yearval = model.getValue("/root/main/icupatyearinfo/geticupatyearlist["+ l +"]/year");
- itemcnt = model.getValue("/root/main/icupatyearinfo/geticupatyearlist["+ l +"]/itemcnt");
- item = model.getValue("/root/main/icupatyearinfo/geticupatyearlist["+ l +"]/item");
-
- // 구분리스트 만들기(행)
- if(grd_icupatyearlist.rows-grd_icupatyearlist.fixedRows <13 ) {
- grd_icupatyearlist.addRow(false);
- }
-
- // 데이터넣기
- if(tempyear == yearval){
- grd_icupatyearlist.valueMatrix(j+1,i+1) = itemcnt;
- grd_icupatyearlist.valueMatrix(j+1,0) = item;
- l++;
-
- } else{
- grd_icupatyearlist.valueMatrix(j+1,i+1) = 0;
- }
- }
- tempyear++;
- }
- }
-
- grd_icupatyearlist.refresh();
- //grd_icupatyearlist.cellattribute("height",1,0,1,2) = "0px";
- grd_icupatyearlist.rowhidden(1) = true;
- }
-
- // 중환자실 자유기간별현황 조회
- function fSrchICUTermDayInfo(){
- if(model.getValue("/root/main/cond/refflag") == "A" ){
- grd_pattermdaylist.visible = true;
- grd_patordtermdaylist.visible = false;
-
- if(model.getValue("/root/main/cond/wardcd") == ""){
- return;
- }
-
- for( var i = 0; i < grd_pattermdaylist.cols+10000; i++ ) {
- grd_pattermdaylist.removeColumn(false);
- }
- model.removeNodeset("/root/main/icupattermdayinfo");
- grd_pattermdaylist.refresh();
-
- if(model.getValue("/root/main/cond/fromdd") > model.getValue("/root/main/cond/todd")){
- messageBox("해당기간이 올바르지 않습니다.","E", "확인 후 다시 조회하십시오.");
- model.setFocus("ipt_fromdd");
- return;
- }
-
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/fromdd" , model.getValue("/root/main/cond/fromdd")); // 시작일자
- model.makeValue ("/root/send/reqdata/todd" , model.getValue("/root/main/cond/todd") ); // 종료일자
- model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd") ); // 병동코드(중환자실)
- model.makeValue ("/root/send/reqdata/refflag" , model.getValue("/root/main/cond/refflag") ); // 조회구분
-
- submit("TRSNW00105"); // 중환자실 자유기간별현황 조회
-
- // 자유기간별 그리드 만들기(가로형태로)
- var cols = grd_pattermdaylist.cols - grd_pattermdaylist.fixedCols;
- var rows = grd_pattermdaylist.rows - grd_pattermdaylist.fixedRows;
- var caption = grd_pattermdaylist.caption;
- var tempday = "";
- var colday = "";
- var dayval = "";
- var itemcnt = "";
- var item = "";
- var k = 0, m = 1;
-
- if(getNodesetCount("/root/main/icupattermdayinfo/geticupattermdaylist") > 0) {
- var fromdd = model.getValue("/root/send/reqdata/fromdd");
- var todd = model.getValue("/root/send/reqdata/todd");
- tempday = fromdd;
-
- for(var i = 0; i <= getDateInterval(fromdd, todd); i++){
- // 필드만들기(열)
- grd_pattermdaylist.addColumn("ref:day" + tempday + "; type:output; text-align:center;", false);
- caption = caption + "^"+ dayval;
-
- grd_pattermdaylist.valueMatrix(0, i+1) = tempday.toString().substr(0,4) + "-" + tempday.toString().substr(4,2) + "-" + tempday.toString().substr(6,2);
-
- for(var j = 0; j < 28; j++){
- //dayval = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist["+ m +"]/day");
- //itemcnt = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist["+ m +"]/itemcnt");
- //item = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist["+ m +"]/item");
-
- dayval = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist[day = '" + tempday + "' and sort = '" + (j+1)+ "']/day");
- itemcnt = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist[day = '" + tempday + "' and sort = '" + (j+1)+ "']/itemcnt");
- item = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist[day = '" + tempday + "' and sort = '" + (j+1)+ "']/item");
-
- // 구분리스트 만들기(행)
- if(grd_pattermdaylist.rows-grd_pattermdaylist.fixedRows < 28 ) {
- grd_pattermdaylist.addRow(false);
- }
-
- // 데이터넣기
- if(tempday == dayval){
- grd_pattermdaylist.valueMatrix(j+1, i+1) = itemcnt;
- grd_pattermdaylist.valueMatrix(j+1, 0) = item;
- //m++;
- } else{
- grd_pattermdaylist.valueMatrix(j+1, i+1) = 0;
- }
- }
- tempday = tempday.toDate().getAddDate(1,"D").getDateFormat();
- }
- }
- grd_pattermdaylist.refresh();
-
- }else{
- /*
- for( var i = 0; i < grd_patordtermdaylist.cols+10000; i++ ) {
- grd_patordtermdaylist.removeColumn(false);
- }
- */
- grd_pattermdaylist.visible = false;
- grd_patordtermdaylist.visible = true;
-
- model.removeNodeset("/root/main/icupattermdayinfo");
- grd_patordtermdaylist.refresh();
-
- if(model.getValue("/root/main/cond/fromdd") > model.getValue("/root/main/cond/todd")){
- messageBox("해당기간이 올바르지 않습니다.","E", "확인 후 다시 조회하십시오.");
- model.setFocus("ipt_fromdd");
- return;
- }
-
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/fromdd" , model.getValue("/root/main/cond/fromdd")); // 시작일자
- model.makeValue ("/root/send/reqdata/todd" , model.getValue("/root/main/cond/todd") ); // 종료일자
- model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd") ); // 병동코드(중환자실)
- model.makeValue ("/root/send/reqdata/refflag" , model.getValue("/root/main/cond/refflag") ); // 조회구분
-
- submit("TRSNW00107"); // 중환자실 자유기간별현황 조회
-
- // 자유기간별 그리드 만들기(가로형태로)
- var cols = grd_patordtermdaylist.cols - grd_patordtermdaylist.fixedCols;
- var rows = grd_patordtermdaylist.rows - grd_patordtermdaylist.fixedRows;
- var caption = grd_patordtermdaylist.caption;
- var tempday = "";
- var dayval = "";
- var k = 01;
-
- if(getNodesetCount("/root/main/icupattermdayinfo/icupattermdaylist") > 0) {
- var fromdd = model.getValue("/root/send/reqdata/fromdd");
- var todd = model.getValue("/root/send/reqdata/todd");
- tempday = fromdd;
-
- //for(var i = 0; i <= getDateInterval(fromdd, todd); i++){
- for(var i = 0; i < cols; i++){
- // 필드만들기(열)
- //grd_pattermdaylist.addColumn("ref:day" + tempday + "; type:output; text-align:center;", false);
- //caption = caption + "^"+ dayval;
-
- /*
- if( i < getDateInterval(fromdd, todd) + 1) { //total
- grd_patordtermdaylist.addColumn("ref:d" + k + "; type:output; text-align:center;", false);
- caption = caption + "^"+ dayval;
-
- grd_patordtermdaylist.valueMatrix(0, i+1) = tempday.toString().substr(0,4) + "-" + tempday.toString().substr(4,2) + "-" + tempday.toString().substr(6,2);
- k++;
- }else{
- grd_patordtermdaylist.removeColumn(false);
-
- }
- */
-
- grd_patordtermdaylist.valueMatrix(0, i+1) = tempday.toString().substr(0,4) + "-" + tempday.toString().substr(4,2) + "-" + tempday.toString().substr(6,2);
- tempday = tempday.toDate().getAddDate(1,"D").getDateFormat();
-
- }
- }
- grd_patordtermdaylist.refresh();
- }
- }
-
- // 중환자실 자유기간별현황 조회_OLD
- function fSrchICUTermDayInfo_OLD(){
- if(model.getValue("/root/main/cond/wardcd") == ""){
- return;
- }
-
- for( var i = 0; i < grd_pattermdaylist.cols+10000; i++ ) {
- grd_pattermdaylist.removeColumn(false);
- }
-
- if(model.getValue("/root/main/cond/fromdd") > model.getValue("/root/main/cond/todd")){
- messageBox("해당기간이 올바르지 않습니다.","E", "확인 후 다시 조회하십시오.");
- model.setFocus("ipt_fromdd");
- return;
- }
-
- model.removenode("/root/send");
- model.makeNode ("/root/send");
- model.makeValue ("/root/send/reqdata/fromdd" , model.getValue("/root/main/cond/fromdd")); // 시작일자
- model.makeValue ("/root/send/reqdata/todd" , model.getValue("/root/main/cond/todd") ); // 종료일자
- model.makeValue ("/root/send/reqdata/wardcd" , model.getValue("/root/main/cond/wardcd") ); // 병동코드(중환자실)
- model.removeNodeset("/root/main/icupattermdayinfo");
-
- submit("TRSNW00105"); // 중환자실 자유기간별현황 조회
-
- // 자유기간별 그리드 만들기(가로형태로)
- var cols = grd_pattermdaylist.cols - grd_pattermdaylist.fixedCols;
- var rows = grd_pattermdaylist.rows - grd_pattermdaylist.fixedRows;
- var caption = grd_pattermdaylist.caption;
- var tempday = "";
- var colday = "";
- var dayval = "";
- var itemcnt = "";
- var item = "";
- var k = 0, l = 1;
-
- if(getNodesetCount("/root/main/icupattermdayinfo/geticupattermdaylist") > 0) {
- var fromdd = model.getValue("/root/send/reqdata/fromdd");
- var todd = model.getValue("/root/send/reqdata/todd");
- tempday = fromdd;
- // colday = (fromdd.toDate()).getDateFormat("YYYY-MM-DD");
-
- for(var i=0; i<=(todd-fromdd);i++){
- // 필드만들기(열)
- grd_pattermdaylist.addColumn("ref:day"+k+"; type:output; text-align:center;", false);
- caption = caption + "^"+ dayval;
- grd_pattermdaylist.valueMatrix(0,i+1) = tempday.toString().substr(0,4) + "-" + tempday.toString().substr(4,2) + "-" + tempday.toString().substr(6,2);
- //grd_pattermdaylist.valueMatrix(0,i+1) = colday;
-
- for(var j=0;j<10;j++){
- dayval = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist["+ l +"]/day");
- itemcnt = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist["+ l +"]/itemcnt");
- item = model.getValue("/root/main/icupattermdayinfo/geticupattermdaylist["+ l +"]/item");
-
- // 구분리스트 만들기(행)
- if(grd_pattermdaylist.rows-grd_pattermdaylist.fixedRows <10) {
- grd_pattermdaylist.addRow(false);
- }
-
- // 데이터넣기
- if(tempday == dayval){
- grd_pattermdaylist.valueMatrix(j+1,i+1) = itemcnt;
- grd_pattermdaylist.valueMatrix(j+1,0) = item;
- l++;
- } else{
- grd_pattermdaylist.valueMatrix(j+1,i+1) = 0;
- }
- }
- tempday++;
- //colday = (((tempday).getAddDate(1,"D")).getDateFormat("YYYY-MM-DD"));
- }
- }
- grd_pattermdaylist.refresh();
- grd_pattermdaylist.rowhidden(1) = true;
- }
-
- // 탭에 따른 조회
- function fSwitchSrchICUPatList(){
- switch(swt_icupatlist.selectedIndex){
- // 연도별
- case 0: fSrchICUYearInfo(); // 중환자실 연도별현황 조회
- break;
- // 월별
- case 1: fSrchICUMonthInfo(); // 중환자실 월별현황 조회
- break;
- // 일자별
- case 2: fSrchICUDayInfo(); // 중환자실 일별현황 조회
- break;
- // 자유기간별
- case 3: fSrchICUTermDayInfo(); // 중환자실 자유기간별현황 조회
- break;
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit(); // 초기화
- ]]>
- </script>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:207px; height:14px; ">중환자실 이용현황</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <button id="btn_year" class="btn_sw" group="tab" selected="true" style="left:0px; top:55px; width:68px; height:22px; ">
- <caption>연도별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_year");
- ipt_yearmonth.visible = false;
- ipt_year.visible = false;
- ipt_fromyear.visible = true;
- ipt_toyear.visible = true;
- cpt_dash.visible = true;
- ipt_fromdd.visible = false;
- ipt_todd.visible = false;
-
- fSrchICUYearInfo(); // 중환자실 연도별현황 조회
-
- ]]>
- </script>
- </button>
- <button id="btn_day" class="btn_sw" group="tab" selected="true" style="left:136px; top:55px; width:68px; height:22px; ">
- <caption>일별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_day");
- ipt_yearmonth.visible = true;
- ipt_year.visible = false;
- ipt_fromyear.visible = false;
- ipt_toyear.visible = false;
- cpt_dash.visible = false;
- ipt_fromdd.visible = false;
- ipt_todd.visible = false;
-
- fSrchICUDayInfo(); // 중환자실 일별현황 조회
- ]]>
- </script>
- </button>
- <button id="btn_month" class="btn_sw" group="tab" style="left:68px; top:55px; width:68px; height:22px; ">
- <caption>월별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_month");
- ipt_yearmonth.visible = false;
- ipt_year.visible = true;
- ipt_fromyear.visible = false;
- ipt_toyear.visible = false;
- cpt_dash.visible = false;
- ipt_fromdd.visible = false;
- ipt_todd.visible = false;
-
- fSrchICUMonthInfo(); // 중환자실 월별현황 조회
- ]]>
- </script>
- </button>
- <button id="button2" class="btn_sw" visibility="hidden" group="tab" selected="true" style="left:204px; top:55px; width:73px; height:22px; ">
- <caption>자유기간별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_term");
- ipt_yearmonth.visible = false;
- ipt_year.visible = false;
- ipt_fromyear.visible = false;
- ipt_toyear.visible = false;
- cpt_dash.visible = true;
- ipt_fromdd.visible = true;
- ipt_todd.visible = true;
- fSrchICUTermDayInfo(); // 중환자실 자유기간별현황 조회
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <button id="button1" class="btn1_letter2" style="left:1128px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSwitchSrchICUPatList(); // 탭에 따른 조회
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1112px; y1:7px; x2:1112px; y2:29px; "/>
- <caption id="caption3" class="search_name" style="left:20px; top:10px; width:105px; height:17px; ">중환자실별 :</caption>
- <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_search" appearance="minimal" style="left:130px; top:9px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptinfo/deptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSwitchSrchICUPatList(); // 탭에 따른 조회
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:310px; top:10px; width:90px; height:17px; ">해당기간 :</caption>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSwitchSrchICUPatList(); // 탭에 따른 조회
- ]]>
- </script>
- </input>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSwitchSrchICUPatList(); // 탭에 따른 조회
- ]]>
- </script>
- </input>
- <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; "/>
- <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; "/>
- <caption id="cpt_dash" class="search_no_b" visibility="hidden" style="left:494px; top:10px; width:17px; height:17px; ">~</caption>
- <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; "/>
- <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; "/>
- <caption id="caption1" class="search_name" style="left:655px; top:10px; width:105px; height:17px; ">조회구분 :</caption>
- <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; ">
- <choices>
- <item>
- <label>통계항목별</label>
- <value>A</value>
- </item>
- <item>
- <label>진료과별</label>
- <value>B</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //조회구분
- if(model.getValue("/root/main/cond/refflag") == "A"){
- cmb_wardcd.disabled = false;
- }else{
- cmb_wardcd.disabled = true;
- model.setValue("/root/main/cond/wardcd", "");
- cmb_wardcd.refresh();
- }
- fSwitchSrchICUPatList();
- ]]>
- </script>
- </select1>
- </group>
- <switch id="swt_icupatlist" style="left:0px; top:75px; width:1194px; height:660px; border-style:solid; ">
- <case id="case_year" selected="true">
- <!--
- <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; ">
- <col ref="item"/>
- </datagrid>
- -->
- <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; ">
- <col ref="item"/>
- </datagrid>
- <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; ">
- <col ref="item"/>
- <col ref="y01" visibility="hidden" style="text-align:right; "/>
- <col ref="y02" visibility="hidden" style="text-align:right; "/>
- <col ref="per1" visibility="hidden" style="text-align:right; "/>
- <col ref="y03" visibility="hidden" style="text-align:right; "/>
- <col ref="y04" visibility="hidden" style="text-align:right; "/>
- <col ref="per2" visibility="hidden" style="text-align:right; "/>
- <col ref="y05" visibility="hidden" style="text-align:right; "/>
- <col ref="y06" visibility="hidden" style="text-align:right; "/>
- <col ref="per3" visibility="hidden" style="text-align:right; "/>
- </datagrid>
- </case>
- <case id="case_month">
- <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; ">
- <col ref="item"/>
- <col ref="m01" style="text-align:right; "/>
- <col ref="m02" style="text-align:right; "/>
- <col ref="m03" style="text-align:right; "/>
- <col ref="m04" style="text-align:right; "/>
- <col ref="m05" style="text-align:right; "/>
- <col ref="m06" style="text-align:right; "/>
- <col ref="m07" style="text-align:right; "/>
- <col ref="m08" style="text-align:right; "/>
- <col ref="m09" style="text-align:right; "/>
- <col ref="m10" style="text-align:right; "/>
- <col ref="m11" style="text-align:right; "/>
- <col ref="m12" style="text-align:right; "/>
- <col ref="total" style="text-align:right; "/>
- </datagrid>
- </case>
- <case id="case_day">
- <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; ">
- <col ref="item"/>
- <col ref="d01" style="text-align:right; "/>
- <col ref="d02" style="text-align:right; "/>
- <col ref="d03" style="text-align:right; "/>
- <col ref="d04" style="text-align:right; "/>
- <col ref="d05" style="text-align:right; "/>
- <col ref="d06" style="text-align:right; "/>
- <col ref="d07" style="text-align:right; "/>
- <col ref="d08" style="text-align:right; "/>
- <col ref="d09" style="text-align:right; "/>
- <col ref="d10" style="text-align:right; "/>
- <col ref="d11" style="text-align:right; "/>
- <col ref="d12" style="text-align:right; "/>
- <col ref="d13" style="text-align:right; "/>
- <col ref="d14" style="text-align:right; "/>
- <col ref="d15" style="text-align:right; "/>
- <col ref="d16" style="text-align:right; "/>
- <col ref="d17" style="text-align:right; "/>
- <col ref="d18" style="text-align:right; "/>
- <col ref="d19" style="text-align:right; "/>
- <col ref="d20" style="text-align:right; "/>
- <col ref="d21" style="text-align:right; "/>
- <col ref="d22" style="text-align:right; "/>
- <col ref="d23" style="text-align:right; "/>
- <col ref="d24" style="text-align:right; "/>
- <col ref="d25" style="text-align:right; "/>
- <col ref="d26" style="text-align:right; "/>
- <col ref="d27" style="text-align:right; "/>
- <col ref="d28" style="text-align:right; "/>
- <col ref="d29" style="text-align:right; "/>
- <col ref="d30" style="text-align:right; "/>
- <col ref="d31" style="text-align:right; "/>
- <col ref="total" style="text-align:right; "/>
- </datagrid>
- </case>
- <case id="case_term">
- <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; ">
- <col ref="item"/>
- </datagrid>
- <!--
- <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; ">
- -->
- <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; ">
- <col ref="item"/>
- <col ref="d01" style="text-align:right; "/>
- <col ref="d02" style="text-align:right; "/>
- <col ref="d03" style="text-align:right; "/>
- <col ref="d04" style="text-align:right; "/>
- <col ref="d05" style="text-align:right; "/>
- <col ref="d06" style="text-align:right; "/>
- <col ref="d07" style="text-align:right; "/>
- <col ref="d08" style="text-align:right; "/>
- <col ref="d09" style="text-align:right; "/>
- <col ref="d10" style="text-align:right; "/>
- <!--
- <col ref="d11" style="text-align:right; "/>
- <col ref="d12" style="text-align:right; "/>
- <col ref="d13" style="text-align:right; "/>
- <col ref="d14" style="text-align:right; "/>
- <col ref="d15" style="text-align:right; "/>
- <col ref="d16" style="text-align:right; "/>
- <col ref="d17" style="text-align:right; "/>
- <col ref="d18" style="text-align:right; "/>
- <col ref="d19" style="text-align:right; "/>
- <col ref="d20" style="text-align:right; "/>
- <col ref="d21" style="text-align:right; "/>
- <col ref="d22" style="text-align:right; "/>
- <col ref="d23" style="text-align:right; "/>
- <col ref="d24" style="text-align:right; "/>
- <col ref="d25" style="text-align:right; "/>
- <col ref="d26" style="text-align:right; "/>
- <col ref="d27" style="text-align:right; "/>
- <col ref="d28" style="text-align:right; "/>
- <col ref="d29" style="text-align:right; "/>
- <col ref="d30" style="text-align:right; "/>
- <col ref="d31" style="text-align:right; "/>
- <col ref="total" style="text-align:right; "/>
- -->
- </datagrid>
- </case>
- </switch>
- <button id="btn_excel" class="btn2_letter2" style="left:1150px; top:55px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var refflag = model.getValue("/root/main/cond/refflag");
- var fileName = window.fileDialog("save", ",", false, "중환자실 이용현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- switch(swt_icupatlist.selectedIndex){
- // 연도별
- case 0:
- if(refflag == "A"){
- grd_icupatyearlist.saveExcel(fileName, "중환자실 연도별 이용현황;colhiddenextend:false; ", true, true, "", "", false); // 중환자실 연도별현황 조회
- }else{
- grd_icupatordyearlist.saveExcel(fileName, "중환자실 연도별 이용현황;colhiddenextend:false;", true, true, "", "", false); // 중환자실 연도별현황 조회
- }
- break;
-
- // 월별
- case 1:
- grd_icupatmonthlist.saveExcel(fileName, "중환자실 월별 이용현황;colhiddenextend:false; ", true, true, "", "", false); // 중환자실 월별현황 조회
- break;
-
- // 일자별
- case 2:
- grd_icupatdaylist.saveExcel(fileName, "중환자실 일별 이용현황;colhiddenextend:false; ", true, true, "", "", false); // 중환자실 일별현황 조회
- break;
-
- // 자유기간별
- case 3:
- if(refflag == "A"){
- grd_pattermdaylist.saveExcel(fileName, "중환자실 기간별 이용현황;colhiddenextend:false; ", true, true, "", "", false); // 중환자실 자유기간별현황 조회
- }else{
- grd_patordtermdaylist.saveExcel(fileName, "중환자실 기간별 이용현황;colhiddenextend:false; ", true, true, "", "", false); // 중환자실 자유기간별현황 조회
- }
- break;
- }
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter4" style="left:1083px; top:55px; width:64px; height:19px; ">
- <caption>용어정의</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SSMNW00500_중환자실통계기준정보.xrw");
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; "/>
- </xhtml:body>
- </xhtml:html>
|