123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNE12000" position="absolute 0 0 1170 739" titletext="응급실 입실 현황" oninit="SPMNE12000_oninit" onload="SPMNE12000_onload">
- <Layouts>
- <Layout>
- <Div id="grp_sea" taborder="0" class="div_SA" position="absolute 0 25 1168 65" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption3" text="기 간 :" class="search_name" position="absolute 24 13 74 30" anchor="default"/>
- <Calendar id="ipt_fromdd" taborder="3" class="input_s_essential" position="absolute 82 10 177 31" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- <Calendar id="ipt_todd" taborder="4" class="input_s_essential" position="absolute 197 10 292 31" anchor="default" dateformat="yyyy-MM-dd" autoselect="true"/>
- <Static id="caption4" text="~" position="absolute 182 14 192 29" anchor="default"/>
- <Button id="button1" taborder="5" text="조회" class="btn1" position="absolute 1098 10 1154 32" anchor="top right" onclick="grp_sea_button1_onclick"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1082 7 1088 34" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Tab id="switch1" taborder="2" tabindex="0" position="absolute 0 79 1168 739" anchor="all" onchanged="switch1_onchanged">
- <Tabpages>
- <Tabpage id="case_stayss" text="월별 과별 응급의료센터 체류시간" style="anchor:default;margin:0 0 0 0;">
- <Layouts>
- <Layout>
- <Grid id="grd_staysslist" taborder="1" binddataset="ds_main_staysslist" useinputpanel="false" position="absolute 0 0 1168 635" anchor="all" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="145"/>
- <Column size="122"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="구분(월)"/>
- <Cell col="1" text="진료과"/>
- <Cell col="2" text="체류시간(분)"/>
- </Band>
- <Band id="body">
- <Cell text="bind:inym"/>
- <Cell col="1" text="bind:inorddeptnm"/>
- <Cell col="2" text="bind:stayss"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case_inpatcnt" text="월별 과별 입원환자 수/입원율" style="anchor:default;margin:0 0 0 0;">
- <Layouts>
- <Layout>
- <Grid id="grd_inpatcntlist" taborder="1" binddataset="ds_main_inpatcntlist" useinputpanel="false" position="absolute 0 0 1168 635" anchor="all" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="134"/>
- <Column size="122"/>
- <Column size="122"/>
- <Column size="122"/>
- </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="입원율(%)"/>
- </Band>
- <Band id="body">
- <Cell text="bind:inym"/>
- <Cell col="1" text="bind:inorddeptnm"/>
- <Cell col="2" text="bind:opatcnt"/>
- <Cell col="3" text="bind:ipatcnt"/>
- <Cell col="4" text="bind:ipatpercent"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case_inavgss" text="응급실 내원 후 입원의뢰/입원결정/입원수속에 까지 소요된 평균 시간" style="anchor:default;margin:0 0 0 0;">
- <Layouts>
- <Layout>
- <Grid id="grd_inavgsslist" taborder="1" binddataset="ds_main_inavgsslist" useinputpanel="false" position="absolute 0 0 1168 635" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="133"/>
- <Column size="122"/>
- <Column size="122"/>
- <Column size="122"/>
- </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="수속대기시간(분)"/>
- </Band>
- <Band id="body">
- <Cell text="bind:inym"/>
- <Cell col="1" text="bind:inorddeptnm"/>
- <Cell col="2" displaytype="text" style="align:center;" text="bind:reqwaitss"/>
- <Cell col="3" displaytype="text" style="align:center;" text="bind:decwaitss"/>
- <Cell col="4" displaytype="text" style="align:center;" text="bind:prowaitss"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static id="cpt_title" text="응급실 입실 현황" class="tit_1" position="absolute 0 0 136 25"/>
- <Button id="button5" taborder="3" text="엑셀" class="btn7" position="absolute 1112 75 1168 97" anchor="top right" onclick="button5_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_staysslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="inym" type="STRING"/>
- <Column id="inorddeptnm" type="STRING"/>
- <Column id="stayss" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_inpatcntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="inym" type="STRING"/>
- <Column id="inorddeptnm" type="STRING"/>
- <Column id="opatcnt" type="STRING"/>
- <Column id="ipatcnt" type="STRING"/>
- <Column id="ipatpercent" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_inavgsslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="inym" type="STRING"/>
- <Column id="inorddeptnm" type="STRING"/>
- <Column id="reqwaitss" type="STRING"/>
- <Column id="decwaitss" type="STRING"/>
- <Column id="prowaitss" 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="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item1" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
- </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";
- var flag = "1";
- /******************************************************************
- * Argument :
- * Description : 초기화
- ******************************************************************/
- function SPMNE12000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMNE12000_onload(obj:Form, e:LoadEventInfo)
- {
- var dt = utlf_getCurrentDate();
- ds_main_cond.setColumn(0, "fromdd", dt);
- ds_main_cond.setColumn(0, "todd", dt);
-
- switch1.tabindex = 0;
- fSearch() ;
- }
- /******************************************************************
- * Argument :
- * Description : 조회 button event
- ******************************************************************/
- function grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- /******************************************************************
- * Argument : fSearch()
- * Description : 조회
- ******************************************************************/
- function fSearch(){
- ds_send_reqdata.copyData(ds_main_cond);
-
- var oParam = {};
- oParam.id = "TRMNE10601";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetInEmInfo";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_staysslist=staysslist ds_main_inpatcntlist=inpatcntlist ds_main_inavgsslist=inavgsslist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNE10601";
- tranf_submit(oParam);
-
- ds_main_staysslist.rowposition = -1;
- ds_main_inpatcntlist.rowposition = -1;
- ds_main_inavgsslist.rowposition = -1;
- }
- /******************************************************************
- * Argument :
- * Description : Tab button event
- ******************************************************************/
- function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- var tabIdx = switch1.tabindex;
-
- if( tabIdx == 0 ) flag = "1";
- else if( tabIdx == 1 ) flag = "2";
- else flag = "3";
- }
- /******************************************************************
- * Argument :
- * Description : Excel button event
- ******************************************************************/
- function button5_onclick(obj:Button, e:ClickEventInfo)
- {
- if( flag == "1" ){
- if( ds_main_staysslist.rowcount > 0 ){
- grdf_exportExcel(switch1.case_stayss.grd_staysslist, "월별 과별 응급의료센터 체류시간", "월별 과별 응급의료센터 체류시간", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- } else if(flag == "2"){
- if( ds_main_inpatcntlist.rowcount > 0 ){
- grdf_exportExcel(switch1.case_inpatcnt.grd_inpatcntlist, "월별 과별 입원환자수 입원율", "월별 과별 입원환자수 입원율", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- } else {
- if( ds_main_inavgsslist.rowcount > 0 ){
- grdf_exportExcel(switch1.case_inavgss.grd_inavgsslist, "응급실 내원 후부터 입원수속까지 소요된 평균 시간", "응급실 내원 후부터 입원수속까지 소요된 평균 시간", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|