123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SMPIJ01100" position="absolute 0 0 865 525" titletext="Untitle" onload="SMPIJ01100_onload">
- <Layouts>
- <Layout>
- <Div id="group1" position="absolute 0 0 845 13" style="">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 0 124 13" style="" text="중간청구 등록관리" />
- </Layout>
- </Layouts>
- </Div>
- <Div id="group3" scrollbars="autoboth" position="absolute 0 13 845 470" style="">
- <Layouts>
- <Layout>
- <Div id="group2" position="absolute 5 10 845 80" style="align: top;">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" anchor="default" position="absolute 0 0 835 65" style="border: solid #ffd799 #ffd799;background:#fffbf2 ;" />
- <Static id="caption3" class="search_name" position="absolute 15 9 101 26" style="" text="등록변호 :" />
- <Static id="caption5" class="search_name" position="absolute 468 9 554 26" style="" text="주부유형 :" />
- <Static id="caption2" class="search_name" position="absolute 254 9 340 26" style="" text="입원일자 :" />
- <Edit id="ipt_pid" class="input_search" position="absolute 104 8 189 27" style="" anchor="default" onkeypress="group3_group2_ipt_pid_onkeypress" />
- <Calendar id="ipt_indd" class="input_search" position="absolute 348 8 438 27" style="" anchor="default" onkeypress="group3_group2_ipt_indd_onkeypress" />
- <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cbo_mskind" class="combo_search" position="absolute 557 8 639 27" style="" onkeypress="group3_group2_cbo_mskind_onkeypress">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" />
- <Column id="datacolumn" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">M</Col>
- <Col id="datacolumn">주보험</Col>
- </Row>
- <Row>
- <Col id="codecolumn">S</Col>
- <Col id="datacolumn">부보험</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Button id="btn_srch" class="btn1_letter2" position="absolute 760 5 816 27" style="" text="조회" onclick="group3_group2_btn_srch_onclick" />
- <Edit id="opt_ownrate" class="output_fix" position="absolute 460 35 490 54" style="" anchor="default" readonly="true" />
- <Static id="caption10" class="search_name" position="absolute 15 35 101 52" style="" text="보험유형 :" />
- <Static id="caption11" class="search_name" position="absolute 255 35 348 52" style="" text="보호_요율 :" />
- <Edit id="opt_insukindcd" class="output_fix" position="absolute 104 35 139 54" style="" anchor="default" readonly="true" />
- <Edit id="opt_insukind" class="output_fix" position="absolute 145 35 240 54" style="" anchor="default" readonly="true" />
- <Edit id="opt_suppkindcd" class="output_fix" position="absolute 357 35 392 54" style="" anchor="default" readonly="true" />
- <Edit id="opt_suppkind" class="output_fix" position="absolute 395 35 455 54" style="" anchor="default" readonly="true" />
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" class="tit_2" position="absolute 5 85 182 98" style="" text="중간청구(분리청구) 리스트" />
- <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 100 840 103" style="" anchor="default" />
- <Grid id="grd_midc" binddataset="ds_main_list1_gridmidc" position="absolute 0 100 840 445" style="" ontextchanged="group3_grd_midc_ontextchanged" onstartedit="group3_grd_midc_onstartedit" onmouseover="group3_grd_midc_onmouseover">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="97" />
- <Column size="109" />
- <Column size="91" />
- <Column size="97" />
- <Column size="111" />
- <Column size="87" />
- <Column size="117" />
- <Column size="107" />
- </Columns>
- <Rows>
- <Row size="23" band="head" />
- <Row size="23" />
- </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="seqno" />
- <Cell col="11" text="기관기호" />
- <Cell col="12" text="주부유형" />
- <Cell col="13" text="상태" />
- <Cell col="14" text="확인자id" />
- <Cell col="15" text="확인여부" />
- <Cell col="16" text="확인일자" />
- <Cell col="17" text="청구키" />
- <Cell col="18" text="수정상태" />
- <Cell col="19" text="최초등록자" />
- <Cell col="20" text="최초등록일시" />
- </Band>
- <Band id="body">
- <Cell text="bind:fromdd" />
- <Cell col="1" text="bind:todd" />
- <Cell col="2" text="bind:insukind" />
- <Cell col="3" text="bind:suppkind" />
- <Cell col="4" text="bind:totordamt" />
- <Cell col="5" text="bind:lastupdtrid" />
- <Cell col="6" text="bind:lastupdtdt" />
- <Cell col="7" text="bind:clamdd" />
- <Cell col="8" text="bind:pid" />
- <Cell col="9" text="bind:indd" />
- <Cell col="10" text="bind:seqno" />
- <Cell col="11" text="bind:instcd" />
- <Cell col="12" text="bind:mskind" />
- <Cell col="13" text="bind:stat" />
- <Cell col="14" text="bind:cnfmrid" />
- <Cell col="15" text="bind:cnfmyn" />
- <Cell col="16" text="bind:confmdt" />
- <Cell col="17" text="bind:clamkey" />
- <Cell col="18" text="bind:rowstat" />
- <Cell col="19" text="bind:fstrgstrid" />
- <Cell col="20" text="bind:fstrgstdt" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_addrow" class="btn2_letter3" position="absolute 730 80 783 99" style="" text="행추가" onclick="group3_btn_addrow_onclick" />
- <Button id="btn_delrow" class="btn2_letter3" position="absolute 786 80 839 99" style="" text="행삭제" onclick="group3_btn_delrow_onclick" />
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_btn" scrollbars="autoboth" position="absolute 0 465 845 500" style="">
- <Layouts>
- <Layout>
- <Shape id="line32" class="line_6" linetype="horizontal" position="absolute 0 0 840 3" style="" anchor="default" />
- <Button id="btn_clear" class="btn4_letter3" position="absolute 710 5 778 27" style="" text="초기화" onclick="grp_btn_btn_clear_onclick" />
- <Button id="btn_cancel" class="btn4_letter2" position="absolute 781 5 837 27" style="" text="취소" onclick="grp_btn_btn_cancel_onclick" />
- <Button id="btn_save" class="btn4_letter2" position="absolute 650 5 706 27" style="" text="저장" onclick="grp_btn_btn_save_onclick" />
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_item1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_item1_iteminpt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="insukind" type="STRING" size="256" />
- <Column id="insukindcd" type="STRING" size="256" />
- <Column id="suppkind" type="STRING" size="256" />
- <Column id="suppkindcd" type="STRING" size="256" />
- <Column id="ownrate" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="insukind"></Col>
- <Col id="insukindcd"></Col>
- <Col id="suppkind"></Col>
- <Col id="suppkindcd"></Col>
- <Col id="ownrate"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" 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="mskind" type="STRING" size="256" />
- <Column id="midclist" type="STRING" size="256" />
- <Column id="fromdate" type="STRING" size="256" />
- <Column id="todate" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"></Col>
- <Col id="indd"></Col>
- <Col id="mskind"></Col>
- <Col id="midclist"></Col>
- <Col id="fromdate"></Col>
- <Col id="todate"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="totordamt" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hidden"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="init" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="init"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="gridmidc" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="gridmidc"></Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.ipt_pid" propid="value" datasetid="ds_send" columnid="pid" />
- <BindItem id="item1" compid="group3.group2.ipt_indd" propid="value" datasetid="ds_send" columnid="indd" />
- <BindItem id="item2" compid="group3.group2.cbo_mskind" propid="value" datasetid="ds_send" columnid="mskind" />
- <BindItem id="item3" compid="group3.group2.opt_ownrate" propid="value" datasetid="ds_main_item1_iteminpt" columnid="ownrate" />
- <BindItem id="item4" compid="group3.group2.opt_insukindcd" propid="value" datasetid="ds_main_item1_iteminpt" columnid="insukindcd" />
- <BindItem id="item5" compid="group3.group2.opt_insukind" propid="value" datasetid="ds_main_item1_iteminpt" columnid="insukind" />
- <BindItem id="item6" compid="group3.group2.opt_suppkindcd" propid="value" datasetid="ds_main_item1_iteminpt" columnid="suppkindcd" />
- <BindItem id="item7" compid="group3.group2.opt_suppkind" propid="value" datasetid="ds_main_item1_iteminpt" columnid="suppkind" />
- </Bind>
- <Script type="xscript4.0"><![CDATA[function SMPIJ01100_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- fInitialize();
- //[개발 중 메모]
- // 1) ZBC001.js => com.ZBCCODEM에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
- }
- include '../../.._com_commonweb_js_common.js'
- include '../../.._com_commonweb_js_numericHelper.js'
- include '../../.._com_commonweb_js_dateHelper.js'
- include '../../.._com_commonweb_js_stringHelper.js'
- include '../../.._com_commonweb_js_tfHelper.js'
- include '../../.._com_basiccodeweb_js_ZBC001.js'
- // 화면 open시(와 초기화 버튼 클릭시) 화면 초기화 기능을 수행한다.
- function fInitialize() {
- group3.group2.cbo_mskind.select(0);
- ds_main_list1_gridmidc.clearData();
- ds_main_item1_iteminpt.setColumn( 0, "insukind","");
- ds_main_item1_iteminpt.setColumn( 0, "insukindcd","");
- ds_main_item1_iteminpt.setColumn( 0, "suppkind","");
- ds_main_item1_iteminpt.setColumn( 0, "suppkindcd","");
- ds_main_item1_iteminpt.setColumn( 0, "ownrate","");
- var pid = ds_send.getColumn(0, "pid");
- if(pid != "")
- {
- fSetMidClamList();
- fGetMidClamList();
- }
- //model.refresh();
- }
- //분할청구내역을 조회 한다.
- function fGetMidClamList(){
- // alert(group3.group2.cbo_mskind.value);
- var insukindcd = ds_main_item1_iteminpt.getColumn(0, "insukindcd");
- if(insukindcd != ""){
- ds_main_item1_iteminpt.setColumn( 0, "insukind","");
- ds_main_item1_iteminpt.setColumn( 0, "insukindcd","");
- ds_main_item1_iteminpt.setColumn( 0, "suppkind","");
- ds_main_item1_iteminpt.setColumn( 0, "suppkindcd","");
- ds_main_item1_iteminpt.setColumn( 0, "ownrate","");
- }
- ds_send.setColumn( 0, "mskind",group3.group2.cbo_mskind.value);
- if(group3.group2.ipt_pid.text.length >0)
- {
- ds_main_list1_gridmidc.clearData();
- // submit("TRPIJ01101");
- var oParam = {};
- oParam.id = "TRPIJ01101";
- oParam.service = "bfjudgapp.MdlClamRgst";
- oParam.method = "reqGetMdlClamRgstList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=gridmidc";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ01101";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ01101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ01101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ01101") > -1
- arErrorCode.pop("TRPIJ01101") < 0
- */
- ds_main_item1_iteminpt.clearData();
- // submit("TRPIJ01102");
- var oParam = {};
- oParam.id = "TRPIJ01102";
- oParam.service = "bfjudgapp.MdlClamRgst";
- oParam.method = "reqGetInsukind";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=iteminpt";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ01102";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ01102(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ01102(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ01102") > -1
- arErrorCode.pop("TRPIJ01102") < 0
- */
- //model.refresh();
- }else
- {
- sysf_messageBox("환자번호를","C001");
- }
- }
- function fSetMidClamList(){
- var pid = opener.ds_send.getColumn(0, "pid");
- var indd = opener.ds_send.getColumn(0, "indd");
- if (pid != "") {
- ds_send.setColumn( 0, "pid", pid);
- ds_send.setColumn( 0, "indd", indd);
- ds_send.setColumn( 0, "mskind",group3.group2.cbo_mskind.value);
- //obj.updateToDataset();
- // submit("TRPIJ01101");
- var oParam = {};
- oParam.id = "TRPIJ01101";
- oParam.service = "bfjudgapp.MdlClamRgst";
- oParam.method = "reqGetMdlClamRgstList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=gridmidc";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ01101";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ01101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ01101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ01101") > -1
- arErrorCode.pop("TRPIJ01101") < 0
- */
- group3.grd_midc.resizeCells();
- //model.refresh();
- }
- }
- function group3_group2_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(event.keyCode == '13'){
- if(group3.group2.ipt_pid.text.isNumber()){
- // if(group3.group2.ipt_pid.text.length< 8){
- // group3.group2.ipt_pid.text = group3.group2.ipt_pid.text.getleftPad(8, '0');
- // group3.group2.ipt_indd.setFocus();
- // }
- // else{
- // group3.group2.ipt_indd.setFocus();
- // }
- group3.group2.ipt_indd.setFocus();
- // }
- }else{
- sysf_messageBox("환자번호를 정확히","C001");
- }
- }
- }
- function group3_group2_ipt_indd_onkeydown(obj:Calendar, e:KeyEventInfo) {
- if(event.keyCode == '13'){
- if(group3.group2.ipt_indd.text.length != ""){
- group3.group2.cbo_mskind.setFocus();
- }
- }
- }
- function group3_group2_cbo_mskind_onkeydown(obj:Combo, e:KeyEventInfo) {
- if(event.keyCode == '13'){
- if(group3.group2.ipt_indd.text.length != ""){
- group3.group2.btn_srch.setFocus();
- }
- }
- }
- function group3_group2_btn_srch_onclick(obj:Button, e:ClickEventInfo) {
- var updtdata = getGridUpdateData(group3.grd_midc);
- if(updtdata != "")
- {
- var ret = sysf_messageBox("그리드에 작업중인 내용이 있습니다. 조회 작업을","Q003");
- if(ret != 6){
- return;
- }
- }
- fGetMidClamList();
- }
- function group3_grd_midc_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo) {
- if(group3.grd_midc.row >1){
- var row_stat = group3.grd_midc.rowStatus(group3.grd_midc.row-1);
- var new_todd = ds_main_list1_gridmidc.getColumn(group3.grd_midc.row, "fromdd") ;
- var thisYear = new_todd.substring(0,4); // 현재 입력된 연
- var thisMonth = new_todd.substring(4,6); // 현재 입력된 월
- var thisDay = new_todd.substring(6,8); // 현재 입력된 일
- var nextDate = new Date(thisYear, (thisMonth - 1), thisDay);
- nextDate.setHours(-24); // 24시간 뒤인 다음날 날짜를 구한다.
- var nextfromdd = "";
- nextfromdd += nextDate.getYear();
- if ((nextDate.getMonth() + 1) < 10) {
- nextfromdd += "0" + (nextDate.getMonth() + 1);
- }
- else {
- nextfromdd += (nextDate.getMonth() + 1);
- }
- if (nextDate.getDate() < 10) {
- nextfromdd += "0" + nextDate.getDate();
- }
- else {
- nextfromdd += nextDate.getDate();
- }
- if(row_stat != 4){
- if( model.getValue("ds_main_list1_gridmidc[" + (group3.grd_midc.row -1 )+ " ]_fromdd") > nextfromdd){
- // alert( model.getValue("ds_main_list1_gridmidc[" +( group3.grd_midc.row -1 )+ " ]_fromdd")+ "/" + nextfromdd);
- sysf_messageBox("시작일자를 오류","E008");
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_fromdd",new_todd);
- return;
- }
- ds_main_list1.setColumn( 0, "gridmidc[" + (group3.grd_midc.row - 1) + " ]_todd", nextfromdd);
- }
- if(row_stat != 1){
- if(row_stat != 3){
- if(row_stat != 4){
- group3.grd_midc.rowStatus(group3.grd_midc.row -1) = 2;
- }
- }
- }
- //현재 추가된 Row의 총진료비를 조회 한다.
- ds_send.setColumn( 0, "fromdate",ds_main_list1_gridmidc.getColumn(group3.grd_midc.row, "fromdd"));
- ds_send.setColumn( 0, "todate",ds_main_list1_gridmidc.getColumn(group3.grd_midc.row, "todd"));
- ds_temp.setColumn( 0, "totordamt", "0");
- //총진료비를 조회하여 넣어 준다.
- // if ( submit("TRPIJ01103") ) {
- var oParam = {};
- oParam.id = "TRPIJ01103";
- oParam.service = "bfjudgapp.MdlClamRgst";
- oParam.method = "reqGetTotOrdAmt";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=temp";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ01103";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ01103(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ01103(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ01103") > -1
- arErrorCode.pop("TRPIJ01103") < 0
- */
- var totordamt = ds_temp.getColumn(0, "totordamt");
- if(totordamt != "0"){
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_totordamt",totordamt);
- }
- //model.refresh();
- }
- //이전줄의 금액도 다시 계산을 해준다.
- ds_send.setColumn( 0, "fromdate",model.getValue("ds_main_list1_gridmidc[" + (group3.grd_midc.row - 1)+ " ]_fromdd"));
- ds_send.setColumn( 0, "todate",model.getValue("ds_main_list1_gridmidc[" +( group3.grd_midc.row -1)+ " ]_todd"));
- ds_temp.setColumn( 0, "totordamt", "0");
- //총진료비를 조회하여 넣어 준다.
- // if ( submit("TRPIJ01103") ) {
- var oParam = {};
- oParam.id = "TRPIJ01103";
- oParam.service = "bfjudgapp.MdlClamRgst";
- oParam.method = "reqGetTotOrdAmt";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=temp";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ01103";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ01103(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ01103(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ01103") > -1
- arErrorCode.pop("TRPIJ01103") < 0
- */
- var totordamt = ds_temp.getColumn(0, "totordamt");
- if(totordamt != "0"){
- ds_main_list1.setColumn( 0, "gridmidc[" + (group3.grd_midc.row - 1) + " ]_totordamt",totordamt);
- }
- //model.refresh();
- }
- //model.refresh();
- }
- }
- function group3_grd_midc_onstartedit {
- if( group3.grd_midc.rowData(group3.grd_midc.row) == "disabled" )
- event.defaultAction = "cancel";
- }
- function group3_grd_midc_onmouseover {
- if( group3.grd_midc.rowData(group3.grd_midc.mouseRow) == "disabled" ) {
- group3.grd_midc.colDisabled(group3.grd_midc.mouseCol) = true;
- }
- else {
- group3.grd_midc.colDisabled(group3.grd_midc.mouseCol) = false;
- }
- }
- function group3_btn_addrow_onclick(obj:Button, e:ClickEventInfo) {
- if(group3.grd_midc.row < 1){
- group3.grd_midc.addrow();
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_fromdd", ds_send.getColumn(0, "indd"));
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_todd","29991231");
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_insukind",ds_main_item1_iteminpt.getColumn(0, "insukindcd"));
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_suppkind",ds_main_item1_iteminpt.getColumn(0, "suppkindcd"));
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_pid",ds_send.getColumn(0, "pid"));
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_indd",ds_send.getColumn(0, "indd"));
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_mskind",ds_send.getColumn(0, "mskind"));
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_indd",ds_send.getColumn(0, "indd"));
- //현재 Row의 총진료비를 구한다.
- ds_send.setColumn( 0, "fromdate",ds_main_list1_gridmidc.getColumn(group3.grd_midc.row, "fromdd"));
- ds_send.setColumn( 0, "todate",ds_main_list1_gridmidc.getColumn(group3.grd_midc.row, "todd"));
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_totordamt","0");
- ds_temp.setColumn( 0, "totordamt", "0");
- //총진료비를 조회하여 넣어 준다.
- // if ( submit("TRPIJ01103") ) {
- var oParam = {};
- oParam.id = "TRPIJ01103";
- oParam.service = "bfjudgapp.MdlClamRgst";
- oParam.method = "reqGetTotOrdAmt";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=temp";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ01103";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ01103(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ01103(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ01103") > -1
- arErrorCode.pop("TRPIJ01103") < 0
- */
- var totordamt = ds_temp.getColumn(0, "totordamt");
- if(totordamt != "0"){
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_totordamt",totordamt);
- }
- //model.refresh();
- }
- return;
- }
- if(group3.grd_midc.row >= 1)
- {
- var chk_date = ds_main_list1_gridmidc.getColumn((group3.grd_midc.row), "fromdd");
- if ( chk_date == ""){
- return;
- }
- group3.grd_midc.addrow();
- model.copyNode("ds_main_list1_gridmidc[" + group3.grd_midc.row + " ]", "ds_main_list1_gridmidc[" + (group3.grd_midc.row-1) + " ]");
- //기본적으로 오늘날짜를 선택해준다. - 데이터 없이 저장하는것을 방지하기 위하여.
- var tmp_day = new Date();
- var tmp_year = tmp_day.getYear();
- var tmp_month = tmp_day.getMonth() +1;
- var tmp_date = tmp_day.getDate();
- if(tmp_month <10 ){
- tmp_month = "0" + tmp_month;
- }
- if(tmp_date <10 ){
- tmp_date = "0" + tmp_date;
- }
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_fromdd",tmp_year + tmp_month + tmp_date);
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_todd","29991231");
- //윗줄의 데이터 바꿔준다.
- var row_stat = group3.grd_midc.rowStatus(group3.grd_midc.row-1);
- var new_todd = tmp_year + tmp_month + tmp_date ;
- var thisYear = new_todd.substring(0,4); // 현재 입력된 연
- var thisMonth = new_todd.substring(4,6); // 현재 입력된 월
- var thisDay = new_todd.substring(6,8); // 현재 입력된 일
- var nextDate = new Date(thisYear, (thisMonth - 1), thisDay);
- nextDate.setHours(-24); // 24시간 뒤인 다음날 날짜를 구한다.
- var nextfromdd = "";
- nextfromdd += nextDate.getYear();
- if ((nextDate.getMonth() + 1) < 10) {
- nextfromdd += "0" + (nextDate.getMonth() + 1);
- }
- else {
- nextfromdd += (nextDate.getMonth() + 1);
- }
- if (nextDate.getDate() < 10) {
- nextfromdd += "0" + nextDate.getDate();
- }
- else {
- nextfromdd += nextDate.getDate();
- }
- if(row_stat != 4){
- ds_main_list1.setColumn( 0, "gridmidc[" + (group3.grd_midc.row - 1) + " ]_todd", nextfromdd);
- }
- if(row_stat != 1){
- if(row_stat != 3){
- if(row_stat != 4){
- group3.grd_midc.rowStatus(group3.grd_midc.row -1) = 2;
- }
- }
- }
- //현재 추가된 Row의 총진료비를 조회 한다.
- ds_send.setColumn( 0, "fromdate",ds_main_list1_gridmidc.getColumn(group3.grd_midc.row, "fromdd"));
- ds_send.setColumn( 0, "todate",ds_main_list1_gridmidc.getColumn(group3.grd_midc.row, "todd"));
- ds_temp.setColumn( 0, "totordamt", "0");
- //총진료비를 조회하여 넣어 준다.
- // if ( submit("TRPIJ01103") ) {
- var oParam = {};
- oParam.id = "TRPIJ01103";
- oParam.service = "bfjudgapp.MdlClamRgst";
- oParam.method = "reqGetTotOrdAmt";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=temp";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ01103";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ01103(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ01103(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ01103") > -1
- arErrorCode.pop("TRPIJ01103") < 0
- */
- var totordamt = ds_temp.getColumn(0, "totordamt");
- if(totordamt != "0"){
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_totordamt",totordamt);
- }
- //model.refresh();
- }
- //이전줄의 금액도 다시 계산을 해준다.
- ds_send.setColumn( 0, "fromdate",model.getValue("ds_main_list1_gridmidc[" + (group3.grd_midc.row - 1)+ " ]_fromdd"));
- ds_send.setColumn( 0, "todate",model.getValue("ds_main_list1_gridmidc[" +( group3.grd_midc.row -1)+ " ]_todd"));
- ds_temp.setColumn( 0, "totordamt", "0");
- //총진료비를 조회하여 넣어 준다.
- // if ( submit("TRPIJ01103") ) {
- var oParam = {};
- oParam.id = "TRPIJ01103";
- oParam.service = "bfjudgapp.MdlClamRgst";
- oParam.method = "reqGetTotOrdAmt";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=temp";
- oParam.async = false;
- oParam.callback = "cf_TRPIJ01103";
- tranf_submit(oParam);
- /*
- function cf_TRPIJ01103(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIJ01103(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIJ01103") > -1
- arErrorCode.pop("TRPIJ01103") < 0
- */
- var totordamt = ds_temp.getColumn(0, "totordamt");
- if(totordamt != "0"){
- ds_main_list1.setColumn( 0, "gridmidc[" + (group3.grd_midc.row - 1) + " ]_totordamt",totordamt);
- }
- //model.refresh();
- }
- for(var i =group3.grd_midc.fixedRows;i < group3.grd_midc.rows -1 ; i++){
- group3.grd_midc.rowData(i) = "disabled";
- }
- }
- //model.refresh();
- }
- function group3_btn_delrow_onclick(obj:Button, e:ClickEventInfo) {
- if(model.getValue("ds_main_list1_gridmidc[" + (group3.grd_midc.row )+ " ]_clamkey") != ""){
- sysf_messageBox("이미 청구된 내역이 있는 자료는 삭제","E001");
- return;
- }
- if(model.getValue("ds_main_list1_gridmidc[" + (group3.grd_midc.row - 1)+ " ]_clamkey") != ""){
- sysf_messageBox("이미 분할청구된 내역이 있으므로 마지막 자료는 삭제","E001");
- return;
- }
- group3.grd_midc.removeitem();
- ds_main_list1.setColumn( 0, "gridmidc[" + group3.grd_midc.row + " ]_todd","29991231");
- //group3.grd_midc.refresh();
- }
- function grp_btn_btn_clear_onclick(obj:Button, e:ClickEventInfo) {
- ds_send.setColumn( 0, "pid","");
- ds_send.setColumn( 0, "indd","");
- ds_send.setColumn( 0, "mskind","M");
- fInitialize();
- group3.group2.ipt_pid.setFocus();
- }
- function grp_btn_btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
- window.close(); //F5 실행시 IE를 종료시킨다.
- }
- function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo) {
- var updtdata = getGridUpdateData(group3.grd_midc);
- if (updtdata == "") {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
- if(group3.grd_midc.rows <= 1)
- {
- return;
- }
- //data grid에 잘못된 값이 존재하는 지 체크한다. - fromdd, todd
- for( i = group3.grd_midc.fixedRows; i < group3.grd_midc.rows ; i++ ) {
- var fromdd = group3.grd_midc.valueMatrix(i,1);
- if(fromdd <= ""){
- sysf_messageBox("시작일자는","I003");
- return;
- }
- var todd = group3.grd_midc.valueMatrix(i,2);
- if(todd <= ""){
- sysf_messageBox("종료일자는0","I003");
- return;
- }
- }
- ds_send.setColumn( 0, "midclist",group3.grd_midc.getUpdateData());
- // if ( submit("TXPIJ01101") ) {
- var oParam = {};
- oParam.id = "TXPIJ01101";
- oParam.service = "bfjudgapp.MdlClamRgst";
- oParam.method = "reqExeSaveMdlClam";
- oParam.inds = "req=ds_";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPIJ01101";
- tranf_submit(oParam);
- /*
- function cf_TXPIJ01101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXPIJ01101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXPIJ01101") > -1
- arErrorCode.pop("TXPIJ01101") < 0
- */
- group3.grd_midc.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- sysf_messageBox("저장이","I002");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|