123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMI03800" position="absolute 0 0 1256 805" titletext="병상가동률조회" onload="SMPMI03800_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="병상가동률조회" class="tit_1" position="absolute 0 0 140 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"/>
- <Static id="caption17" text="조회구분 :" class="search_name" position="absolute 5 9 91 26" anchor="default"/>
- <Radio id="radio1" taborder="1" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 87 9 337 26" style="textpadding:0 3 0 3;" onitemchanged="div_radio1_onitemchanged" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">WARD</Col>
- <Col id="datacolumn">병동별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">CENTER</Col>
- <Col id="datacolumn">센터별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">DEPT</Col>
- <Col id="datacolumn">진료과별(재원기준)</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 1123 7 1179 29" onclick="div_btn_search_onclick" anchor="default"/>
- <CheckBox id="chk_term" taborder="3" position="absolute 458 10 515 25" text="기간별" falsevalue="F" value="F" truevalue="T" onclick="div_chk_term_onclick" anchor="default"/>
- <Calendar id="ipt_fromdd" taborder="4" class="input_search" visible="false" position="absolute 602 8 697 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" anchor="default"/>
- <Calendar id="ipt_todd" taborder="5" class="input_search" visible="false" position="absolute 724 8 819 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null" anchor="default"/>
- <Static id="caption5" text="~" visible="false" position="absolute 705 11 716 26" anchor="default"/>
- <Static id="caption7" text="조회일자 :" class="search_name" visible="false" position="absolute 520 9 606 26" anchor="default"/>
- <CheckBox id="chk_kindflag" taborder="6" enable="false" position="absolute 365 10 445 25" text="병동구분별" falsevalue="N" truevalue="Y" anchor="default"/>
- <Static id="Static00" text="※ 조회기간 최대 6개월 지정 가능" position="absolute 832 8 1034 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_preview" taborder="3" text="미리보기" class="btn2" visible="false" position="absolute 710 66 774 85" onclick="btn_preview_onclick"/>
- <Button id="btn_print" taborder="4" text="출력" class="btn6" visible="false" position="absolute 777 66 828 85" onclick="btn_print_onclick"/>
- <Button id="btn_excel" taborder="5" text="엑셀저장" class="btn7" position="absolute 831 66 906 85" onclick="btn_excel_onclick"/>
- <Grid id="grd_list" class="datagrid2" taborder="6" binddataset="ds_main_bedoperatingratelist" useinputpanel="false" position="absolute 0 91 908 759" oncelldblclick="grd_list_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100" band="left"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="150"/>
- <Column size="200"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="0"/>
- </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="병상수"/>
- <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"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" style="align:center middle;background:#b5e8e3ff;background2:#b5e8e3ff;" text="bind:posinfocd" suppress="1" suppressalign="middle,over"/>
- <Cell col="1" celltype="head" style="align:center middle;background:#b5e8e3ff;background2:#b5e8e3ff;" text="bind:wardkind" suppress="1" suppressalign="middle,over"/>
- <Cell col="2" celltype="head" displaytype="normal" edittype="none" style="align:center middle;" text="bind:spaceflag" enable="false"/>
- <Cell col="3" style="align:left middle;" text="bind:wardcdnm" suppress="1" suppressalign="middle"/>
- <Cell col="4" celltype="head" style="align:center middle;" text="bind:spaceflag"/>
- <Cell col="5" displaytype="number" style="align:center middle;" text="bind:bedcnt" mask="9,999"/>
- <Cell col="6" displaytype="number" style="align:center middle;" text="bind:inpatcnt" mask="9,999"/>
- <Cell col="7" displaytype="number" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:vacantcnt" mask="9,999"/>
- <Cell col="8" displaytype="number" style="align:center middle;" text="bind:dschnoticnt" mask="9,999"/>
- <Cell col="9" displaytype="number" style="align:center middle;" text="bind:inrsrvcnt" mask="9,999"/>
- <Cell col="10" displaytype="number" style="align:center middle;" text="bind:intrnscnt" mask="9,999"/>
- <Cell col="11" style="align:right middle;" text="bind:operatingrate"/>
- <Cell col="12"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption8" text="★ 병동 기간별 가동률 조회시 병상정보는 자정12시를 기준으로 저장된 데이터 조회" position="absolute 115 67 616 82" style="color:blue;font:Dotum,9,bold;"/>
- <Button id="button3" taborder="7" text="초기화" class="btn4" position="absolute 1126 768 1194 790" onclick="button3_onclick"/>
- <Shape id="line4" linetype="horizontal" class="line_6" position="absolute 0 759 1194 765"/>
- <Shape id="rectangle3" type="rectangle" position="absolute 0 771 12 783" style="fillbrush:solid #7fffd4ff true;"/>
- <Shape id="rectangle4" type="rectangle" position="absolute 57 771 69 783" style="fillbrush:solid #faf58cff true;"/>
- <Shape id="rectangle5" type="rectangle" position="absolute 114 771 126 783" style="fillbrush:solid #ff4646ff true;"/>
- <Static id="caption1" text=": 여유" position="absolute 14 771 49 783"/>
- <Static id="caption3" text=": 경고" position="absolute 71 771 106 785"/>
- <Static id="caption4" text=": 부족" position="absolute 128 771 163 785"/>
- <Grid id="Grid00" taborder="8" useinputpanel="false" position="absolute 912 91 1194 759" binddataset="ds_main_patinfolist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="50"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="80"/>
- <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 text="bind:roomcd"/>
- <Cell col="1" text="bind:bednm"/>
- <Cell col="2" text="bind:hngnm"/>
- <Cell col="3" style="align:left middle;" text="bind:indschacptstat"/>
- <Cell col="4" text="bind:orddeptnm"/>
- <Cell col="5" text="bind:wardnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="Static00" text="-" position="absolute 1059 67 1194 87" style="color:deeppink;align:center;"/>
- <Static id="caption00" text="세부환자내역" class="tit_2" position="absolute 959 69 1062 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="refcond" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="termflag" type="STRING" size="256"/>
- <Column id="kindflag" type="STRING" size="256"/>
- <Column id="type" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="refcond"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="termflag"/>
- <Col id="kindflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_bedoperatingratelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="posinfocd" type="STRING" size="256" sumtext="층(위치)"/>
- <Column id="wardkind" type="STRING" size="256" sumtext="병동구분"/>
- <Column id="dispseq" type="STRING" size="256" sumtext="정렬순서"/>
- <Column id="spaceflag" type="STRING" size="256" sumtext="병동"/>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
- <Column id="wardcdnm" type="STRING" size="256" sumtext="병동코드명"/>
- <Column id="bedcnt" type="STRING" size="256" sumtext="총병상수"/>
- <Column id="inpatcnt" type="STRING" size="256" sumtext="재원병상수"/>
- <Column id="vacantcnt" type="STRING" size="256" sumtext="가용병상수"/>
- <Column id="dschnoticnt" type="STRING" size="256" sumtext="퇴원예정자수"/>
- <Column id="inrsrvcnt" type="STRING" size="256" sumtext="입원예정자수"/>
- <Column id="intrnscnt" type="STRING" size="256" sumtext="전실예정자수"/>
- <Column id="operatingrate" type="STRING" size="256" sumtext="병상가동률"/>
- <Column id="bgColor" 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="wardnm" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="orddeptnm" type="STRING" size="256"/>
- <Column id="bednm" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="indschacptstat" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="div.radio1" propid="value" datasetid="ds_send_data1" columnid="refcond"/>
- <BindItem id="item1" compid="div.chk_kindflag" propid="value" datasetid="ds_send_data1" columnid="kindflag"/>
- <BindItem id="item2" compid="div.chk_term" propid="value" datasetid="ds_send_data1" columnid="termflag"/>
- <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
- //---------------------------------------------------------------------------------------
- /**
- * 그리드 조건에 따라 컬럼 감추기
- * @param {[type]} pRefCond [description]
- * @return {[type]} [description]
- */
- function fShowGridWithRefCond(pRefCond) {
- var kindflag = ds_send_data1.getColumn(0, "kindflag");
- var termflag = ds_send_data1.getColumn(0, "termflag");
- if (pRefCond == "WARD") {
- if (termflag == "T") {
- grd_list.setFormatColProperty(8, 'size', 0);
- } else {
- grd_list.setFormatColProperty(8, 'size', 100);
- }
- if (kindflag == "Y") {
- grd_list.setFormatColProperty(0, 'size', 0);
- grd_list.setFormatColProperty(1, 'size', 100);
- } else {
- grd_list.setFormatColProperty(0, 'size', 100);
- grd_list.setFormatColProperty(1, 'size', 0);
- }
- grd_list.setFormatColProperty(2, 'size', 0);
- grd_list.setFormatColProperty(3, 'size', 150);
- grd_list.setFormatColProperty(4, 'size', 0);
- } else if (pRefCond == "CENTER") {
- grd_list.setFormatColProperty(0, 'size', 0);
- grd_list.setFormatColProperty(1, 'size', 0);
- grd_list.setFormatColProperty(2, 'size', 100);
- grd_list.setFormatColProperty(3, 'size', 0);
- grd_list.setFormatColProperty(4, 'size', 0);
- grd_list.setFormatColProperty(8, 'size', 100);
- } else if (pRefCond == "DEPT") {
- grd_list.setFormatColProperty(0, 'size', 0);
- grd_list.setFormatColProperty(1, 'size', 0);
- grd_list.setFormatColProperty(2, 'size', 0);
- grd_list.setFormatColProperty(3, 'size', 0);
- grd_list.setFormatColProperty(4, 'size', 200);
- grd_list.setFormatColProperty(8, 'size', 100);
- } else {
- if (kindflag == "Y") {
- grd_list.setFormatColProperty(0, 'size', 0);
- grd_list.setFormatColProperty(1, 'size', 100);
- } else {
- grd_list.setFormatColProperty(0, 'size', 100);
- grd_list.setFormatColProperty(1, 'size', 0);
- }
- grd_list.setFormatColProperty(2, 'size', 0);
- grd_list.setFormatColProperty(3, 'size', 150);
- grd_list.setFormatColProperty(8, 'size', 100);
- }
- }
- /**
- * [fSetColor description]
- * @return {[type]} [description]
- */
- function fSetColor() {
- var iGridCount = ds_main_bedoperatingratelist.rowcount;
- for (var idx = 0; idx < iGridCount; idx++) {
- var sOperatingRate = ds_main_bedoperatingratelist.getColumn(idx, "operatingrate");
- var iOperatingRate = parseInt(sOperatingRate); // parseIn("19.9") -> 19 floor와 같은 작용
- // 0 <= xx < 90
- if (iOperatingRate >= 0 && iOperatingRate < 90) {
- ds_main_bedoperatingratelist.setColumn(idx, 'bgColor', '#7FFFD4');
- }
- // 90 <= xx < 95
- if (iOperatingRate >= 90 && iOperatingRate < 95) {
- ds_main_bedoperatingratelist.setColumn(idx, 'bgColor', '#FAF58C');
- }
- // 95 <= xx
- if (iOperatingRate >= 95) {
- ds_main_bedoperatingratelist.setColumn(idx, 'bgColor', '#FF4646');
- }
- }
- }
- /**
- * 이 메서드는 SMPMI03600_VIP재원환자조회 의 메서드와 동일함(TF에서도)
- * 따라서 이 메서드 수행 시 ds_main_vipinpatlist 인스턴스가 존재하지 않기 때문에
- * 에러가 발생할 것 임. DBS227 written
- * @param {[type]} pCond [description]
- * @return {[type]} [description]
- */
- function fPrint(pCond) {
- var sPrintYN = "print=";
- var sAutoCloseYN = "false";
- var sViewYN = "";
- if (pCond == "PREVIEW") {
- sPrintYN += "0";
- // sAutoCloseYN = "false";
- sViewYN = "";
- }
- if (pCond == "PRINT") {
- sPrintYN += "1";
- sAutoCloseYN = "false";
- // sViewYN = "grp_report";
- }
- sPrintYN += ';'
- var iCount = ds_main_vipinpatlist.rowcount;
- if (iCount > 0) {
- var sPrintFromdd = String(ds_send.getColumn(0, "fromdd"));
- var sPrinttodd = ds_send.getColumn(0, "todd");
- sPrintFromdd = sPrintFromdd.substr(0, 4) + "-" + sPrintFromdd.substr(4, 2) + "-" + sPrintFromdd.substr(6, 4);
- dsf_makeValue(ds_hidden_printtype, "printkind", 'string', "VIP재원");
- dsf_makeValue(ds_hidden_printtype, "printfromdd", 'string', sPrintFromdd);
- dsf_makeValue(ds_hidden_printtype, "printtodd", 'string', sPrinttodd);
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "root/main/vipinpatlist/vipinpatspec" , ds_main_vipinpatlist);
- rptf_setNodeListToDOM(objDOM, "root/hidden/printtype" , ds_hidden_printtype);
- var option = "open=1;save=1;directprint=1;printdialog=0;zoom=0";
- option += sPrintYN;
- rptf_exeReportPreview30(["RPPMI03601"],[{ xml_data_XML1 : objDOM.documentElement.source }], option);
- }
- else {
- sysf_messageBox("출력할 내용이 없습니다!!", "I");
- }
- }
- /**
- * [fInitialize description]
- * @return {[type]} [description]
- */
- function fInitialize() {
- ds_main_bedoperatingratelist.clearData();
- ds_send_data1.clearData();
- ds_send_data1.addRow();
- ds_send_data1.setColumn(0, "refcond", "WARD");
- }
- /**
- * 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 SMPMI03800_onload(obj: Form, e: LoadEventInfo) {
- // sort 기능 추가
- grdf_initGrid(Grid00);
-
- frmf_initForm(obj);
- ds_send_data1.setColumn(0, "refcond", "WARD");
- ds_send_data1.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send_data1.setColumn(0, "todd", utlf_getCurrentDate());
- fShowGridWithRefCond("WARD");
- if (sysf_getUserInfo("dutplceinstcd") == "032" || sysf_getUserId() == "PAM") {
- div.chk_kindflag.enable = true;
- }
- }
- /**
- * 조회구분 라디오 아이템 변경 후 이벤트
- * @param {[type]} obj: Radio [description]
- * @param {[type]} e: ItemChangeEventInfo [description]
- * @return {[type]} [description]
- */
- function div_radio1_onitemchanged(obj: Radio, e: ItemChangeEventInfo) {
- if (e.postvalue == "WARD") {
- div.chk_kindflag.visible = true;
- div.chk_term.visible = true;
- }
- else if (e.postvalue == "CENTER") {
- div.chk_kindflag.visible = true;
- div.chk_term.visible = false;
- }
- else {
- div.chk_kindflag.visible = false;
- div.chk_term.visible = false;
- }
- frmf_inputEnterKey("div.chk_term", "onclick", new ClickEventInfo);
- }
- /**
- * 조회구분 기간별 체크박스 아이템 클릭 이벤트
- * @param {[type]} obj: CheckBox [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function div_chk_term_onclick(obj: CheckBox, e: ClickEventInfo) {
- if (ds_send_data1.getColumn(0, 'termflag') == "T") {
- div.caption7.visible = true;
- div.caption5.visible = true;
- div.ipt_fromdd.visible = true;
- div.ipt_todd.visible = true;
- }
- else {
- div.caption7.visible = false;
- div.caption5.visible = false;
- div.ipt_fromdd.visible = false;
- div.ipt_todd.visible = false;
- }
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function div_btn_search_onclick(obj: Button, e: ClickEventInfo) {
- fShowGridWithRefCond(ds_send_data1.getColumn(0, 'refcond'));
- if (ds_send_data1.getColumn(0, 'termflag') == "T") {
- var fromdd = ds_send_data1.getColumn(0, 'fromdd');
- var todd = ds_send_data1.getColumn(0, 'todd');
- var term = utlf_getDateInterval(fromdd, todd);
- if (term > 185) {
- sysf_messageBox("조회기간은 6개월을 넘을수 없습니다.", "E999");
- ds_send_data1.setColumn(0, 'fromdd', utlf_getCurrentDate);
- ds_send_data1.setColumn(0, 'todd', utlf_getCurrentDate);
- return;
- }
- }
- ds_main_bedoperatingratelist.clearData();
- // 병상가동률 조회
- var oParam = {};
- oParam.id = "TRPMI03801";
- oParam.service = "ipatmngtapp.IPatRef";
- oParam.method = "reqGetBedInfoWithWard";
- oParam.inds = "req=ds_send_data1";
- oParam.outds = "ds_main_bedoperatingratelist=bedoperatingratelist";
- oParam.async = false;
- tranf_submit(oParam);
- ds_main_bedoperatingratelist.addColumn('bgColor', 'string');
- // color setting
- fSetColor();
- }
- /**
- * 미리보기 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_preview_onclick(obj: Button, e: ClickEventInfo) {
- fPrint("PREVIEW");
- }
- /**
- * 출력 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_print_onclick(obj: Button, e: ClickEventInfo) {
- fPrint("PRINT");
- }
- /**
- * 엑셀저장 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_excel_onclick(obj: Button, e: ClickEventInfo) {
- grdf_exportExcel(grd_list, "병상가동율", "병상가동율");
- }
- /**
- * 초기화 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button3_onclick(obj: Button, e: ClickEventInfo) {
- fInitialize();
- }
- function caption8_onclick(obj:Static, e:ClickEventInfo)
- {
-
- }
- function grd_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if (ds_send_data1.getColumn(0, "refcond") != "WARD") {
- sysf_messageBox("병동별로만 세부내역 조회가 가능합니다.", "C000");
- return;
- }
-
- var rowidx = obj.currentrow;
- var wardcd = ds_main_bedoperatingratelist.getColumn(rowidx, "wardcd");
- var type = "";
-
- // 6:재원환자
- if (e.cell == 6) {
- type = "INPT";
-
- // 8:퇴원예정(통보)
- } else if (e.cell == 8) {
- type = "DSCH";
-
- // 9:입원예정
- } else if (e.cell == 9) {
- type = "ADRV";
-
- // 10:전실예정
- } else if (e.cell == 10) {
- type = "CDCR";
-
- } else {
-
- // 상기 컬럼 이외에는 조회 불필요
- return;
- }
-
- ds_send_data1.setColumn(0, "type", type);
- ds_send_data1.setColumn(0, "wardcd", wardcd);
-
- var oParam = {};
- oParam.id = "reqGetPatInfoWithWard";
- oParam.service = "ipatmngtapp.IPatRef";
- oParam.method = "reqGetPatInfoWithWard";
- oParam.inds = "req=ds_send_data1";
- oParam.outds = "ds_main_patinfolist=patinfolist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- ]]></Script>
- </Form>
- </FDL>
|