123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPIR31200" position="absolute 0 0 1151 652" titletext="정산의뢰대상생성" oninit="SMPIR31200_oninit" onload="SMPIR31200_onload">
- <Layouts>
- <Layout>
- <Div id="group3" taborder="3" position="absolute 0 0 1149 614" anchor="all">
- <Layouts>
- <Layout>
- <Static id="caption10" text="정산의뢰대상생성" class="tit_2" position="absolute 0 0 170 21" anchor="default"/>
- <Div id="group2" anchor="left top right" taborder="1" position="absolute -1 19 1149 59" class="div_SA">
- <Layouts>
- <Layout>
- <Button id="btn_srch" taborder="4" text="조회" onclick="group3_group2_btn_srch_onclick" class="btn1" position="absolute 985 8 1041 30" anchor="top right"/>
- <Static id="caption6" text="~" position="absolute 794 11 805 29" anchor="default"/>
- <Shape id="line1" linetype="vertical" class="line_4" position="absolute 967 5 973 32" anchor="top right"/>
- <Calendar id="ipt_todd" taborder="5" onkeyup="group3_group2_ipt_todd_onkeyup" class="input_default" position="absolute 812 11 897 30" anchor="default"/>
- <Static id="caption5" text="정산일자 :" class="search_name" position="absolute 628 12 708 29" anchor="default"/>
- <Calendar id="ipt_fromdd" taborder="6" onchanged="group3_group2_ipt_fromdd_onchanged" class="input_default" position="absolute 704 10 789 29" anchor="default"/>
- <Radio id="opt_clammode" taborder="7" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" class="input_s_essential" position="absolute 397 7 633 30" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">외래</Col>
- </Row>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">입원</Col>
- </Row>
- <Row>
- <Col id="codecolumn">E</Col>
- <Col id="datacolumn">응급실외래</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption9" text="외래/입원 :" class="search_name" position="absolute 312 11 407 28" anchor="default"/>
- <Button id="btn_create" taborder="8" text="대상생성" onclick="group3_group2_btn_create_onclick" class="btn4" position="absolute 1055 8 1135 30" anchor="top right"/>
- <Static id="caption1" text="조회구분 :" class="search_name" position="absolute 14 11 109 28" anchor="default"/>
- <Radio id="rdo_search" taborder="9" columncount="5" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group3_group2_rdo_search_onitemchanged" class="input_s_essential" position="absolute 92 7 297 30" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">생성대상자조회</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">생성자조회</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_save" taborder="2" text="수정" onclick="btn_save_onclick" class="btn4" position="absolute 1089 60 1145 82" anchor="top right"/>
- <Grid id="grd_searchlist" taborder="3" binddataset="ds_main_createlist" useinputpanel="false" oncelldblclick="grd_searchlist_oncelldblclick" position="absolute 0 87 1146 612" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="41"/>
- <Column size="65"/>
- <Column size="60"/>
- <Column size="40"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="65"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="87"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="정산일자" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="접수번호" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="명일련" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="환자번호" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="청구월" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="차수" taborder="undefined"/>
- <Cell col="7" text="caption1"/>
- <Cell col="8" rowspan="2" text="진료과" taborder="undefined"/>
- <Cell col="9" rowspan="2" text="구분" taborder="undefined"/>
- <Cell col="10" colspan="2" text="진료기간" taborder="undefined"/>
- <Cell col="12" colspan="3" text="급여총액" taborder="undefined"/>
- <Cell col="15" colspan="3" text="청구액" taborder="undefined"/>
- <Cell col="18" colspan="4" text="보험유형" taborder="undefined"/>
- <Cell col="22" rowspan="2" text="주상병" taborder="undefined"/>
- <Cell col="23" rowspan="2" text="V Code" taborder="undefined"/>
- <Cell col="24" rowspan="2" text="의뢰완료여부" taborder="undefined"/>
- <Cell col="25" text="심사차수"/>
- <Cell row="1" col="7" text="caption1"/>
- <Cell row="1" col="10" text="시작일"/>
- <Cell row="1" col="11" text="종료일"/>
- <Cell row="1" col="12" text="사후"/>
- <Cell row="1" col="13" text="원무"/>
- <Cell row="1" col="14" text="차액"/>
- <Cell row="1" col="15" text="사후"/>
- <Cell row="1" col="16" text="원무"/>
- <Cell row="1" col="17" text="차액"/>
- <Cell row="1" col="18" text="사후"/>
- <Cell row="1" col="19" text="원무"/>
- <Cell row="1" col="20" text="사후"/>
- <Cell row="1" col="21" text="원무"/>
- <Cell row="1" col="25" text="심사차수"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" text="bind:rcptexecdd" enable="false"/>
- <Cell col="2" text="bind:acptno" enable="false"/>
- <Cell col="3" text="bind:docuseqno" enable="false"/>
- <Cell col="4" text="bind:pid" enable="false"/>
- <Cell col="5" text="bind:clamym" enable="false"/>
- <Cell col="6" text="bind:clamdg" enable="false"/>
- <Cell col="7" text="bind:pidsn" enable="false"/>
- <Cell col="8" text="bind:orddeptcd" enable="false"/>
- <Cell col="9" displaytype="combo" edittype="none" style="align:center;" text="bind:ioflag" combodataset="ds_cmb_ioflag" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="10" displaytype="date" text="bind:ordfromdd" mask="yyyy-MM-dd" enable="false"/>
- <Cell col="11" displaytype="date" text="bind:ordtodd" mask="yyyy-MM-dd" enable="false"/>
- <Cell col="12" displaytype="number" style="align:center;" text="bind:edimedcaretotamt" mask="9,999" enable="false"/>
- <Cell col="13" displaytype="number" style="align:center;" text="bind:payamt" mask="#,###" enable="false"/>
- <Cell col="14" displaytype="number" style="align:center middle;" text="bind:totamtdif" mask="9,999" suppress="0" enable="false"/>
- <Cell col="15" displaytype="number" style="align:center;" text="bind:ediinsuclamamt" mask="9,999" enable="false"/>
- <Cell col="16" displaytype="number" style="align:center;" text="bind:payinsubamt" mask="9,999" enable="false"/>
- <Cell col="17" displaytype="number" style="align:center;" text="bind:insubamtdif" mask="9,999" enable="false"/>
- <Cell col="18" displaytype="combo" edittype="combo" text="bind:sinsukind" combodataset="ds_init_P0008list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="19" displaytype="combo" edittype="combo" text="bind:winsukind" mask="yyyy-mm-dd" combodataset="ds_init_P0008list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="20" displaytype="combo" edittype="combo" text="bind:ssuppkind" combodataset="ds_init_P0010list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="21" displaytype="combo" edittype="combo" text="bind:wsuppkind" combodataset="ds_init_P0010list" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="22" text="bind:diagcd" enable="false"/>
- <Cell col="23" text="bind:spclcd" enable="false"/>
- <Cell col="24" displaytype="combo" edittype="combo" style="align:center;" text="bind:endyn" combodataset="ds_cmb_endyn" combocodecol="value" combodatacol="label"/>
- <Cell col="25" text="bind:judgdg"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line17" class="line_1" position="absolute -1 81 1146 90" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 614 1150 649" id="group1" scrollbars="autoboth" anchor="left right bottom">
- <Layouts>
- <Layout>
- <Shape position="absolute -1 -1 1146 5" linetype="horizontal" id="line32" class="line_6" anchor="left right bottom"/>
- <Button position="absolute 1089 5 1145 27" id="btn_close" class="btn4" text="닫기" anchor="right bottom" onclick="group1_btn_close_onclick"/>
- <Button position="absolute 1018 5 1086 27" id="btn_reset" class="btn4" text="초기화" anchor="right bottom" onclick="group1_btn_reset_onclick"/>
- <Button position="absolute 0 5 160 27" id="btn_chuga" class="btn3" text="이의신청정산의뢰생성" anchor="left bottom" onclick="group1_btn_chuga_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" 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="cdid" type="STRING" size="256"/>
- <Column id="cdnm" 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="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="searchflag" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="searchflag" 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_send_search2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="searchflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_createlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관기호"/>
- <Column id="rcptexecdd" type="STRING" size="256" sumtext="정산일자"/>
- <Column id="acptno" type="STRING" size="256" sumtext="접수번호"/>
- <Column id="docuseqno" type="STRING" size="256" sumtext="명일련번호"/>
- <Column id="pid" 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="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
- <Column id="ordfromdd" type="STRING" size="256" sumtext="진료시작일자"/>
- <Column id="ordtodd" type="STRING" size="256" sumtext="진료종료일자"/>
- <Column id="ioflag" type="STRING" size="256" sumtext="내원형태"/>
- <Column id="edimedcaretotamt" type="STRING" size="256" sumtext="사후급여총액"/>
- <Column id="payamt" type="STRING" size="256" sumtext="원무급여총액"/>
- <Column id="totamtdif" type="STRING" size="256" sumtext="급여총액차액"/>
- <Column id="ediinsuclamamt" type="STRING" size="256" sumtext="사후청구액"/>
- <Column id="payinsubamt" type="STRING" size="256" sumtext="원무청구액"/>
- <Column id="insubamtdif" type="STRING" size="256" sumtext="청구액차액"/>
- <Column id="sinsukind" type="STRING" size="256" sumtext="사후보험유형"/>
- <Column id="winsukind" type="STRING" size="256" sumtext="원무보험유형"/>
- <Column id="ssuppkind" type="STRING" size="256" sumtext="사후보조유형"/>
- <Column id="wsuppkind" type="STRING" size="256" sumtext="원무보조유형"/>
- <Column id="diagcd" type="STRING" size="256" sumtext="주상병코드"/>
- <Column id="spclcd" type="STRING" size="256" sumtext="특정내역코드"/>
- <Column id="endyn" type="STRING" size="256" sumtext="정산의뢰완료유무"/>
- <Column id="ordtype" type="STRING" size="256" sumtext="ordtype"/>
- <Column id="judgdg" type="STRING" size="256" sumtext="심사차수"/>
- <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록일시"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록자id"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종등록일시"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종등록자id"/>
- <Column id="clamno" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmb_endyn" 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">N</Col>
- </Row>
- <Row>
- <Col id="label">완료</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">대상아님</Col>
- <Col id="value">X</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_tnsdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchflag" type="STRING" size="256"/>
- <Column id="acptno" type="STRING" size="256"/>
- <Column id="judgdg" type="STRING" size="256"/>
- <Column id="clamno" type="STRING" size="256"/>
- <Column id="docuseqno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_ioflag" 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">I</Col>
- </Row>
- <Row>
- <Col id="label">외래</Col>
- <Col id="value">O</Col>
- </Row>
- <Row>
- <Col id="label">ER 외래</Col>
- <Col id="value">E</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.rdo_search" propid="value" datasetid="ds_temp" columnid="searchflag"/>
- <BindItem id="item1" compid="group3.group2.opt_clammode" propid="value" datasetid="ds_temp" columnid="ioflag"/>
- <BindItem id="item2" compid="group3.group2.ipt_fromdd" propid="value" datasetid="ds_temp" columnid="fromdd"/>
- <BindItem id="item3" compid="group3.group2.ipt_todd" propid="value" datasetid="ds_temp" columnid="todd"/>
- </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";
- function SMPIR31200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMPIR31200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(group3.grd_searchlist);
- grdf_setRowTypeIcon(group3.grd_searchlist, 0);
-
- var arrParam = [{dsNm: "ds_init_P0008list", cdGrpId: "P0008"}
- ,{dsNm: "ds_init_P0010list", cdGrpId: "P0010"}]
- appf_getCodeList(arrParam);
-
- pamGetDeptCDDrIDList();
-
- fInitialize();
- }
- function fInitialize()
- {
- ds_main_createlist.clearData();
-
- ds_temp.setColumn(0, "fromdd", "");
- ds_temp.setColumn(0, "todd", "");
-
- 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);
- group3.group2.ipt_fromdd.setFocus();
-
- group3.group2.rdo_search.index = 0;
- group3.group2.opt_clammode.index = 0;
- //model.removeNode("/root/main/list");
- //model.refresh();
- }
- function fSearchchk(refOpt)
- {
- if (refOpt == "O" || refOpt =="E")
- {
- var sFromdd = ds_temp.getColumn(0, "fromdd");
- var sTodd = ds_temp.getColumn(0, "todd");
-
- var s_sFromdd = String(sFromdd);
- var s_sTodd = String(sTodd);
-
- var sFromym = s_sFromdd.substr(0,6);
- var sToym = s_sTodd.substr(0,6);
-
- var sFy = s_sFromdd.substr(0, 4);
- var sFm = s_sFromdd.substr(4, 2);
- var sFd = s_sFromdd.substr(6, 2);
- var sTy = s_sTodd.substr(0, 4);
- var sTm = s_sTodd.substr(4, 2);
- var sTd = s_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 (utlf_isNull(sFromdd) || sFromdd == "" || sFromdd == " ")
- {
- sysf_messageBox("시작일자가 없습니다!","E999","");
- ds_temp.setColumn(0, "fromdd", "");
- group3.group2.ipt_fromdd.setFocus();
- return false;
- }
- if (utlf_isNull(sTodd) || sTodd == "" || 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;
- }
-
- var refflag = ds_temp.getColumn(0, "searchflag");
-
- if (sDd > '7' && refflag == 'Y')
- {
- sysf_messageBox("조회기간은 7일을 넘길수 없습니다!","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 if (refOpt == 'I')
- {
- var sFromdd = ds_temp.getColumn(0, "fromdd");
- if (utlf_isNull(sFromdd) || sFromdd == "" || sFromdd == " ")
- {
- sysf_messageBox("조회일자가 없습니다!","E999","");
- ds_temp.setColumn(0, "fromdd", "");
- group3.group2.ipt_fromdd.setFocus();
- return false;
- }
- }
- return true;
- }
- function group3_group2_btn_srch_onclick(obj:Button, e:ClickEventInfo)
- {
- var refOpt = ds_temp.getColumn(0, "ioflag");
- var refflag = ds_temp.getColumn(0, "searchflag");
- if (fSearchchk(refOpt) == true)
- {
- if (refflag == "Y")
- {
- ds_send_search.setColumn(0, "ioflag", ds_temp.getColumn(0, "ioflag"));
- 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, "searchflag", ds_temp.getColumn(0, "searchflag"));
-
- var oParam = {};
- oParam.id = "TRPIR31201";
- oParam.service = "cutmngtapp.CutMngtColl";
- oParam.method = "reqGetCutCollList";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_main_createlist=createlist";
- oParam.async = false;
- //oParam.callback = "cf_TRPIR31201";
- tranf_submit(oParam);
-
- ds_hidden.setColumn(0, "insertchk", "0");
- }
- else if (refflag == "N")
- {
- ds_send_search2.setColumn(0, "ioflag", ds_temp.getColumn(0, "ioflag"));
- ds_send_search2.setColumn(0, "fromdd", ds_temp.getColumn(0, "fromdd"));
- ds_send_search2.setColumn(0, "todd", ds_temp.getColumn(0, "todd"));
- ds_send_search2.setColumn(0, "searchflag", ds_temp.getColumn(0, "searchflag"));
-
- var oParam = {};
- oParam.id = "TRPIR31202";
- oParam.service = "cutmngtapp.CutMngtColl";
- oParam.method = "reqGetAftCollList";
- oParam.inds = "req=ds_send_search2";
- oParam.outds = "ds_main_createlist=createlist";
- oParam.async = false;
- //oParam.callback = "cf_TRPIR31202";
- tranf_submit(oParam);
-
- ds_hidden.setColumn(0, "insertchk", "1");
- }
- }
- }
- 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 = obj.value;
- var s_sFromyy = String(sFromyy).substr(0, 4);
- var sFrommm = obj.value;
- var s_sFrommm = String(sFrommm).substr(4,2);
- if((0 == sFromyy%4 && 0 != sFromyy%100) || 0 == sFromyy%400)
- {
- lastdate[1] = 29;
- }
- var sFromdd = lastdate[s_sFrommm-1];
-
- var sTodd = s_sFromyy+s_sFrommm+sFromdd;
- ds_temp.setColumn(0, "todd", sTodd);
- }
- }
- //대상생성
- function group3_group2_btn_create_onclick(obj:Button, e:ClickEventInfo)
- {
- var sInsertchk = ds_hidden.getColumn(0, "insertchk");
-
- if (sInsertchk == 0)
- {
- var oParam = {};
- oParam.id = "TXPIR31201";
- oParam.service = "cutmngtapp.CutMngtColl";
- oParam.method = "insCutCollCreate";
- oParam.inds = "createlist=ds_main_createlist";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXPIR31201";
- tranf_submit(oParam);
-
- //model.resetInstanceNode("/root/main/list/createlist");
- // model.makeNode("/root/send/search2/fromdd");
- // model.makeNode("/root/send/search2/todd");
-
- ds_send_search2.setColumn(0, "ioflag", ds_send_search.getColumn(0, "ioflag"));
- ds_send_search2.setColumn(0, "fromdd", ds_send_search.getColumn(0, "fromdd"));
- ds_send_search2.setColumn(0, "todd", ds_send_search.getColumn(0, "todd"));
-
- var oParam = {};
- oParam.id = "TRPIR31202";
- oParam.service = "cutmngtapp.CutMngtColl";
- oParam.method = "reqGetAftCollList";
- oParam.inds = "req=ds_send_search2";
- oParam.outds = "ds_main_createlist=createlist";
- oParam.async = false;
- //oParam.callback = "cf_TRPIR31202";
- tranf_submit(oParam);
-
- ds_hidden.setColumn(0, "insertchk", "1");
- }
- else if (sInsertchk == 1)
- {
- sysf_messageBox("조회를 하시고 생성을 눌러주세요!","E999","");
- }
- }
- function group3_group2_rdo_search_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- var optIOflag = ds_temp.getColumn(0, "ioflag");
-
- if (optIOflag == "I")
- {
- group3.group2.ipt_todd.visible = false;
- group3.group2.caption6.visible = false;
- fInitialize();
- ds_temp.setColumn(0, "todd", "");
- }
- else if (optIOflag == "O")
- {
- group3.group2.ipt_todd.visible = true;
- group3.group2.caption6.visible = true;
- fInitialize();
- group3.group2.ipt_todd.setFocus();
- }
- else if (optIOflag == "E")
- {
- group3.group2.ipt_todd.visible = true;
- group3.group2.caption6.visible = true;
- fInitialize();
- group3.group2.ipt_todd.setFocus();
- }
- }
- function grd_searchlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- ds_send_tnsdata.setColumn(0, "srchflag", "1");
- ds_send_tnsdata.setColumn(0, "acptno", ds_main_createlist.getColumn(ds_main_createlist.rowposition, "acptno"));
- ds_send_tnsdata.setColumn(0, "judgdg", ds_main_createlist.getColumn(ds_main_createlist.rowposition, "judgdg"));
- ds_send_tnsdata.setColumn(0, "clamno", ds_main_createlist.getColumn(ds_main_createlist.rowposition, "clamno"));
- ds_send_tnsdata.setColumn(0, "docuseqno", ds_main_createlist.getColumn(ds_main_createlist.rowposition, "docuseqno"));
-
- var acptno1 = ds_main_createlist.getColumn(ds_main_createlist.rowposition, "acptno");
- var judgdg1 = ds_main_createlist.getColumn(ds_main_createlist.rowposition, "judgdg");
- var docuseqno1 = ds_main_createlist.getColumn(ds_main_createlist.rowposition, "docuseqno");
-
- frmf_modal("SMPIR31000", "SMPIR31000", {objDs:ds_send_tnsdata}, "", "", "", "", "", "", "", "", "", "M");
- }
- //수정
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var update = grdf_getGridUpdateData(group3.grd_searchlist);
-
- if(update.rowcount == 0)
- {
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
- }
-
- var oParam = {};
- oParam.id = "TXPIR31202";
- oParam.service = "cutmngtapp.CutMngtColl";
- oParam.method = "insCutCollUpt";
- oParam.inds = "req=ds_main_createlist";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPIR31202";
- tranf_submit(oParam);
- }
- function cf_TXPIR31202()
- {
- var oParam = {};
- oParam.id = "TRPIR31202";
- oParam.service = "cutmngtapp.CutMngtColl";
- oParam.method = "reqGetAftCollList";
- oParam.inds = "req=ds_temp";
- oParam.outds = "ds_main_createlist=createlist";
- oParam.async = false;
- //oParam.callback = "cf_TRPIR31202";
- tranf_submit(oParam);
- }
- function group1_btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function group1_btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- function group1_btn_chuga_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMPIR31000", "SMPIR31000", "", "", "", "", "", "", "", "", "", "", "M");
- }
- ]]></Script>
- </Form>
- </FDL>
|