123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPID23400" position="absolute 0 0 1144 662" titletext="추가청구생성" oninit="SMPID23400_oninit" onload="SMPID23400_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1144 660" id="group3" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <Div position="absolute -1 23 1141 63" align="align:center top;" id="group2" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" type="roundrectangle" class="roundrerct_search" position="absolute 1 2 1138 37" anchor="left top right"/>
- <Button position="absolute 1001 8 1057 30" id="btn_srch" class="btn1" taborder="4" text="조회" onclick="group3_group2_btn_srch_onclick" anchor="top right"/>
- <Static text="~" position="absolute 190 9 201 27" id="caption6" anchor="default"/>
- <Shape position="absolute 983 5 989 32" linetype="vertical" id="line1" class="line_4" anchor="top right"/>
- <Combo position="absolute 308 9 393 28" id="cmb_reference" taborder="1" visible="false" codecolumn="value" datacolumn="label" innerdataset="@ds_cmb_reference" anchor="default"/>
- <Calendar position="absolute 210 9 295 28" id="ipt_todd" class="input_search" taborder="3" onkeyup="group3_group2_ipt_todd_onkeyup" anchor="default"/>
- <Static text="정산일자 :" position="absolute 15 11 105 28" id="caption5" class="search_name" anchor="default"/>
- <Calendar position="absolute 98 9 183 28" id="ipt_fromdd" class="input_search" taborder="2" onchanged="group3_group2_ipt_fromdd_onchanged" anchor="default"/>
- <Edit position="absolute 520 9 675 28" id="ipt_pid" class="input_s_essential" onkeydown="group3_group2_ipt_pid_onkeydown" anchor="default"/>
- <Static text="등록번호 :" position="absolute 435 10 521 27" id="caption2" class="search_name" anchor="default"/>
- <Radio position="absolute 814 7 914 30" id="opt_clammode" visible="false" columncount="5" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
- <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 text="추가/누락 :" position="absolute 723 11 818 28" id="caption9" class="search_name" visible="false" anchor="default"/>
- <Button position="absolute 1071 8 1127 30" id="btn_create" class="btn4" text="생성" onclick="group3_group2_btn_create_onclick" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="외래추가청구생성" position="absolute 0 5 170 26" id="caption10" class="tit_2" anchor="default"/>
- <Tab position="absolute 0 60 1142 640" id="swt_add" class="tab_Normal" anchor="all">
- <Tabpages>
- <Tabpage text="" position="absolute 0 0 1148 600" id="case_summary">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 17 1135 30" linetype="horizontal" id="line17" class="line_10" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Button position="absolute 1054 0 1134 19" id="btn_cnclexcel" class="btn7" text="엑셀저장" onclick="group3_swt_add_case_summary_btn_cnclexcel_onclick" anchor="top right"/>
- <Grid position="absolute 0 25 1133 550" id="grd_cretlist" binddataset="ds_main_cretlist" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="40"/>
- <Column size="0"/>
- <Column size="66"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="90"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="105"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="78"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="110"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="83"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="선택"/>
- <Cell col="2" text="IO"/>
- <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="진료과코드"/>
- <Cell col="16" text="진료의ID"/>
- <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="청구키"/>
- <Cell col="35" text="진료분야"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2"/>
- <Cell col="3" displaytype="combo" edittype="combo" style="align:center;" text="bind:clammode" combodataset="ds_cmb_clammode" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="4" text="bind:clamym" enable="false"/>
- <Cell col="5" text="bind:clamdg" enable="false"/>
- <Cell col="6" text="bind:pid" enable="false"/>
- <Cell col="7" displaytype="date" text="bind:orddd" mask="yyyy-MM-dd" enable="false"/>
- <Cell col="8" text="bind:cretno" enable="false"/>
- <Cell col="9" displaytype="date" text="bind:rcptdd" mask="yyyy-MM-dd" enable="false"/>
- <Cell col="10" displaytype="text" style="align:center middle;" text="bind:prcpno" enable="false"/>
- <Cell col="11" style="align:center middle;" text="bind:snglcalcscorcd" enable="false"/>
- <Cell col="12" displaytype="date" text="bind:execdd" mask="yyyy-MM-dd" enable="false"/>
- <Cell col="13" displaytype="combo" edittype="combo" text="bind:histstat" enable="false"/>
- <Cell col="14" displaytype="combo" edittype="combo" text="bind:ioflag"/>
- <Cell col="15" text="bind:orddeptcd" enable="false"/>
- <Cell col="16" text="bind:orddrid" enable="false"/>
- <Cell col="17" displaytype="combo" edittype="normal" style="align:center;" text="bind:insukind" combodataset="ds_init_P0008list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="18" displaytype="combo" edittype="none" style="align:center;" text="bind:suppkind" combodataset="ds_init_P0010list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="19" text="bind:prcppayflag"/>
- <Cell col="20" text="bind:aftinsukind"/>
- <Cell col="21" text="bind:aftsuppkind"/>
- <Cell col="22" text="bind:aftprcppayflag"/>
- <Cell col="23" displaytype="date" text="bind:acntdd" mask="yyyy-MM-dd" enable="false"/>
- <Cell col="24" text="bind:clamdd" mask="yyyy-mm-dd"/>
- <Cell col="25" text="bind:pidsn"/>
- <Cell col="26" text="bind:clamdeptcd"/>
- <Cell col="27" text="bind:judgrid"/>
- <Cell col="28" text="bind:delyn"/>
- <Cell col="29" text="bind:fstrgstdt"/>
- <Cell col="30" text="bind:fstrgstrid"/>
- <Cell col="31" text="bind:lastupdtdt"/>
- <Cell col="32" text="bind:lastupdtrid"/>
- <Cell col="33" text="bind:dataflag"/>
- <Cell col="34" text="bind:clamkey"/>
- <Cell col="35" text="bind:ordfildcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 3 623 1137 658" id="group1" scrollbars="autoboth" anchor="left right bottom">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 1099 6" linetype="horizontal" id="line32" class="line_6" anchor="left top right"/>
- <Button position="absolute 1074 5 1130 27" id="btn_close" class="btn4" text="닫기" onclick="group1_btn_close_onclick" anchor="right bottom"/>
- <Button position="absolute 999 5 1067 27" id="btn_reset" class="btn4" text="초기화" onclick="group1_btn_reset_onclick" anchor="right bottom"/>
- <Button position="absolute 1 5 177 27" id="btn_chuga" class="btn3" text="외래추가청구대상자조회" onclick="group1_btn_chuga_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_cretlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관기호"/>
- <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
- <Column id="orddd" type="STRING" size="256" sumtext="외래등록일자"/>
- <Column id="cretno" type="STRING" size="256" sumtext="외래생성번호"/>
- <Column id="rcptdd" type="STRING" size="256" sumtext="영수증처리일자"/>
- <Column id="prcpno" type="STRING" size="256" sumtext="영수증번호"/>
- <Column id="prcpdd" type="STRING" size="256" sumtext="prcpdd"/>
- <Column id="execdd" type="STRING" size="256" sumtext="시행일자"/>
- <Column id="histstat" type="STRING" size="256" sumtext="이력상태"/>
- <Column id="clammode" type="STRING" size="256" sumtext="청구구분"/>
- <Column id="ioflag" type="STRING" size="256" sumtext="입원외래구분"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의ID"/>
- <Column id="insukind" type="STRING" size="256" sumtext="전 보험유형"/>
- <Column id="suppkind" type="STRING" size="256" sumtext="전 보조유형"/>
- <Column id="prcppayflag" type="STRING" size="256" sumtext="전 급비구분"/>
- <Column id="aftinsukind" type="STRING" size="256" sumtext="후 보험유형"/>
- <Column id="aftsuppkind" type="STRING" size="256" sumtext="후 보조유형"/>
- <Column id="aftprcppayflag" type="STRING" size="256" sumtext="후 급비 구분"/>
- <Column id="acntdd" type="STRING" size="256" sumtext="정산일자"/>
- <Column id="clamdd" type="STRING" size="256" sumtext="수집일자"/>
- <Column id="clamym" type="STRING" size="256" sumtext="청구년월"/>
- <Column id="clamdg" type="STRING" size="256" sumtext="청구차수"/>
- <Column id="pidsn" type="STRING" size="256" sumtext="등록번호순번"/>
- <Column id="clamdeptcd" type="STRING" size="256" sumtext="청구세부과"/>
- <Column id="judgrid" type="STRING" size="256" sumtext="심사자"/>
- <Column id="delyn" type="STRING" size="256" sumtext="청구삭제여부"/>
- <Column id="dataflag" type="STRING" size="256" sumtext="데이타발생구분"/>
- <Column id="snglcalcscorcd" type="STRING" size="256" sumtext="수가코드"/>
- <Column id="execprcpuniqno" type="STRING" size="256" sumtext="execprcpuniqno"/>
- <Column id="clamkey" type="STRING" size="256" sumtext="청구키"/>
- <Column id="ordfildcd" type="STRING" size="256" sumtext="진료분야"/>
- <Column id="calcscorseqno" type="STRING" size="256" sumtext="seq"/>
- <Column id="chk" type="STRING" size="256"/>
- <Column id="presuppkind" type="STRING" size="256"/>
- <Column id="preinsukind" type="STRING" size="256"/>
- <Column id="preprcppayflag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_P0010list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="clammode" type="STRING" size="256"/>
- <Column id="reference" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="insertchk" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_reference" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">실시일자</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">정산일자</Col>
- <Col id="value">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_clammode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">추가</Col>
- <Col id="value">A</Col>
- </Row>
- <Row>
- <Col id="label">누락</Col>
- <Col id="value">B</Col>
- </Row>
- <Row>
- <Col id="label">-</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.ipt_fromdd" propid="value" datasetid="ds_temp" columnid="fromdd"/>
- <BindItem id="item1" compid="group3.group2.ipt_todd" propid="value" datasetid="ds_temp" columnid="todd"/>
- <BindItem id="item2" compid="group3.group2.cmb_reference" propid="value" datasetid="ds_temp" columnid="reference"/>
- <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[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "pam_pamcomnxp::PAM001.xjs";
- include "pam_pamcomnxp::PAM.xjs";
- include "com_basiccodexp::ZBC001.xjs";
- include "com_batchinfoxp::ZSB001.xjs";
- function SMPID23400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMPID23400_onload(obj:Form, e:LoadEventInfo)
- {
- var arrParam = [{dsNm: "ds_init_P0008list", cdGrpId: "P0008"}
- ,{dsNm: "ds_init_P0010list", cdGrpId: "P0010"}]
- appf_getCodeList(arrParam);
-
- pamGetDeptCDDrIDList();
-
- fInitialize();
- }
- function fInitialize()
- {
- ds_main_cretlist.clearData();
-
- ds_temp.setColumn(0, "reference", "2");
- ds_temp.setColumn(0, "todd", "");
- ds_temp.setColumn(0, "pid", "");
-
- 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;
-
- ds_temp.setColumn(0, "fromdd", fromdd);
- ds_temp.setColumn(0, "todd", "");
-
- group3.group2.ipt_todd.setFocus();
- }
- function group1_btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- function group1_btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function group1_btn_chuga_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMPID23100", "SMPID23100", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function fSearchchk(refNo)
- {
- var sFromdd = ds_temp.getColumn(0, "fromdd");
- var str_sFromdd = String(sFromdd);
-
- var sTodd = ds_temp.getColumn(0, "todd");
- var str_sTodd = String(sTodd);
-
- var sFromym = str_sFromdd.substr(0,6);
- var sToym = str_sTodd.substr(0,6);
- var sFy = str_sFromdd.substr(0, 4);
- var sFm = str_sFromdd.substr(4, 2);
- var sFd = str_sFromdd.substr(6, 2);
- var sTy = str_sTodd.substr(0, 4);
- var sTm = str_sTodd.substr(4, 2);
- var sTd = str_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 (utlf_isNull(sFromdd))
- {
- sysf_messageBox("시작일자가 없습니다!","E999","");
- ds_temp.setColumn(0, "fromdd", "");
- group3.group2.ipt_fromdd.setFocus();
- return false;
- }
- if (utlf_isNull(sTodd) || sTodd == "-")
- {
- sysf_messageBox("종료일자가 없습니다!","E999","");
- ds_temp.setColumn(0, "todd", "");
- group3.group2.ipt_todd.setFocus();
- return false;
- }
- else if (sFromym != sToym)
- {
- sysf_messageBox("시작연월과 종료년월은 같아야 합니다!","E999","");
- group3.group2.ipt_todd.setFocus();
- return false;
- }
- if (sDd > "31")
- {
- sysf_messageBox("조회기간은 31일을 넘길수 없습니다!","E999","");
- ds_temp.setColumn(0, "todd", "");
- group3.group2.ipt_todd.setFocus();
- return false;
- }
- else if (sDd < "0")
- {
- sysf_messageBox("시작일자가 종료일자보다 클수는 없습니다!","E999","");
- ds_temp.setColumn(0, "todd", "");
- 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)
- {
- dsf_createDsRow("ds_send_search", [{col:"reference", type:"STRING", size:256, val: ds_temp.getColumn(0, "reference")}
- , {col:"fromdd", type:"STRING", size:256, val: ds_temp.getColumn(0, "fromdd")}
- , {col:"todd", type:"STRING", size:256, val: ds_temp.getColumn(0, "todd")}
- , {col:"pid", type:"STRING", size:256, val: ds_temp.getColumn(0, "pid")}
- , {col:"clammode", type:"STRING", size:256, val: ds_temp.getColumn(0, "clammode")}]);
-
- var oParam = {};
- oParam.id = "TRPID23401";
- oParam.service = "aftjudgapp.OutAddCreate";
- oParam.method = "reqGetAddCreateList";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_main_cretlist=createlist";
- oParam.async = false;
- //oParam.callback = "cf_TRPID23401";
- tranf_submit(oParam);
-
- ds_hidden.setColumn(0, "insertchk", "0");
-
- for(var i = 0; i < ds_main_cretlist.rowcount; i++)
- {
- ds_main_cretlist.setColumn(i, "preinsukind", ds_main_cretlist.getColumn(i, "insukind"));
- ds_main_cretlist.setColumn(i, "presuppkind", ds_main_cretlist.getColumn(i, "suppkind"));
- ds_main_cretlist.setColumn(i, "preprcppayflag", ds_main_cretlist.getColumn(i, "prcppayflag"));
- }
- }
- }
- function group3_group2_ipt_todd_onkeyup(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- var sLenchk = ds_temp.getColumn(0, "todd");
- if (sLenchk.length == 8)
- {
- group3_group2_btn_srch_onclick();
- }
- }
- }
- function group3_group2_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- 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 = String(ds_temp.getColumn(0, "fromdd")).substr(0, 4);
- var sFrommm = String(ds_temp.getColumn(0, "fromdd")).substr(4, 2);
-
- if((0 == sFromyy%4 && 0 != sFromyy%100) || 0 == sFromyy%400)
- {
- lastdate[1]=29;
- }
- var sFromdd = lastdate[sFrommm-1];
- var sTodd = sFromyy+sFrommm+sFromdd;
-
- ds_temp.setColumn(0, "todd", sTodd);
- }
- }
- function group3_group2_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- setInputNodeCurText();
- group3_group2_btn_srch_onclick();
- }
- }
- function group3_group2_btn_create_onclick(obj:Button, e:ClickEventInfo)
- {
- var sInsertchk = ds_hidden.getColumn(0, "insertchk");
- if (sInsertchk == 0)
- {
- var oParam = {};
- oParam.id = "TXPID23401";
- oParam.service = "aftjudgapp.OutAddCreate";
- oParam.method = "insOutAddCreate";
- oParam.inds = "req=ds_main_cretlist";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXPID23401";
- tranf_submit(oParam);
-
- ds_main_cretlist.clearData();
-
- dsf_createDsRow("ds_send_search2", [{col:"clamym", type:"STRING", size:256, val: String(ds_temp.getColumn(0, "fromdd")).substr(0,6)}
- , {col:"fromdd", type:"STRING", size:256, val: ds_temp.getColumn(0, "fromdd")}
- , {col:"todd", type:"STRING", size:256, val: ds_temp.getColumn(0, "todd")}
- , {col:"fstrgstrid", type:"STRING", size:256, val: ""}
- , {col:"instcd", type:"STRING", size:256, val: sysf_getUserInfo("dutplceinstcd")}]);
-
- var oParam = {};
- oParam.id = "TRPID23402";
- oParam.service = "aftjudgapp.OutAddCreate";
- oParam.method = "reqGetCreateList";
- oParam.inds = "req=ds_send_search2";
- oParam.outds = "ds_main_cretlist=createlist";
- oParam.async = false;
- //oParam.callback = "cf_TRPID23402";
- tranf_submit(oParam);
-
- 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 (ds_main_cretlist.rowcount > 0)
- {
- grdf_exportExcel(group3.swt_add.case_summary.grd_cretlist, "exportExcel", "see");
- }
- else
- {
- sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|