123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMI05201" position="absolute 0 0 1256 805" titletext="전용병상 가동률 현황" onload="SMPMI05201_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="전용병상 가동률 현황" class="tit_1" position="absolute 0 0 180 25"/>
- <Shape id="line5" linetype="vertical" class="line_1" position="absolute 0 42 1175 48"/>
- <Static id="caption7" text="진료과별 병동별 병상가동현황 - 과별" class="tit_2" position="absolute 5 26 244 40"/>
- <Button id="btn_print5" taborder="1" text="출력" class="btn2_letter2" visible="false" position="absolute 1050 31 1092 50"/>
- <Grid id="grd_bedlist" class="datagrid" taborder="2" binddataset="ds_main_bedinfo_bedlist" useinputpanel="false" position="absolute 0 80 1170 720">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="120"/>
- <Column size="80"/>
- <Column size="90"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="125"/>
- <Column size="120"/>
- <Column size="100"/>
- <Column size="126"/>
- <Column size="120"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" text="진료과" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="기본병상수" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="총병상수" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="환자수" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="가동율" taborder="undefined"/>
- <Cell col="5" colspan="3" text="진료과별(주진료과)" taborder="undefined"/>
- <Cell col="8" colspan="3" text="진료과별(주.부진료과)" taborder="undefined"/>
- <Cell row="1" col="5" text="환자수"/>
- <Cell row="1" col="6" text="가동률"/>
- <Cell row="1" col="7" text="전체가동률대비병상"/>
- <Cell row="1" col="8" text="환자수"/>
- <Cell row="1" col="9" text="가동률"/>
- <Cell row="1" col="10" text="전체가동률대비병상"/>
- </Band>
- <Band id="body">
- <Cell displaytype="normal" edittype="none" text="bind:orddeptnm" enable="false"/>
- <Cell col="1" text="bind:wardcnt"/>
- <Cell col="2" text="bind:bedcnt"/>
- <Cell col="3" text="bind:allinpatcnt"/>
- <Cell col="4" text="bind:allorddrate"/>
- <Cell col="5" text="bind:maininpatcnt"/>
- <Cell col="6" text="bind:mainorddrate"/>
- <Cell col="7" text="bind:mainpoint"/>
- <Cell col="8" text="bind:bothinpatcnt"/>
- <Cell col="9" text="bind:bothorddrate"/>
- <Cell col="10" text="bind:bothpoint"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp" taborder="3" position="absolute 0 25 1172 60" class="div_SA">
- <Layouts>
- <Layout width="1172" height="35">
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1099 7 1105 29" anchor="default"/>
- <Button id="btn_search2" taborder="1" text="조회" class="btn1" position="absolute 1110 7 1166 29" anchor="default" onclick="grp_btn_search2_onclick"/>
- <Button id="btn_saveexcel5" taborder="2" text="엑셀저장" class="btn3" position="absolute 1014 7 1094 29" anchor="default" onclick="grp_btn_saveexcel5_onclick"/>
- <Static id="caption39" text="조회기간 :" class="search_name" position="absolute 21 9 108 26" anchor="default"/>
- <Calendar id="ipt_fromdd" taborder="3" class="input_essential" position="absolute 102 8 192 28" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Calendar id="ipt_todd" taborder="4" class="input_essential" position="absolute 217 8 307 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
- <Static id="caption1" text="~" position="absolute 197 8 212 28" anchor="default"/>
- <Static id="caption2" text="검색조건 :" class="search_name" position="absolute 338 9 425 26" anchor="default"/>
- <Radio id="rdo_termflag" taborder="5" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 422 8 607 28" anchor="default" style="textpadding:0 3 0 3;" onitemchanged="grp_rdo_termflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">D</Col>
- <Col id="datacolumn">당일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">T</Col>
- <Col id="datacolumn">기간별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" 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"/>
- <Column id="termflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_bedinfo_bedlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="wardcnt" type="STRING" size="256" sumtext="병상수"/>
- <Column id="bedcnt" type="STRING" size="256" sumtext="총병상수"/>
- <Column id="allinpatcnt" type="STRING" size="256" sumtext="총환자수"/>
- <Column id="maininpatcnt" type="STRING" size="256" sumtext="주진료과환자수"/>
- <Column id="bothinpatcnt" type="STRING" size="256" sumtext="주.부진료과환자수"/>
- <Column id="allorddrate" type="STRING" size="256" sumtext="전체병상가동률"/>
- <Column id="mainorddrate" type="STRING" size="256" sumtext="주진료과기준가동률"/>
- <Column id="bothorddrate" type="STRING" size="256" sumtext="주.부진료과기준가동률"/>
- <Column id="mainpoint" type="STRING" size="256" sumtext="가동률대비 주진료과병상수가감"/>
- <Column id="bothpoint" type="STRING" size="256" sumtext="가동률대비 주.부진료과병상수가감"/>
- <Column id="subcnt" type="STRING" size="256" sumtext="합계기준"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item1" compid="grp.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item2" compid="grp.rdo_termflag" propid="value" datasetid="ds_send" columnid="termflag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /**
- * submit 후 호출 될 공통 콜백
- * @param {[type]} sSvcId [description]
- * @param {[type]} nErrorCode [description]
- * @param {[type]} sErrorMsg [description]
- * @return {Function} [description]
- */
- function callback(sSvcId, nErrorCode, sErrorMsg){
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /**
- * onload 이벤트 발생 시 호출
- * @param {[type]} obj:Form [description]
- * @param {[type]} e:LoadEventInfo [description]
- */
- function SMPMI05201_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
- ds_send.setColumn(0, 'termflag', 'D');
- ds_send.setColumn(0, 'fromdd', utlf_getCurrentDate());
- ds_send.setColumn(0, 'todd', utlf_getCurrentDate());
- frmf_inputEnterKey('grp.rdo_termflag', 'onitemchanged', new ItemChangeEventInfo);
- }
- /**
- * 검색조건 라디오 아이템 변경 후 이벤트
- * @param {[type]} obj: Radio [description]
- * @param {[type]} e: ItemChangeEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_rdo_termflag_onitemchanged(obj: Radio, e: ItemChangeEventInfo) {
- ds_main_bedinfo_bedlist.clearData();
- var value = ds_send.getColumn(0, 'termflag');
- if (value == "D") {
- grp.ipt_fromdd.enable = false;
- grp.ipt_todd.enable = false;
- grd_bedlist.setRealColSize(2, 0);
- }
- else if (value == "T") {
- grp.ipt_fromdd.enable = true;
- grp.ipt_todd.enable = true;
- grd_bedlist.setRealColSize(2, 90);
- }
- }
- /**
- * 엑셀저장 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_btn_saveexcel5_onclick(obj: Button, e: ClickEventInfo) {
- var value = ds_send.getColumn(0, 'termflag');
- if (value == "D") {
- grdf_exportExcel(grd_bedlist, "excel", "SheetName", false, "", 'user', true);
- }
- else {
- grdf_exportExcel(grd_bedlist, "excel", "SheetName", true, "", 'user', true);
- }
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_btn_search2_onclick(obj: Button, e: ClickEventInfo) {
- ds_main_bedinfo_bedlist.clearData();
- var oParam = {};
- oParam.id = "TRPMI05211";
- oParam.service = "ipatmngtapp.OrddInpat";
- oParam.method = "reqGetBedActInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_bedinfo_bedlist=bedlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_main_bedinfo_bedlist.addColumn('mainpoint', 'string');
- ds_main_bedinfo_bedlist.addColumn('bothpoint', 'string');
- ds_main_bedinfo_bedlist.addColumn('bedcnt', 'string');
- var totalmainrate = ds_main_bedinfo_bedlist.getColumn(ds_main_bedinfo_bedlist.rowcount - 1, "mainorddrate");
- var totalbothrate = ds_main_bedinfo_bedlist.getColumn(ds_main_bedinfo_bedlist.rowcount - 1, "bothorddrate");
- var value = ds_send.getColumn(0, 'termflag');
- for (var i = 0; i < ds_main_bedinfo_bedlist.rowcount; i++) {
- var wardcnt = ds_main_bedinfo_bedlist.getColumn(i, "wardcnt");
- var bedcnt = ds_main_bedinfo_bedlist.getColumn(i, "bedcnt");
- var mainorddrate = ds_main_bedinfo_bedlist.getColumn(i, "mainorddrate");
- var bothorddrate = ds_main_bedinfo_bedlist.getColumn(i, "bothorddrate");
- if (value == "D") {
- var mainpoint = (mainorddrate - totalmainrate) / 100 * wardcnt;
- var bothpoint = (bothorddrate - totalbothrate) / 100 * wardcnt;
- ds_main_bedinfo_bedlist.setColumn(i, "mainpoint", Math.floor(mainpoint));
- ds_main_bedinfo_bedlist.setColumn(i, "bothpoint", Math.floor(bothpoint));
- }
- else if (value == "T") {
- var mainpoint = (mainorddrate - totalmainrate) / 100 * wardcnt;
- var bothpoint = (bothorddrate - totalbothrate) / 100 * wardcnt;
- ds_main_bedinfo_bedlist.setColumn(i, "mainpoint", Math.floor(mainpoint));
- ds_main_bedinfo_bedlist.setColumn(i, "bothpoint", Math.floor(bothpoint));
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|