123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNE14000" position="absolute 0 0 997 784" titletext="응급실 입원결정 이후 체류 현황" oninit="SPMNE14000_oninit" onload="SPMNE14000_onload" ontimer="SPMNE14000_ontimer">
- <Layouts>
- <Layout>
- <Static text="입원결정 이후 체류현황" position="absolute 0 0 174 25" id="caption6" class="tit_1"/>
- <Div position="absolute 0 25 992 60" id="group1" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape position="absolute 789 5 795 30" linetype="vertical" id="line13" anchor="top right"/>
- <Static text="기 간:" position="absolute 243 10 298 27" id="caption33" class="search_name" anchor="default"/>
- <Button position="absolute 803 7 859 29" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="group1_btn_search_onclick"/>
- <Calendar position="absolute 415 8 507 29" id="ipt_srhto" class="input_essential" enable="false" anchor="default" dateformat="yyyy-MM-dd" autoselect="true"/>
- <Static text="~" position="absolute 400 11 410 28" id="caption8" anchor="default"/>
- <Calendar position="absolute 301 8 393 29" id="ipt_srhfrom" class="input_essential" enable="false" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- <Radio position="absolute 20 9 245 29" id="radio1" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="group1_radio1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">재원환자 기준</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">내원일 기준</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="(" position="absolute 234 9 244 29" id="caption1" anchor="default" style="font:Dotum,9,bold;"/>
- <Static text=")" position="absolute 516 9 526 29" id="caption2" anchor="default" style="font:Dotum,9,bold;"/>
- </Layout>
- </Layouts>
- </Div>
- <Tab position="absolute 0 72 992 761" id="switch1" anchor="all">
- <Tabpages>
- <Tabpage text="환자현황" id="case1" style="anchor:default;margin:0 0 0 0;">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 992 665" id="datagrid1" class="datagrid2" binddataset="ds_main_durlist" autofittype="col" anchor="all" autosizingtype="none" cellsizingtype="col" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="120"/>
- <Column size="65"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="75"/>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="35" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="환자번호"/>
- <Cell col="1" text="이름"/>
- <Cell col="2" text="성별/나이"/>
- <Cell col="3" text="입원일"/>
- <Cell col="4" colspan="2" text="입실일시" taborder="undefined"/>
- <Cell col="6" text="재방문 횟수"/>
- <Cell col="7" text="진료과"/>
- <Cell col="8" text="진료의"/>
- <Cell col="9" text="입원결정일시"/>
- <Cell col="10" text="입원장 발급일시"/>
- <Cell col="11" text="체류시간 (분)"/>
- <Cell col="12" colspan="2" text="퇴실일시" taborder="undefined"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;padding:0 0 0 5;" text="bind:pid"/>
- <Cell col="1" style="align:left;" text="bind:hngnm"/>
- <Cell col="2" style="align:center middle;" text="bind:sa"/>
- <Cell col="3" displaytype="expr:utlf_isNull(indd) ? 'normal' : 'date'" text="bind:indd"/>
- <Cell col="4" displaytype="expr:utlf_isNull(chosdd) ? 'normal' : 'date'" text="bind:chosdd"/>
- <Cell col="5" text="bind:chostm" mask="expr:utlf_isNull(chostm) ? '' : '##:##'"/>
- <Cell col="6" style="align:center middle;" text="bind:visitno"/>
- <Cell col="7" style="align:left middle;padding:0 0 0 5;" text="bind:juorddeptcd"/>
- <Cell col="8" style="align:left;" text="bind:juorddrid"/>
- <Cell col="9" style="padding:0 0 0 0;" text="bind:decndt" mask="expr:utlf_isNull(decndt) ? '' : '####-##-## ##:##'"/>
- <Cell col="10" style="padding:0 0 0 0;" text="bind:rsrvdt" mask="expr:utlf_isNull(rsrvdt) ? '' : '####-##-## ##:##'"/>
- <Cell col="11" displaytype="number" text="bind:durtime"/>
- <Cell col="12" displaytype="expr:utlf_isNull(outrmdd) ? 'normal' : 'date'" text="bind:outrmdd"/>
- <Cell col="13" text="bind:outrmtm" mask="expr:utlf_isNull(outrmtm) ? '' : '##:##'"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="과별 통계" id="case2" style="anchor:default;margin:0 0 0 0;">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 995 6" linetype="vertical" id="line1" class="line_1"/>
- <Grid position="absolute 0 0 992 665" id="datagrid2" binddataset="ds_main_durlist_sum" cellsizingtype="col" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="150"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="100"/>
- <Column size="120"/>
- <Column size="120"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="진료과"/>
- <Cell col="1" text="총 체류시간 (분)"/>
- <Cell col="2" text="총 체류시간 (일)"/>
- <Cell col="3" text="환자수"/>
- <Cell col="4" text="평균 체류시간 (분)"/>
- <Cell col="5" text="평균 체류시간 (일)"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;padding:0 0 0 5;" text="bind:juorddeptcd"/>
- <Cell col="1" displaytype="number" style="padding:0 5 0 0;" text="bind:sum_durtime"/>
- <Cell col="2" displaytype="number" style="padding:0 5 0 0;" text="bind:sum_durtime_d"/>
- <Cell col="3" displaytype="number" style="padding:0 5 0 0;" text="bind:cnt"/>
- <Cell col="4" displaytype="number" style="padding:0 5 0 0;" text="bind:avg_durtime"/>
- <Cell col="5" displaytype="number" style="padding:0 5 0 0;" text="bind:avg_durtime_d"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static text="[표]" position="absolute 968 767 993 780" align="align:right middle;" id="caption3" style="align:right middle;"/>
- <Button id="button2" taborder="1" text="Excel" class="btn7" position="absolute 863 32 925 54" anchor="top right" onclick="button2_onclick"/>
- <Button id="button1" taborder="2" text="출력" class="btn6" position="absolute 929 32 985 54" anchor="top right" onclick="button1_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_durlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="sa" type="STRING"/>
- <Column id="indd" type="STRING"/>
- <Column id="chosdd" type="STRING"/>
- <Column id="chostm" type="STRING"/>
- <Column id="visitno" type="STRING"/>
- <Column id="juorddeptcd" type="STRING"/>
- <Column id="juorddrid" type="STRING"/>
- <Column id="decndt" type="STRING"/>
- <Column id="rsrvdt" type="STRING"/>
- <Column id="durtime" type="STRING"/>
- <Column id="outrmdd" type="STRING"/>
- <Column id="outrmtm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_durlist_sum" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="juorddeptcd" type="STRING"/>
- <Column id="sum_durtime" type="STRING"/>
- <Column id="sum_durtime_d" type="STRING"/>
- <Column id="cnt" type="STRING"/>
- <Column id="avg_durtime" type="STRING"/>
- <Column id="avg_durtime_d" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_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="gbn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="gbn">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.radio1" propid="value" datasetid="ds_main_cond" columnid="gbn"/>
- <BindItem id="item1" compid="group1.ipt_srhfrom" propid="value" datasetid="ds_main_cond" columnid="sdate"/>
- <BindItem id="item2" compid="group1.ipt_srhto" propid="value" datasetid="ds_main_cond" columnid="edate"/>
- </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";
- /******************************************************************
- * Argument :
- * Description : 초기화
- ******************************************************************/
- function SPMNE14000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMNE14000_onload(obj:Form, e:LoadEventInfo)
- {
- ds_main_cond.setColumn(0, "sdate", utlf_getCurrentDate());
- ds_main_cond.setColumn(0, "edate", utlf_getCurrentDate());
-
- switch1.tabindex = 0;
- //속도개선
- //this.setTimer(0, 1);
- //frmf_inputEnterKey("group1.btn_search", "onclick", new ClickEventInfo);
- }
- /******************************************************************
- * Argument :
- * Description : 조회 button event
- ******************************************************************/
- function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- /******************************************************************
- * Argument :
- * Description : 조회
- ******************************************************************/
- function fSearch(){
- ds_main_durlist.clearData();
- ds_main_durlist_sum.clearData();
-
- ds_send.clear();
- ds_send.addColumn("gbn", "string", 256);
- ds_send.addColumn("sdate", "string", 256);
- ds_send.addColumn("edate", "string", 256);
- var iRow = ds_send.addRow();
-
- ds_send.setColumn(iRow, "gbn", ds_main_cond.getColumn(0, "gbn"));
- ds_send.setColumn(iRow, "sdate", ds_main_cond.getColumn(0, "sdate"));
- ds_send.setColumn(iRow, "edate", ds_main_cond.getColumn(0, "edate"));
-
- var oParam = {};
- oParam.id = "TRMNE14001";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetErDurtimeForAdm";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_durlist=durlist ds_main_durlist_sum=durlist_sum";
- oParam.async = false;
- //oParam.callback = "cf_TRMNE14001";
- tranf_submit(oParam);
-
- ds_main_durlist.rowposition = -1;
- ds_main_durlist_sum.rowposition = -1;
- }
- /******************************************************************
- * Argument :
- * Description : 재원환자/ 내원일 combo event
- ******************************************************************/
- function group1_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if( ds_main_cond.getColumn(0, "gbn") == "1") {
- group1.ipt_srhfrom.enable = false;
- group1.ipt_srhto.enable = false;
- } else {
- group1.ipt_srhfrom.enable = true;
- group1.ipt_srhto.enable = true;
- }
- }
- /******************************************************************
- * Argument :
- * Description : Excel button event
- ******************************************************************/
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- var tabIdx = switch1.tabindex;
-
- if( tabIdx == 0 ){
- grdf_exportExcel(switch1.case1.datagrid1, utlf_getCurrentDate() + "_환자별체류현황", "환자별체류현황", true, "", "", true);
- } else {
- grdf_exportExcel(switch1.case2.datagrid2, utlf_getCurrentDate() + "_과별체류현황", "과별체류현황", true, "", "", true);
- }
- }
- /******************************************************************
- * Argument :
- * Description : 출력 button event
- ******************************************************************/
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var tabIdx = switch1.tabindex;
- if( tabIdx == 0 ){
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/durinfo/durlist", ds_main_durlist); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "/root/cond", ds_main_cond); // 데이터셋 2
- //sysf_trace(objDOM.documentElement.source); // XML 내용출력
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;excel=1;";
- rptf_exeReportPreview30(["RPMNE14000"],[objParam], option, null, null);
- } else {
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/durinfo/durlist_sum", ds_main_durlist_sum); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "/root/cond", ds_main_cond); // 데이터셋 2
- //sysf_trace(objDOM.documentElement.source); // XML 내용출력
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;excel=1;";
- rptf_exeReportPreview30(["RPMNE14001"],[objParam], option, null, null);
- }
- }
- function SPMNE14000_ontimer(obj:Form, e:TimerEventInfo)
- {
- // if (e.timerid == 0) {
- // this.killTimer(0);
- // frmf_inputEnterKey("group1.btn_search", "onclick", new ClickEventInfo);
- // }
- }
- ]]></Script>
- </Form>
- </FDL>
|