123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMI05420" position="absolute 0 0 1173 661" titletext="퇴원환자 보고서" onload="SMPMI05420_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="퇴원환자 보고서" class="tit_1" position="absolute 0 0 160 25" anchor="left top"/>
- <Div id="grp" taborder="2" position="absolute 0 25 1170 60" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout width="1170" height="35">
- <Static id="caption8" text="~" position="absolute 196 8 207 28" anchor="left top"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1093 7 1099 29" anchor="top right"/>
- <Static id="caption39" text="퇴원일자조회" class="search_name" position="absolute 3 9 91 26" anchor="left top"/>
- <Calendar id="todd" taborder="1" class="input_search" position="absolute 211 8 301 27" anchor="left top" autoselect="true" dateformat="yyyy-MM-dd" onkeydown="grp_todd_onkeydown"/>
- <Button id="btn_search2" taborder="2" text="조회" class="btn1" position="absolute 1110 7 1166 29" anchor="top right" onclick="grp_btn_search2_onclick"/>
- <Calendar id="fromdd" taborder="3" class="input_search" position="absolute 102 8 192 27" anchor="left top" autoselect="true" dateformat="yyyy-MM-dd" value="null" autoskip="true"/>
- <Static id="caption4" text="업무자 ID" class="search_name" visible="false" position="absolute 898 9 964 26" anchor="top right"/>
- <Combo id="combo1" taborder="4" innerdataset="ds_init_combo1" codecolumn="cd" datacolumn="nm" class="combo_default" visible="false" position="absolute 977 8 1082 27" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line20" linetype="horizontal" class="line_1" position="absolute 0 83 1170 89" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Static id="caption3" text="퇴원환자 외래예약금 현황" class="tit_2" position="absolute 3 65 183 81" anchor="left top"/>
- <Button id="button1" taborder="3" text="엑셀저장" class="btn7" position="absolute 1095 63 1169 82" onclick="button1_onclick" anchor="top right"/>
- <Button id="button2" taborder="4" text="출력" class="btn6" position="absolute 1042 63 1092 82" onclick="button2_onclick" anchor="top right"/>
- <Grid id="grd_odeposit" taborder="5" binddataset="ds_list_disodeposit" useinputpanel="false" position="absolute 0 87 1170 657" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="120"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </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="외래예약금"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" text="bind:pid"/>
- <Cell col="2" text="bind:hngnm"/>
- <Cell col="3" displaytype="date" text="bind:rcptdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="4" text="bind:orddeptnm"/>
- <Cell col="5" text="bind:roomcd"/>
- <Cell col="6" displaytype="date" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="7" displaytype="number" text="bind:outamt" mask="9,999"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </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="sess_posinstcd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="acceptnm" type="STRING" size="256"/>
- <Column id="sendflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="sess_posinstcd"/>
- <Col id="ioflag"/>
- <Col id="acceptnm"/>
- <Col id="sendflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_list_disodeposit" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자이름"/>
- <Column id="rcptdd" type="STRING" size="256" sumtext="수납일자"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
- <Column id="outamt" type="STRING" size="256" sumtext="외래예약금"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp.combo1" propid="value" datasetid="ds_send" columnid="acceptnm"/>
- <BindItem id="item1" compid="grp.todd" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item2" compid="grp.fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- </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_opatmngtxp::PMOCOM.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 SMPMI05420_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
- fGetUserInfosSampling(); //세션정보
- ds_send.setColumn(0, "sess_posinstcd", ds_hidden_session.getColumn(0, "sess_dutplceinstcd"));
- ds_send.setColumn(0, "ioflag", "I");
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- // appf_getCodeList([
- // { dsNm: 'ds_init1_P0101', cdGrpId: 'P0101' },
- // { dsNm: 'ds_init1_P0028', cdGrpId: 'P0028' },
- // { dsNm: 'ds_init1_P0038', cdGrpId: 'P0038' }
- // ]);
- }
- /**
- * 퇴원일자조회 todd 키보드 입력 이벤트
- * @param {[type]} obj: Calendar [description]
- * @param {[type]} e: KeyEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_todd_onkeydown(obj: Calendar, e: KeyEventInfo) {
- if (e.keycode == 13) {
- obj.updateToDataset();
- grp.btn_search2.click();
- }
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_btn_search2_onclick(obj: Button, e: ClickEventInfo) {
- ds_send.setColumn(0, "sendflag", "disodeposit");
- dsf_createDsRow('ds_TRPMI05420', [
- { col: 'fromdd', type: 'string', size: 256, val: '' },
- { col: 'todd', type: 'string', size: 256, val: '' },
- { col: 'acceptnm', type: 'string', size: 256, val: '' },
- { col: 'sendflag', type: 'string', size: 256, val: '' }
- ], false);
- ds_list_disodeposit.clearData();
-
- var oParam = {};
- oParam.id = "TRPMI05420";
- oParam.service = "ipatmngtapp.WardReport";
- oParam.method = "reqChanType";
- oParam.inds = "req=ds_TRPMI05420";
- oParam.outds = "ds_list_disodeposit=disodeposit";
- oParam.async = false;
- tranf_submit(oParam);
- }
- /**
- * 출력 버튼 클릭 이벤트
- * @param {[type]} obj:Button [description]
- * @param {[type]} e:ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setValueToDOM(objDOM, 'root/send/fromdd', ds_send.getColumn(0, 'fromdd'));
- rptf_setNodeListToDOM(objDOM, "root/list/disodeposit" , ds_list_disodeposit);
-
- rptf_exeReportPreview30(["RPPMI05420"],[{ xml_data_XML1: objDOM.documentElement.source }], option);
- }
- /**
- * 엑셀저장 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button1_onclick(obj: Button, e: ClickEventInfo) {
- grdf_exportExcel(grd_odeposit, "excel", "SheetName", true, "", "user", false);
- }
- ]]></Script>
- </Form>
- </FDL>
|