123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPIJ02401" position="absolute 0 0 1070 610" titletext="" onload="SPPIJ02401_onload">
- <Layouts>
- <Layout>
- <Button id="btn_excel" class="btn2" position="absolute 1002 5 1066 24" style="" text="엑셀저장" onclick="btn_excel_onclick"/>
- <Static id="caption1" text="항목별 진료비" class="tit_2" position="absolute 5 8 113 24"/>
- <Shape id="line1" class="line_1" position="absolute 0 28 1070 32" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="grd_clodlist" taborder="1" binddataset="ds_main_list1_clod" useinputpanel="false" oncelldblclick="grp_biz_grd_clodlist_oncelldblclick" position="absolute 0 31 1070 610">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="400"/>
- <Column size="140"/>
- <Column size="140"/>
- <Column size="140"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" colspan="2" text="항목" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="명칭" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="심사후금액" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="심사전금액" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="차액" taborder="undefined"/>
- <Cell col="7"/>
- <Cell col="8"/>
- <Cell col="9"/>
- <Cell col="10"/>
- <Cell col="11"/>
- <Cell row="1" col="1" text="항"/>
- <Cell row="1" col="2" 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 celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="align:center middle;" text="bind:item1"/>
- <Cell col="2" style="align:center middle;" text="bind:item2"/>
- <Cell col="3" style="align:left middle;" text="bind:hngnm"/>
- <Cell col="4" displaytype="number" style="align:right middle;" text="bind:aftamt" mask="9,999"/>
- <Cell col="5" displaytype="number" style="align:right middle;" text="bind:bframt" mask="9,999"/>
- <Cell col="6" displaytype="number" style="align:right middle;" text="bind:difamt" mask="9,999"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="payflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="indd"/>
- <Col id="cretno"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="payflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list1_clod" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="item1" type="STRING" size="256" sumtext="항"/>
- <Column id="item2" type="STRING" size="256" sumtext="목"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="명칭"/>
- <Column id="aftamt" type="STRING" size="256" sumtext="(심사후)금액"/>
- <Column id="bframt" type="STRING" size="256" sumtext="(심사전)금액"/>
- <Column id="difamt" type="STRING" size="256" sumtext="항목별 차액"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind/>
- <Script type="xscript4.0"><![CDATA[//=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- function fInitialize() {
- // 부모 폼을 가져온다.
- var parentForm = this.getOwnerFrame().form;
- // 1. opener 에서 key 데이터를 받는다.
- ds_send_data1.setColumn(0, "pid", parentForm.frmf_getParameter("SPPIJ02400_pid"));
- ds_send_data1.setColumn(0, "indd", parentForm.frmf_getParameter("SPPIJ02400_indd"));
- ds_send_data1.setColumn(0, "cretno", parentForm.frmf_getParameter("SPPIJ02400_cretno"));
- ds_send_data1.setColumn(0, "fromdd", parentForm.frmf_getParameter("SPPIJ02400_fromdd"));
- ds_send_data1.setColumn(0, "todd", parentForm.frmf_getParameter("SPPIJ02400_todd"));
- ds_send_data1.setColumn(0, "payflag", parentForm.frmf_getParameter("SPPIJ02400_payflag"));
-
- // 2. 항목별 심사전후 진료비 차액을 구한다.
- if (utlf_transNullToEmpty(ds_send_data1.getColumn(0, "pid")) != "") {
- ds_main_list1_clod.clearData();
-
- var oParam = {};
- oParam.id = "TRPIJ02401";
- oParam.service = "bfjudgapp.InJudgDifAmt";
- oParam.method = "reqGetInJudgItemDifAmtList";
- oParam.inds = "req=ds_send_data1";
- oParam.outds = "ds_main_list1_clod=clod";
- oParam.async = false;
- tranf_submit(oParam);
- }
- }
- /**
- * 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 SPPIJ02401_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
-
- //oOpener = frmf_getoOpener();
- }
- /**
- * 엑셀저장 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_excel_onclick(obj: Button, e: ClickEventInfo) {
- grdf_exportExcel(grd_clodlist, "excel", "SheetName", true, "", "user", false);
- sysf_messageBox("EXCEL 저장이 완료되었습니다.", "I999");
- }
- /**
- * 항목별 진료비 그리드 셀 더블 클릭 이벤트
- * 호출하려는 부모 form 에서는 fGetJudgDetlDifAmtList 메서드가 정의되어 있어야 한다
- * @param {[type]} obj: Grid [description]
- * @param {[type]} e: GridClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_biz_grd_clodlist_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
- var row = grd_clodlist.currentrow;
- var item1 = utlf_transNullToEmpty(ds_main_list1_clod.getColumn(row, "item1"));
- var item2 = utlf_transNullToEmpty(ds_main_list1_clod.getColumn(row, "item2"));
- if (item1 != "" && item2 != "") {
- opener.fGetJudgDetlDifAmtList(item1, item2);
- }
- }]]></Script>
- </Form>
- </FDL>
|