SMCDT00200_데이터마이닝목록조회.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMCDT00200" position="absolute 0 0 1199 805" titletext="고객정보마이닝 목록검색" oninit="SMCDT00200_oninit" onload="SMCDT00200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 221 33 1191 93" align="align:center top;" id="grp_johe" class="div_SA2" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static text="등 록 일 :" position="absolute 15 9 115 26" id="caption2" class="search_name" anchor="default"/>
  11. <Calendar position="absolute 118 8 238 27" id="ipt_rgstfromdd" class="input_search" anchor="default" onchanged="grp_johe_ipt_rgstfromdd_onchanged"/>
  12. <Static text="~" position="absolute 243 9 255 26" id="caption3" class="search_no_b" anchor="default"/>
  13. <Calendar position="absolute 258 8 378 27" id="ipt_rgsttodd" class="input_search" anchor="default" onchanged="grp_johe_ipt_rgsttodd_onchanged"/>
  14. <Static text="탬플릿명 :" position="absolute 394 9 481 26" id="caption4" class="search_name" anchor="default"/>
  15. <Edit position="absolute 477 8 607 25" id="ipt_s_dtmntitl" class="input_search" autoselect="true" anchor="default"/>
  16. <Static text="등 록 자 :" position="absolute 640 9 740 26" id="caption5" class="search_name" anchor="default"/>
  17. <Edit position="absolute 727 9 857 26" id="ipt_fstrgstnm" class="input_search" autoselect="true" anchor="default"/>
  18. <Static text="자동실행 여부 :" position="absolute 15 34 145 51" id="caption6" class="search_name" anchor="default"/>
  19. <Radio position="absolute 137 33 279 52" id="rdo_autoexecflag" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" rowcount="-1" anchor="default">
  20. <Dataset id="innerdataset">
  21. <ColumnInfo>
  22. <Column id="codecolumn"/>
  23. <Column id="datacolumn"/>
  24. </ColumnInfo>
  25. <Rows>
  26. <Row>
  27. <Col id="codecolumn">
  28. </Col>
  29. <Col id="datacolumn">전체</Col>
  30. </Row>
  31. <Row>
  32. <Col id="codecolumn">A</Col>
  33. <Col id="datacolumn">자동</Col>
  34. </Row>
  35. <Row>
  36. <Col id="codecolumn">M</Col>
  37. <Col id="datacolumn">수동</Col>
  38. </Row>
  39. </Rows>
  40. </Dataset>
  41. </Radio>
  42. <Static text="캠페인 연결 여부:" position="absolute 394 35 531 52" id="caption8" class="search_name" anchor="default"/>
  43. <Radio position="absolute 531 33 715 52" id="rdo_cmpnlnkyn" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" rowcount="-1" anchor="default">
  44. <Dataset id="innerdataset">
  45. <ColumnInfo>
  46. <Column id="codecolumn"/>
  47. <Column id="datacolumn"/>
  48. </ColumnInfo>
  49. <Rows>
  50. <Row>
  51. <Col id="codecolumn">radio1</Col>
  52. <Col id="datacolumn">무관</Col>
  53. </Row>
  54. <Row>
  55. <Col id="codecolumn">radio2</Col>
  56. <Col id="datacolumn">연결</Col>
  57. </Row>
  58. <Row>
  59. <Col id="codecolumn">radio3</Col>
  60. <Col id="datacolumn">연결되지않음</Col>
  61. </Row>
  62. </Rows>
  63. </Dataset>
  64. </Radio>
  65. <Shape position="absolute 880 7 886 53" linetype="vertical" id="line1" class="line_4" anchor="top right"/>
  66. <Button position="absolute 893 17 949 39" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="grp_johe_btn_search_onclick"/>
  67. </Layout>
  68. </Layouts>
  69. </Div>
  70. <Static id="caption1" text="고객정보마이닝 목록검색" class="tit_1" position="absolute 0 0 180 21"/>
  71. <Static id="caption30" text="데이터마아닝 템플릿" class="tit_2" position="absolute 0 32 215 53"/>
  72. <Div id="import1" taborder="1" url="./SSCDT00400_데이터마이닝그룹트리.xfdl" position="absolute 0 48 215 792" anchor="left top bottom"/>
  73. <Static id="caption9" text="데이터마이닝 템플릿" class="tit_2" position="absolute 222 103 372 124"/>
  74. <Shape id="line2" class="line_10" position="absolute 222 119 1192 125" anchor="left top right"/>
  75. <Grid id="grd_dtmnlist" class="text_center" taborder="3" binddataset="ds_main_list_dtmnlist" useinputpanel="false" position="absolute 222 124 1192 767" autoenter="select" cellsizingtype="col" anchor="all" oncelldblclick="grd_dtmnlist_oncelldblclick">
  76. <Formats>
  77. <Format id="default">
  78. <Columns>
  79. <Column size="22"/>
  80. <Column size="165"/>
  81. <Column size="110"/>
  82. <Column size="95"/>
  83. <Column size="90"/>
  84. <Column size="100"/>
  85. <Column size="80"/>
  86. <Column size="75"/>
  87. <Column size="90"/>
  88. <Column size="100"/>
  89. <Column size="0"/>
  90. </Columns>
  91. <Rows>
  92. <Row size="24" band="head"/>
  93. <Row size="24"/>
  94. </Rows>
  95. <Band id="head">
  96. <Cell/>
  97. <Cell col="1" text="탬플릿명"/>
  98. <Cell col="2" text="그룹"/>
  99. <Cell col="3" text="연결캠페인 여부"/>
  100. <Cell col="4" text="자동실행 여부"/>
  101. <Cell col="5" text="등록일시"/>
  102. <Cell col="6" text="등록자"/>
  103. <Cell col="7" text="총실행건수"/>
  104. <Cell col="8" text="최종실행건수"/>
  105. <Cell col="9" text="최종실행일"/>
  106. <Cell col="10"/>
  107. </Band>
  108. <Band id="body">
  109. <Cell celltype="head" expr="currow+1"/>
  110. <Cell col="1" style="align:center top;padding:5 2 3 1;" text="bind:dtmntitl" wordwrap="word"/>
  111. <Cell col="2" text="bind:dtmnsmltitl"/>
  112. <Cell col="3" displaytype="combo" style="align:center middle;" text="bind:lnktmplyn" combodataset="ds_cmb_lnktmplyn" combocodecol="value" combodatacol="label" enable="false"/>
  113. <Cell col="4" displaytype="combo" style="align:center middle;" text="bind:autexecflag" combodataset="ds_init_C0030list_C0030" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  114. <Cell col="5" displaytype="date" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm" calendardisplaynulltype="nulltext"/>
  115. <Cell col="6" text="bind:fstrgstnm"/>
  116. <Cell col="7" text="bind:examcnt"/>
  117. <Cell col="8" text="bind:lastexamcnt"/>
  118. <Cell col="9" text="bind:lastexamdd"/>
  119. <Cell col="10" text="bind:dtmnkey"/>
  120. </Band>
  121. </Format>
  122. </Formats>
  123. </Grid>
  124. <Static id="caption35" text="전체 템플릿 수 :" position="absolute 957 100 1047 119" anchor="top right"/>
  125. <Edit id="output1" taborder="4" readonly="true" position="absolute 1047 99 1077 118" anchor="top right" autoselect="true" style="background:transparent stretch 5,5;align:center middle;"/>
  126. <Static id="caption7" text="건" position="absolute 1087 100 1117 119" anchor="top right"/>
  127. <Button id="btn_saveexcel" taborder="5" text="엑셀저장" class="btn7" position="absolute 1112 100 1192 119" anchor="top right" onclick="btn_saveexcel_onclick"/>
  128. <Button id="button40" taborder="6" text="정보보기" class="btn2" position="absolute 1127 768 1191 787" onclick="button40_onclick" anchor="right bottom"/>
  129. </Layout>
  130. </Layouts>
  131. <Objects>
  132. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  133. <ColumnInfo>
  134. <Column id="rgstfromdd" type="STRING" size="256"/>
  135. <Column id="rgsttodd" type="STRING" size="256"/>
  136. <Column id="dtmnnm" type="STRING" size="256"/>
  137. <Column id="rgstnm" type="STRING" size="256"/>
  138. <Column id="autexecflag" type="STRING" size="256"/>
  139. <Column id="cmpnlnkyn" type="STRING" size="256"/>
  140. <Column id="dtmnsmlcd" type="STRING" size="256"/>
  141. </ColumnInfo>
  142. <Rows>
  143. <Row>
  144. <Col id="rgstfromdd"/>
  145. <Col id="rgsttodd"/>
  146. <Col id="dtmnnm"/>
  147. <Col id="rgstnm"/>
  148. <Col id="autexecflag"/>
  149. <Col id="cmpnlnkyn"/>
  150. <Col id="dtmnsmlcd"/>
  151. </Row>
  152. </Rows>
  153. </Dataset>
  154. <Dataset id="ds_main_list_dtmnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  155. <ColumnInfo>
  156. <Column id="dtmntitl" type="STRING" size="256" sumtext="탬플릿명"/>
  157. <Column id="dtmnsmltitl" type="STRING" size="256" sumtext="그룹"/>
  158. <Column id="lnktmplyn" type="STRING" size="256" sumtext="연결캠페인 여부"/>
  159. <Column id="autexecflag" type="STRING" size="256" sumtext="자동실행 여부"/>
  160. <Column id="fstrgstdt" type="STRING" size="256" sumtext="등록일시"/>
  161. <Column id="fstrgstnm" type="STRING" size="256" sumtext="등록자"/>
  162. <Column id="examcnt" type="STRING" size="256" sumtext="총실행건수"/>
  163. <Column id="lastexamcnt" type="STRING" size="256" sumtext="최종실행건수"/>
  164. <Column id="lastexamdd" type="STRING" size="256" sumtext="최종실행일"/>
  165. <Column id="deptnm" type="STRING" size="256" sumtext="등록부서"/>
  166. <Column id="dtmnkey" type="STRING" size="256" sumtext="데이터마이닝코드"/>
  167. </ColumnInfo>
  168. </Dataset>
  169. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  170. <ColumnInfo>
  171. <Column id="countnode" type="STRING" size="256"/>
  172. </ColumnInfo>
  173. <Rows>
  174. <Row/>
  175. </Rows>
  176. </Dataset>
  177. <Dataset id="ds_cmb_lnktmplyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  178. <ColumnInfo>
  179. <Column id="label" type="STRING" size="256"/>
  180. <Column id="value" type="STRING" size="256"/>
  181. </ColumnInfo>
  182. <Rows>
  183. <Row>
  184. <Col id="label">연결</Col>
  185. <Col id="value">Y</Col>
  186. </Row>
  187. </Rows>
  188. </Dataset>
  189. <Dataset id="ds_init_C0030list_C0030" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  190. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  191. <ColumnInfo>
  192. <Column id="refmode" type="STRING" size="256"/>
  193. </ColumnInfo>
  194. <Rows>
  195. <Row/>
  196. </Rows>
  197. </Dataset>
  198. <Dataset id="ds_send_key" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  199. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  200. <ColumnInfo>
  201. <Column id="scrnflag" type="STRING" size="256"/>
  202. </ColumnInfo>
  203. <Rows>
  204. <Row>
  205. <Col id="scrnflag">L</Col>
  206. </Row>
  207. </Rows>
  208. </Dataset>
  209. </Objects>
  210. <Bind>
  211. <BindItem id="item0" compid="output1" propid="value" datasetid="ds_temp" columnid="countnode"/>
  212. <BindItem id="item1" compid="grp_johe.ipt_rgstfromdd" propid="value" datasetid="ds_send_data" columnid="rgstfromdd"/>
  213. <BindItem id="item2" compid="grp_johe.ipt_rgsttodd" propid="value" datasetid="ds_send_data" columnid="rgsttodd"/>
  214. <BindItem id="item3" compid="grp_johe.rdo_autoexecflag" propid="value" datasetid="ds_send_data" columnid="autexecflag"/>
  215. <BindItem id="item4" compid="grp_johe.ipt_s_dtmntitl" propid="value" datasetid="ds_send_data" columnid="dtmnnm"/>
  216. <BindItem id="item5" compid="grp_johe.rdo_cmpnlnkyn" propid="value" datasetid="ds_send_data" columnid="cmpnlnkyn"/>
  217. <BindItem id="item6" compid="grp_johe.ipt_fstrgstnm" propid="value" datasetid="ds_send_data" columnid="rgstnm"/>
  218. </Bind>
  219. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  220. * System Name :
  221. * Job Name :
  222. * Creator :
  223. * Make Date : 2016-05-24
  224. * Description :
  225. *---------------------------------------------------------------------------------------
  226. * Modify Date Modifier Modify Description
  227. *---------------------------------------------------------------------------------------
  228. * 2016-05-24 Live Converter TF->XP
  229. *
  230. *---------------------------------------------------------------------------------------
  231. ****************************************************************************************/
  232. include "com_commonxp::comm_main.xjs";
  233. function SMCDT00200_oninit(obj:Form, e:InitEventInfo)
  234. {
  235. frmf_initForm(obj);
  236. }
  237. function SMCDT00200_onload(obj:Form, e:LoadEventInfo)
  238. {
  239. grdf_initGrid(grd_dtmnlist);
  240. try
  241. {
  242. var objParam = frmf_getMainFormParam();
  243. ds_send.setColumn(0, "refmode", objParam.refmode);
  244. }
  245. catch(e){}
  246. // 공통코드를 호출하여 자료(자동실행여부)를 가져온다
  247. var arrParam = [{dsNm: "ds_init_C0030list_C0030", cdGrpId: "C0030"}]
  248. appf_getCodeList(arrParam);
  249. // 데이터마이닝 템플릿 그리드의 col을 초기화 시켜준다.
  250. ds_main_list_dtmnlist.clearData();
  251. var refmode = ds_send.getColumn(0, "refmode");
  252. var dtmn_smlcd = ds_send_data.getColumn(0, "dtmnsmlcd");
  253. // 목록조회 페이지를 바로 열었을 경울 refmode를 L 로 설정 (내용페이지에서 넘어올 경우 C로 표시)
  254. if (utlf_isNull(refmode))
  255. {
  256. ds_send.setColumn(0, "refmode","L");
  257. }
  258. else if (refmode == "C")
  259. {
  260. fGetDtmnList();
  261. }
  262. if (parseInt(dtmn_smlcd) > 0)
  263. {
  264. fGetDtmnList();
  265. dsf_makeValue(ds_send_data, "dtmnsmlcd", "string","");
  266. }
  267. fCheckAuth();
  268. }
  269. function fCheckAuth()
  270. {
  271. if (!frmf_checkAuth("r"))
  272. {
  273. grp_johe.btn_search.enable = false;
  274. }
  275. if (!frmf_checkAuth("p"))
  276. {
  277. btn_saveexcel.enable = false;
  278. }
  279. }
  280. function fGetDtmnList()
  281. {
  282. ds_main_list_dtmnlist.clearData();
  283. var oParam = {};
  284. oParam.id = "TRCDT00201";
  285. oParam.service = "dtmnmngtapp.DtmnMngt";
  286. oParam.method = "reqGetDtmnList";
  287. oParam.inds = "req=ds_send_data";
  288. oParam.outds = "ds_main_list_dtmnlist=dtmnlist";
  289. oParam.async = false;
  290. //oParam.callback = "cf_TRCDT00201";
  291. tranf_submit(oParam);
  292. var grid_rows = ds_main_list_dtmnlist.rowcount;
  293. ds_temp.setColumn(0, "countnode" , grid_rows);
  294. }
  295. function grp_johe_ipt_rgstfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  296. {
  297. var rgstfromdd = String(obj.value);
  298. if (!utlf_isNull(rgstfromdd) && !utlf_isValidDateTime(rgstfromdd,"YYYYMMDD"))
  299. {
  300. sysf_messageBox("날짜가 바르게 입력되지","E007");
  301. obj.setFocus();
  302. }
  303. }
  304. function grp_johe_ipt_rgsttodd_onchanged(obj:Calendar, e:ChangeEventInfo)
  305. {
  306. var rgsttodd = String(obj.value);
  307. if (!utlf_isNull(rgsttodd) && !utlf_isValidDateTime(rgsttodd,"YYYYMMDD"))
  308. {
  309. sysf_messageBox("날짜가 바르게 입력되지","E007");
  310. obj.setFocus();
  311. }
  312. }
  313. function grp_johe_btn_search_onclick(obj:Button, e:ClickEventInfo)
  314. {
  315. fGetDtmnList();
  316. }
  317. function grd_dtmnlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  318. {
  319. fGetDtmnAttr(); // 데이터마이닝 정보조회
  320. }
  321. function fGetDtmnAttr()
  322. {
  323. var row = ds_main_list_dtmnlist.rowposition;
  324. var receive_dtmnkey = ds_main_list_dtmnlist.getColumn(row, "dtmnkey");
  325. dsf_makeValue(ds_send_key, "dtmnkey", "string", receive_dtmnkey);
  326. var objArg = new Object();
  327. objArg.dtmnkey = receive_dtmnkey;
  328. objArg.refmode = ds_send.getColumn(0, "refmode");
  329. frmf_openForm("SMCDT00100", "", objArg);
  330. }
  331. function button40_onclick(obj:Button, e:ClickEventInfo)
  332. {
  333. if( ds_main_list_dtmnlist.rowposition >= 0 )
  334. {
  335. fGetDtmnAttr(); // 데이터마이닝 정보조회
  336. }
  337. else
  338. {
  339. sysf_messageBox("조회하신 후 목록을 ","C002");
  340. grd_dtmnlist.setFocus();
  341. }
  342. }
  343. function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
  344. {
  345. grdf_exportExcel(grd_dtmnlist, "excel", "SheetName", "true", "", "");
  346. }
  347. ]]></Script>
  348. </Form>
  349. </FDL>