123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPAS01440" position="absolute 0 0 1241 819" titletext="Untitle" onload="SMPAS01440_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 25 1203 60" id="grp" class="div_SA">
- <Layouts>
- <Layout width="1203" height="35">
- <Button position="absolute 988 7 1044 29" id="btn_search" class="btn1" text="조회" onclick="grp_btn_search_onclick"/>
- <Calendar position="absolute 90 8 180 28" id="ipt_enddd" class="input_default" taborder="7" visible="true" autoselect="true" autoskip="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM"/>
- <Button position="absolute 1054 7 1134 29" id="btn_excel" class="btn7" visible="true" text="EXCEL" onclick="grp_btn_excel_onclick"/>
- <Static text="조회기준" position="absolute 10 9 108 26" id="caption2" class="search_name"/>
- <Shape position="absolute 1046 6 1052 30" linetype="vertical" id="line2" class="line_4"/>
- <Button position="absolute 1137 7 1193 29" id="button1" class="btn6" text="출력" onclick="grp_button1_onclick"/>
- <Calendar position="absolute 205 8 255 28" id="ipt_year" mask="yyyy" autoselect="true" autoskip="true" dateformat="yyyy" value="null" editformat="yyyy"/>
- <Radio position="absolute 840 8 980 28" id="cmb_gijun" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" style="textpadding:0 3 0 3;" rowcount="-1">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">orddd</Col>
- <Col id="datacolumn">진료일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">rcptexecdd</Col>
- <Col id="datacolumn">수납일자</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- <Tab position="absolute 0 66 1206 792" id="switch1" onchanged="switch1_onchanged">
- <Tabpages>
- <Tabpage text="급종별" id="case1">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 5 1206 660" id="grd_statlist" class="datagrid2" binddataset="ds_main_statinfo" oncelldblclick="switch1_case1_grd_statlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="98"/>
- <Column size="100"/>
- <Column size="75"/>
- <Column size="175"/>
- <Column size="75"/>
- <Column size="175"/>
- <Column size="75"/>
- <Column size="175"/>
- <Column size="75"/>
- <Column size="175"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" text="구분" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="급종" taborder="undefined"/>
- <Cell col="2" colspan="2" text="전월말" taborder="undefined"/>
- <Cell col="4" colspan="2" text="당월증가" taborder="undefined"/>
- <Cell col="6" colspan="2" text="당월감소" taborder="undefined"/>
- <Cell col="8" colspan="2" text="당월말" taborder="undefined"/>
- <Cell row="1" col="2" text="건"/>
- <Cell row="1" col="3" text="금액"/>
- <Cell row="1" col="4" text="건"/>
- <Cell row="1" col="5" text="금액"/>
- <Cell row="1" col="6" text="건"/>
- <Cell row="1" col="7" text="금액"/>
- <Cell row="1" col="8" text="건"/>
- <Cell row="1" col="9" text="금액"/>
- </Band>
- <Band id="body">
- <Cell text="bind:endflag" suppress="1" suppressalign="middle,over"/>
- <Cell col="1" text="bind:insukind"/>
- <Cell col="2" style="align:right middle;" text="bind:yesacccnt"/>
- <Cell col="3" displaytype="number" style="align:right middle;" text="bind:yesaccamt" mask="9,999"/>
- <Cell col="4" style="align:right middle;" text="bind:todaddcnt"/>
- <Cell col="5" displaytype="number" style="align:right middle;" text="bind:todaddamt" mask="9,999"/>
- <Cell col="6" style="align:right middle;" text="bind:todsubcnt"/>
- <Cell col="7" displaytype="number" style="align:right middle;" text="bind:todsubamt" mask="9,999"/>
- <Cell col="8" style="align:right middle;" text="bind:todacccnt"/>
- <Cell col="9" displaytype="number" style="align:right middle;" text="bind:todaccamt" mask="9,999"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="발생년도별" id="case2">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 5 1201 655" id="grd_year" class="datagrid2" binddataset="ds_main_h_year">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="75"/>
- <Column size="125"/>
- <Column size="75"/>
- <Column size="125"/>
- <Column size="75"/>
- <Column size="125"/>
- <Column size="75"/>
- <Column size="125"/>
- <Column size="75"/>
- <Column size="125"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" text="구분" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="급종" taborder="undefined"/>
- <Cell col="2" colspan="2" text="-" taborder="undefined"/>
- <Cell col="4" colspan="2" text="-" taborder="undefined"/>
- <Cell col="6" colspan="2" text="-" taborder="undefined"/>
- <Cell col="8" colspan="2" text="-" taborder="undefined"/>
- <Cell col="10" colspan="2" text="계" taborder="undefined"/>
- <Cell row="1" col="2" text="건"/>
- <Cell row="1" col="3" text="금액"/>
- <Cell row="1" col="4" text="건"/>
- <Cell row="1" col="5" text="금액"/>
- <Cell row="1" col="6" text="건"/>
- <Cell row="1" col="7" text="금액"/>
- <Cell row="1" col="8" text="건"/>
- <Cell row="1" col="9" text="금액"/>
- <Cell row="1" col="10" text="건"/>
- <Cell row="1" col="11" text="금액"/>
- </Band>
- <Band id="body">
- <Cell text="bind:endflag" suppress="1" suppressalign="middle,over"/>
- <Cell col="1" text="bind:insukind"/>
- <Cell col="2" displaytype="number" style="align:right middle;" text="bind:cnt_3" mask="9,999"/>
- <Cell col="3" displaytype="number" style="align:right middle;" text="bind:totamt_3" mask="9,999"/>
- <Cell col="4" displaytype="number" style="align:right middle;" text="bind:cnt_2" mask="9,999"/>
- <Cell col="5" displaytype="number" style="align:right middle;" text="bind:totamt_2" mask="9,999"/>
- <Cell col="6" displaytype="number" style="align:right middle;" text="bind:cnt_1" mask="9,999"/>
- <Cell col="7" displaytype="number" style="align:right middle;" text="bind:totamt_1" mask="9,999"/>
- <Cell col="8" displaytype="number" style="align:right middle;" text="bind:cnt_org" mask="9,999"/>
- <Cell col="9" displaytype="number" style="align:right middle;" text="bind:totamt_org" mask="9,999"/>
- <Cell col="10" displaytype="number" style="align:right middle;" text="bind:cnt_all" mask="9,999"/>
- <Cell col="11" displaytype="number" style="align:right middle;" text="bind:totamt_all" mask="9,999"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static text="(단위 : 원)" position="absolute 1101 68 1201 88" align="align:right middle;" id="caption4" style="align:right middle;font:Dotum,9,bold;"/>
- <Static text="주) 응급실 : 6시간 이상(입원), 6시간 미만(외래)" position="absolute 0 759 263 779" id="caption5"/>
- <Static id="caption60" text="본인부담 의료미수금현황." class="tit_1" position="absolute 0 0 200 25"/>
- </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="enddd" type="STRING" size="256"/>
- <Column id="lastmondd" type="STRING" size="256"/>
- <Column id="thismondd" type="STRING" size="256"/>
- <Column id="year" type="STRING" size="256"/>
- <Column id="year_org" type="STRING" size="256"/>
- <Column id="year_1" type="STRING" size="256"/>
- <Column id="year_2" type="STRING" size="256"/>
- <Column id="year_3" type="STRING" size="256"/>
- <Column id="gijun" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="enddd"/>
- <Col id="lastmondd"/>
- <Col id="thismondd"/>
- <Col id="year"/>
- <Col id="year_org"/>
- <Col id="year_1"/>
- <Col id="year_2"/>
- <Col id="year_3"/>
- <Col id="gijun"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_h_year" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="endflag" type="STRING" size="256" sumtext="구분"/>
- <Column id="insukind" type="STRING" size="256" sumtext="급종"/>
- <Column id="cnt_3" type="STRING" size="256" sumtext="기준년건수_3"/>
- <Column id="totamt_3" type="STRING" size="256" sumtext="기준년금액_3"/>
- <Column id="cnt_2" type="STRING" size="256" sumtext="기준년건수_2"/>
- <Column id="totamt_2" type="STRING" size="256" sumtext="기준년금액_2"/>
- <Column id="cnt_1" type="STRING" size="256" sumtext="기준년건수_1"/>
- <Column id="totamt_1" type="STRING" size="256" sumtext="기준년금액_1"/>
- <Column id="cnt_org" type="STRING" size="256" sumtext="기준년건수"/>
- <Column id="totamt_org" type="STRING" size="256" sumtext="기준년금액"/>
- <Column id="cnt_all" type="STRING" size="256" sumtext="기준년건수_계"/>
- <Column id="totamt_all" type="STRING" size="256" sumtext="기준년금액_계"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_statinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="endflag" type="STRING" size="256" sumtext="구분"/>
- <Column id="insukind" type="STRING" size="256" sumtext="급종"/>
- <Column id="yesacccnt" type="STRING" size="256" sumtext="전월말건"/>
- <Column id="yesaccamt" type="STRING" size="256" sumtext="전월말금액"/>
- <Column id="todaddcnt" type="STRING" size="256" sumtext="당월증가건"/>
- <Column id="todaddamt" type="STRING" size="256" sumtext="당월증가금액 "/>
- <Column id="todsubcnt" type="STRING" size="256" sumtext="당월감소건"/>
- <Column id="todsubamt" type="STRING" size="256" sumtext="당월감소금액"/>
- <Column id="todacccnt" type="STRING" size="256" sumtext="당월말건"/>
- <Column id="todaccamt" type="STRING" size="256" sumtext="당월말금액"/>
- </ColumnInfo>
- </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_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="monthdd" type="STRING" size="256"/>
- <Column id="insukind" type="STRING" size="256"/>
- <Column id="ordtype" type="STRING" size="256"/>
- <Column id="monthgubun" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="monthdd"/>
- <Col id="insukind"/>
- <Col id="ordtype"/>
- <Col id="monthgubun"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp.ipt_enddd" propid="value" datasetid="ds_send" columnid="enddd"/>
- <BindItem id="item1" compid="grp.cmb_gijun" propid="value" datasetid="ds_send" columnid="gijun"/>
- <BindItem id="item2" compid="grp.ipt_year" propid="value" datasetid="ds_send" columnid="year"/>
- </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';
- 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]; //소속기관명
- var dutplcecd = UserInfosS_Array[4]; //근무지부서코드
- var dutplcenm = UserInfosS_Array[5]; //근무지부서명
- var dutinstnm = UserInfosS_Array[7]; //근무지기관명
- 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);
- dsf_makeValue(ds_hidden_session, "dutplcecd", 'string', dutplcecd);
- dsf_makeValue(ds_hidden_session, "dutplcenm", 'string', dutplcenm);
- dsf_makeValue(ds_hidden_session, "dutinstnm", 'string', dutinstnm);
- }
- /**
- * [fSearchPopup description]
- * @param {[type]} col [description]
- * @param {[type]} row [description]
- * @return {[type]} [description]
- */
- function fSearchPopup(col, row) {
- var ordtype = "";
- var insukind = "";
- var monthdd = "";
- var strmonthgubun = "";
- ds_temp.clearData();
- ds_temp.addRow();
- //전월말
- if ((col == 2) || (col == 3)) {
- monthdd = ds_send.getColumn(0, "lastmondd");
- strmonthgubun = "P";
- }
- //당월증가
- if ((col == 4) || (col == 5)) {
- monthdd = ds_send.getColumn(0, "thismondd");
- strmonthgubun = "T";
- }
- //당월감소
- if ((col == 6) || (col == 7)) {
- monthdd = ds_send.getColumn(0, "thismondd");
- strmonthgubun = "T";
- }
- //당월말
- if ((col == 8) || (col == 9)) {
- monthdd = ds_send.getColumn(0, "thismondd");
- strmonthgubun = "K";
- }
- //보험
- if ((row == 0) || (row == 6) || (row == 12)) {
- insukind = "11";
- }
- //급여
- if ((row == 1) || (row == 7) || (row == 13)) {
- insukind = "2%";
- }
- //산재
- if ((row == 2) || (row == 8) || (row == 14)) {
- insukind = "41";
- }
- //자보
- if ((row == 3) || (row == 9) || (row == 15)) {
- insukind = "31";
- }
- //일반
- if ((row == 4) || (row == 10) || (row == 16)) {
- insukind = "-";
- }
- //계
- if ((row == 5) || (row == 11) || (row == 17)) {
- insukind = "%";
- }
- //입원
- if (row >= 0 && row <= 5) {
- ordtype = "I";
- }
- //외래
- if (row >= 6 && row <= 11) {
- ordtype = "O";
- }
- //합계
- if (row >= 12 && row <= 17) {
- ordtype = "%";
- }
- ds_temp.setColumn(0, "monthdd", monthdd);
- ds_temp.setColumn(0, "insukind", insukind);
- ds_temp.setColumn(0, "ordtype", ordtype);
- ds_temp.setColumn(0, "monthgubun", strmonthgubun);
- if ((utlf_transNullToEmpty(monthdd) != "") && (utlf_transNullToEmpty(insukind) != "") && (utlf_transNullToEmpty(ordtype) != "")) {
- frmf_modal("SPPAS01441", "SPPAS01441", { ds_source: ds_temp }, "", "", "", "", "", "", "", "", "", "M");
- }
- }
- /**
- * 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 SMPAS01440_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
- // 현재월을 Default로 넣어주기
- var currentMonth = utlf_getCurrentDate();
- ds_send.setColumn(0, "enddd", currentMonth);
- ds_send.setColumn(0, "year", currentMonth);
- fGetUserInfo2();
- // 전월 말일, 당월 초일 세팅
- var temp = currentMonth.toDate("YYYYMMDD");
- temp.getAddDate(-1, "M");
- var lastmontemp = temp.getDateFormat();
- var lastmondd = lastmontemp.substr(0, 6) + "10"; // DB에서 마지막날짜로 변환시켜줌
- var thismondd = currentMonth.substr(0, 6) + "00";
- ds_send.setColumn(0, "lastmondd", lastmondd);
- ds_send.setColumn(0, "thismondd", thismondd);
- ds_send.setColumn(0, "gijun", "orddd");
- switch1.tablindex = 0;
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_btn_search_onclick(obj: Button, e: ClickEventInfo) {
- if (switch1.tabindex == 0) {
- // 전월 말일, 당월 초일 세팅
- var currentMonth = String(ds_send.getColumn(0, 'enddd'));
- var temp = currentMonth.toDate("YYYYMM");
- temp.getAddDate(-1, "M");
- var lastmontemp = temp.getDateFormat();
- var lastmondd = lastmontemp.substr(0, 6) + "10"; // DB에서 마지막날짜로 세팅해줌
- var thismondd = currentMonth.substr(0, 6) + "00";
- ds_send.setColumn(0, "lastmondd", lastmondd);
- ds_send.setColumn(0, "thismondd", thismondd);
- dsf_createDsRow('ds_TRPAS01442', [
- { col: 'enddd', type: 'string', size: 256, val: '' },
- { col: 'lastmondd', type: 'string', size: 256, val: '' },
- { col: 'thismondd', type: 'string', size: 256, val: '' }
- ], false);
- ds_TRPAS01442.copyRow(0, ds_send, 0);
- ds_main_statinfo.clearData();
- var oParam = {};
- oParam.id = "TRPAS01442";
- oParam.service = "planteamstatsapp.planTeamOrdStats";
- oParam.method = "reqGetOwnUncoAmt";
- oParam.inds = "req=ds_TRPAS01442";
- oParam.outds = "ds_main_statinfo=statinfo";
- oParam.async = false;
- tranf_submit(oParam);
- }
- if (switch1.tabindex == 1) {
- var grd_year_cap = parseInt(String(ds_send.getColumn(0, "year")).substr(0, 4));
- var grd_year_1_cap = grd_year_cap - 1;
- var grd_year_2_cap = grd_year_cap - 2;
- var grd_year_3_cap = grd_year_cap - 3;
- switch1.case2.grd_year.setCellProperty("Head", 2, "text", grd_year_3_cap);
- switch1.case2.grd_year.setCellProperty("Head", 3, "text", grd_year_2_cap);
- switch1.case2.grd_year.setCellProperty("Head", 4, "text", grd_year_1_cap);
- switch1.case2.grd_year.setCellProperty("Head", 5, "text", grd_year_cap);
- dsf_createDsRow('ds_TRPAS01443', [
- { col: 'year', type: 'string', size: 256, val: '' },
- { col: 'gijun', type: 'string', size: 256, val: '' }
- ], false);
- ds_TRPAS01443.copyRow(0, ds_send, 0);
- ds_main_h_year.clearData();
- var oParam = {};
- oParam.id = "TRPAS01443";
- oParam.service = "planteamstatsapp.planTeamOrdStats";
- oParam.method = "reqGetOwnUncoAmt_year";
- oParam.inds = "req=ds_TRPAS01443";
- oParam.outds = "ds_main_h_year=year";
- oParam.async = false;
- tranf_submit(oParam);
- }
- }
- /**
- * EXCEL 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_btn_excel_onclick(obj: Button, e: ClickEventInfo) {
- var enddd = ds_send.getColumn(0, "enddd");
- var year = ds_send.getColumn(0, "year_org");
- if (switch1.tabindex == 0) {
- //엑셀저장 여부(타이틀별)
- grdf_exportExcel(switch1.case1.grd_statlist, "본인부담 의료미수금 현황(" + enddd + ")", "sheet1", false, "", "user", false);
- }
- if (switch1.tabindex == 1) {
- //엑셀저장 여부(타이틀별)
- grdf_exportExcel(switch1.case2.grd_year, "본인부담 의료미수금 현황_발생년도별(" + year + ")", "sheet1", false, "", "user", false);
- }
- }
- /**
- * 출력 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_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 객체 설정
- if (switch1.tabindex == 0) {
- // 본인부담 의료미수금 현황 출력
- rptf_setNodeListToDOM(objDOM, "root/main/statinfo/ret" , ds_main_statinfo);
- rptf_setNodeListToDOM(objDOM, "root/send" , ds_send);
- rptf_setNodeListToDOM(objDOM, "root/hidden/session" , ds_hidden_session);
-
- rptf_exeReportPreview30(["RPPAO03100"],[{ xml_data_XML1: objDOM.documentElement.source }], option);
- }
- if (switch1.tabindex == 1) {
- // 본인부담 의료미수금 현황 출력(발생년도)
- rptf_setNodeListToDOM(objDOM, "root/main/h_year/year" , ds_main_h_year);
- rptf_setNodeListToDOM(objDOM, "root/main/statinfo/ret" , ds_main_statinfo);
- rptf_setNodeListToDOM(objDOM, "root/send" , ds_send);
- rptf_setNodeListToDOM(objDOM, "root/hidden/session" , ds_hidden_session);
-
- rptf_exeReportPreview30(["RPPAO03101"],[{ xml_data_XML1: objDOM.documentElement.source }], option);
- }
- }
- /**
- * 탭 변경 후 이벤트
- * @param {[type]} obj: Tab [description]
- * @param {[type]} e: TabIndexChangeEventInfo [description]
- * @return {[type]} [description]
- */
- function switch1_onchanged(obj: Tab, e: TabIndexChangeEventInfo) {
- if (e.postindex == 0) {
- grp.ipt_enddd.visible = true;
- grp.ipt_year.visible = false;
- grp.cmb_gijun.visible = false;
- }
- else if (e.postindex == 1) {
- grp.ipt_year.position.x = 90;
- grp.ipt_year.position.width = 50;
- grp.ipt_enddd.visible = false;
- grp.ipt_year.visible = true;
- grp.cmb_gijun.visible = true;
- }
- }
- /**
- * 금종별 그리드 셀 더블 클릭 이벤트
- * @param {[type]} obj: Grid [description]
- * @param {[type]} e: GridClickEventInfo [description]
- * @return {[type]} [description]
- */
- function switch1_case1_grd_statlist_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
- //전월말(입원-보험)
- fSearchPopup(e.col, e.row);
- }
- ]]></Script>
- </Form>
- </FDL>
|