123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SMPID23400" position="absolute 0 0 1210 752" titletext="추가청구생성" onload="SMPID23400_onload">
- <Layouts>
- <Layout>
- <Div id="group3" scrollbars="autoboth" position="absolute 0 0 1160 700" style="">
- <Layouts>
- <Layout>
- <Static id="caption10" class="tit_2" position="absolute 5 5 175 18" style="" text="외래추가청구생성" />
- <Div id="group2" position="absolute 5 23 1155 63" style="align: top;">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" anchor="default" class="roundrerct_search" type="roundrectangle" position="absolute 5 2 1150 37" style="" />
- <Button id="btn_srch" class="btn1_letter2" taborder="4" position="absolute 1005 7 1061 29" style="" text="조회" onclick="group3_group2_btn_srch_onclick" onkeyup="group3_group2_btn_srch_onkeyup" />
- <Static id="caption6" position="absolute 300 11 311 29" style="" text="~" />
- <Shape id="line1" class="line_4" linetype="vertical" position="absolute 990 4 993 31" style="" anchor="default" />
- <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_reference" taborder="1" position="absolute 110 11 195 30" style="">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" />
- <Column id="datacolumn" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">실시일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">정산일자</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Calendar id="ipt_todd" class="input_search" taborder="3" position="absolute 320 11 405 30" style="" anchor="default" onkeyup="group3_group2_ipt_todd_onkeyup" />
- <Static id="caption5" class="search_name" position="absolute 15 11 95 28" style="" text="조회조건 :" />
- <Calendar id="ipt_fromdd" class="input_search" taborder="2" position="absolute 208 11 293 30" style="" anchor="default" onkillfocus="group3_group2_ipt_fromdd_onkillfocus" />
- <Edit id="ipt_pid" class="input_s_essential" position="absolute 535 8 690 27" style="" anchor="default" onkeyup="group3_group2_ipt_pid_onkeyup" />
- <Static id="caption2" class="search_name" position="absolute 435 10 521 27" style="" text="등록번호 :" />
- <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="opt_clammode" visible="false" position="absolute 825 9 925 24" style="font:,,bold;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" />
- <Column id="datacolumn" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">추가</Col>
- </Row>
- <Row>
- <Col id="codecolumn">B</Col>
- <Col id="datacolumn">누락</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption9" class="search_name" position="absolute 725 9 820 26" style="" text="추가_누락 :" />
- <Button id="btn_create" class="btn4_letter2" position="absolute 1075 7 1131 29" style="" text="생성" onclick="group3_group2_btn_create_onclick" />
- </Layout>
- </Layouts>
- </Div>
- <Tab id="swt_add" position="absolute 10 75 1160 655" style="border: solid #c7a3cf #c7a3cf;" anchor="default">
- <Tabpages>
- <Tabpage id="case_summary" selected="true" position="absolute 0 0 1148 600" style="" anchor="default">
- <Layouts>
- <Layout>
- <Shape id="line17" class="line_1" linetype="horizontal" position="absolute 7 25 1142 28" style="" anchor="default" />
- <Button id="btn_cnclexcel" class="btn2_letter4" position="absolute 1065 5 1129 24" style="" text="엑셀저장" onclick="group3_swt_add_case_summary_btn_cnclexcel_onclick" />
- <Grid id="grd_cretlist" binddataset="ds_main_list_createlist" position="absolute 9 30 1139 555" style="" oncelldblclick="group3_swt_add_case_summary_grd_cretlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40" />
- <Column size="0" />
- <Column size="66" />
- <Column size="65" />
- <Column size="70" />
- <Column size="90" />
- <Column size="100" />
- <Column size="80" />
- <Column size="100" />
- <Column size="105" />
- <Column size="80" />
- <Column size="100" />
- <Column size="105" />
- <Column size="100" />
- <Column size="78" />
- <Column size="90" />
- <Column size="90" />
- <Column size="110" />
- <Column size="70" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- <Column size="83" />
- <Column size="81" />
- <Column size="72" />
- <Column size="70" />
- <Column size="80" />
- <Column size="80" />
- <Column size="60" />
- <Column size="80" />
- <Column size="80" />
- <Column size="100" />
- <Column size="120" />
- <Column size="140" />
- <Column size="100" />
- </Columns>
- <Rows>
- <Row size="24" band="head" />
- <Row size="24" />
- </Rows>
- <Band id="head">
- <Cell text="선택" />
- <Cell col="1" text="IO" />
- <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="수가코드" />
- <Cell col="11" text="시행일" />
- <Cell col="12" text="이력상태" />
- <Cell col="13" text="입원외래구분" />
- <Cell col="14" text="진료과코드" />
- <Cell col="15" text="진료의ID" />
- <Cell col="16" text="보험유형" />
- <Cell col="17" text="보조유형" />
- <Cell col="18" text="전급비구분" />
- <Cell col="19" text="후보험유형" />
- <Cell col="20" text="후보조유형" />
- <Cell col="21" text="후급비구분" />
- <Cell col="22" text="정산일" />
- <Cell col="23" text="수집일" />
- <Cell col="24" text="등록번호순번" />
- <Cell col="25" text="청구세부과" />
- <Cell col="26" text="심사자" />
- <Cell col="27" text="청구삭제여부" />
- <Cell col="28" text="최초접수일시" />
- <Cell col="29" text="최초접수자" />
- <Cell col="30" text="최종접수일시" />
- <Cell col="31" text="최종접수자" />
- <Cell col="32" text="데이터발생구분" />
- <Cell col="33" text="청구키" />
- <Cell col="34" text="진료분야" />
- </Band>
- <Band id="body">
- <Cell text="bind:chk" />
- <Cell col="1" text="bind:clammode" />
- <Cell col="2" text="bind:clamym" />
- <Cell col="3" text="bind:clamdg" />
- <Cell col="4" text="bind:pid" />
- <Cell col="5" text="bind:orddd" />
- <Cell col="6" text="bind:cretno" />
- <Cell col="7" text="bind:prcpdd" />
- <Cell col="8" text="bind:prcpno" />
- <Cell col="9" text="bind:snglcalcscorcd" />
- <Cell col="10" text="bind:execdd" />
- <Cell col="11" text="bind:histstat" />
- <Cell col="12" text="bind:ioflag" />
- <Cell col="13" text="bind:orddeptcd" />
- <Cell col="14" text="bind:orddrid" />
- <Cell col="15" text="bind:preinsukind" />
- <Cell col="16" text="bind:presuppkind" />
- <Cell col="17" text="bind:prcppayflag" />
- <Cell col="18" text="bind:aftinsukind" />
- <Cell col="19" text="bind:aftsuppkind" />
- <Cell col="20" text="bind:aftprcppayflag" />
- <Cell col="21" text="bind:acntdd" />
- <Cell col="22" text="bind:clamdd" />
- <Cell col="23" text="bind:pidsn" />
- <Cell col="24" text="bind:clamdeptcd" />
- <Cell col="25" text="bind:judgrid" />
- <Cell col="26" text="bind:delyn" />
- <Cell col="27" text="bind:fstrgstdt" />
- <Cell col="28" text="bind:fstrgstrid" />
- <Cell col="29" text="bind:lastupdtdt" />
- <Cell col="30" text="bind:lastupdtrid" />
- <Cell col="31" text="bind:dataflag" />
- <Cell col="32" text="bind:clamkey" />
- <Cell col="33" text="bind:ordfildcd" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group1" scrollbars="autoboth" position="absolute 10 680 1160 715" style="">
- <Layouts>
- <Layout>
- <Shape id="line32" class="line_6" linetype="horizontal" position="absolute 0 0 1099 3" style="" anchor="default" />
- <Button id="btn_close" class="btn4_letter2" position="absolute 1085 5 1141 27" style="" text="닫기" onclick="group1_btn_close_onclick" />
- <Button id="btn_reset" class="btn4_letter3" position="absolute 1010 5 1110 27" style="" text="초기화" onclick="group1_btn_reset_onclick" />
- <Button id="btn_chuga" class="btn3_letter12" position="absolute 15 5 119 27" style="" text="외래추가청구대상자조회" onclick="group1_btn_chuga_onclick" />
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_pam_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_send_search2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="clamym" type="STRING" size="256" />
- <Column id="instcd" type="STRING" size="256" />
- <Column id="fstrgstrid" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="clamym"></Col>
- <Col id="instcd"></Col>
- <Col id="fstrgstrid"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_pam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="reference" type="STRING" size="256" />
- <Column id="fromdd" type="STRING" size="256" />
- <Column id="todd" type="STRING" size="256" />
- <Column id="pid" type="STRING" size="256" />
- <Column id="clammode" type="STRING" size="256" />
- <Column id="instcd" type="STRING" size="256" />
- <Column id="clamym" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="reference"></Col>
- <Col id="fromdd"></Col>
- <Col id="todd"></Col>
- <Col id="pid"></Col>
- <Col id="clammode"></Col>
- <Col id="instcd"></Col>
- <Col id="clamym"></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 />
- </Dataset>
- <Dataset id="ds_main_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="createlist" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="createlist"></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_init_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_init_P0010list_P0010" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256" />
- <Column id="cdid" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"></Col>
- <Col id="cdid"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="reference" type="STRING" size="256" />
- <Column id="fromdd" type="STRING" size="256" />
- <Column id="todd" type="STRING" size="256" />
- <Column id="pid" type="STRING" size="256" />
- <Column id="clammode" type="STRING" size="256" />
- <Column id="instcd" type="STRING" size="256" />
- <Column id="clamym" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="reference">1</Col>
- <Col id="fromdd"></Col>
- <Col id="todd"></Col>
- <Col id="pid"></Col>
- <Col id="clammode"></Col>
- <Col id="instcd"></Col>
- <Col id="clamym"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="insertchk" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="insertchk"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_P0008list_P0008" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256" />
- <Column id="cdid" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"></Col>
- <Col id="cdid"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_insertdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="addCreate" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="addCreate"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_pam_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256" />
- <Column id="nm" type="STRING" size="256" />
- <Column id="dp" type="STRING" size="256" />
- <Column id="sp" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_P0010list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_init_pam_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256" />
- <Column id="nm" type="STRING" size="256" />
- <Column id="deptengabbr" type="STRING" size="256" />
- <Column id="reqdeptno" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd"></Col>
- <Col id="nm"></Col>
- <Col id="deptengabbr"></Col>
- <Col id="reqdeptno"></Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.cmb_reference" propid="value" datasetid="ds_temp" columnid="reference" />
- <BindItem id="item1" compid="group3.group2.ipt_todd" propid="value" datasetid="ds_temp" columnid="todd" />
- <BindItem id="item2" compid="group3.group2.ipt_fromdd" propid="value" datasetid="ds_temp" columnid="fromdd" />
- <BindItem id="item3" compid="group3.group2.ipt_pid" propid="value" datasetid="ds_temp" columnid="pid" />
- <BindItem id="item4" compid="group3.group2.opt_clammode" propid="value" datasetid="ds_temp" columnid="clammode" />
- </Bind>
- <Script type="xscript4.0"><![CDATA[function SMPID23400_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- var arrParam = [ {dsNm: "ds_init_P0008list", "ds_init_P0010list",
- cdGrpId: "P0008", "P0010" } ];
- appf_getCodeList(arrParam, );
- fInitialize();
- }
- 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 '../../.._pam_pamcomnweb_js_PAM.js'
- include '../../.._com_commonweb_js_utilHelper.js'
- include '../../.._com_basiccodeweb_js_ZBC001.js'
- include '../../.._pam_calcscormngtweb_js_PIC001.js'
- function fInitialize(){
- ds_main_list_cretlist.clearData(); //그리드 초기화
- ds_temp.setColumn( 0, "todd", "");
- ds_temp.setColumn( 0, "pid", "");
- // 날짜 초기화 (시작일은 오늘 날짜, 종료일은 30일 뒤)
- var now = new Date();
- var year= now.getFullYear();
- var mon = (now.getMonth()+1)>9 ? ''+(now.getMonth()+1) : '0'+(now.getMonth()+1);
- var day = now.getDate()>9 ? ''+now.getDate() : '0'+now.getDate();
- var fromdd = year+mon+day;
- var todd = new Date(Date.parse(fromdd) + 30 * 1000 * 60 * 60 * 24);
- ds_temp.setColumn( 0, "fromdd", fromdd);
- //ds_temp.setColumn( 0, "todd", todd);
- ds_temp.setColumn( 0, "todd", "");
- group3.group2.ipt_todd.setFocus();
- ds_main_list.clearData();
- //model.refresh();
- }
- function fSearchchk(refNo)
- {
- var sFromdd = ds_temp.getColumn(0, "fromdd");
- var sTodd = ds_temp.getColumn(0, "todd");
- //var sDd = sTodd - sFromdd;
- var sFromym = ds_temp.getColumn(0, "fromdd").substr(0,6);
- var sToym = ds_temp.getColumn(0, "todd").substr(0,6);
- var sFy = sFromdd.substr(0, 4);
- var sFm = sFromdd.substr(4, 2);
- var sFd = sFromdd.substr(6, 2);
- var sTy = sTodd.substr(0, 4);
- var sTm = sTodd.substr(4, 2);
- var sTd = sTodd.substr(6, 2);
- var sSd = new Date(sFy, sFm-1, sFd);
- var sEd = new Date(sTy,sTm-1,sTd);
- var rstFrom = sSd.getTime();
- var rstEnd = sEd.getTime();
- var sDd = Math.ceil((rstEnd - rstFrom) / (24 * 60 * 60 * 1000));
- if (refNo == '1' || refNo == '2'){
- if (sFromdd == null || sFromdd == "" || sFromdd == " "){
- sysf_messageBox("시작일자가 없습니다!","E999","");
- ds_temp.setColumn( 0, "fromdd","");
- //model.refresh();
- group3.group2.ipt_fromdd.setFocus();
- return false;
- }
- if (sTodd == null || sTodd == "" || sTodd == " " || sTodd == "-"){
- sysf_messageBox("종료일자가 없습니다!","E999","");
- ds_temp.setColumn( 0, "todd","");
- //model.refresh();
- group3.group2.ipt_todd.setFocus();
- return false;
- }else if (sFromym != sToym){
- sysf_messageBox("시작연월과 종료년월은 같아야 합니다!","E999","");
- //ds_temp.setColumn( 0, "todd","");
- //model.refresh();
- group3.group2.ipt_todd.setFocus();
- }
- if (sDd > '31'){
- sysf_messageBox("조회기간은 31일을 넘길수 없습니다!","E999","");
- ds_temp.setColumn( 0, "todd","");
- //model.refresh();
- group3.group2.ipt_todd.setFocus();
- return false;
- }else if (sDd < '0'){
- sysf_messageBox("시작일자가 종료일자보다 클수는 없습니다!","E999","");
- ds_temp.setColumn( 0, "todd","");
- //model.refresh();
- group3.group2.ipt_todd.setFocus();
- return false;
- }
- }else{
- sysf_messageBox("조회조건이 없습니다!","E999","");
- ds_temp.setColumn( 0, "reference", "");
- group3.group2.cmb_reference.setFocus();
- return false;
- }
- return true;
- }
- function group3_group2_btn_srch_onclick(obj:Button, e:ClickEventInfo) {
- ///__
- var refNo = ds_temp.getColumn(0, "reference");
- if (fSearchchk(refNo) == true){
- ds_send_search.setColumn( 0, "reference", ds_temp.getColumn(0, "reference"));
- ds_send_search.setColumn( 0, "fromdd", ds_temp.getColumn(0, "fromdd"));
- ds_send_search.setColumn( 0, "todd", ds_temp.getColumn(0, "todd"));
- ds_send_search.setColumn( 0, "pid", ds_temp.getColumn(0, "pid"));
- ds_send_search.setColumn( 0, "clammode", ds_temp.getColumn(0, "clammode"));
- // submit("TRPID23401"); //추가, 누락 청구 대상자 조회
- var oParam = {};
- oParam.id = "TRPID23401";
- oParam.service = "aftjudgapp.OutAddCreate";
- oParam.method = "reqGetAddCreateList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=createlist";
- oParam.async = false;
- oParam.callback = "cf_TRPID23401";
- tranf_submit(oParam);
- /*
- function cf_TRPID23401(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPID23401(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPID23401") > -1
- arErrorCode.pop("TRPID23401") < 0
- */
- ds_hidden.setColumn( 0, "insertchk", "0"); //생성 후 다시 생성을 막기위해 조회를 하면 플레그 값 바꿔줌
- }
- }
- function group3_group2_btn_srch_onkeyup(obj:Button, e:KeyEventInfo) {
- if (event.keyCode == '13') {
- obj.updateToDataset();
- group3.group2.btn_srch.dispatch("onclick");
- }
- }
- function group3_group2_ipt_todd_onkeyup(obj:Calendar, e:KeyEventInfo) {
- if (event.keyCode == '13') {
- var sLenchk = ds_temp.getColumn(0, "todd");
- if (sLenchk.length == 8){
- group3.group2.btn_srch.dispatch("onclick");
- }
- }
- }
- function group3_group2_ipt_fromdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
- var sLenchk = ds_temp.getColumn(0, "fromdd");
- if (sLenchk.length == 8){
- var lastdate=new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); //각 달의 마지막 날짜
- var sFromyy = ds_temp.getColumn(0, "fromdd").substr(0, 4);
- var sFrommm = ds_temp.getColumn(0, "fromdd").substr(4, 2);
- if((0==sFromyy%4 && 0!=sFromyy%100) || 0==sFromyy%400){ //year를 가지고 윤년인지 검사.
- lastdate[1]=29; /*윤년인 경우 2월의 마지막 날짜를 29로 입력*/
- }
- var sFromdd = lastdate[sFrommm-1];
- var sTodd = sFromyy+sFrommm+sFromdd;
- ds_temp.setColumn( 0, "todd", sTodd);
- //group3.group2.ipt_todd.refresh();
- }
- }
- function group3_group2_ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo) {
- if (event.keyCode == '13') {
- obj.updateToDataset();
- group3.group2.btn_srch.dispatch("onclick");
- }
- }
- function group3_group2_btn_create_onclick(obj:Button, e:ClickEventInfo) {
- //ds_send_insertdata_addCreate.copyData(ds_main_list_createlist);
- var sInsertchk = ds_hidden.getColumn(0, "insertchk");
- if (sInsertchk == 0){ // 생성 후 조회를 안하고 다시 생성하는 것을 막기 위해서 추가
- // submit("TXPID23401");
- var oParam = {};
- oParam.id = "TXPID23401";
- oParam.service = "aftjudgapp.OutAddCreate";
- oParam.method = "insOutAddCreate";
- oParam.inds = "req=ds_";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPID23401";
- tranf_submit(oParam);
- /*
- function cf_TXPID23401(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXPID23401(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXPID23401") > -1
- arErrorCode.pop("TXPID23401") < 0
- */
- ds_send_search2.setColumn( 0, "clamym", ds_temp.getColumn(0, "fromdd").substr(0,6));
- // submit("TRPID23402");
- var oParam = {};
- oParam.id = "TRPID23402";
- oParam.service = "aftjudgapp.OutAddCreate";
- oParam.method = "reqGetCreateList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=createlist";
- oParam.async = false;
- oParam.callback = "cf_TRPID23402";
- tranf_submit(oParam);
- /*
- function cf_TRPID23402(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPID23402(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPID23402") > -1
- arErrorCode.pop("TRPID23402") < 0
- */
- ds_hidden.setColumn( 0, "insertchk", "1"); // 생성 후 플리그 값 넣어줌 ( 생성 후 같은 데이터 생성 막기 위해)
- }else if (sInsertchk == 1){
- sysf_messageBox("조회를 하시고 생성을 눌러주세요!","E999","");
- }
- }
- function group3_swt_add_case_summary_btn_cnclexcel_onclick(obj:Button, e:ClickEventInfo) {
- if (grd_summary.rows > 1) {
- var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_summary.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
- }
- } else {
- sysf_messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
- }
- }
- function group3_swt_add_case_summary_grd_cretlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- //var row = grd_summary.row;
- //if( isDataCell() && row > 0 ){
- // ds_send.setColumn( 0, "fromdd",ds_temp.getColumn(0, "fromdd").removeMask('\n'));
- // ds_send.setColumn( 0, "todd",ds_temp.getColumn(0, "todd").removeMask('\n'));
- // ds_send.setColumn( 0, "pid",ds_temp.getColumn(0, "pid"));
- // ds_send.setColumn( 0, "aftacntyn",ds_temp.getColumn(0, "aftacntyn"));
- // ds_send.setColumn( 0, "preinsukind",ds_temp.getColumn(0, "preinsukind"));
- // ds_send.setColumn( 0, "presuppkind",ds_temp.getColumn(0, "presuppkind"));
- // ds_send.setColumn( 0, "aftinsukind",ds_temp.getColumn(0, "aftinsukind"));
- // ds_send.setColumn( 0, "aftsuppkind",ds_temp.getColumn(0, "aftsuppkind"));
- // ds_send.setColumn( 0, "orddeptcd",ds_temp.getColumn(0, "orddeptcd"));
- // ds_send.setColumn( 0, "orddrid",ds_temp.getColumn(0, "orddrid"));
- // ds_send.setColumn( 0, "histstat",ds_temp.getColumn(0, "histstat"));
- // ds_send.setColumn( 0, "clamym",ds_main_list2_summary.getColumn(row, "clamym_1")));//
- // ds_send.setColumn( 0, "clamdg",ds_main_list2_summary.getColumn(row, "clamdg_1")));//
- // ds_send.setColumn( 0, "reqfild",ds_main_list2_summary.getColumn(row, "reqfild_1")));//
- // ds_send.setColumn( 0, "clammode",ds_main_list2_summary.getColumn(row, "clammode_1"))); //
- // ds_send.setColumn( 0, "judgrid",ds_temp.getColumn(0, "judgrid"));
- // ds_send.setColumn( 0, "acting",ds_temp.getColumn(0, "acting"));
- // submit("TRPID23100");
- // group3.swt_add.selectedIndex = 1;
- // btn_summary.selected = false;
- // btn_pat.selected = true;
- // btn_code.selected = false;
- // button3.visible = true;
- // button4.visible = true;
- // btn_choi.enable = true;
- // btn_del.enable = true;
- // group3.group2.btn_srch.enable = false;
- //}
- }
- function group1_btn_close_onclick(obj:Button, e:ClickEventInfo) {
- window.close(); // F5 실행시 IE를 종료시킨다.
- }
- function group1_btn_reset_onclick(obj:Button, e:ClickEventInfo) {
- fInitialize();
- }
- function group1_btn_chuga_onclick(obj:Button, e:ClickEventInfo) {
- frmf_modal("SMPID23100", "", ""-"", "", "3", "", "", "", "", "", "", "", "M");
- }
- ]]></Script>
- </Form>
- </FDL>
|