123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMCHT00200" position="absolute 0 0 1200 792" titletext="건진데이터마이닝 관리" oninit="SMCHT00200_oninit" onload="SMCHT00200_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 225 33 1195 93" align="align:center top;" id="grp_johe" class="div_SA2" anchor="left top right">
- <Layouts>
- <Layout>
- <Static text="등 록 일 :" position="absolute 15 9 115 26" id="caption2" class="search_name" anchor="default"/>
- <Calendar position="absolute 118 8 238 27" id="ipt_rgstfromdd" class="input_search" anchor="default" autoskip="true" autoselect="true" onkillfocus="grp_johe_ipt_rgstfromdd_onkillfocus"/>
- <Static text="~" position="absolute 243 9 255 26" id="caption3" class="search_no_b" anchor="default"/>
- <Calendar position="absolute 258 8 378 27" id="ipt_rgsttodd" class="input_search" anchor="default" onkillfocus="grp_johe_ipt_rgsttodd_onkillfocus"/>
- <Static text="탬플릿명 :" position="absolute 449 9 536 26" id="caption4" class="search_name" anchor="default"/>
- <Edit position="absolute 538 7 668 26" id="ipt_healexamdtmntitl" class="input_search" anchor="default"/>
- <Static text="자동실행 여부 :" position="absolute 15 35 145 52" id="caption6" class="search_name" anchor="default"/>
- <Radio position="absolute 145 33 351 52" id="rdo_autoexecflag" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">
- </Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">자동</Col>
- </Row>
- <Row>
- <Col id="codecolumn">M</Col>
- <Col id="datacolumn">수동</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="캠페인 연결 여부:" position="absolute 449 35 586 52" id="caption8" class="search_name" anchor="default"/>
- <Radio position="absolute 586 33 842 52" id="rdo_cmpnlnkyn" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" rowcount="-1" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">
- </Col>
- <Col id="datacolumn">무관</Col>
- </Row>
- <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>
- <Shape position="absolute 880 7 886 53" linetype="vertical" id="line1" class="line_4" anchor="top right"/>
- <Button position="absolute 896 19 952 41" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="grp_johe_btn_search_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="건진정보마이닝 목록검색" class="tit_1" position="absolute 0 0 220 22"/>
- <Static id="caption30" text="건진정보마이닝 템플릿" class="tit_2" position="absolute 0 32 215 54"/>
- <Div id="import1" taborder="1" url="./SSCHT00400_건진데이터마이닝그룹트리.xfdl" position="absolute 0 48 215 792" anchor="left top bottom"/>
- <Static id="caption9" text="건진정보마이닝 템플릿" class="tit_2" position="absolute 225 106 425 128"/>
- <Shape id="line2" class="line_10" position="absolute 224 122 1195 128" anchor="left top right"/>
- <Grid id="grd_healexamdtmnlist" taborder="2" binddataset="ds_main_list_healexamdtmnlist" useinputpanel="false" position="absolute 224 127 1195 762" autoenter="select" cellsizingtype="col" anchor="all" oncelldblclick="grd_healexamdtmnlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="21"/>
- <Column size="175"/>
- <Column size="120"/>
- <Column size="100"/>
- <Column size="90"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="75"/>
- <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" text="총 실행건수"/>
- <Cell col="8" text="최종실행건수"/>
- <Cell col="9" text="최종실행일"/>
- <Cell col="10"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" style="align:left middle;padding:0 0 0 3;" text="bind:healexamdtmntitl"/>
- <Cell col="2" style="align:left top;padding:5 2 3 1;" text="bind:healexamdtmnsmltitl" wordwrap="word"/>
- <Cell col="3" displaytype="combo" style="align:center middle;" text="bind:lnktmplyn" combodataset="ds_cmb_lnktmplyn" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="4" displaytype="combo" style="align:center middle;" text="bind:autexecflag" combodataset="ds_init_C0030list_C0030" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="5" displaytype="date" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm" maskchar=" " calendardisplaynulltype="nulltext"/>
- <Cell col="6" text="bind:fstrgstnm"/>
- <Cell col="7" text="bind:examcnt"/>
- <Cell col="8" text="bind:lastexamcnt"/>
- <Cell col="9" displaytype="date" style="align:center middle;" text="bind:lastexamdd" calendardisplaynulltype="nulltext"/>
- <Cell col="10" text="bind:healexamdtmnkey"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption35" text="전체 템플릿 수 :" position="absolute 963 104 1053 123" anchor="top right"/>
- <Edit id="output1" taborder="3" readonly="true" position="absolute 1057 103 1087 122" anchor="top right" style="background:transparent stretch 5,5;align:center middle;"/>
- <Static id="caption7" text="건" position="absolute 1092 104 1114 123" anchor="top right"/>
- <Button id="button39" taborder="4" text="엑셀저장" class="btn7" position="absolute 1115 103 1195 122" anchor="top right" onclick="button39_onclick"/>
- <Button id="button40" taborder="5" text="정보보기" class="btn2" position="absolute 1131 763 1195 782" anchor="right bottom" onclick="button40_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <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="healexamdtmntitl" type="STRING" size="256"/>
- <Column id="autexecflag" type="STRING" size="256"/>
- <Column id="cmpnlnkyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rgstfromdd"/>
- <Col id="rgsttodd"/>
- <Col id="healexamdtmntitl"/>
- <Col id="autexecflag"/>
- <Col id="cmpnlnkyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list_healexamdtmnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <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="건진데이터마이닝코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="scrnflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="scrnflag">L</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_CountNode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="CountNode" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </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" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="refmode" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_treedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="healexamdtmnsmlcd" type="INT" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="healexamdtmnsmlcd">0</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_key" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_johe.ipt_rgstfromdd" propid="value" datasetid="ds_send_data" columnid="rgstfromdd"/>
- <BindItem id="item1" compid="grp_johe.ipt_rgsttodd" propid="value" datasetid="ds_send_data" columnid="rgsttodd"/>
- <BindItem id="item2" compid="grp_johe.ipt_healexamdtmntitl" propid="value" datasetid="ds_send_data" columnid="healexamdtmntitl"/>
- <BindItem id="item3" compid="grp_johe.rdo_autoexecflag" propid="value" datasetid="ds_send_data" columnid="autexecflag"/>
- <BindItem id="item4" compid="grp_johe.rdo_cmpnlnkyn" propid="value" datasetid="ds_send_data" columnid="cmpnlnkyn"/>
- <BindItem id="item5" compid="output1" propid="value" datasetid="ds_CountNode" columnid="CountNode"/>
- </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";
- function SMCHT00200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMCHT00200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_healexamdtmnlist);
-
- try
- {
- var Param = frmf_getMainFormParam();
- ds_send_treedata.setColumn(0, "healexamdtmnsmlcd", Param.healexamdtmnsmlcd);
- }
- catch(e){}
-
- // 공통코드를 호출하여 자료(자동실행여부)를 가져온다
- var arrParam = [{dsNm: "ds_init_C0030list_C0030", cdGrpId: "Z0007"}]
- appf_getCodeList(arrParam);
-
- ds_send_data.setColumn(0, "rgstfromdd",utlf_getCurrentDate().toDate().getAddDate(-31,"D").getDateFormat());
- ds_send_data.setColumn(0, "rgsttodd", utlf_getCurrentDate());
-
- ds_main_list_healexamdtmnlist.clearData();
-
- var refmode = ds_send.getColumn(0, "refmode");
- var healexamdtmn_smlcd = ds_send_treedata.getColumn(0, "healexamdtmnsmlcd");
- // 목록조회 페이지를 바로 열었을 경울 refmode를 L 로 설정 (내용페이지에서 넘어올 경우 C로 표시)
- if (utlf_isNull(refmode))
- {
- ds_send.setColumn(0, "refmode","L");
- }
- else if (refmode == "C")
- {
- fGetHealExamDtmnList();
- }
-
- if (healexamdtmn_smlcd > 0)
- {
- ds_main_list_healexamdtmnlist.clearData();
-
- 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);
- var grid_rows = ds_main_list_healexamdtmnlist.rowcount;
- ds_CountNode.setColumn(0, "CountNode" , grid_rows);
-
- ds_send_treedata.setColumn(0, "healexamdtmnsmlcd","0");
- }
- }
- function fGetHealExamDtmnList()
- {
- ds_main_list_healexamdtmnlist.clearData();
- 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);
-
- var grid_rows = ds_main_list_healexamdtmnlist.rowcount;
- ds_CountNode.setColumn(0, "CountNode" , grid_rows);
- }
- function grp_johe_ipt_rgstfromdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo)
- {
- var rgstfromdd = String(obj.value);
- if (!utlf_isNull(rgstfromdd) && !utlf_isValidDateTime(rgstfromdd,"YYYYMMDD"))
- {
- sysf_messageBox("날짜가 바르게 입력되지","E007");
- obj.setFocus();
- }
- }
- function grp_johe_ipt_rgsttodd_onkillfocus(obj:Calendar, e:KillFocusEventInfo)
- {
- var rgsttodd = String(obj.value);
- if (!utlf_isNull(rgsttodd) && !utlf_isValidDateTime(rgsttodd,"YYYYMMDD"))
- {
- sysf_messageBox("날짜가 바르게 입력되지","E007");
- obj.setFocus();
- }
- }
- function grp_johe_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetHealExamDtmnList();
- }
- function button39_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_healexamdtmnlist, "excel", "SheetName", "true", "", "");
- }
- function grd_healexamdtmnlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fGetHealExamDtmnAttr(); // 건진데이터마이닝 정보조회
- }
- function fGetHealExamDtmnAttr()
- {
- var row = ds_main_list_healexamdtmnlist.rowposition;
- var receive_healexamdtmnkey = ds_main_list_healexamdtmnlist.getColumn(row, "healexamdtmnkey");
- dsf_makeValue(ds_send_key, "healexamdtmnkey", "String", receive_healexamdtmnkey);
- var objArg = new Object();
- objArg.healexamdtmnkey = receive_healexamdtmnkey;
- frmf_openForm("SMCHT00100", "", objArg);
- }
- function button40_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_list_healexamdtmnlist.rowposition >= 0 )
- {
- fGetHealExamDtmnAttr(); // 건진데이터마이닝 정보조회
- }
- else
- {
- sysf_messageBox("조회하신 후 목록을 ","C002");
- grd_healexamdtmnlist.setFocus();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|