123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNW04703" position="absolute 0 0 1172 690" titletext="욕창Push차트 그래프" oninit="SMMNW04703_oninit" onload="SMMNW04703_onload">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 374 1169 686" id="grd_list" class="datagrid0" binddataset="ds_main_pushlist" onhscroll="grd_list_onhscroll" selecttype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="174"/>
- <Column size="99"/>
- <Column size="99"/>
- <Column size="99"/>
- <Column size="99"/>
- <Column size="99"/>
- <Column size="99"/>
- <Column size="99"/>
- <Column size="99"/>
- <Column size="99"/>
- <Column size="99"/>
- <Column size="99"/>
- <Column size="99"/>
- <Column size="99"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="0" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="obspartnm"/>
- <Cell col="1" text="recdt1"/>
- <Cell col="2" text="totl"/>
- <Cell col="3" text="caption9"/>
- <Cell col="4" text="caption8"/>
- <Cell col="5" text="caption7"/>
- <Cell col="6" text="caption6"/>
- <Cell col="7" text="caption5"/>
- <Cell col="8" text="caption4"/>
- <Cell col="9" text="caption3"/>
- <Cell col="10" text="caption2"/>
- <Cell col="11" text="caption1"/>
- <Cell col="12" text="caption10"/>
- <Cell col="13" text="caption11"/>
- <Cell col="14" text="flag"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" style="align:center;" text="bind:obspartnm" suppress="1" suppressalign="middle,over"/>
- <Cell col="1" displaytype="text" style="align:center;padding:0 0 0 0;" text="bind:total1"/>
- <Cell col="2" style="align:center;padding:0 0 0 0;" text="bind:total2"/>
- <Cell col="3" style="align:center;padding:0 0 0 0;" text="bind:total3"/>
- <Cell col="4" style="align:center;padding:0 0 0 0;" text="bind:total4"/>
- <Cell col="5" style="align:center;padding:0 0 0 0;" text="bind:total5"/>
- <Cell col="6" style="align:center;padding:0 0 0 0;" text="bind:total6"/>
- <Cell col="7" style="align:center;padding:0 0 0 0;" text="bind:total7"/>
- <Cell col="8" style="align:center;padding:0 0 0 0;" text="bind:total8"/>
- <Cell col="9" style="align:center;padding:0 0 0 0;" text="bind:total9"/>
- <Cell col="10" style="align:center;padding:0 0 0 0;" text="bind:total10"/>
- <Cell col="11" style="align:center;padding:0 0 0 0;" text="bind:total11"/>
- <Cell col="12" style="align:center;padding:0 0 0 0;" text="bind:total12"/>
- <Cell col="13" style="align:center;padding:0 0 0 0;" text="bind:total13"/>
- <Cell col="14" text="bind:flag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <ActiveX position="absolute 0 72 1169 372" id="obj_chart" progid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}"/>
- <Div position="absolute 0 25 1169 65" align="align:center top;" id="group1" class="div_SA">
- <Layouts>
- <Layout>
- <Button position="absolute 1100 10 1156 32" id="btn_search" class="btn1" taborder="13" text="조회" anchor="default" onclick="group1_btn_search_onclick"/>
- <Static text="기 간 :" position="absolute 20 10 80 30" id="caption1" class="search_name" anchor="default"/>
- <Calendar position="absolute 84 10 172 30" align="align:center middle;" id="ipt_fromdd" class="input_search" taborder="1" anchor="default"/>
- <Calendar position="absolute 191 10 279 30" align="align:center middle;" id="ipt_todd" class="input_search" taborder="1" anchor="default"/>
- <Static text="~" position="absolute 178 10 193 30" id="caption2" anchor="default"/>
- <Shape position="absolute 1083 6 1089 36" linetype="vertical" id="line3" class="line_4" anchor="default"/>
- <Edit position="absolute 397 11 491 32" align="align:center middle;" id="ipt_pid" anchor="default"/>
- <Static text="환 자 :" position="absolute 329 13 394 30" id="caption3" class="search_name" anchor="default"/>
- <Edit position="absolute 494 11 604 32" align="align:center middle;" id="ipt_pname" anchor="default" style="background:URL('theme://images/bg_edit_N.png') stretch 5,5;"/>
- <Edit position="absolute 745 12 845 33" id="ipt_indd" visible="false" anchor="default" style="background:URL('theme://images/bg_edit_N.png') stretch 5,5;"/>
- <Edit position="absolute 856 11 956 32" id="ipt_cretno" visible="false" anchor="default"/>
- <Button position="absolute 989 10 1069 32" id="button1" visible="false" text="button1" anchor="default" onclick="group1_button1_onclick"/>
- <CheckBox position="absolute 621 12 721 32" id="chk_pushyn" anchor="default" text="push만" truevalue="Y" falsevalue="N"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 67 1169 73" linetype="horizontal" id="line2" class="line_1"/>
- <Static text="피부욕창관찰기록 PUSH 차트" position="absolute 0 0 210 25" id="caption6" class="tit_1"/>
- <Shape id="line00" class="line_10" position="absolute 0 67 1169 73"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_pushlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="recdd" type="STRING" size="256"/>
- <Column id="svalue" type="STRING" size="256"/>
- <Column id="avalue" type="STRING" size="256"/>
- <Column id="tvalue" type="STRING" size="256"/>
- <Column id="total" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="recdd"/>
- <Col id="svalue"/>
- <Col id="avalue"/>
- <Col id="tvalue"/>
- <Col id="total"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="title" type="STRING" size="256"/>
- <Column id="reportid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_pinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="sdate" type="STRING" size="256"/>
- <Column id="edate" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="sdate"/>
- <Col id="edate"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sdate" type="STRING" size="256"/>
- <Column id="edate" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="pname" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="pushyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sdate"/>
- <Col id="edate"/>
- <Col id="pid"/>
- <Col id="pname"/>
- <Col id="indd"/>
- <Col id="cretno"/>
- <Col id="pushyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_pushlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_scrollinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="scrollvalue" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.ipt_fromdd" propid="value" datasetid="ds_cond" columnid="sdate"/>
- <BindItem id="item1" compid="group1.ipt_todd" propid="value" datasetid="ds_cond" columnid="edate"/>
- <BindItem id="item2" compid="group1.ipt_pid" propid="value" datasetid="ds_cond" columnid="pid"/>
- <BindItem id="item3" compid="group1.chk_pushyn" propid="value" datasetid="ds_cond" columnid="pushyn"/>
- <BindItem id="item4" compid="group1.ipt_indd" propid="value" datasetid="ds_cond" columnid="indd"/>
- <BindItem id="item5" compid="group1.ipt_cretno" propid="value" datasetid="ds_cond" columnid="cretno"/>
- <BindItem id="item6" compid="group1.ipt_pname" propid="value" datasetid="ds_cond" columnid="pname"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs"
- include "emr_carecomxp::CareCom.xjs"
- /******************************************************************
- * Argument :
- * Description : 초기화
- ******************************************************************/
- function SMMNW04703_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNW04703_onload(obj:Form, e:LoadEventInfo)
- {
- var sPamInfo = sysf_getGlobalVariable("paminfo");
- //ds_main_paminfo.copyData(sPamInfo); //환자정보내리기
- dsf_setCSVToDs("ds_main_paminfo", sPamInfo)
- var pid = ds_main_paminfo.getColumn(0, "pid");
- var indd = ds_main_paminfo.getColumn(0, "indd");
- var cretno = ds_main_paminfo.getColumn(0, "cretno");
- var wardcd = ds_main_paminfo.getColumn(0, "wardcd");
- var roomcd = ds_main_paminfo.getColumn(0, "roomcd");
- var hngnm = ds_main_paminfo.getColumn(0, "hngnm");
-
- ds_cond.setColumn(0, "pid", pid);
- ds_cond.setColumn(0, "sdate", indd);
- ds_cond.setColumn(0, "edate", utlf_getCurrentDate());
- ds_cond.setColumn(0, "pname", hngnm);
- ds_cond.setColumn(0, "indd", indd);
- ds_cond.setColumn(0, "cretno", cretno);
-
- fGetNursHardCdInfo("'U30'", utlf_getCurrentDate()); // '002' 응급의료센터 여부 조회
-
- var useyn = ds_codelist.lookup("cdgrupid", "U30", "cdid");
-
- if( useyn == "Y" ) {
- group1.chk_pushyn.visible = true;
- ds_cond.setColumn(0, "pushyn", "Y");
- } else {
- group1.chk_pushyn.visible = false;
- ds_cond.setColumn(0, "pushyn", "N");
- }
-
- frmf_inputEnterKey("group1.btn_search", "onclick", new ClickEventInfo);
- }
- /******************************************************************
- * Argument :
- * Description : 조회 button event
- ******************************************************************/
- function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- fMakeChart();
- }
- /******************************************************************
- * Argument : fSearch()
- * Description : 조회
- ******************************************************************/
- function fSearch(){
-
- var oParam = {};
- oParam.id = "TRMNW04710";
- oParam.service = "wardcareapp.WardCareRec";
- oParam.method = "reqGetPushChartInfo";
- oParam.inds = "req=ds_cond";
- oParam.outds = "ds_main_pushlist=pushlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNW04710";
- tranf_submit(oParam);
-
- ds_main_pushlist.rowposition = -1;
-
- var flag = ""
- var node = "";
- var EXPR = "EXPR("
- var EXPR2 = "EXPR("
-
- var datarows = ds_main_pushlist.rowcount;
-
- for(var i = 0; i < datarows; i++)
- {
-
- flag = ds_main_pushlist.getColumn(i, "flag");
-
- if(flag == "1")
- {
- EXPR += "currow == " + i + " ? '#bdddff' : ";
- EXPR2 += "currow == " + i + " ? '####-##-## ##:##' : ";
- //expr:utlf_isNull(total1) == true ? '' : '####-##-## ##:##'
- }
- }
-
- EXPR += "'')";
- EXPR2 += "'')";
-
- if(ds_main_pushlist.rowcount > 0)
- {
- for(var iCol = 1 ; iCol < 14 ;iCol++)
- {
- grd_list.setCellProperty("Body", iCol, "background", EXPR);
- grd_list.setCellProperty("Body", iCol, "background2", EXPR);
-
- grd_list.setCellProperty("Body", iCol, "mask", EXPR2);
- }
- grd_list.setCellProperty("Body", 0, "background", "#bdddff");
- grd_list.setCellProperty("Body", 0, "background2", "#bdddff");
- }
- var iRow = 0;
- var iCol = 0;
-
- for(iCol = 0; iCol < 14; iCol++ )
- {
- for(iRow = 0 ; iRow < ds_main_pushlist.rowcount; iRow++)
- {
- var colnm = ds_main_pushlist.getColumn(iRow, iCol);
-
- if(utlf_isNull(colnm))
- {
- grd_list.setFormatColProperty(iCol, "size", 0);
- }
- else
- {
- if( iCol == 0 ){
- grd_list.setFormatColProperty(iCol, "size", 174);
- }else{
- grd_list.setFormatColProperty(iCol, "size", 99);
- }
-
- }
- }
- }
- }
- /******************************************************************
- * Argument : fMakeChart()
- * Description : 조회
- ******************************************************************/
- function fMakeChart() {
- var flag;
- var cnt = 0;
- var title = "";
-
- obj_chart.ClearChart();
- obj_chart.Header.Visible = true; // Graph Header 정보 사용 여부
- obj_chart.Legend.Visible = true;
-
-
- obj_chart.Header.Font.Color = 0x000000;
- obj_chart.Header.Font.Size = 15;
-
- obj_chart.Legend.CheckBoxes = true;
- obj_chart.Legend.Alignment = 0;
-
- obj_chart.Panel.MarginTop = 15
- obj_chart.Panel.MarginLeft = 15;
- obj_chart.Panel.MarginRight = 0;
- obj_chart.Panel.MarginBottom = -1;
-
- obj_chart.Legend.CheckBoxes = true;
-
- obj_chart.Panel.BevelWidth = 0; // 주위 테두리 넓이 0으로 설정
- obj_chart.Aspect.View3D = false; // 2d 로 표현하기
- obj_chart.Zoom.Enable = false; // zoom 사용하지 않기 (마우스 하단으로 드래그 zoomin, 마우스 상단으로 드래그 zoomout)
- obj_chart.Scroll.Enable = false; // scroll 사용하지 않기
- obj_chart.Legend.Visible = true; // 그래프 참조 박스 띄우지 않기(범례) 우측상단
- obj_chart.Legend.CustomPosition = true;
- obj_chart.Legend.Left = 10;
- obj_chart.Legend.Top = 0;
- obj_chart.Environment.MouseWheelScroll = true; // Graph 마우스 휠 사용 여부
-
- obj_chart.Axis.Bottom.Labels.Font.Size = 8; //하단축 Label 폰트 사이즈 조절
- obj_chart.Axis.Bottom.Labels.Font.Color = 0xffffff; //하단축 Label 폰트 사이즈 조절
- obj_chart.Axis.Left.TicksInner.Visible = true; //하단축 눈금 안쪽 표시 설정
- obj_chart.Axis.Bottom.TicksInner.Visible = true; //하단축 눈금 안쪽 표시 설정
- obj_chart.Axis.Visible = true;
-
- obj_chart.Axis.Left.Automatic = false; //하단축 자동 설정(기본값)
- obj_chart.Axis.Left.Labels.Visible = true; //하단축 Label 설정
- obj_chart.Axis.Left.Labels.Multiline = true; //하단축 Label 2줄 설정
- obj_chart.Axis.Left.Labels.Font.Size = 1; //하단축 Label 폰트 사이즈 조절
- obj_chart.Axis.Left.Minimum = -1;
- obj_chart.Axis.Left.Maximum = 16;
- obj_chart.Axis.Left.Increment = 2; //하단축 증가값 설정
- obj_chart.Axis.Left.MinorTickCount = 0; //하단축 눈금 갯수 설정
- obj_chart.Axis.Left.TicksInner.Visible = true; //하단축 눈금 안쪽 표시 설정
-
- obj_chart.Axis.Bottom.Automatic = false; //하단축 자동 설정(기본값)
- obj_chart.Axis.Bottom.Labels.Visible = true; //하단축 Label 설정
- obj_chart.Axis.Bottom.Labels.Multiline = true; //하단축 Label 2줄 설정
- obj_chart.Axis.Bottom.Labels.Font.Size = 1; //하단축 Label 폰트 사이즈 조절
- obj_chart.Axis.Bottom.Minimum = 0;
- obj_chart.Axis.Bottom.Maximum = 10;
- obj_chart.Axis.Bottom.Increment = 1; //하단축 증가값 설정
- obj_chart.Axis.Bottom.MinorTickCount = 0; //하단축 눈금 갯수 설정
- obj_chart.Axis.Bottom.TicksInner.Visible = true; //하단축 눈금 안쪽 표시 설정
-
- for( var i = 0; i < ds_main_pushlist.rowcount; i++) {
- flag = ds_main_pushlist.getColumn(i, "flag");
- title = ds_main_pushlist.getColumn(i, "obspartnm");
-
- if( flag != "1" ) {
- // Rnd1 = Math.random();
- // Rnd2 = Math.random();
- // Rnd3 = Math.random();
- //cColor = window.rgb( (255 - 1) * Rnd1 + 1, (255 - 1) * Rnd2 + 1 , (255 - 1) * Rnd3 + 1);
-
- Rnd1 = Math.random();
- Rnd1 = Math.round((255 - 1) * Rnd1 + 1);
-
- Rnd2 = Math.random();
- Rnd2 = Math.round((255 - 1) * Rnd2 + 1);
-
- Rnd3 = Math.random();
- Rnd3 = Math.round((255 - 1) * Rnd3 + 1);
-
- cColor = (Rnd1).toString(16) + (Rnd2).toString(16) + (Rnd3).toString(16);
-
- var axis = obj_chart.Axis.AddCustom(false);
- obj_chart.Axis.get_Custom(cnt).AxisPen.Color = "#"+cColor;
-
- obj_chart.Axis.get_Custom(cnt).PositionPercent = 0;
-
- if( cnt == 0 ){
- obj_chart.Axis.get_Custom(cnt).StartPosition = 0;
- obj_chart.Axis.get_Custom(cnt).EndPosition = 100;
- }
-
- obj_chart.Axis.get_Custom(cnt).PositionPercent = 1 - (3*(cnt+1));
- obj_chart.Axis.get_Custom(cnt).Automatic = false;
- obj_chart.Axis.get_Custom(cnt).Maximum = 17;
- obj_chart.Axis.get_Custom(cnt).Minimum = 0;
- obj_chart.Axis.get_Custom(cnt).Increment = 2;
- obj_chart.AddSeries(0);
- obj_chart.Series(cnt).Color = "#"+cColor;
- obj_chart.Series(cnt).Title = title;
- obj_chart.Series(cnt).VerticalAxisCustom = axis; // 혈압
- obj_chart.Series(cnt).Marks.Visible = true; //데이터레이블
- obj_chart.Series(cnt).asLine.LinePen.Width = 2;
- obj_chart.Series(cnt).asLine.Pointer.Visible = true;
- obj_chart.Series(cnt).asLine.Pointer.Style = 1;
- obj_chart.Series(cnt).asLine.Pointer.VerticalSize = 3;
- obj_chart.Series(cnt).asLine.Pointer.HorizontalSize = 3;
-
- var total;
- for( var j = 1; j < 14; j++ ) {
- total = ds_main_pushlist.getColumn(i, j);
- if( total != 0 && !utlf_isNull(total) ) {
- obj_chart.Series(cnt).AddXY(j-1 , parseInt(total), total, cColor);
- } else {
-
- }
- }
- cnt++;
- }
- }
- }
- /******************************************************************
- * Argument :
- * Description : button1 event
- ******************************************************************/
- function group1_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var fileName = "욕창 PUSH차트 그래프";
-
- if( utlf_isNull(fileName) ) {
- return;
- }
-
- obj_chart.Export.asJPEG.SaveToFile(fileName);
- }
- /******************************************************************
- * Argument :
- * Description : grd scroll event
- ******************************************************************/
- function grd_list_onhscroll(obj:Grid, e:ScrollEventInfo)
- {
- var tempScroll = ds_init_scrollinfo.getColumn(0, "scrollvalue");
- obj_chart.Axis.Bottom.Scroll((grd_list.hscrollbar.pos - tempScroll)/99, false);
- ds_init_scrollinfo.setColumn(0, "scrollvalue", grd_list.hscrollbar.pos);
- }
- ]]></Script>
- </Form>
- </FDL>
|