123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMI05410" position="absolute 0 0 1173 661" titletext="퇴원환자보고서" onload="SMPMI05410_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="퇴원환자 보고서" class="tit_1" position="absolute 0 0 180 25" anchor="left top"/>
- <Div id="grp" taborder="2" position="absolute 0 25 1172 60" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout width="1172" height="35">
- <Static id="caption8" text="~" position="absolute 199 8 210 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 217 8 307 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" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Static id="caption4" text="업무자 ID" class="search_name" visible="false" position="absolute 898 9 971 26" anchor="top right"/>
- <Combo id="combo1" taborder="4" innerdataset="@ds_init_orddrid" 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 84 1170 90" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Static id="caption3" text="퇴원환자대장" class="tit_2" position="absolute 3 67 113 83" anchor="left top"/>
- <Grid id="grd_disinpat" taborder="3" binddataset="ds_list_disinpat" useinputpanel="false" position="absolute 0 88 1170 658" anchor="all" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="120"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell colspan="2" text="보험유형" taborder="undefined"/>
- <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" text="조합기호"/>
- <Cell col="13" text="증번호"/>
- <Cell col="14" text="피보험자"/>
- <Cell col="15" text="피보험자"/>
- </Band>
- <Band id="body">
- <Cell text="bind:insukind"/>
- <Cell col="1" text="bind:insukindnm"/>
- <Cell col="2" text="bind:suppkindnm"/>
- <Cell col="3" text="bind:pid"/>
- <Cell col="4" text="bind:hngnm"/>
- <Cell col="5" text="bind:rrgstno"/>
- <Cell col="6" text="bind:orddeptnm"/>
- <Cell col="7" text="bind:roomcd"/>
- <Cell col="8" displaytype="date" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="9" displaytype="date" text="bind:dschdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="10" text="bind:indaycnt"/>
- <Cell col="11" text="bind:medispclnm"/>
- <Cell col="12" text="bind:insucd"/>
- <Cell col="13" text="bind:insuno"/>
- <Cell col="14" text="bind:insdnm"/>
- <Cell col="15" text="bind:remark"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button1" taborder="4" text="엑셀저장" class="btn7" position="absolute 1098 63 1170 82" onclick="button1_onclick" anchor="top right"/>
- <Button id="button2" taborder="5" text="출력" class="btn6" position="absolute 1042 63 1092 82" onclick="button2_onclick" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <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="acceptnm" type="STRING" size="256"/>
- <Column id="sess_posinstcd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="sendflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="acceptnm"/>
- <Col id="sess_posinstcd"/>
- <Col id="ioflag"/>
- <Col id="sendflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_list_disinpat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="insukind" type="STRING" size="256" sumtext="유형"/>
- <Column id="insukindnm" type="STRING" size="256" sumtext="유형명"/>
- <Column id="suppkindnm" type="STRING" size="256" sumtext="보조유형"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
- <Column id="rrgstno" 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="dschdd" type="STRING" size="256" sumtext="퇴원일"/>
- <Column id="indaycnt" type="STRING" size="256" sumtext="진료일수"/>
- <Column id="medispclid" type="STRING" size="256" sumtext="주치의"/>
- <Column id="medispclnm" type="STRING" size="256" sumtext="주치의"/>
- <Column id="insucd" type="STRING" size="256" sumtext="조합기호"/>
- <Column id="insuno" type="STRING" size="256" sumtext="증번호"/>
- <Column id="insdnm" type="STRING" size="256" sumtext="피보험자"/>
- <Column id="remark" type="STRING" size="256" sumtext="가퇴원정산"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp.fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item1" compid="grp.todd" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item2" compid="grp.combo1" propid="value" datasetid="ds_send" columnid="acceptnm"/>
- </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 SMPMI05410_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());
- dsf_createDsRow('ds_TRPMI00106', [
- { col: 'sess_posinstcd', type: 'string', size: 256, val: '' },
- { col: 'ioflag', type: 'string', size: 256, val: '' },
- { col: 'dridsorttype', type: 'string', size: 256, val: '' }
- ], false);
- ds_TRPMI00106.copyRow(0, ds_send, 0);
- var oParam = {};
- oParam.id = "TRPMI00106";
- oParam.service = "pamcomnapp.PamComn";
- oParam.method = "reqGetComCD";
- oParam.inds = "req=ds_TRPMI00106";
- oParam.outds = "ds_init_orddrid=orddrid";
- oParam.async = false;
- tranf_submit(oParam);
- // 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_search.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", "disinpat");
- ds_list_disinpat.clearData();
- dsf_createDsRow('ds_TRPMI05410', [
- { 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_TRPMI05410.copyRow(0, ds_send, 0);
- var oParam = {};
- oParam.id = "TRPMI05410";
- oParam.service = "ipatmngtapp.WardReport";
- oParam.method = "reqChanType";
- oParam.inds = "req=ds_TRPMI05410";
- oParam.outds = "ds_list_disinpat=disinpat";
- 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_setNodeListToDOM(objDOM, "root/list/disinpat" , ds_list_disinpat);
-
- rptf_exeReportPreview30(["RPPMI05410"],[{ 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_disinpat, "excel", "SheetName", true, "", "user", false);
- }
- ]]></Script>
- </Form>
- </FDL>
|