123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNE15000_응급전용중환자실입원실활자재실기간연장환자관리대장" classname="SMMNE15000_응급전용중환자실입원실활자재실기간연장환자관리대장" inheritanceid="" position="absolute 0 0 1200 764" titletext="응급전용중환자실/입원실 환자 재실기간 연장 환자 관리 대장" oninit="SMMNE15000_oninit" onload="SMMNE15000_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="응급전용중환자실/입원실 환자 재실기간 연장 환자 관리 대장" class="tit_1" position="absolute 0 0 395 25"/>
- <Div id="grp_search" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 25 563 87">
- <Layouts>
- <Layout>
- <Button id="btn_srch" taborder="15" text="조회" onclick="grp_search_btn_srch_onclick" class="btn1" position="absolute 443 7 499 27" anchor="top right"/>
- <Static id="caption5" text="내원일 :" class="search_name" position="absolute 10 33 88 53" anchor="default"/>
- <Calendar id="ipt_fromdd" taborder="16" autoselect="true" autoskip="true" class="input_essential" position="absolute 74 33 166 53" anchor="default"/>
- <Static id="caption8" text="~" position="absolute 168 33 183 53" style="font:Dotum,9,bold;" anchor="default"/>
- <Calendar id="ipt_todd" taborder="17" autoselect="true" class="input_essential" position="absolute 183 33 275 53" anchor="default"/>
- <Button id="btn_execl" taborder="18" text="엑셀" onclick="grp_search_btn_execl_onclick" class="btn7" position="absolute 500 7 556 27" anchor="top right"/>
- <Radio id="rdo_gubun" taborder="19" columncount="2" rowcount="0" index="0" codecolumn="codecolumn" datacolumn="datacolumn" value="1" class="radio_search" position="absolute 83 7 228 27" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">중환자실</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">입원실</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption1" text="조회구분 :" class="search_name" position="absolute 10 7 81 27" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="Grid_patlist" taborder="2" binddataset="ds_main_patlist" useinputpanel="false" position="absolute 0 92 563 764" anchor="all" autofitbandtype="body" autofittype="col" oncelldblclick="Grid_patlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" 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" rowspan="2" text="연장 신청자" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="연장 승인일" taborder="undefined"/>
- <Cell col="7" rowspan="2" text="예상 퇴실일" taborder="undefined"/>
- <Cell col="8" rowspan="2" text="실제 퇴실일" taborder="undefined"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" text="bind:hngnm"/>
- <Cell col="2" text="bind:pid"/>
- <Cell col="3" displaytype="normal" text="bind:inroomdd"/>
- <Cell col="4" displaytype="normal" text="bind:applydd"/>
- <Cell col="5" displaytype="normal" text="bind:applynm"/>
- <Cell col="6" displaytype="normal" style="align:left middle;" text="bind:approvaldt" tooltiptype="bottom" tooltiptext="bind:diagengnm"/>
- <Cell col="7" displaytype="normal" text="bind:expecoutdd"/>
- <Cell col="8" displaytype="normal" edittype="none" text="bind:outroomdd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line8" class="line_10" position="absolute 0 87 563 93" anchor="left top right"/>
- <Div id="ivw_loader" anchor="all" taborder="3" url="emr_medirecxp::SSMMR01100_서식로더.xfdl" position="absolute 564 32 1200 764"/>
- <Shape id="line2" class="line_10" position="absolute 565 24 1200 30" anchor="left top right"/>
- <Static id="caption7" text="기록작성" class="tit_2" position="absolute 565 8 676 24"/>
- <Button id="btn_signsave" taborder="4" text="인증저장" onclick="btn_signsave_onclick" class="btn5" position="absolute 1136 4 1200 23" anchor="top right"/>
- <Edit id="opt_patinfo" taborder="5" readonly="true" class="edt_transbg" position="absolute 640 6 1127 24" anchor="left top" style="font:Dotum,9,bold;"/>
- </Layout>
- </Layouts>
- <Bind>
- <BindItem id="item0" compid="grp_search.rdo_gubun" propid="value" datasetid="ds_send_req" columnid="gubun"/>
- <BindItem id="item1" compid="grp_search.ipt_fromdd" propid="value" datasetid="ds_send_req" columnid="fromdd"/>
- <BindItem id="item2" compid="grp_search.ipt_todd" propid="value" datasetid="ds_send_req" columnid="todd"/>
- </Bind>
- <Objects>
- <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="gubun" type="STRING" size="256" sumtext="1 : 중환자실, 2: 입원실"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="조회기간"/>
- <Column id="todd" type="STRING" size="256" sumtext="조회기간"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="roomnm" type="STRING" size="256"/>
- <Column id="bednm" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="sexage" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="inroomdd" type="STRING" size="256"/>
- <Column id="outroomdd" type="STRING" size="256"/>
- <Column id="applydd" type="STRING" size="256"/>
- <Column id="applynm" type="STRING" size="256"/>
- <Column id="approvalnm" type="STRING" size="256"/>
- <Column id="approvaldt" type="STRING" size="256"/>
- <Column id="expecoutdd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond_formdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="formcd" type="STRING" size="256"/>
- <Column id="formkind" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="btnvisible" type="STRING" size="256"/>
- <Column id="btnenable" type="STRING" size="256"/>
- <Column id="unpreprec" type="STRING" size="256"/>
- <Column id="modalyn" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="topyn" type="STRING" size="256"/>
- <Column id="formrecddenable" type="STRING" size="256"/>
- <Column id="formrecdd" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="formkind"/>
- <Col id="formcd"/>
- <Col id="pid"/>
- <Col id="orddd"/>
- <Col id="cretno"/>
- <Col id="btnvisible"/>
- <Col id="orddeptcd"/>
- <Col id="modalyn"/>
- <Col id="unpreprec"/>
- <Col id="btnenable"/>
- <Col id="ioflag"/>
- <Col id="topyn"/>
- <Col id="formrecdd"/>
- <Col id="formrecddenable"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- include "emr_medirecxp::MMR01100.xjs";
- function SMMNE15000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNE15000_onload(obj:Form, e:LoadEventInfo)
- {
- ds_send_req.setColumn(0, "gubun", "1");
- ds_send_req.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send_req.setColumn(0, "todd", utlf_getCurrentDate());
-
- grdf_setGridSort(Grid_patlist);
- }
- function grp_search_btn_srch_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- function fSearch(nFlag) {
- if(utlf_diffDate(grp_search.ipt_fromdd.value, grp_search.ipt_todd.value) > 31){
- sysf_messageBox("조회 기간은 31일을 초과할 수 없습니다.");
- return;
- }
-
- var oParam = {};
- oParam.id = "SMMNE13001";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqERIntensiveCareUnitAndWardExtenstionApplicationList";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_main_patlist=patlist";
- oParam.async = true;
- tranf_submit(oParam);
-
- ds_main_patlist.rowposition = -1;
-
- if( utlf_isNull(nFlag) ){
- ivw_loader.ivw_base.url = "";
- lf_SetPatInfo(-1);
- }
- }
- function grp_search_btn_execl_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(Grid_patlist, "응급전용중환자실/입원실 환자 재실기간 연장 환자 관리 대장", "SheetName" , true, "" , "" , true);
- }
- function fRecordsearch() {
- // 16.12.07_프로그램 내에서 환자 기본정보에 대한 Parameter을 넘기더라도 우선적으로 상단정보를 가져가는 것을 막기위함.
-
- var nRow = ds_main_patlist.rowposition;
-
- var instcd = ds_main_patlist.getColumn(nRow, "instcd");
- var pid = ds_main_patlist.getColumn(nRow, "pid");
- var indd = ds_main_patlist.getColumn(nRow, "indd");
- var cretno = ds_main_patlist.getColumn(nRow, "cretno");
- var formrecseq = ds_main_patlist.getColumn(nRow, "formrecseq");
- var formcd = "";
-
- if( utlf_isNull(pid) || utlf_isNull(indd) || utlf_isNull(cretno) ){
- sysf_messageBox("환자가 선택되지 " , "E007");
- return;
- }
-
- ivw_loader.ivw_base.url = "";
-
- // 서식 로드
- var objArg = new Object();
- var vFormKind = "new";
- if(formrecseq != "N"){
- vFormKind = "rec";
- formcd = formrecseq;
- }
- else{
- sysf_messageBox("재실기간 연장 신청서가 작성되지 " , "E007");
- return;
- }
-
- ds_cond_formdata.clearData();
- ds_cond_formdata.addRow();
- ds_cond_formdata.setColumn(0, "formcd", formcd); // 서식목록 - linkcd, 기록목록 - formrecseq 컬럼값.
- ds_cond_formdata.setColumn(0, "formkind", vFormKind); // 서식목록 탭 - new , 기록목록 - rec
- ds_cond_formdata.setColumn(0, "btnvisible", false);
- ds_cond_formdata.setColumn(0, "pid", pid);
- ds_cond_formdata.setColumn(0, "orddd", indd);
- ds_cond_formdata.setColumn(0, "cretno", cretno);
- ds_cond_formdata.setColumn(0, "topyn", "N");
- ds_cond_formdata.setColumn(0, "formrecddenable", "N");
- objArg.ds_cond_formdata = ds_cond_formdata;
-
- lf_loadSMMMR01100(false, objArg);
-
- lf_SetPatInfo(nRow);
-
- }
- function btn_signsave_onclick(obj:Button, e:ClickEventInfo)
- {
- var grd_row = Grid_patlist.currentrow;
- if (grd_row >= 0) {
- if( utlf_isNull(ivw_loader.ivw_base.url) ){
- sysf_messageBox("선택한 기록이 존재하지 않습니다." , "E");
- return;
- }
- if( ivw_loader.fClickSave("Y") ) {
- fSearch(true);
- ds_main_patlist.selectRow(grd_row);
- ds_main_patlist.rowposition = grd_row;
- fRecordsearch();
- }
-
- } else {
- sysf_messageBox("환자를 선택하지" , "E007");
- return;
- }
- }
- /****************************************************************************************
- * Argument : 01.nRow : Grid rowposition
- * Description : 선택한 기록에 대한 환자정보
- ****************************************************************************************/
- function lf_SetPatInfo(nRow){
- if( !utlf_isNull(nRow) ){
- if( nRow == -1 ){
- opt_patinfo.value = "";
- return;
- }
- var grdDs = this.objects["ds_main_patlist"];
- var nPid = grdDs.getColumn(nRow, "pid");
- var nPatnm = grdDs.getColumn(nRow, "hngnm");
- var nSa = grdDs.getColumn(nRow, "sexage");
- var nRoomcd = grdDs.getColumn(nRow, "roomcd");
-
- opt_patinfo.value = "- " + nPid + " " + nPatnm + "(" + nSa + ") " + nRoomcd;
- }
- }
- function Grid_patlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fRecordsearch();
- }
- ]]></Script>
- </Form>
- </FDL>
|