123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPCPC01200" position="absolute 0 0 908 600" titletext="건진정보마이닝 그룹 리스트" oninit="SPCPC01200_oninit" onload="SPCPC01200_onload">
- <Layouts>
- <Layout>
- <Grid id="grd_healexamdtmnlist" taborder="0" binddataset="ds_main_list_healexamdtmnlist" useinputpanel="false" position="absolute 224 68 899 363" autoenter="select" cellsizingtype="col" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="290"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="80"/>
- <Column size="60"/>
- <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="연결캠페인"/>
- <Cell col="3" text="자동실행"/>
- <Cell col="4" text="등록일"/>
- <Cell col="5" text="등록부서"/>
- <Cell col="6" text="등록자"/>
- <Cell col="7"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' ? 1 : 0"/>
- <Cell col="1" style="align:left middle;padding:0 0 0 3;" text="bind:healexamdtmntitl"/>
- <Cell col="2" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:lnktmplyn" combodataset="ds_cmb_lnktmplyn" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="3" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:autexecflag" combodataset="ds_init_C0030list_C0030" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="4" displaytype="date" style="align:left middle;padding:0 0 0 3;" text="bind:fstrgstdt" calendardisplaynulltype="nulltext"/>
- <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:deptnm"/>
- <Cell col="6" style="align:left middle;padding:0 0 0 3;" text="bind:fstrgstnm"/>
- <Cell col="7" text="bind:healexamdtmnkey"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption9" text="건진정보마이닝 그룹 조회" class="tit_2" position="absolute 225 0 425 21"/>
- <Div id="grp_johe" taborder="1" class="div_SA2" position="absolute 225 19 900 59">
- <Layouts>
- <Layout>
- <Static id="caption2" text="검색어 :" class="search_name" position="absolute 25 11 129 28" anchor="default"/>
- <Edit id="ipt_s_healexamdtmnnm" taborder="4" class="input_s_essential" position="absolute 149 10 279 29" anchor="default" autoselect="true" onkeyup="grp_johe_ipt_s_healexamdtmnnm_onkeyup"/>
- <Shape id="line13" linetype="vertical" position="absolute 457 8 463 30" anchor="default"/>
- <Button id="btn_search" taborder="5" text="조회" class="btn1" position="absolute 490 8 546 30" anchor="default" onclick="grp_johe_btn_search_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group12" taborder="2" position="absolute 0 0 215 572"/>
- <Grid id="trv_leftmenu" taborder="3" useinputpanel="false" treeusecheckbox="false" position="absolute 0 21 215 571" autofit="col" autoenter="select" cellsizingtype="col" binddataset="ds_main_healexamtreeinfo_healexamtreelist" treeinitstatus="expand,all" oncellclick="trv_leftmenu_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="205"/>
- </Columns>
- <Rows>
- <Row size="24"/>
- </Rows>
- <Band id="body">
- <Cell displaytype="tree" edittype="tree" text="bind:healexamdtmnnm" treestartlevel="1" treelevel="bind:depth"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="lin_tree" class="line_10" position="absolute 0 16 215 22"/>
- <Static id="caption30" text="건진정보마이닝 그룹" class="tit_2" position="absolute 0 0 215 22"/>
- <CheckBox id="bool1" taborder="4" position="absolute 226 73 241 88" onclick="bool1_onclick"/>
- <Shape id="line2" class="line_10" position="absolute 224 63 899 69"/>
- <Button id="btn_saveexcel" taborder="5" text="초기화" class="btn2" position="absolute 779 364 832 383" onclick="btn_saveexcel_onclick"/>
- <Button id="button1" taborder="6" text="그룹추가" class="btn2" position="absolute 835 364 899 383" onclick="button1_onclick"/>
- <Shape id="line1" class="line_10" position="absolute 224 383 899 389"/>
- <Grid id="grd_choihealexamdtmnlist" taborder="7" binddataset="ds_main_list_choihealexamdtmnlist" useinputpanel="false" position="absolute 224 388 899 569" autoenter="select" cellsizingtype="col" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="270"/>
- <Column size="80"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="100"/>
- <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="산정기준일"/>
- <Cell col="3" text="특정일"/>
- <Cell col="4" text="업데이트 구분"/>
- <Cell col="5" text="업데이트실행시간"/>
- <Cell col="6"/>
- <Cell col="7"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' ? 1 : 0"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:healexamdtmntitl"/>
- <Cell col="2" displaytype="combo" style="align:center middle;" text="bind:appbasedd" combodataset="ds_cmb_appbasedd" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="3" displaytype="date" edittype="date" text="bind:spcldd" calendardisplaynulltype="nulltext"/>
- <Cell col="4" displaytype="combo" edittype="combo" text="bind:clintdupltretmthd" combodataset="ds_init_C0031list_C0031" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="5" displaytype="text" edittype="text" class="text_center" text="bind:daydd" mask="##:##" maskchar=" "/>
- <Cell col="6" text="bind:healexamdtmnkey"/>
- <Cell col="7" text="bind:status"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <CheckBox id="bool2" taborder="8" position="absolute 226 393 241 408" onclick="bool2_onclick"/>
- <Static id="caption3" text="그룹내역" class="tit_2" position="absolute 224 367 424 388"/>
- <Button id="button2" taborder="9" text="확인" class="btn4" position="absolute 785 573 841 595" onclick="button2_onclick"/>
- <Button id="button3" taborder="10" text="닫기" class="btn4" position="absolute 844 573 900 595" onclick="button3_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_healexamtreeinfo_healexamtreelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_list_healexamdtmnlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_list_healexamdtmnlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="healexamdtmntitl" type="STRING" size="256" sumtext="건진탬플릿명"/>
- <Column id="healexamdtmnsmltitl" type="STRING" size="256" sumtext="그룹"/>
- <Column id="lnktmplyn" type="STRING" size="256" sumtext="연결캠페인 여부"/>
- <Column id="autexecflag" type="STRING" size="256" sumtext="자동실행 여부"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="등록일시"/>
- <Column id="fstrgstnm" type="STRING" size="256" sumtext="등록자"/>
- <Column id="examcnt" type="STRING" size="256" sumtext="총실행건수"/>
- <Column id="lastexamcnt" type="STRING" size="256" sumtext="최종실행건수"/>
- <Column id="lastexamdd" type="STRING" size="256" sumtext="최종실행일"/>
- <Column id="healexamdtmnkey" type="STRING" size="256" sumtext="건진데이터마이닝코드"/>
- <Column id="chk" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmb_lnktmplyn" 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">Y</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_C0030list_C0030" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rgstfromdd" type="STRING" size="256"/>
- <Column id="rgsttodd" type="STRING" size="256"/>
- <Column id="healexamdtmnnm" type="STRING" size="256"/>
- <Column id="rgstnm" type="STRING" size="256"/>
- <Column id="autexecflag" type="STRING" size="256"/>
- <Column id="cmpnlnkyn" type="STRING" size="256"/>
- <Column id="healexamdtmnsmlcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rgstfromdd"/>
- <Col id="rgsttodd"/>
- <Col id="healexamdtmnnm"/>
- <Col id="rgstnm"/>
- <Col id="autexecflag"/>
- <Col id="cmpnlnkyn"/>
- <Col id="healexamdtmnsmlcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list_choihealexamdtmnlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_list_choihealexamdtmnlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="healexamdtmntitl" type="STRING" size="256" sumtext="건진탬플릿명"/>
- <Column id="healexamdtmnsmltitl" type="STRING" size="256" sumtext="그룹"/>
- <Column id="lnktmplyn" type="STRING" size="256" sumtext="연결캠페인 여부"/>
- <Column id="autexecflag" type="STRING" size="256" sumtext="자동실행 여부"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="등록일시"/>
- <Column id="fstrgstnm" type="STRING" size="256" sumtext="등록자"/>
- <Column id="examcnt" type="STRING" size="256" sumtext="총실행건수"/>
- <Column id="lastexamcnt" type="STRING" size="256" sumtext="최종실행건수"/>
- <Column id="lastexamdd" type="STRING" size="256" sumtext="최종실행일"/>
- <Column id="healexamdtmnkey" type="STRING" size="256" sumtext="건진데이터마이닝코드"/>
- <Column id="chk" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- <Column id="appbasedd" type="STRING" size="256"/>
- <Column id="clintdupltretmthd" type="STRING" size="256"/>
- <Column id="daydd" type="STRING" size="256"/>
- <Column id="spcldd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmb_appbasedd" 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">0</Col>
- </Row>
- <Row>
- <Col id="label">건진일</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">특정일</Col>
- <Col id="value">4</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_C0031list_C0031" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rcvcnt" type="STRING" size="256"/>
- <Column id="chkvalue1" type="STRING" size="256"/>
- <Column id="chkvalue2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rcvcnt"/>
- <Col id="chkvalue1"/>
- <Col id="chkvalue2"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_healexamtrsmtrgtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <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";
- function SPCPC01200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPCPC01200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_choihealexamdtmnlist);
- grdf_initGrid(grd_healexamdtmnlist);
-
- ds_main_list_choihealexamdtmnlist.clearData();
- ds_main_list_healexamdtmnlist.clearData();
-
- // C0030: 자동실행여부, C0031: 고객중복처리여부, C0032: 적용기준일
- var arrParam = [{dsNm: "ds_init_C0030list_C0030", cdGrpId: "C0030"}
- ,{dsNm: "ds_init_C0031list_C0031", cdGrpId: "C0031"}
- ,{dsNm: "ds_init_C0032list_C0032", cdGrpId: "C0032"}]
- appf_getCodeList(arrParam);
-
- ds_main_healexamtreeinfo_healexamtreelist.clearData();
-
- var oParam = {};
- oParam.id = "TRCHT00401";
- oParam.service = "healexammngtapp.HealExamClsMngt";
- oParam.method = "reqGetHealExamTreeList";
- oParam.inds = "";
- oParam.outds = "ds_main_healexamtreeinfo_healexamtreelist=healexamtreelist";
- oParam.async = false;
- //oParam.callback = "cf_TRCHT00401";
- tranf_submit(oParam);
- }
- function trv_leftmenu_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var healexamdtmnsmlcd = ds_main_healexamtreeinfo_healexamtreelist.getColumn(ds_main_healexamtreeinfo_healexamtreelist.rowposition, "healexamdtmnsmlcd");
- var healexamdtmn_smlcd = healexamdtmnsmlcd;
- if (healexamdtmn_smlcd > 0)
- {
- ds_send_data.setColumn(0, "healexamdtmnsmlcd", healexamdtmnsmlcd);
- fGetDtmnInfo();
- }
- }
- function fGetDtmnInfo()
- {
- var oParam = {};
- oParam.id = "TRCHT00201";
- oParam.service = "healexammngtapp.HealExamMngt";
- oParam.method = "reqGetHealExamDtmnList";
- oParam.inds = "req=ds_send_data";
- oParam.outds = "ds_main_list_healexamdtmnlist=healexamdtmnlist";
- oParam.async = false;
- //oParam.callback = "cf_TRCHT00201";
- tranf_submit(oParam);
- }
- function ds_main_list_healexamdtmnlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chk")
- {
- obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function grp_johe_ipt_s_healexamdtmnnm_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- grp_johe.btn_search.click();
- }
- }
- function grp_johe_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(grp_johe.ipt_s_healexamdtmnnm.value))
- {
- sysf_messageBox("검색어를 1자이상 ", "C001");
- }
- else
- {
- ds_main_list_healexamdtmnlist.clearData();
- fGetDtmnInfo();
- }
- }
- function bool1_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- var mode = "A";
- fGridAllRow(mode);
- }
- function bool2_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- var mode = "B";
- fGridAllRow(mode);
- }
- function fGridAllRow(mode)
- {
- // 주소록 그룹 조회
- if (mode == "A")
- {
- var rows = ds_main_list_healexamdtmnlist.rowcount;
- var fRow = 0;
- var chk = ds_main_list_healexamdtmnlist.getColumn(0, "chk");
- var boolchk = ds_main.getColumn(0, "chkvalue1");
-
- if (boolchk == "Y")
- {
- for(var i = fRow; i < rows; i++)
- {
- ds_main_list_healexamdtmnlist.setColumn(i, "chk", "Y");
- }
- }
- else
- {
- for(var i = fRow; i < rows; i++)
- {
- ds_main_list_healexamdtmnlist.setColumn(i, "chk", "N");
- }
- }
- // 그룹 내역
- }
- else if (mode == "B")
- {
- var rows = ds_main_list_choihealexamdtmnlist.rowcount;
- var fRow = 0;
- var chk = ds_main_list_choihealexamdtmnlist.getColumn(0, "chk");
- var boolchk = ds_main.getColumn(0, "chkvalue2");
-
- if (boolchk == "Y")
- {
- for(var i = fRow; i < rows; i++)
- {
- ds_main_list_choihealexamdtmnlist.setColumn(i, "chk", "Y");
- }
- }
- else
- {
- for(var i = fRow; i < rows; i++)
- {
- ds_main_list_choihealexamdtmnlist.setColumn(i, "chk", "N");
- }
- }
- }
- else if (mode == "C")
- { // 데이터 이동 후 마스터 목록 선택 해제
- var rows = ds_main_list_healexamdtmnlist.rowcount;
- var fRow = 0;
- var chk = ds_main_list_healexamdtmnlist.getColumn(0, "chk");
-
- for(var i = fRow; i < rows; i++)
- {
- ds_main_list_healexamdtmnlist.setColumn(i, "chk", "N");
- }
- ds_main.setColumn(0, "chkvalue1", "");
- }
- }
- function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
- {
- fGridRowAddRow(grd_choihealexamdtmnlist,grd_healexamdtmnlist,"del");
- }
- function fGridRowAddRow(sndGrid, rcvGrid, type)
- {
- var sRows = this.objects[sndGrid.binddataset].rowcount;
- var sfRow = 0;
- var cntRows = this.objects[sndGrid.binddataset].rowcount-1
- var rRows = this.objects[rcvGrid.binddataset].rowcount-1;
-
- if(type=="del")
- {
- var rows = this.objects[sndGrid.binddataset].rowcount;
- var fRow = 0;
- for(var i = fRow; i < rows; i++)
- {
- this.objects[sndGrid.binddataset].setColumn(i, "chk", "Y");
- }
- }
-
- var check_cnt = 0;
- for(var i = sfRow; i < sRows; i++)
- {
- if(this.objects[sndGrid.binddataset].getColumn(i, "chk") == "Y" )
- {
- var lnktmplyn = ds_main_list_healexamdtmnlist.getColumn(i, "lnktmplyn");
- if (lnktmplyn == "Y")
- {
- sysf_messageBox("선택된 건진정보마이닝은 기존에 연결된 캠페인에서 제외처리 되오니","I007");
- this.objects[rcvGrid.binddataset].setColumn(rRows, "status", "U");
- }
- rRows = this.objects[rcvGrid.binddataset].addRow();
- if (lnktmplyn == "Y")
- {
- this.objects[rcvGrid.binddataset].setColumn(rRows, "status", "U");
- }
- else
- {
- this.objects[rcvGrid.binddataset].setColumn(rRows, "status", "I");
- }
- this.objects[rcvGrid.binddataset].setColumn(rRows, "healexamdtmntitl", this.objects[sndGrid.binddataset].getColumn(i, "healexamdtmntitl"));
- this.objects[rcvGrid.binddataset].setColumn(rRows, "healexamdtmnkey", this.objects[sndGrid.binddataset].getColumn(i, "healexamdtmnkey"));
-
- check_cnt++;
- rRows++;
- }
- }
-
- if(check_cnt < 1)
- {
- sysf_messageBox("건진정보마이닝 리스트를","C002");
- }
-
- //추가된 사람 목록삭제
- for(var j = sRows; j >= sfRow; j--)
- {
- if(this.objects[sndGrid.binddataset].getColumn(j, "chk") == "Y")
- {
- this.objects[sndGrid.binddataset].deleteRow(j);
- cntRows--;
- }
- }
-
- if(type == "add")
- {
- ds_main.setColumn(0, "rcvcnt",rRows-1);//수신인 숫자
- }
- else
- {
- ds_main.setColumn(0, "rcvcnt",cntRows);//수신인 숫자
- }
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fGridRowAddRow(grd_healexamdtmnlist,grd_choihealexamdtmnlist,"add");
- var mode = "C";
- fGridAllRow(mode);
- }
- function ds_main_list_choihealexamdtmnlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chk")
- {
- obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetTrsmTrgt();
- }
- function fGetTrsmTrgt()
- {
- var check_cnt = 0;
-
- var rows = grdf_getSelectedRows(grd_choihealexamdtmnlist);
- for (var i = 0; i < rows.length; i++)
- {
- var sRow = rows[i];
- if(ds_main_list_choihealexamdtmnlist.getColumn(sRow, "chk") == "Y" )
- {
- var healexamdtmntitl = ds_main_list_choihealexamdtmnlist.getColumn(sRow, "healexamdtmntitl");
- var appbasedd = ds_main_list_choihealexamdtmnlist.getColumn(sRow, "appbasedd");
- var spcldd = ds_main_list_choihealexamdtmnlist.getColumn(sRow, "spcldd");
- var clintdupltretmthd = ds_main_list_choihealexamdtmnlist.getColumn(sRow, "clintdupltretmthd");
- var daydd = ds_main_list_choihealexamdtmnlist.getColumn(sRow, "daydd");
- var healexamdtmnkey = ds_main_list_choihealexamdtmnlist.getColumn(sRow, "healexamdtmnkey");
- var status = ds_main_list_choihealexamdtmnlist.getColumn(sRow, "status");
-
- dsf_makeValue(ds_temp_healexamtrsmtrgtlist, "healexamdtmntitl", "string", healexamdtmntitl);
- dsf_makeValue(ds_temp_healexamtrsmtrgtlist, "appbasedd", "string", appbasedd);
- dsf_makeValue(ds_temp_healexamtrsmtrgtlist, "spcldd", "string", spcldd);
- dsf_makeValue(ds_temp_healexamtrsmtrgtlist, "clintdupltretmthd", "string", clintdupltretmthd);
- dsf_makeValue(ds_temp_healexamtrsmtrgtlist, "daydd", "string", daydd);
- dsf_makeValue(ds_temp_healexamtrsmtrgtlist, "healexamdtmnkey", "string", healexamdtmnkey);
- dsf_makeValue(ds_temp_healexamtrsmtrgtlist, "status", "string", status);
-
- opener.ds_main_cmpn_healexamtrsmtrgtlist.copyRow(opener.ds_main_cmpn_healexamtrsmtrgtlist.addRow(), ds_temp_healexamtrsmtrgtlist, 0);
-
- ds_temp_healexamtrsmtrgtlist.clear();
- check_cnt++;
- }
- }
-
- if(check_cnt < 1)
- {
- sysf_messageBox("건진정보마이닝 리스트를","C002");
- }
- else
- {
- this.close();
- }
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|