123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMI06600" inheritanceid="" position="absolute 0 0 1110 782" titletext="" onload="SMPMI06600_onload" oninit="SMPMI06600_oninit">
- <Layouts>
- <Layout>
- <Static id="caption1" text="실시간병동조회" class="tit_1" position="absolute 0 0 180 25"/>
- <Div id="group2" taborder="1" class="div_SA" position="absolute 0 25 1100 60" scrollbars="none">
- <Layouts>
- <Layout width="1193" height="35">
- <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 1027 7 1080 29" anchor="top right" onclick="group2_btn_search_onclick"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
- <Static id="caption17" text="병동구분 :" class="search_name" position="absolute 5 9 91 26" anchor="default"/>
- <Combo id="cmb_ward" taborder="1" osition="absolute 6 9 92 26" position="absolute 86 8 184 26" index="-1" anchor="default" innerdataset="@ds_init_orddept" datacolumn="depthngnm" codecolumn="deptcd"/>
- <Calendar id="cal_todaydate" taborder="1" autoselect="true" autoskip="true" class="input_search" position="absolute 208 8 308 27" anchor="default" dateformat="yyyy-MM-dd " visible="false"/>
- <Edit id="edit_instcd" taborder="7" position="absolute 328 10 411 26" visible="false"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption20" text="실시간병동조회" class="tit_2" position="absolute 0 74 162 90"/>
- <Shape id="line8" class="line_10" position="absolute 0 92 975 96" anchor="left top right"/>
- <Grid id="grd_dtlist" taborder="10" binddataset="ds_main_currentbedlist" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 106 975 755" anchor="all" readonly="false" autoenter="select" cellclickbound="cell" oncelldblclick="grd_dtlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="120" band="left"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="70"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <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="병동명"/>
- <Cell col="1" rowspan="2" text="진료과"/>
- <Cell col="2" rowspan="2" text="총병상수"/>
- <Cell col="3" rowspan="2" text="재원환자수"/>
- <Cell col="4" colspan="8" text="빈병상수"/>
- <Cell col="12" rowspan="2" text="퇴원예정"/>
- <Cell col="13" colspan="3" text="입실예정"/>
- <Cell col="16" rowspan="2" text="가용가능병상수"/>
- <Cell row="1" col="4" text="1인실"/>
- <Cell row="1" col="5" text="2인실"/>
- <Cell row="1" col="6" text="3인실"/>
- <Cell row="1" col="7" text="4인실"/>
- <Cell row="1" col="8" text="5인실"/>
- <Cell row="1" col="9" text="6인실"/>
- <Cell row="1" col="10" text="기타"/>
- <Cell row="1" col="11" text="합계"/>
- <Cell row="1" col="13" text="입원"/>
- <Cell row="1" col="14" text="전실"/>
- <Cell row="1" col="15" text="홀딩"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" style="align:center middle;background:#b5e8e3ff;background2:#b5e8e3ff;" text="bind:wardnm" suppress="1" suppressalign="middle,over"/>
- <Cell col="1" text="bind:deptnm"/>
- <Cell col="2" text="bind:bedcnt"/>
- <Cell col="3" text="bind:inpatcnt"/>
- <Cell col="4" text="bind:emptybedcnt1"/>
- <Cell col="5" text="bind:emptybedcnt2"/>
- <Cell col="6" text="bind:emptybedcnt3"/>
- <Cell col="7" text="bind:emptybedcnt4"/>
- <Cell col="8" text="bind:emptybedcnt5"/>
- <Cell col="9" text="bind:emptybedcnt6"/>
- <Cell col="10" text="bind:emptybedcntetc"/>
- <Cell col="11" text="bind:bedablecnt"/>
- <Cell col="12" text="bind:dschcnt"/>
- <Cell col="13" text="bind:inrsrvcnt"/>
- <Cell col="14" text="bind:incdcrcnt"/>
- <Cell col="15" text="bind:incdcrcnt"/>
- <Cell col="16" text="bind:ablecnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_currentbedlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동이름"/>
- <Column id="wardnm" type="STRING" size="256" sumtext="병동이름"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="과이름"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="과이름"/>
- <Column id="bedcnt" type="STRING" size="256" sumtext="총병상수"/>
- <Column id="inpatcnt" type="STRING" size="256" sumtext="재원병상수"/>
- <Column id="emptybedcnt1" type="STRING" size="256" sumtext="빈병상1인실"/>
- <Column id="emptybedcnt2" type="STRING" size="256" sumtext="빈병상2인실"/>
- <Column id="emptybedcnt3" type="STRING" size="256" sumtext="빈병상3인실"/>
- <Column id="emptybedcnt4" type="STRING" size="256" sumtext="빈병상4인실"/>
- <Column id="emptybedcnt5" type="STRING" size="256" sumtext="빈병상5인실"/>
- <Column id="emptybedcnt6" type="STRING" size="256" sumtext="빈병상6인실"/>
- <Column id="emptybedcntetc" type="STRING" size="256" sumtext="빈병상기타"/>
- <Column id="bedablecnt" type="STRING" size="256" sumtext="빈병상합계"/>
- <Column id="dschcnt" type="STRING" size="256" sumtext="퇴원예정자수"/>
- <Column id="inrsrvcnt" type="STRING" size="256" sumtext="입원예정"/>
- <Column id="incdcrcnt" type="STRING" size="256" sumtext="전실예정"/>
- <Column id="holdcnt" type="STRING" size="256" sumtext="홀딩"/>
- <Column id="ablecnt" type="STRING" size="256" sumtext="가용가능병상수"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_search" 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="indd" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="indd"/>
- <Col id="wardcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="deptcd"/>
- <Col id="depthngnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="wardcd"/>
- <Col id="orddeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.cmb_ward" propid="value" datasetid="ds_send_search" columnid="wardcd"/>
- <BindItem id="item1" compid="group2.rmfjr" propid="value" datasetid="ds_send_search" columnid="indd"/>
- <BindItem id="item2" compid="group2.edit_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2019-09-02
- * Description : 실시간 병동 조회
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- //include "ast_healthexambasexp::healcombolist.xjs";
- function SMPMI06600_oninit(obj:Form, e:InitEventInfo)
- {
- //frmf_initForm(obj);
- frmf_initForm(obj);
-
- }
- function SMPMI06600_onload(obj:Form, e:LoadEventInfo)
- {
-
- grdf_initGrid(grd_dtlist);
-
-
-
- if(sysf_getUserInfo("dutplceinstcd") == "031")
- {
- ds_send_search.setColumn(0, "instcd", "031");
- }
- else
- {
- ds_send_search.setColumn(0, "instcd", "032");
- }
-
- var dutplcecd = sysf_getUserInfo("dutplcecd");
- if(dutplcecd == "-" || utlf_isNull(dutplcecd)){
- dutplcecd = sysf_getUserInfo("dutplcecd");
- }
- setDeptCodeList(dutplcecd);
- //ds_send_search.setColumn(0, "indd", utlf_getCurrentDate());
-
- ds_send_search.setColumn(0, "indd", "20190718");
- //trace("값 : " + group2.cal_todaydate.value);
- }
- //병동 comobo bind
- function setDeptCodeList(sDeptcd, sOrddd){
-
- lf_mmbfGetDeptCodeComboList(ds_init_orddept, "W", sOrddd); //병동코드 콤보
-
-
- frmf_addComboItem("group2.cmb_ward"); //병동콤보 전체항목 추가
-
- if(!utlf_isNull(sDeptcd)) {
-
- group2.cmb_ward.value="-"; //병동콤보
- }
- }
- //조회버튼 클릭
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
-
- oParam.service = "ipatmngtapp.IPatRef";
- oParam.method = "reqGetCurrentBedInfo";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_main_currentbedlist=currentbedlist";
- oParam.async = false;
- tranf_submit(oParam);
- //trace(ds_main_detlinfo_item);
- //ds_main_datalist.keystring = "G:orddd";
- }
- //셀 더블 클릭
- function grd_dtlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var wardcd = '';
- var orddeptcd = '';
- var row = ds_main_currentbedlist.rowposition;
-
-
- ds_source.clearData();
- ds_source.addRow();
-
- if(e.col == obj.getBindCellIndex("body", "inpatcnt"))
- {
-
-
-
- wardcd = ds_main_currentbedlist.getColumn(row, "wardcd");
- orddeptcd = ds_main_currentbedlist.getColumn(row, "orddeptcd");
- ds_source.setColumn(0, "wardcd",wardcd);
- ds_source.setColumn(0, "orddeptcd", orddeptcd);
- frmf_modal("SMPMI00700", "SMPMI00700",{ arg_ds_source: ds_source }, "", '', '', '', "", "", "", "", "", "M");
-
-
- }
-
- else if(e.col == obj.getBindCellIndex("body", "emptybedcnt1")
- ||e.col == obj.getBindCellIndex("body", "emptybedcnt2")
- ||e.col == obj.getBindCellIndex("body", "emptybedcnt3")
- ||e.col == obj.getBindCellIndex("body", "emptybedcnt4")
- ||e.col == obj.getBindCellIndex("body", "emptybedcnt5")
- ||e.col == obj.getBindCellIndex("body", "emptybedcnt6")
- ||e.col == obj.getBindCellIndex("body", "emptybedcntetc")
- ||e.col == obj.getBindCellIndex("body", "bedablecnt")
- )
- {
-
-
- wardcd = ds_main_currentbedlist.getColumn(row, "wardcd");
- orddeptcd = ds_main_currentbedlist.getColumn(row, "orddeptcd");
- ds_source.setColumn(0, "wardcd",wardcd);
- ds_source.setColumn(0, "orddeptcd", orddeptcd);
-
-
-
-
- frmf_modal("SPPMI02001", "SPPMI02001",{ arg_ds_source: ds_source }, "", '', '', '', "", "", "", "", "", "M");
- }
-
-
-
-
-
-
-
- }
- ]]></Script>
- </Form>
- </FDL>
|