123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAHA03500" position="absolute 0 0 1196 672" titletext="부서별 기준량 등록" oninit="SMAHA03500_oninit" onload="SMAHA03500_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="유형별 계산기준" class="tit_1" position="absolute 0 0 186 25"/>
- <Div id="grp_sea" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 25 1195 65">
- <Layouts>
- <Layout>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1130 10 1186 32" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
- <Static id="caption7" text="건진구분 :" class="search_name" position="absolute 10 12 97 29"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1112 9 1118 33" anchor="top right"/>
- <CheckBox id="checkbox1" taborder="2" text="포함" truevalue="Y" position="absolute 306 10 351 30" onclick="grp_sea_checkbox1_onclick"/>
- <Static id="caption2" text="삭제포함 :" class="search_name" position="absolute 220 12 294 29"/>
- <Combo id="cmb_healexamflag" taborder="3" innerdataset="@ds_init_baseinfo_healexamflaglst_A0068" codecolumn="cdid" datacolumn="cdnm" position="absolute 97 11 197 30" onitemchanged="grp_sea_cmb_healexamflag_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line1" class="line_10" position="absolute 0 89 1195 95" anchor="left top right"/>
- <Static id="cap_titlist" text="청구방법별 부담율" class="tit_2" position="absolute 0 73 190 95"/>
- <Button id="btn_grdadd" taborder="2" text="행추가" class="btn2" position="absolute 1087 67 1140 89" anchor="top right" onclick="btn_grdadd_onclick"/>
- <Button id="btn_grddel" taborder="3" text="행삭제" class="btn2" position="absolute 1142 67 1195 89" anchor="top right" onclick="btn_grddel_onclick"/>
- <Grid id="grd_ahbmcalclist" taborder="4" binddataset="ds_main_ahbmcalcinfo_item" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 94 1195 644" anchor="all" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="134"/>
- <Column size="171"/>
- <Column size="120"/>
- <Column size="0"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="120"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <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="행위가산율1"/>
- <Cell col="9" text="행위가산율2"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : 'none'" style="align:left middle;padding:0 0 0 3;" text="bind:healexamflag" combodataset="ds_init_baseinfo_srchhealexamflaglst_A0068" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20" enable="false"/>
- <Cell col="2" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : 'none'" style="align:left middle;padding:0 0 0 3;" text="bind:healexamdetlflag" combodataset="ds_init_baseinfo_healexamdetlflaglst_item" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20" id="colflag" enable="false"/>
- <Cell col="3" displaytype="date" edittype="date" text="bind:todd"/>
- <Cell col="4" text="bind:instcd"/>
- <Cell col="5" displaytype="date" edittype="date" text="bind:fromdd"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:basecalcscorappflag"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:addcalcscorappflag"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:corpactaddrate"/>
- <Cell col="9" displaytype="text" edittype="text" text="bind:corpactaddrate2"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_save" taborder="5" text="저장" class="btn4" position="absolute 1069 647 1125 669" anchor="right bottom" onclick="btn_save_onclick"/>
- <Button id="btn_clear" taborder="6" text="초기화" class="btn4" position="absolute 1126 647 1194 669" anchor="right bottom" onclick="btn_clear_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchhealexamflag" type="STRING" size="256"/>
- <Column id="srchhealexamdetlflag" type="STRING" size="256"/>
- <Column id="srchcalcstat" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchhealexamflag"/>
- <Col id="srchhealexamdetlflag"/>
- <Col id="srchcalcstat"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_baseinfo_healexamflaglst_A0068" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_ahbmcalcinfo_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="healexamflag" type="STRING" size="256" sumtext="건진구분"/>
- <Column id="healexamdetlflag" type="STRING" size="256" sumtext="건진상세분류"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="적용시작일"/>
- <Column id="basecalcscorappflag" type="STRING" size="256" sumtext="기본검사적용수가"/>
- <Column id="addcalcscorappflag" type="STRING" size="256" sumtext="추가검사적용수가"/>
- <Column id="corpactaddrate" type="STRING" size="256" sumtext="행위가산율1"/>
- <Column id="corpactaddrate2" type="STRING" size="256" sumtext="행위가산율2"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_baseinfo_healexamdetlflaglst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_baseinfo_srchhealexamflaglst_A0068" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_baseinfo_chedetlflaglst_A0069" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_baseinfo_ghedetlflaglst_A0070" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_save_savecalc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.checkbox1" propid="value" datasetid="ds_send_srch" columnid="srchcalcstat"/>
- <BindItem id="item1" compid="grp_sea.cmb_healexamflag" propid="value" datasetid="ds_send_srch" columnid="srchhealexamflag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "ast_healexamxp::AHA001.xjs";
- var m_vHealexamflag = "";
- var m_vHealexamdetlflag = "";
- function SMAHA03500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMAHA03500_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_ahbmcalclist);
- grdf_setRowTypeIcon(grd_ahbmcalclist, 0);
-
- fInit();
- fGetBaseInfo();
- }
- function fInit()
- {
- ds_main_ahbmcalcinfo_item.clearData();
- ds_send_srch.clearData();
- ds_send_srch.addRow();
-
- grp_sea.cmb_healexamflag.index = 0;
- }
- function fGetBaseInfo()
- {
- var vHeFgLen = fGetHealExamFlag().length;
- var vHeFg = fGetHealExamFlag();
- var vHeFgCd = "";
- if( String(vHeFg).substr(0,1) == "C" )
- {
- vHeFgCd = "A0069";
- }
- else
- {
- vHeFgCd = "A0070";
- }
-
- var arrParam = [{dsNm: "ds_init_baseinfo_healexamflaglst_A0068", cdGrpId: "A0068"}
- ,{dsNm: "ds_init_baseinfo_srchhealexamflaglst_A0068", cdGrpId: "A0068"}
- ,{dsNm: "ds_init_baseinfo_chedetlflaglst_A0069", cdGrpId: "A0069"}
- ,{dsNm: "ds_init_baseinfo_ghedetlflaglst_A0070", cdGrpId: "A0070"}]
- appf_getCodeList(arrParam);
- frmf_addComboItem("grp_sea.cmb_healexamflag","전체","","above");
-
- ds_init_baseinfo_healexamdetlflaglst_item.copyData(ds_init_baseinfo_chedetlflaglst_A0069);
- ds_init_baseinfo_healexamdetlflaglst_item.appendData(ds_init_baseinfo_ghedetlflaglst_A0070);
-
- ds_send_srch.setColumn(0, "srchhealexamflag", String(vHeFg).substr(0,1));
- frmf_inputEnterKey("grp_sea.cmb_healexamflag", "onitemchanged", new ItemChangeEventInfo );
- }
- function grp_sea_cmb_healexamflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fGetCalcList();
- }
- function fGetCalcList()
- {
- var oParam = {};
- oParam.id = "TRAHA03501";
- oParam.service = "healthexambaseapp.ComCode";
- oParam.method = "reqGetCalclist";
- oParam.inds = "req=ds_send_srch";
- oParam.outds = "ds_main_ahbmcalcinfo_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHA03501";
- tranf_submit(oParam);
- }
- function grp_sea_checkbox1_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == "Y")
- {
- }
- else
- {
- ds_send_srch.setColumn(0, "srchcalcstat", "");
- }
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetCalcList();
- }
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- var addRow = ds_main_ahbmcalcinfo_item.addRow();
- var cur_date = utlf_getCurrentDate();
- ds_main_ahbmcalcinfo_item.setColumn(addRow, "healexamflag", ds_send_srch.getColumn(0, "srchhealexamflag"));
- ds_main_ahbmcalcinfo_item.setColumn(addRow, "healexamdetlflag", ds_send_srch.getColumn(0, "srchhealexamdetlflag"));
- ds_main_ahbmcalcinfo_item.setColumn(addRow, "fromdd", cur_date);
- ds_main_ahbmcalcinfo_item.setColumn(addRow, "todd", "29991231");
-
- if(utlf_isNull(ds_send_srch.getColumn(0, "srchhealexamflag")))
- {
- ds_main_ahbmcalcinfo_item.setColumn(addRow, "healexamflag", "C");
- }
- else
- {
- ds_main_ahbmcalcinfo_item.setColumn(addRow, "healexamflag", ds_send_srch.getColumn(0, "srchhealexamflag"));
- }
- ds_main_ahbmcalcinfo_item.setColumn(addRow, "corpactaddrate", "0");
- ds_main_ahbmcalcinfo_item.setColumn(addRow, "corpactaddrate2", "0");
- }
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- var rows = grdf_getSelectedRows(grd_ahbmcalclist);
- for(var i = rows.length-1; i >= 0; i--)
- {
- var m_row = rows[i];
- if(ds_main_ahbmcalcinfo_item.getRowType(m_row) == 2)
- {
- ds_main_ahbmcalcinfo_item.deleteRow(m_row);
- }
- else
- {
- ds_main_ahbmcalcinfo_item.updatecontrol = false;
- ds_main_ahbmcalcinfo_item.setRowType(m_row, "d");
- ds_main_ahbmcalcinfo_item.updatecontrol = true;
- }
- }
- }
- function btn_clear_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(grd_ahbmcalclist).rowcount;
-
- if (updtdata != 0)
- {
- var ret = sysf_messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6)
- {
- return;
- }
- }
- fInit();
- fGetCalcList();
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if (fDatacheck() == false)
- {
- return;
- }
- fSaveCalc();
- }
- function fDatacheck()
- {
- var rsv_cnt = ds_main_ahbmcalcinfo_item.rowcount;
- var sNode = ds_main_ahbmcalcinfo_item;
- var scdid1 = "";
- var scdid2 = "";
- for( var i = 0; i < rsv_cnt ; i++)
- {
- if( utlf_isNull(sNode.getColumn(i , "healexamflag")))
- {
- alert("건진구분의 값이 비어있습니다.");
- return false;
- }
-
- if (ds_main_ahbmcalcinfo_item.getColumn(i, "healexamflag") != String(ds_main_ahbmcalcinfo_item.getColumn(i, "healexamdetlflag")).substr(0,1))
- {
- if (ds_main_ahbmcalcinfo_item.getColumn(i, "healexamflag") == "C" )
- {
- alert("종합건진의 건진상세분류만 가능합니다");
- }
- else
- {
- alert("일반건진의 건진상세분류만 가능합니다");
- }
- ds_main_ahbmcalcinfo_item.rowposition = i;
- return false;
- }
-
- if( utlf_isNull(sNode.getColumn(i , "todd")))
- {
- alert("종료일자의 값이 비어있습니다.");
- return false;
- }
- if( utlf_isNull(sNode.getColumn(i , "fromdd")))
- {
- alert("적용시작일의 값이 비어있습니다.");
- return false;
- }
- if( utlf_isNull(sNode.getColumn(i , "basecalcscorappflag")))
- {
- alert("기본검사적용수가의 값이 비어있습니다.");
- return false;
- }
- if( utlf_isNull(sNode.getColumn(i , "addcalcscorappflag")))
- {
- alert("추가검사적용수가의 값이 비어있습니다.");
- return false;
- }
- if( utlf_isNull(sNode.getColumn(i , "corpactaddrate")))
- {
- alert("행위가산율의 값이 비어있습니다.");
- return false;
- }
- scdid1 = ds_main_ahbmcalcinfo_item.getColumn(i, "healexamdetlflag");
- var k = i + 1;
- for (var j = k; j < ds_main_ahbmcalcinfo_item.rowcount; j++)
- {
- scdid2 = ds_main_ahbmcalcinfo_item.getColumn(j, "healexamdetlflag");
- if (i != j)
- {
- if (scdid1 == scdid2)
- {
- sysf_messageBox(parseInt(j+1) + "번째에서 중복된 자료가 존재합니다", "E999", "");
- return false;
- }
- }
- }
- }
- return true;
- }
- function fSaveCalc()
- {
- if(sysf_messageBox("조합코드정보를","Q002") == 6)
- {
- var updategrid = grdf_getGridUpdateData(grd_ahbmcalclist);
- grdf_setStatusColumn(updategrid, "m");
- ds_send_save_savecalc.copyData(updategrid, true);
-
- var oParam = {};
- oParam.id = "TXAHA03501";
- oParam.service = "healthexambaseapp.ComCode";
- oParam.method = "reqExeCalclist";
- oParam.inds = "req=ds_send_save_savecalc";
- oParam.outds = "ds_=item";
- oParam.async = false;
- oParam.callback = "cf_TXAHA03501";
- tranf_submit(oParam);
- }
- }
- function cf_TXAHA03501(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- fGetCalcList();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|