123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMI03910" position="absolute 0 0 1256 805" titletext="준공용 병상 가용 현황" onload="SMPMI03910_onload">
- <Layouts>
- <Layout>
- <Grid id="grd_inpatinfo" taborder="8" useinputpanel="false" position="absolute 1025 91 1195 766" binddataset="ds_main_inptlist_inpatinfo" visible="true">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="45"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="66"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="287"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="진료과"/>
- <Cell col="2" text="병동"/>
- <Cell col="3" text="병실"/>
- <Cell col="4" text="병상"/>
- <Cell col="5" text="병상배정과"/>
- <Cell col="6" text="환자"/>
- <Cell col="7" text="환자"/>
- <Cell col="8" text="상태"/>
- <Cell col="9" text="비고"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="align:left middle;padding:0 0 0 5;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:orddeptnm"/>
- <Cell col="2" style="align:left middle;padding:0 0 0 5;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:wardnm"/>
- <Cell col="3" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:roomcd"/>
- <Cell col="4" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:bednm"/>
- <Cell col="5" style="align:left middle;padding:0 0 0 5;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:bedorddeptnm"/>
- <Cell col="6" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:pid"/>
- <Cell col="7" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:hngnm"/>
- <Cell col="8" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:indschacptstat"/>
- <Cell col="9" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:remfact"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="준공용 병상 가용 현황" position="absolute 0 0 180 25" align="align:center middle;" id="cap_title" class="tit_1"/>
- <Static text="조회 내역" position="absolute 0 70 85 86" id="caption7" class="tit_2"/>
- <Shape position="absolute 0 86 1195 92" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
- <Button position="absolute 947 65 1027 84" id="btn_excel" class="btn7" text="엑셀저장" onclick="btn_excel_onclick"/>
- <Static id="caption14" text="※ 진료과 더블클릭 시 재원과 기준, 전용병상환자수 더블클릭 시 병상배정과 기준으로 환자세부정보가 표시됩니다." position="absolute 82 70 708 85" style="font:Dotum,9;"/>
- <Grid position="absolute 0 91 1022 766" align="align:center middle;" id="grd_exav" binddataset="ds_main_exavlist_exavinfo" oncelldblclick="grd_exav_oncelldblclick" autoenter="select" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="121"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="100"/>
- <Column size="92"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- <Row size="24" band="summ"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="진료과"/>
- <Cell col="2" text="전용병상수"/>
- <Cell col="3" text="진료과 환자수"/>
- <Cell col="4" text="전용병상 환자수"/>
- <Cell col="5" colspan="3" text="입원결정수 (외래/응급/특수)" taborder="undefined"/>
- <Cell col="8" text="진료과 가동률"/>
- <Cell col="9" text="전용병상 가동률"/>
- <Cell col="10" text="입원결정률"/>
- <Cell col="11" text="가용병상수 (진료과)"/>
- <Cell col="12" text="가용병상수 (전용병상)"/>
- <Cell col="13" text="가용병상수 (적용)"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="align:left middle;" text="bind:deptnm"/>
- <Cell col="2" displaytype="number" style="align:right middle;padding:0 10 0 0;" text="bind:exbed"/>
- <Cell col="3" displaytype="number" style="align:right middle;padding:0 10 0 0;" text="bind:deptpat"/>
- <Cell col="4" displaytype="number" style="align:right middle;padding:0 10 0 0;" text="bind:bedpat"/>
- <Cell col="5" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:adrvipat"/>
- <Cell col="6" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:adrvepat"/>
- <Cell col="7" displaytype="number" style="align:right middle;padding:0 5 0 0;" text="bind:adrvdpat"/>
- <Cell col="8" displaytype="number" style="align:right middle;padding:0 10 0 0;" text="bind:deptrate"/>
- <Cell col="9" displaytype="number" style="align:right middle;padding:0 10 0 0;" text="bind:bedrate"/>
- <Cell col="10" displaytype="number" style="align:right middle;padding:0 10 0 0;"/>
- <Cell col="11" displaytype="number" style="align:right middle;padding:0 10 0 0;" text="bind:exavcnt_dept"/>
- <Cell col="12" displaytype="number" style="align:right middle;padding:0 10 0 0;" text="bind:exavcnt_bed"/>
- <Cell col="13" displaytype="number" style="align:right middle;padding:0 10 0 0;font:Dotum,9,bold;" text="bind:exavcnt_rslt"/>
- </Band>
- <Band id="summary">
- <Cell style="background:#7cbbddff;background2:#7cbbddff;color:black;"/>
- <Cell col="1" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="* Total *"/>
- <Cell col="2" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('exbed')"/>
- <Cell col="3" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('deptpat')"/>
- <Cell col="4" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('bedpat')"/>
- <Cell col="5" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('adrvipat')"/>
- <Cell col="6" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('adrvepat')"/>
- <Cell col="7" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('adrvdpat')"/>
- <Cell col="8" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;"/>
- <Cell col="9" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;"/>
- <Cell col="10" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;"/>
- <Cell col="11" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('exavcnt_dept')"/>
- <Cell col="12" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('exavcnt_bed')"/>
- <Cell col="13" displaytype="number" style="background:#7cbbddff;background2:#7cbbddff;color:white;font:Dotum,9,bold;" text="expr:getSum('exavcnt_rslt')"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="div" taborder="7" position="absolute 0 25 1195 60" class="div_SA">
- <Layouts>
- <Layout>
- <Button id="btn_search" taborder="0" text="조회" class="btn1" position="absolute 1130 7 1186 29" anchor="default" onclick="div_btn_search_onclick"/>
- <Shape id="line13" linetype="vertical" position="absolute 1117 4 1123 31" anchor="default"/>
- <Static id="caption1" text="※ 가용병상수 : 전용병상수 * ( 90% - 가동률 ) / 100" position="absolute 10 10 340 25" anchor="default" style="font:Dotum,9,bold;"/>
- <Static id="caption2" text="(☞ 소수점은 내림으로 계산)" position="absolute 345 10 501 25" anchor="default"/>
- <Button id="btn_info" taborder="1" text="항목설명" class="btn2" position="absolute 520 8 586 27" anchor="default" onclick="div_btn_info_onclick"/>
- <Static id="caption17" text="특수병상 포함" class="search_name" position="absolute 665 9 760 26" anchor="default"/>
- <CheckBox id="checkbox1" taborder="2" position="absolute 769 10 785 25" falsevalue="N" truevalue="Y" value="N" anchor="default"/>
- <Button id="button1" taborder="3" text="특수병상제외내역" class="btn2" position="absolute 794 8 907 27" tooltiptext="PK074" onclick="div_button1_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 520 55 1028 326" id="grp_info" visible="false" style="background:white;border:1 solid #999999ff ;bordertype:round 4 4 ;">
- <Layouts>
- <Layout width="520" height="270">
- <Static text="전용병상수" position="absolute 3 2 143 26" align="align:right middle;" id="caption3" class="cell_1" anchor="default"/>
- <Static text="진료과환자수" position="absolute 3 2 143 26" align="align:right middle;" id="caption4" class="cell_1" anchor="default"/>
- <Static text="전용병상환자수" position="absolute 3 2 143 26" align="align:right middle;" id="caption5" class="cell_1" anchor="default"/>
- <Static text="진료과가동률" position="absolute 3 2 143 26" align="align:right middle;" id="caption6" class="cell_1" anchor="default"/>
- <Static text="전용병상가동률" position="absolute 3 2 143 26" align="align:right middle;" id="caption8" class="cell_1" anchor="default"/>
- <Static text="가용병상수(진료과)" position="absolute 3 2 143 26" align="align:right middle;" id="caption9" class="cell_1" anchor="default"/>
- <Static text="가용병상수(전용병상)" position="absolute 3 2 143 26" align="align:right middle;" id="caption10" class="cell_1" anchor="default"/>
- <Static text="전용병상수" position="absolute 3 2 143 26" align="align:right middle;" id="caption11" class="cell_1" anchor="default" style="padding:0 4 0 0;align:right middle;"/>
- <Static id="caption2" text="해당과가 보유하고 있는 전용 병상의 개수" position="absolute 156 2 506 26" anchor="default"/>
- <Static id="caption00" text="해당과 진료 환자 중 전용 병상에 있는 환자수 (타과 병상 포함)" position="absolute 156 28 506 52" anchor="default"/>
- <Static id="caption01" text="진료과환자수" class="cell_1" position="absolute 3 28 143 52" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
- <Static id="caption07" text="해당과 소속 병상에 있는 모든 환자수 (타과 환자 포함)" position="absolute 156 54 506 78" anchor="default"/>
- <Static id="caption12" text="전용병상환자수" class="cell_1" position="absolute 3 54 143 78" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
- <Static id="caption13" text="해당진료과로 결정한 환자 수" position="absolute 156 80 506 104" anchor="default"/>
- <Static id="caption14" text="입원결정수" class="cell_1" position="absolute 3 80 143 104" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
- <Static id="caption15" text="진료과 환자수 / 전용병상수 * 100" position="absolute 156 109 506 133" anchor="default"/>
- <Static id="caption16" text="진료과가동률" class="cell_1" position="absolute 3 109 143 133" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
- <Static id="caption17" text="전용 병상 환자수 / 전용 병상수 * 100" position="absolute 156 135 506 159" anchor="default"/>
- <Static id="caption18" text="전용병상가동률" class="cell_1" position="absolute 3 135 143 159" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
- <Static id="caption19" text="전용병상수 / 입원결정수 * 100" position="absolute 156 161 506 185" anchor="default"/>
- <Static id="caption20" text="입원결정률" class="cell_1" position="absolute 3 161 143 185" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
- <Static id="caption21" text="진료과 가동률 기준 가용 병상수" position="absolute 156 191 506 215" anchor="default"/>
- <Static id="caption22" text="가용병상수(진료과)" class="cell_1" position="absolute 3 191 143 215" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
- <Static id="caption23" text="전용 병상 가동률 기준 가용 병상수" position="absolute 156 217 506 241" anchor="default"/>
- <Static id="caption24" text="가용병상수(전용병상)" class="cell_1" position="absolute 3 217 143 241" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
- <Static id="caption25" text="두 가용 병상 중 적은 수의 가용 병상 수" position="absolute 156 243 506 267" anchor="default"/>
- <Static id="caption26" text="가용병상수(적용)" class="cell_1" position="absolute 3 243 143 267" style="padding:0 4 0 0;align:right middle;" align="align:right middle;" anchor="default"/>
- <Button id="btn_infoclose" taborder="1" text="닫기" class="btn2" visible="true" position="absolute 462 3 504 22" anchor="default" onclick="grp_info_btn_infoclose_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_left" taborder="9" position="absolute 1142 67 1168 86" style="background:@gradation URL('theme://images\icon_arrowDoublePre_N.png') stretch;" onclick="btn_left_onclick" class="btn2"/>
- <Button id="btn_right" taborder="10" position="absolute 1169 67 1195 86" style="background:@gradation URL('theme://images\icon_arrowDoubleNext_N.png') stretch;" class="btn2" onclick="btn_right_onclick"/>
- <Static id="rectangle1" position="absolute 1042 772 1057 787" style="background:#e5f3c2ff;border:1 solid #99cc00ff ;"/>
- <Static id="rectangle00" position="absolute 1122 772 1137 787" style="background:#fcd2c1ff;border:1 solid #ff99ccff ;"/>
- <Static id="caption16" text="퇴원예고" position="absolute 1063 770 1115 790"/>
- <Static id="caption00" text="입원결정" position="absolute 1143 770 1195 790"/>
- <Div id="grp_bedinfo" taborder="11" text="Div00" position="absolute 793 55 1018 525" style="background:white;border:1 solid #999999ff ;" visible="false">
- <Layouts>
- <Layout>
- <Static id="caption18" position="absolute 2 2 223 468" style="linespace:4;align:left top;" anchor="default"/>
- <Button id="btn_infoclose" taborder="0" text="닫기" class="btn2" visible="true" position="absolute 179 2 221 21" anchor="default" onclick="grp_bedinfo_btn_infoclose_onclick"/>
- </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="orddeptcd" type="STRING" size="256"/>
- <Column id="bedorddeptcd" type="STRING" size="256"/>
- <Column id="exptyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="orddeptcd"/>
- <Col id="bedorddeptcd"/>
- <Col id="exptyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_pam_PK074list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_exavlist_exavinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="exbed" type="STRING" size="256" sumtext="전용병상수"/>
- <Column id="deptpat" type="STRING" size="256" sumtext="재원환자수"/>
- <Column id="bedpat" type="STRING" size="256" sumtext="전용병상환자수"/>
- <Column id="adrvipat" type="STRING" size="256" sumtext="입원결정수(외래)"/>
- <Column id="adrvepat" type="STRING" size="256" sumtext="입원결정수(응급)"/>
- <Column id="adrvdpat" type="STRING" size="256" sumtext="입원결정수(특수주사실)"/>
- <Column id="deptrate" type="STRING" size="256" sumtext="진료과가동률"/>
- <Column id="bedrate" type="STRING" size="256" sumtext="전용병상가동률"/>
- <Column id="adrvrate" type="STRING" size="256" sumtext="입원결정률"/>
- <Column id="exavcnt_dept" type="STRING" size="256" sumtext="진료과기준가용병상수"/>
- <Column id="exavcnt_bed" type="STRING" size="256" sumtext="병상기준가용병상수"/>
- <Column id="exavcnt_rslt" type="STRING" size="256" sumtext="가용병상수"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_inptlist_inpatinfo" 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="wardnm" type="STRING" size="256" sumtext="병동"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="bednm" type="STRING" size="256" sumtext="병상"/>
- <Column id="bedorddeptnm" type="STRING" size="256" sumtext="배정진료과"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="indschacptstat" type="STRING" size="256" sumtext="상태"/>
- <Column id="remfact" type="STRING" size="256" sumtext="비고"/>
- <Column id="bgColor" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="div.checkbox1" propid="value" datasetid="ds_send" columnid="exptyn"/>
- </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';
- include 'pam_pamcomnxp::PAM001.xjs';
- include 'ast_examcurexp::AEZ0001.xjs';
- include 'emr_prcpmngtxp::MMOCommon.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 SMPMI03910_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
-
- grdf_setGridSort(grd_exav);
- pamfGetCodeList([{ dsNm: 'PK074', cdGrpId: 'ds_init_pam_PK074list' }]);
- var sWard = "";
- for (i = 0; i < ds_init_pam_PK074list.rowcount; i++) {
- var ward = ds_init_pam_PK074list.getColumn(i, "remark");
- if (!utlf_isNull(ward)) {
- sWard += ward + "\r\n";
- }
- }
- grp_bedinfo.caption18.text = sWard;
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- div.btn_search.click();
- }
- /**
- * 항목설명 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function div_btn_info_onclick(obj: Button, e: ClickEventInfo) {
- grp_info.visible = !grp_info.visible;
- }
- /**
- * 특수병상제외내역 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function div_button1_onclick(obj: Button, e: ClickEventInfo) {
- grp_bedinfo.visible = !grp_bedinfo.visible;
- }
- /**
- * 조회버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function div_btn_search_onclick(obj: Button, e: ClickEventInfo) {
- dsf_createDsRow('ds_TRPMI03901', [
- { col: 'fromdd', type: 'string', size: 256, val: '' },
- { col: 'todd', type: 'string', size: 256, val: '' },
- { col: 'exptyn', type: 'string', size: 256, val: '' }
- ], false);
- ds_TRPMI03901.copyRow(0, ds_send, 0);
- ds_main_exavlist_exavinfo.clearData();
- var oParam = {};
- oParam.id = "TRPMI03901";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqGetExavBedCnt";
- oParam.inds = "req=ds_TRPMI03901";
- oParam.outds = "ds_main_exavlist_exavinfo=exav";
- oParam.async = false;
- tranf_submit(oParam);
- }
- /**
- * grp_info 닫기 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_info_btn_infoclose_onclick(obj: Button, e: ClickEventInfo) {
- grp_info.visible = false;
- }
- /**
- * grp_bedinfo 닫기 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_bedinfo_btn_infoclose_onclick(obj: Button, e: ClickEventInfo) {
- grp_bedinfo.visible = false;
- }
- /**
- * 조회내역 그리드 셀 더블클릭 이벤트
- * @param {[type]} obj: Grid [description]
- * @param {[type]} e: GridClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grd_exav_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
- var sRow = grd_exav.currentrow;
- btn_left.click();
- // 자격조회 호출
- if (lf_getBindCellName(grd_exav, e.col) == "bedpat") {
- ds_send.setColumn(0, "orddeptcd", "");
- ds_send.setColumn(0, "bedorddeptcd", ds_main_exavlist_exavinfo.getColumn(sRow, "orddeptcd"));
- }
- else {
- ds_send.setColumn(0, "orddeptcd", ds_main_exavlist_exavinfo.getColumn(sRow, "orddeptcd"));
- ds_send.setColumn(0, "bedorddeptcd", "");
- }
- ds_main_inptlist_inpatinfo.clearData();
- var oParam = {};
- oParam.id = "TRPMI03902";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqGetInpatInfoList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_inptlist_inpatinfo=inpatinfo";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_main_inptlist_inpatinfo.addColumn('bgColor', 'string');
-
- for(var i = 0; i < ds_main_inptlist_inpatinfo.rowcount; i++){
- var value = ds_main_inptlist_inpatinfo.getColumn(i, 'indschacptstat');
- var color = '';
-
- if(value == '퇴원예고'){
- color = '#e5f3c2ff';
- }
- else if(value == '입원결정'){
- color = '#fcd2c1ff';
- }
- ds_main_inptlist_inpatinfo.setColumn(i, 'bgColor', color);
- }
-
-
- // 삭제대상 처리
- //lf_aezfSetRowStyle(grd_inpatinfo, '11', '퇴원예고', 'indschacptstat', 'equal');
- // 삭제대상 처리
- //lf_aezfSetRowStyle(grd_inpatinfo, '0', '입원결정', 'indschacptstat', 'equal');
- }
- /**
- * << 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_left_onclick(obj: Button, e: ClickEventInfo) {
- grd_exav.position.width = 622;
- grd_inpatinfo.position.left = 625;
- grd_inpatinfo.position.width = 570;
- }
- /**
- * >> 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_right_onclick(obj: Button, e: ClickEventInfo) {
- grd_exav.position.width = 1022; // 1022
- grd_inpatinfo.position.left = 1025; // 1025
- grd_inpatinfo.position.width = 170; // 170
- }
- /**
- * [btn_excel_onclick description]
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_excel_onclick(obj: Button, e: ClickEventInfo) {
- grdf_exportExcel(grd_exav, "준공용 병상 가용 현황", "준공용 병상 가용 현황", true, "", "", false);
- sysf_messageBox("엑셀 저장이 완료되었습니다.", "I999");
- }]]></Script>
- </Form>
- </FDL>
|