123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPAO02000" position="absolute 0 0 1196 800" titletext="연말정산영수증 출력" onload="SPPAO02000_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="연말정산영수증 출력" class="tit_1" position="absolute 0 0 157 25"/>
- <Shape id="line23" class="line_6" position="absolute 0 765 1194 771" anchor="left right bottom"/>
- <Button id="btn_init" taborder="1" text="초기화" class="btn4" position="absolute 1127 772 1195 794" onclick="btn_init_onclick" anchor="top bottom"/>
- <Static id="caption4" text="* 연말정산 시 감면금액 포함여부는 원무공통코드(PK079)로 관리되며, 현금금액에 표시되나 현금영수증 발행의 대상은 되지않습니다." position="absolute 113 776 837 791" style="color:red;"/>
- <Button id="button1" taborder="2" text="감면내역조회" class="btn3" position="absolute 0 772 104 794" onclick="button1_onclick"/>
- <Div id="import1" taborder="3" url="pam_patinfomngtxp::SSPMC00100_인적사항.xfdl" position="absolute 0 29 1195 236" anchor="left top right"/>
- <Shape id="line12" linetype="horizontal" class="line_1" position="absolute 0 276 1194 282" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Grid id="datagrid1" taborder="8" binddataset="ds_main_h_rcpt" useinputpanel="false" position="absolute 0 281 1195 766" anchor="all" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="140"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- <Row size="24" band="summ"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="3" text="진료,조제일자" taborder="undefined"/>
- <Cell col="1" rowspan="3" text="구분 (입원,외래)"/>
- <Cell col="2" colspan="5" text="진료비(약제비)내역" taborder="undefined"/>
- <Cell col="7" colspan="3" text="소득공제대상액" taborder="undefined"/>
- <Cell col="10" rowspan="3" text="계정감면" taborder="undefined"/>
- <Cell col="11" rowspan="3" text="임의감면" taborder="undefined"/>
- <Cell col="12" rowspan="3" text="미수액" taborder="undefined"/>
- <Cell row="1" col="2" rowspan="2" text="총액"/>
- <Cell row="1" col="3" colspan="2" text="급여" taborder="undefined"/>
- <Cell row="1" col="5" text="비급여"/>
- <Cell row="1" col="6" rowspan="2" text="환자부담총액" taborder="undefined"/>
- <Cell row="1" col="7" rowspan="2" text="카드" taborder="undefined"/>
- <Cell row="1" col="8" rowspan="2" text="현금영수증" taborder="undefined"/>
- <Cell row="1" col="9" rowspan="2" text="현금" taborder="undefined"/>
- <Cell row="2" col="3" text="보험자부담액"/>
- <Cell row="2" col="4" text="환자부담액"/>
- <Cell row="2" col="5" text="환자부담(급여)"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;" text="bind:rcpt_orddd"/>
- <Cell col="1" style="align:center middle;" text="bind:rcpt_ordtype"/>
- <Cell col="2" displaytype="number" style="align:right middle;" text="bind:rcpt_totamt" mask="9,999"/>
- <Cell col="3" displaytype="number" style="align:right middle;" text="bind:rcpt_insuamt" mask="9,999"/>
- <Cell col="4" displaytype="number" style="align:right middle;" text="bind:rcpt_ownpayamt" mask="9,999"/>
- <Cell col="5" displaytype="number" style="align:right middle;" text="bind:rcpt_ownnopayamt" mask="9,999"/>
- <Cell col="6" displaytype="number" style="align:right middle;" text="bind:rcpt_owntotamt" mask="9,999"/>
- <Cell col="7" displaytype="number" style="align:right middle;" text="bind:rcpt_cardamt" mask="9,999"/>
- <Cell col="8" displaytype="number" style="align:right middle;" text="bind:rcpt_cashamt_cash" mask="9,999"/>
- <Cell col="9" displaytype="number" style="align:right middle;" text="bind:rcpt_cashamt" mask="9,999"/>
- <Cell col="10" displaytype="number" style="align:right middle;" text="bind:rcpt_discamt" mask="9,999"/>
- <Cell col="11" displaytype="number" style="align:right middle;" text="bind:rcpt_reduamt" mask="9,999"/>
- <Cell col="12" displaytype="number" style="align:right middle;" text="bind:rcpt_uncoamt" mask="9,999"/>
- </Band>
- <Band id="summary">
- <Cell style="align:left middle;padding:0 0 0 3;background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" text="합계"/>
- <Cell col="1" style="background:#fcd2c1ff;background2:#fcd2c1ff;color:white;color2:black;font:Dotum,9,bold;"/>
- <Cell col="2" displaytype="number" style="align:right middle;background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" expr="expr:getSum("rcpt_totamt")" mask="9,999"/>
- <Cell col="3" displaytype="number" style="align:right middle;background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" expr="expr:getSum("rcpt_insuamt")" mask="9,999"/>
- <Cell col="4" displaytype="number" style="align:right middle;background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" expr="expr:getSum("rcpt_ownpayamt")" mask="9,999"/>
- <Cell col="5" displaytype="number" style="align:right middle;background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" expr="expr:getSum("rcpt_ownnopayamt")" mask="9,999"/>
- <Cell col="6" displaytype="number" style="align:right middle;background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" expr="expr:getSum("rcpt_owntotamt")" mask="9,999"/>
- <Cell col="7" displaytype="number" style="align:right middle;background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" expr="expr:getSum("rcpt_cardamt")" mask="9,999"/>
- <Cell col="8" displaytype="number" style="align:right middle;background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" expr="expr:getSum("rcpt_cashamt_cash")" mask="9,999"/>
- <Cell col="9" displaytype="number" style="align:right middle;background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" expr="expr:getSum("rcpt_cashamt")" mask="9,999"/>
- <Cell col="10" displaytype="number" style="align:right middle;background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" expr="expr:getSum("rcpt_discamt")" mask="9,999"/>
- <Cell col="11" displaytype="number" style="align:right middle;background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" expr="expr:getSum("rcpt_reduamt")" mask="9,999"/>
- <Cell col="12" displaytype="number" style="align:right middle;background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" expr="expr:getSum("rcpt_uncoamt")" mask="9,999"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="div" taborder="13" position="absolute 0 236 1195 276" class="div_SA2" anchor="left top right">
- <Layouts>
- <Layout width="1194" height="32">
- <Static id="caption7" text="병원" class="search_name" position="absolute 10 12 75 29" anchor="default"/>
- <Static id="caption5" text="조회기준" class="search_name" position="absolute 235 12 318 29" anchor="default"/>
- <Combo id="combo1" taborder="1" innerdataset="@ds_init_Z0007list" codecolumn="cdid" datacolumn="cdnm" class="combo_default" position="absolute 57 11 207 30" anchor="default"/>
- <Combo id="combo2" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" position="absolute 307 11 392 30" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">rcptdd</Col>
- <Col id="datacolumn">수납일자</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption1" text="기준일자" class="search_name" position="absolute 422 12 505 29" anchor="default"/>
- <Calendar id="input5" taborder="3" class="input_default" position="absolute 499 11 584 30" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Calendar id="input3" taborder="4" class="input_default" position="absolute 602 11 687 30" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
- <Button id="btn_search2" taborder="5" text="조회" class="btn1" position="absolute 1135 10 1191 32" anchor="top right" onclick="div_btn_search2_onclick"/>
- <Static id="caption2" text="~" position="absolute 588 14 598 26" anchor="default"/>
- <Button id="btn_print" taborder="6" text="출력" class="btn6" position="absolute 1074 10 1130 32" anchor="top right" onclick="div_btn_print_onclick"/>
- <Radio id="radio1" taborder="7" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 743 10 890 30" anchor="default" style="textpadding:0 3 0 3;padding:0 0 0 0;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">day</Col>
- <Col id="datacolumn">일자별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">month</Col>
- <Col id="datacolumn">월별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">total</Col>
- <Col id="datacolumn">총합</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <CheckBox id="checkbox1" taborder="8" position="absolute 894 13 988 28" anchor="default" text="주민번호보호" falsevalue="N" truevalue="Y"/>
- <Static id="caption3" text="구분" class="search_name" position="absolute 704 12 764 29" anchor="default"/>
- <CheckBox id="chk_previewyn" taborder="9" text="미리보기" value="N" truevalue="Y" falsevalue="N" position="absolute 990 13 1064 28"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="gijun" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="sum_flag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="instcd"/>
- <Col id="gijun"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="sum_flag"/>
- </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_init_pam_P1000list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_Z0007list" 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>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="protectyn" type="STRING" size="256"/>
- <Column id="incomeamt" type="STRING" size="256"/>
- <Column id="previewyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="protectyn">Y</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_ptbs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_h_rcpt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rcpt_orddd" type="STRING" size="256" sumtext="진료일자"/>
- <Column id="rcpt_outhospdd" type="STRING" size="256" sumtext="영수증유형"/>
- <Column id="rcpt_rcptexecdd" type="STRING" size="256" sumtext="영수증유형코드"/>
- <Column id="rcpt_ordtype" type="STRING" size="256" sumtext="구분"/>
- <Column id="rcpt_totamt" type="STRING" size="256" sumtext="총금액"/>
- <Column id="rcpt_insuamt" type="STRING" size="256" sumtext="급여금액"/>
- <Column id="rcpt_ownpayamt" type="STRING" size="256" sumtext="급여본인"/>
- <Column id="rcpt_ownnopayamt" type="STRING" size="256" sumtext="비급여본인"/>
- <Column id="rcpt_owntotamt" type="STRING" size="256" sumtext="본인총금액"/>
- <Column id="rcpt_cardamt" type="STRING" size="256" sumtext="신용카드"/>
- <Column id="rcpt_cashamt_cash" type="STRING" size="256" sumtext="현금영수증"/>
- <Column id="rcpt_cashamt" type="STRING" size="256" sumtext="현금"/>
- <Column id="rcpt_allamt" type="STRING" size="256" sumtext="총액"/>
- <Column id="rcpt_discamt" type="STRING" size="256" sumtext="계정감면"/>
- <Column id="rcpt_reduamt" type="STRING" size="256" sumtext="임의감면금"/>
- <Column id="rcpt_uncoamt" type="STRING" size="256" sumtext="미수금"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_h_rcpt_hosp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_buffer" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="div.radio1" propid="value" datasetid="ds_send_data1" columnid="sum_flag"/>
- <BindItem id="item1" compid="div.input3" propid="value" datasetid="ds_send_data1" columnid="todd"/>
- <BindItem id="item2" compid="div.input5" propid="value" datasetid="ds_send_data1" columnid="fromdd"/>
- <BindItem id="item3" compid="div.combo2" propid="value" datasetid="ds_send_data1" columnid="gijun"/>
- <BindItem id="item4" compid="div.combo1" propid="value" datasetid="ds_send_data1" columnid="instcd"/>
- <BindItem id="item5" compid="div.checkbox1" propid="value" datasetid="ds_main" columnid="protectyn"/>
- <BindItem id="item6" compid="div.chk_previewyn" propid="value" datasetid="ds_main" columnid="previewyn"/>
- </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
- //---------------------------------------------------------------------------------------
- /**
- * 로그인한 사용자 정보조회
- * @return {[type]} [description]
- */
- function fGetUserInfo2() {
- var sUserInfosS = sysf_getUserInfos();
- sUserInfosS = sUserInfosS + "|";
- var UserInfosS_Array = sUserInfosS.split("|");
- var userid = UserInfosS_Array[0]; //사용자번호
- var usernm = UserInfosS_Array[1]; //사용자이름
- var posinstcd = UserInfosS_Array[2]; //소속기관코드
- var posinstnm = UserInfosS_Array[3]; //소속기관명
- dsf_makeValue(ds_hidden_session, "userid", 'string', userid);
- dsf_makeValue(ds_hidden_session, "usernm", 'string', usernm);
- dsf_makeValue(ds_hidden_session, "posinstcd", 'string', posinstcd);
- dsf_makeValue(ds_hidden_session, "posinstnm", 'string', posinstnm);
- }
- /**
- * [fBaseCode description]
- * @return {[type]} [description]
- */
- function fBaseCode() {
- //병원 오픈일자 가져오는 원무공통코드조회
- pamfGetCodeList([{ dsNm: 'ds_init_pam_P1000list', cdGrpId: 'P1000' }]);
- appf_getCodeList([{ dsNm: 'ds_init_Z0007list', cdGrpId: 'Z0007' }]);
- }
- /**
- * [fInitialize description]
- * @return {[type]} [description]
- */
- function fInitialize() {
- ds_send_data1.setColumn(0, "instcd", ds_hidden_session.getColumn(0, "posinstcd"));
- ds_send_data1.setColumn(0, "gijun", "rcptdd");
- var openDate = ds_init_pam_P1000list.getColumn(0, "cdnm");
- //6월이전은 과거일자, 6월부터는 현재일자 설정 되도록 수정 - 20140219
- if (utlf_getCurrentDate().substr(4, 2) >= "06") {
- var lastDate = utlf_getCurrentDate();
- }
- else {
- var lastDate = utlf_getCurrentDate().toDate().getAddDate(-1, "Y").getDateFormat();
- }
- if ((lastDate.substr(0, 4) + "0101") < openDate) {
- ds_send_data1.setColumn(0, "fromdd", openDate);
- }
- else {
- ds_send_data1.setColumn(0, "fromdd", lastDate.substr(0, 4) + "0101");
- }
- ds_send_data1.setColumn(0, "todd", lastDate.substr(0, 4) + "1231");
- ds_send_data1.setColumn(0, "sum_flag", "day");
- // test
- import1.ds_patinfolist.clearData();
- import1.ds_main_patinfo_patinfolist.clearData();
- import1.ds_main_patinfo_patinfolist.addRow();
- ds_main_h_rcpt.clearData();
- }
- /**
- * [fSearch2 description]
- * @return {[type]} [description]
- */
- function fSearch2() {
- ds_send_data1.setColumn(0, "pid", import1.ds_main_patinfo_patinfolist.getColumn(0, "pid"));
- //2011년도 이전데이터 제한추가 by 조중래 20130527
- if (ds_send_data1.getColumn(0, "fromdd") < "20110101") {
- sysf_messageBox("2011년 이전 데이터는 OCS프로그램에서 조회하시기 바랍니다. ", "E000");
- return;
- }
- ds_main_h_rcpt.clearData();
- ds_main_h_rcpt_hosp.clearData();
- var oParam = {};
- oParam.id = "TRPAO02001";
- oParam.service = "pamcomnapp.ReceiptApp";
- oParam.method = "reqGetYearreceipt";
- oParam.inds = "req=ds_send_data1";
- oParam.outds = "ds_main_h_rcpt=rcpt ds_main_h_rcpt_hosp=hosp";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_main_h_rcpt_hosp.updateColID("reprtel1", "tel");
- dsf_copyDsWithPrefix(ds_buffer, ds_main_h_rcpt_hosp, 'hosp_');
- ds_main_h_rcpt_hosp.copyData(ds_buffer, false);
- fCostSum();
- }
- /**
- * 총소득공제대상액
- * @return {[type]} [description]
- */
- function fCostSum() {
- var sum_incomeamt = 0;
- for (var a = 1; a <= ds_main_h_rcpt.rowcount; a++) {
- sum_incomeamt += parseInt(ds_main_h_rcpt.getColumn(a, "rcpt_allamt"));
- }
- ds_main.setColumn(0, "incomeamt", sum_incomeamt);
- }
- /**
- * import1 에서 호출 할 메서드
- * @return {[type]} [description]
- */
- function fSearch()
- {
- ds_main_ptbs.copyData(import1.ds_main_patinfo_patinfolist);
- ds_main_h_rcpt.clearData();
- fSearch2();
- }
- /**
- * 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 SPPAO02000_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
- fGetUserInfo2();
- fBaseCode();
- fInitialize();
- }
- /**
- * 출력 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function div_btn_print_onclick(obj: Button, e: ClickEventInfo)
- {
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/main", ds_main);
- rptf_setNodeListToDOM(objDOM, "/root/main/ptbs", ds_main_ptbs);
- rptf_setNodeListToDOM(objDOM, "/root/main/h_hosp/hosp", ds_main_h_rcpt_hosp);
- rptf_setNodeListToDOM(objDOM, "/root/main/h_rcpt/rcpt", ds_main_h_rcpt);
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
-
- //연말정산 영수증 미리보기 기능 추가(2020/01/22 이정택)
- var option = "";
- if(ds_main.getColumn(0, "previewyn") == 'Y'){
- option = "open=1;save=1;directprint=0;printdialog=0;print=1;zoom=0";
- }else{
- option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
- }
- //연말정산 영수증 미리보기 기능 추가(2020/01/22 이정택)
-
- rptf_exeReportPreview30(["RPPAO02000"],[objParam], option);
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function div_btn_search2_onclick(obj: Button, e: ClickEventInfo) {
- fSearch2();
- }
- /**
- * 감면내역조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button1_onclick(obj: Button, e: ClickEventInfo) {
- var instcd = ds_send_data1.getColumn(0, "instcd");
- var pid = utlf_transNullToEmpty(ds_send_data1.getColumn(0, "pid"));
- var fromdd = utlf_transNullToEmpty(ds_send_data1.getColumn(0, "fromdd"));
- var todd = utlf_transNullToEmpty(ds_send_data1.getColumn(0, "todd"));
- if (pid == "") {
- alert("조회대상이 선택되지 않았습니다.");
- return;
- }
- else if (fromdd == "" || todd == "") {
- alert("시작일자 및 종료일자는 반드시 입력해야합니다.");
- return;
- }
- frmf_setParameter("SPPAO02001_INSTCD", instcd);
- frmf_setParameter("SPPAO02001_PID", pid);
- frmf_setParameter("SPPAO02001_FROMDD", fromdd);
- frmf_setParameter("SPPAO02001_TODD", todd);
- frmf_modal("SPPAO02001", "SPPAO02001", "", "", "", "", "", "", "", "", "", "", "M");
- }
- /**
- * 초기화 버튼 클릭 이벤트
- * @param {[type]} obj:Button [description]
- * @param {[type]} e:ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_init_onclick(obj: Button, e: ClickEventInfo) {
- fInitialize();
- }
- ]]></Script>
- </Form>
- </FDL>
|