123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPMI03800" position="absolute 0 0 770 600" titletext="보호입원대상자조회" onload="SPPMI03800_onload">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 59 761 592" id="grd_innplist" visible="true" binddataset="ds_main_innplist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="70"/>
- <Column size="73"/>
- <Column size="65"/>
- <Column size="80"/>
- <Column size="72"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="66"/>
- <Column size="73"/>
- </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="전문의"/>
- </Band>
- <Band id="body">
- <Cell style="align:center middle;" text="bind:gubun"/>
- <Cell col="1" style="align:center middle;" text="bind:pid"/>
- <Cell col="2" style="align:center middle;" text="bind:hngnm"/>
- <Cell col="3" style="align:center middle;" text="bind:indd"/>
- <Cell col="4" displaytype="combo" style="align:center middle;" text="bind:uncocd" combodataset="ds_init_PK225list" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="5" displaytype="date" style="align:center middle;" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="6" displaytype="date" text="bind:todd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="7" style="align:center middle;" text="bind:indays"/>
- <Cell col="8" text="bind:roomcd"/>
- <Cell col="9" text="bind:medispclidnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="보호입원대상자" position="absolute 0 0 160 25" id="caption1" class="tit_1"/>
- <Div id="grp" taborder="4" position="absolute 0 25 477 55" class="div_SA">
- <Layouts>
- <Layout width="600" height="30">
- <Static id="caption2" text="차트번호" class="search_name" position="absolute 220 7 288 24" anchor="default"/>
- <Static id="caption3" text="기준일자" class="search_name" position="absolute 8 7 79 24" anchor="default" enable="true"/>
- <Edit id="input1" taborder="1" enable="true" position="absolute 289 6 359 25" anchor="default"/>
- <Calendar id="input2" taborder="2" enable="true" position="absolute 81 6 181 25" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="false"/>
- <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 408 4 464 26" anchor="default" onclick="grp_btn_search_onclick" tooltiptext="기준일자에 재원중이거나, 입원예정인 환자 조회"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="Button00" taborder="5" text="엑셀저장" position="absolute 695 35 761 55" class="btn2" onclick="Button00_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_innplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="gubun" type="STRING" size="256" sumtext="구분"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
- <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="uncocd" type="STRING" size="256" sumtext="입원형태"/>
- <Column id="wardcdnm" type="STRING" size="256" sumtext="병동"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="medispclidnm" type="STRING" size="256" sumtext="전문의"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
- <Column id="indays" type="STRING" size="256" sumtext="재원일수"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basedd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basedd"/>
- <Col id="pid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_PK225list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp.input1" propid="value" datasetid="ds_send" columnid="pid"/>
- <BindItem id="item2" compid="grp.input2" propid="value" datasetid="ds_send" columnid="basedd"/>
- </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';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- * Description :
- ****************************************************************************************/
- //=======================================================================================
- // callback
- //---------------------------------------------------------------------------------------
- function callback(sSvcId, nErrorCode, sErrorMsg){
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- * Description : onload
- ****************************************************************************************/
- function SPPMI03800_onload(obj:Form, e:LoadEventInfo){
- pamfGetCodeList([
- { dsNm: 'ds_init_PK225list', cdGrpId: 'PK225' }
- ]);
- frmf_initForm(obj);
-
- ds_send.setColumn(0, 'basedd', utlf_getCurrentDate());
- var pid = utlf_transNullToEmpty(opener.frmf_getParameter('SPPMI03800_PID'));
-
- if(pid != ''){
- ds_send.setColumn(0, 'pid', pid);
-
- grp.btn_search.click();
- } else {
- sysf_messageBox('환자가 선택되지 않았습니다.', 'C000');
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 조회 버튼 클릭 이벤트
- ****************************************************************************************/
- function grp_btn_search_onclick(obj:Button, e:ClickEventInfo){
-
- var oParam = {};
- oParam.id = "TRPMI03802";
- oParam.service = "ipatmngtapp.InRgst";
- oParam.method = "reqGetInNPList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_innplist=innplist";
- oParam.async = false;
- //oParam.callback = "cf_TRPMI03700";
- tranf_submit(oParam);
- }
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_innplist, "excel", "SheetName");
- }
- ]]></Script>
- </Form>
- </FDL>
|