123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMI06200" position="absolute 0 0 1173 734" titletext="외국인 일자별 수납리스트" onload="SMPMI06200_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="외국인 수납 내역" class="tit_1" position="absolute 0 0 160 25" anchor="left top"/>
- <Div id="grp" taborder="1" position="absolute 0 25 1172 60" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout width="1172" height="35">
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1097 7 1103 29" anchor="top right"/>
- <Static id="caption39" text="수납기간조회 :" class="search_name" position="absolute 8 9 108 26" anchor="left top"/>
- <Button id="btn_search" taborder="5" text="조회" class="btn1" position="absolute 1111 7 1167 29" anchor="top right" onclick="grp_btn_search_onclick"/>
- <Calendar id="input1" taborder="6" position="absolute 122 8 207 27" anchor="left top" autoselect="true" autoskip="true"/>
- <Calendar id="input2" taborder="7" position="absolute 225 8 310 27" anchor="left top" autoselect="true" autoskip="true"/>
- <Static id="caption1" text="~" position="absolute 211 10 221 25" anchor="left top"/>
- <Static id="caption3" text="진료구분 :" class="search_name" position="absolute 345 9 431 26" anchor="left top"/>
- <cp_checkboxList id="radio1" taborder="9" scrollbars="none" position="absolute 435 8 580 28" style="background:transparent;" col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible" anchor="left top"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption2" text="일자별 수납리스트" class="tit_2" position="absolute 0 70 134 91" anchor="left top"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 87 1170 91" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Grid id="grd_rcptlist" taborder="2" binddataset="ds_main_rcptlist" useinputpanel="false" position="absolute 0 91 1170 731" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="76"/>
- <Column size="90"/>
- <Column size="45"/>
- <Column size="45"/>
- <Column size="70"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="60"/>
- <Column size="50"/>
- <Column size="110"/>
- <Column size="74"/>
- <Column size="74"/>
- <Column size="74"/>
- <Column size="76"/>
- <Column size="110"/>
- <Column size="100"/>
- <Column size="180"/>
- <Column size="100"/>
- <Column size="180"/>
- </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="퇴원일자"/>
- <Cell col="10" text="수납일"/>
- <Cell col="11" colspan="2" text="진료의" taborder="undefined"/>
- <Cell col="13" text="진료과"/>
- <Cell col="14" text="진료비총액"/>
- <Cell col="15" text="본인부담금"/>
- <Cell col="16" text="조합부담금"/>
- <Cell col="17" text="보험유형"/>
- <Cell col="18" text="보조유형"/>
- <Cell col="19" text="상병코드"/>
- <Cell col="20" text="상병명"/>
- <Cell col="21" text="대표 EDI코드"/>
- <Cell col="22" text="대표 EDI처방명"/>
- </Band>
- <Band id="body">
- <Cell style="align:center middle;" text="bind:state"/>
- <Cell col="1" text="bind:pid"/>
- <Cell col="2" text="bind:hngnm" wordwrap="char"/>
- <Cell col="3" text="bind:brthyy"/>
- <Cell col="4" text="bind:brthmd"/>
- <Cell col="5" text="bind:rrgstno2"/>
- <Cell col="6" displaytype="combo" style="align:center middle;" text="bind:sex" combodataset="ds_static_sex" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="7" displaytype="combo" style="align:center middle;" text="bind:ordflag" combodataset="ds_static_ordflag" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="8" displaytype="date" text="bind:orddd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="9" displaytype="date" text="bind:dschdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="10" displaytype="date" text="bind:rcptdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="11" style="align:center middle;" text="bind:orddrnm"/>
- <Cell col="12" style="align:center middle;" text="bind:orddrid"/>
- <Cell col="13" text="bind:orddeptnm"/>
- <Cell col="14" displaytype="number" style="align:right middle;" text="bind:totalamt" mask="9,999"/>
- <Cell col="15" displaytype="number" style="align:right middle;" text="bind:payment" mask="9,999"/>
- <Cell col="16" displaytype="number" style="align:right middle;" text="bind:markpay" mask="9,999"/>
- <Cell col="17" text="bind:insukind"/>
- <Cell col="18" text="bind:suppkind" wordwrap="char"/>
- <Cell col="19" text="bind:diagcd"/>
- <Cell col="20" text="bind:diagnm" wordwrap="char"/>
- <Cell col="21" text="bind:edicd"/>
- <Cell col="22" style="align:center top;" text="bind:edinm" wordwrap="char"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button1" taborder="3" text="출력" class="btn6" position="absolute 1041 66 1094 86" onclick="button1_onclick" anchor="top right"/>
- <Button id="button2" taborder="4" text="엑셀저장" class="btn7" position="absolute 1095 67 1170 86" onclick="button2_onclick" anchor="top right"/>
- <Button id="button3" taborder="5" text="파일생성" class="btn5" position="absolute 884 66 947 86" onclick="button3_onclick" anchor="top right"/>
- <Button id="button4" taborder="6" text="파일생성로그" class="btn5" position="absolute 950 66 1038 86" onclick="button4_onclick" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_rcptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="state" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="brthyy" type="STRING"/>
- <Column id="brthmd" type="STRING"/>
- <Column id="rrgstno2" type="STRING"/>
- <Column id="sex" type="STRING"/>
- <Column id="ordflag" type="STRING"/>
- <Column id="orddd" type="STRING"/>
- <Column id="dschdd" type="STRING"/>
- <Column id="rcptdd" type="STRING"/>
- <Column id="orddeptnm" type="STRING"/>
- <Column id="totalamt" type="STRING"/>
- <Column id="payment" type="STRING"/>
- <Column id="markpay" type="STRING"/>
- <Column id="insukind" type="STRING"/>
- <Column id="suppkind" type="STRING"/>
- <Column id="diagcd" type="STRING"/>
- <Column id="diagnm" type="STRING"/>
- <Column id="edicd" type="STRING"/>
- <Column id="edinm" type="STRING"/>
- </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="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="ioflag">I O S</Col>
- </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_radio1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">입원</Col>
- <Col id="value">I</Col>
- </Row>
- <Row>
- <Col id="label">외래</Col>
- <Col id="value">O</Col>
- </Row>
- <Row>
- <Col id="label">건진</Col>
- <Col id="value">S</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_rcptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ordflag" type="STRING" size="256" sumtext="진료구분"/>
- <Column id="state" type="STRING" size="256" sumtext="국가"/>
- <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자이름"/>
- <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
- <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일자"/>
- <Column id="rcptdd" type="STRING" size="256" sumtext="수납일자"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의사번"/>
- <Column id="totalamt" type="STRING" size="256" sumtext="총진료비"/>
- <Column id="payment" type="STRING" size="256" sumtext="본인부담금"/>
- <Column id="markpay" type="STRING" size="256" sumtext="조합부담금"/>
- <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
- <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
- <Column id="diagcd" type="STRING" size="256" sumtext="상병코드"/>
- <Column id="diagnm" type="STRING" size="256" sumtext="상병명"/>
- <Column id="brthyy" type="STRING" size="256" sumtext="생년월일"/>
- <Column id="brthmd" type="STRING" size="256" sumtext="생년월일"/>
- <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="edicd" type="STRING" size="256" sumtext="EDI코드"/>
- <Column id="edinm" type="STRING" size="256" sumtext="EDI처방명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_static_sex" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">남</Col>
- <Col id="value">M</Col>
- </Row>
- <Row>
- <Col id="label">여</Col>
- <Col id="value">F</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_static_ordflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">입원</Col>
- <Col id="value">I</Col>
- </Row>
- <Row>
- <Col id="label">외래</Col>
- <Col id="value">O</Col>
- </Row>
- <Row>
- <Col id="label">건진</Col>
- <Col id="value">S</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp.input2" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item1" compid="grp.input1" 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';
- include 'com_batchinfoxp::ZSB001.xjs';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /**
- * [cb_radio1 description]
- * @return {[type]} [description]
- */
- function cb_radio1() {
- ds_send.setColumn(0, "ioflag", String(grp.radio1.getData()).replace(",", " "));
- }
- /**
- * 외국인 수납파일 생성
- * @return {[type]} [description]
- */
- function fMakeForeRcptFile() {
- //조회조건 체크
- var vcheck_fromdd = utlf_transNullToEmpty(String(ds_send.getColumn(0, "fromdd")).getTrim());
- var vcheck_todd = utlf_transNullToEmpty(String(ds_send.getColumn(0, "todd")).getTrim());
- //환자번호 존재시 기간 상관없이 조회
- if (vcheck_fromdd == "" || vcheck_fromdd == " " || vcheck_fromdd == "-") {
- sysf_messageBox("시작일자가 입력되지", "E007");
- grp.ipt_fromdd.setFocus();
- return;
- }
- if (vcheck_todd == "" || vcheck_todd == " " || vcheck_todd == "-") {
- sysf_messageBox("종료일자가 입력되지", "E007");
- grp.ipt_todd.setFocus();
- return;
- }
- if (isValidDateTime(vcheck_fromdd, "YYYYMMDD") != true) {
- sysf_messageBox("시작일자 형식 오류입니다!", "E999", "");
- return false;
- }
- if (isValidDateTime(vcheck_todd, "YYYYMMDD") != true) {
- sysf_messageBox("종료일자 형식 오류입니다!", "E999", "");
- return false;
- }
- if (parseInt(vcheck_fromdd) > parseInt(vcheck_todd)) {
- sysf_messageBox("종료일자는 시작일자보다 같거나 커야 합니다!", "E999", "");
- return false;
- }
- dsf_createDsRow('ds_res', [{ col: 'ordflag', type: 'string', size: 256, val: '' }], false);
- var oParam = {};
- oParam.id = "TRPMI06200";
- oParam.service = "ipatmngtapp.InReport";
- oParam.method = "reqExeMakeForeRcptFileBatch";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_res=rcptlist";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TRPMI06200") > -1) {
- sysf_messageBox("외국인수납파일생성 배치가 실행되었습니다.", "I000");
- }
- }
- /**
- * 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 SMPMI06200_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
-
- // checkboxList 설정
- var props = "col=3,row=1,cellspacing=2,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'";
- grp.radio1.setInitComp(props, ds_radio1, "value", "label", "cb_radio1");
- grp.radio1.setCheckAll(true);
- fGetUserInfosSampling(); //세션정보
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_btn_search_onclick(obj: Button, e: ClickEventInfo) {
- if (String(ds_send.getColumn(0, "ioflag")).length < 1) {
- sysf_messageBox("진료구분은 적어도 1개 이상 선택해야 합니다.", "E999");
- return;
- }
- var fromdd = ds_send.getColumn(0, "fromdd");
- var todd = ds_send.getColumn(0, "todd");
- if (utlf_isNull(fromdd) || utlf_isNull(todd)) {
- sysf_messageBox("시작일자 및 종료일자는 반드시 입력해야 합니다.", "E999");
- return;
- }
- var minusrslt = utlf_getDateInterval(fromdd, todd);
- if (minusrslt > 93) {
- sysf_messageBox("최대 3개월까지 조회가능합니다.\r\n장기간 데이터는 파일생성 기능을 통해 처리하십시오.", "E999");
- return;
- }
- ds_main_rcptlist.clearData();
- var oParam = {};
- oParam.id = "TRPMI06200";
- oParam.service = "ipatmngtapp.InReport";
- oParam.method = "reqGetForeRcptList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rcptlist=rcptlist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- /**
- * 파일생성 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button3_onclick(obj: Button, e: ClickEventInfo) {
- fMakeForeRcptFile();
- }
- /**
- * 파일생성로그 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button4_onclick(obj: Button, e: ClickEventInfo) {
- var todd = utlf_getCurrentDate().toDate().getAddDate(1, 'D');
- zsbfOpenBatchLogPopup("ipatmngtmgr.ForeRcptFileBatch", utlf_getCurrentDate(), todd.getDateFormat());
- }
- /**
- * 출력 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button1_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/send", ds_send);
- rptf_setNodeListToDOM(objDOM, "root/main/rcptlist", ds_main_rcptlist);
- rptf_exeReportPreview30(["RPPMI06200"], [{ xml_data_XML1: objDOM.documentElement.source }], option);
- }
- /**
- * 엑셀저장 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button2_onclick(obj: Button, e: ClickEventInfo) {
- grdf_exportExcel(grd_rcptlist, "excel", "SheetName", true, "", "user", false);
- }
- ]]></Script>
- </Form>
- </FDL>
|