123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMI03801" position="absolute 0 0 1256 805" titletext="VIP병상가동률조회" onload="SMPMI03801_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="VIP병상가동률조회" class="tit_1" position="absolute 0 0 152 25"/>
- <Div id="div" taborder="1" position="absolute 0 25 1194 60" class="div_SA">
- <Layouts>
- <Layout width="1194" height="35">
- <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="default"/>
- <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 1123 7 1179 29" onclick="div_btn_search_onclick" anchor="default"/>
- <Calendar id="ipt_fromdd" taborder="4" class="input_search" visible="true" position="absolute 90 8 185 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" anchor="default"/>
- <Calendar id="ipt_todd" taborder="5" class="input_search" visible="true" position="absolute 212 8 307 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null" anchor="default"/>
- <Static id="caption5" text="~" visible="true" position="absolute 193 11 204 26" anchor="default"/>
- <Static id="caption7" text="조회일자 :" class="search_name" visible="true" position="absolute 8 9 94 26" anchor="default"/>
- <Static id="Static00" text="※ 조회기간 최대 1년 지정 가능" position="absolute 336 8 538 28" style="color:blue;"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption2" text="병상가동률" class="tit_2" position="absolute 5 69 97 85"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 87 1194 93" style="strokepen:3 solid #33bbbbff;"/>
- <Div id="grp_report" taborder="2" visible="false" position="absolute 865 66 930 81"/>
- <Button id="btn_excel" taborder="5" text="엑셀저장" class="btn7" position="absolute 527 66 602 85" onclick="btn_excel_onclick"/>
- <Grid id="grd_list" class="datagrid2" taborder="6" binddataset="ds_main_grd" useinputpanel="false" position="absolute 0 91 607 759" oncelldblclick="grd_list_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </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:wardnm"/>
- <Cell col="1" text="bind:totcnt"/>
- <Cell col="2" text="bind:incnt"/>
- <Cell col="3" text="bind:emptycnt"/>
- <Cell col="4" text="bind:inper" mask="#.#%"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption8" text="★ 자정12시를 기준으로 저장된 데이터 조회" position="absolute 115 67 392 82" style="color:blue;font:Dotum,9,bold;"/>
- <Shape id="line4" linetype="horizontal" class="line_6" position="absolute 0 759 1194 765"/>
- <Grid id="Grid00" taborder="8" useinputpanel="false" position="absolute 615 91 1194 759" binddataset="ds_main_patinfolist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="120"/>
- <Column size="100"/>
- <Column size="100"/>
- </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:wardnm"/>
- <Cell col="1" displaytype="date" text="bind:workdd"/>
- <Cell col="2" text="bind:deptname"/>
- <Cell col="3" text="bind:pid"/>
- <Cell col="4" text="bind:hngnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption00" text="세부환자내역" class="tit_2" position="absolute 623 69 726 85"/>
- <Button id="btn_excel_list" taborder="9" text="엑셀저장" onclick="btn_excel_list_onclick" class="btn7" position="absolute 1111 66 1186 85"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_data1" 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>
- <Col id="fromdd"/>
- <Col id="todd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_grd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="wardnm" type="STRING" size="256"/>
- <Column id="totcnt" type="STRING" size="256"/>
- <Column id="incnt" type="STRING" size="256"/>
- <Column id="emptycnt" type="STRING" size="256"/>
- <Column id="inper" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="wardnm" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="workdd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="deptname" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_grd_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="wardnm" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="workdd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="deptname" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item3" compid="div.ipt_todd" propid="value" datasetid="ds_send_data1" columnid="todd"/>
- <BindItem id="item4" compid="div.ipt_fromdd" propid="value" datasetid="ds_send_data1" columnid="fromdd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-10-27
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-10-27 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- function fInitialize() {
- ds_main_grd.clearData();
- ds_send_data1.clearData();
- ds_send_data1.addRow();
- }
- function callback(sSvcId, nErrorCode, sErrorMsg){
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function SMPMI03801_onload(obj: Form, e: LoadEventInfo) {
- grdf_initGrid(Grid00);
-
- frmf_initForm(obj);
-
- ds_send_data1.setColumn(0, "fromdd", utlf_getCurrentDate().substring(0, 4) + "0101");
- ds_send_data1.setColumn(0, "todd", utlf_getCurrentDate().substring(0, 4) + "1231");
- }
- function div_btn_search_onclick(obj: Button, e: ClickEventInfo) {
- var fromdd = ds_send_data1.getColumn(0, "fromdd");
- var todd = ds_send_data1.getColumn(0, "todd");
- var term = utlf_getDateInterval(fromdd, todd);
-
- if (term > 364) {
- sysf_messageBox("조회기간은 1년을 넘을수 없습니다.", "E999");
- ds_send_data1.setColumn(0, "fromdd", utlf_getCurrentDate().substring(0, 4) + "0101");
- ds_send_data1.setColumn(0, "todd", utlf_getCurrentDate().substring(0, 4) + "1231");
- return;
- }
- ds_main_grd.clearData();
- ds_main_patinfolist.clearData();
-
- var oParam = {};
- oParam.id = "TRPMI03801";
- oParam.service = "ipatmngtapp.IPatRef";
- oParam.method = "reqGetBedInfoVip";
- oParam.inds = "req=ds_send_data1";
- oParam.outds = "ds_main_grd=list ds_main_grd_list=list2";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_list, "VIP병상가동율", "VIP병상가동율");
- }
- function grd_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- ds_main_grd_list.filter("wardcd == '" + ds_main_grd.getColumn(e.row, "wardcd") + "'")
- ds_main_patinfolist.copyData(ds_main_grd_list, true);
- }
- function btn_excel_list_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(Grid00, "VIP병상가동율 세부환자내역", "VIP병상가동율 세부환자내역");
- }
- ]]></Script>
- </Form>
- </FDL>
|