SMCDT00200_데이터마이닝목록조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SMCDT00200_데이터마이닝목록조회
  4. * Summary : 고객정보마이닝목록검색
  5. * Programmer : 최정환
  6. * Date Written : 2007.05.16
  7. * History : 2007.05.16
  8. * Remark :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  12. <xhtml:head>
  13. <xhtml:title>고객정보마이닝 목록검색</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <list>
  19. <dtmnlist>
  20. <dtmntitl/>
  21. <dtmnsmltitl/>
  22. <lnktmplyn/>
  23. <autexecflag/>
  24. <fstrgstdt/>
  25. <fstrgstnm/>
  26. <examcnt/>
  27. <lastexamcnt/>
  28. <lastexamdd/>
  29. <dtmnkey/>
  30. </dtmnlist>
  31. </list>
  32. </main>
  33. <send>
  34. <data>
  35. <rgstfromdd/>
  36. <rgsttodd/>
  37. <dtmnnm/>
  38. <rgstnm/>
  39. <autexecflag/>
  40. <cmpnlnkyn/>
  41. <dtmnsmlcd/>
  42. </data>
  43. <key>
  44. <dtmnkey/>
  45. </key>
  46. <refmode/>
  47. </send>
  48. <init>
  49. <C0030list>
  50. <cdid/>
  51. <cdnm/>
  52. </C0030list>
  53. </init>
  54. <hidden>
  55. <scrnflag>L</scrnflag>
  56. </hidden>
  57. <temp>
  58. <countnode/>
  59. </temp>
  60. </root>
  61. </instance>
  62. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  63. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  64. <submission id="TRCDT00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list"/>
  65. </model>
  66. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  69. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  70. <script type="javascript" ev:event="xforms-ready">
  71. <![CDATA[
  72. // 공통코드를 호출하여 자료(자동실행여부)를 가져온다
  73. zbcfGetCodeList( new Array("C0030"), new Array("/root/init/C0030list"), true );
  74. // 데이터마이닝 템플릿 그리드의 col을 초기화 시켜준다.
  75. model.removenodeset("/root/main/list/dtmnlist"); // 데이터마이닝 템플릿 리스트
  76. var refmode = model.getValue("/root/send/refmode");
  77. var dtmn_smlcd = model.getValue("/root/send/data/dtmnsmlcd");
  78. // 목록조회 페이지를 바로 열었을 경울 refmode를 L 로 설정 (내용페이지에서 넘어올 경우 C로 표시)
  79. if (refmode == "") {
  80. model.setValue("/root/send/refmode","L");
  81. } else if (refmode == "C") {
  82. fGetDtmnList();
  83. }
  84. if (dtmn_smlcd > 0) {
  85. fGetDtmnList();
  86. model.makeValue("/root/send/data/dtmnsmlcd","");
  87. }
  88. // 등록일의 값이 없으면 최근한달로 셋팅한다.
  89. /* var rgstfromdd = model.getValue("/root/send/data/rgstfromdd");
  90. var rgsttodd = model.getValue("/root/send/data/rgsttodd");
  91. if (rgstfromdd == "") {
  92. model.setValue("/root/send/data/rgstfromdd",getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat());
  93. }
  94. if (rgsttodd == "") {
  95. model.setValue("/root/send/data/rgsttodd",getCurrentDate());
  96. }
  97. */
  98. model.refresh();
  99. fCheckAuth();
  100. ]]>
  101. </script>
  102. <script type="javascript">
  103. <![CDATA[
  104. // 권한체크
  105. function fCheckAuth() {
  106. if (!checkAuth("r")) {
  107. btn_search.disabled=true;
  108. }
  109. if (!checkAuth("p")) {
  110. btn_saveexcel.disabled=true;
  111. }
  112. }
  113. // 목록조회
  114. function fGetDtmnList() {
  115. model.removeNodeset("/root/main/list/dtmnlist");
  116. submit("TRCDT00201");
  117. var grid_rows = grd_dtmnlist.rows-1;
  118. model.setvalue("/root/temp/countnode" , grid_rows);
  119. model.refresh();
  120. }
  121. // 선택한 데이터마이닝 상세정보 조회
  122. function fGetDtmnAttr() {
  123. var row = grd_dtmnlist.row;
  124. var receive_dtmnkey = grd_dtmnlist.valueMatrix(row, grd_dtmnlist.colRef("dtmnkey"));
  125. model.makeValue("/root/send/key/dtmnkey", receive_dtmnkey);
  126. navigate("SMCDT00100", "", "", "", "SMCDT00100", "/root/send", "/root/temp/ref");
  127. }
  128. /*
  129. function fDtmnLrg() {
  130. // 데이터마이닝 그룹관리의 변경된 내용을 새로 적용시켜준다.
  131. model.removenodeset("/root/init/dtmnlrg/dtmnlrggrup");
  132. model.removenodeset("/root/init/dtmnmdl/dtmnmdlgrup");
  133. model.removenodeset("/root/init/dtmnsml/dtmnsmlgrup");
  134. model.resetInstanceNode("/root/main/dtmntmpl/tmpldefine/dtmnlrgcd");
  135. model.resetInstanceNode("/root/main/dtmntmpl/tmpldefine/dtmnmdlcd");
  136. model.resetInstanceNode("/root/main/dtmntmpl/tmpldefine/dtmnsmlcd");
  137. submit("TRCDT00104");
  138. }
  139. */
  140. ]]>
  141. </script>
  142. </xhtml:head>
  143. <xhtml:body guideline="1,358;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  144. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  145. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:180px; height:13px; ">고객정보마이닝 목록검색</caption>
  146. </group>
  147. <group id="grp_johe" style="left:225px; top:23px; width:970px; height:59px; vertical-align:top; ">
  148. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:970px; height:59px; "/>
  149. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:100px; height:17px; ">등 록 일 :</caption>
  150. <input id="ipt_rgstfromdd" ref="/root/send/data/rgstfromdd" class="input_search" inputtype="date" style="left:118px; top:8px; width:120px; height:19px; "/>
  151. <script type="javascript" ev:event="DOMFocusOut">
  152. <![CDATA[
  153. var rgstfromdd = model.getValue("/root/send/data/rgstfromdd");
  154. if (rgstfromdd != "" && !isValidDateTime(rgstfromdd,"YYYYMMDD")) {
  155. messageBox("날짜가 바르게 입력되지","E007");
  156. model.setFocus("ipt_rgstfromdd");
  157. }
  158. ]]>
  159. </script>
  160. <caption id="caption3" class="search_no_b" style="left:243px; top:9px; width:12px; height:17px; ">~</caption>
  161. <input id="ipt_rgsttodd" ref="/root/send/data/rgsttodd" class="input_search" inputtype="date" style="left:258px; top:8px; width:120px; height:19px; "/>
  162. <script type="javascript" ev:event="DOMFocusOut">
  163. <![CDATA[
  164. var rgsttodd = model.getValue("/root/send/data/rgsttodd");
  165. if (rgsttodd != "" && !isValidDateTime(rgsttodd,"YYYYMMDD")) {
  166. messageBox("날짜가 바르게 입력되지","E007");
  167. model.setFocus("ipt_rgsttodd");
  168. }
  169. ]]>
  170. </script>
  171. <caption id="caption4" class="search_name" style="left:394px; top:9px; width:87px; height:17px; ">탬플릿명 :</caption>
  172. <input id="ipt_s_dtmntitl" ref="/root/send/data/dtmnnm" class="input_search" style="left:483px; top:9px; width:130px; height:17px; "/>
  173. <caption id="caption5" class="search_name" style="left:640px; top:9px; width:100px; height:17px; ">등 록 자 :</caption>
  174. <input id="ipt_fstrgstnm" ref="/root/send/data/rgstnm" class="input_search" style="left:743px; top:9px; width:130px; height:17px; "/>
  175. <caption id="caption6" class="search_name" style="left:15px; top:33px; width:130px; height:17px; ">자동실행 여부 :</caption>
  176. <select1 id="rdo_autoexecflag" ref="/root/send/data/autexecflag" appearance="full" cellspacing="15" cols="3" overflow="visible" style="left:145px; top:33px; width:206px; height:19px; background-color:transparent; border-style:none; ">
  177. <choices>
  178. <item>
  179. <label>전체</label>
  180. <value/>
  181. </item>
  182. <item>
  183. <label>자동</label>
  184. <value>A</value>
  185. </item>
  186. <item>
  187. <label>수동</label>
  188. <value>M</value>
  189. </item>
  190. </choices>
  191. </select1>
  192. <caption id="caption8" class="search_name" style="left:394px; top:33px; width:137px; height:17px; ">캠페인 연결 여부:</caption>
  193. <select1 id="rdo_cmpnlnkyn" ref="/root/send/data/cmpnlnkyn" appearance="full" cellspacing="15" cols="3" overflow="visible" style="left:531px; top:33px; width:256px; height:19px; background-color:transparent; border-style:none; ">
  194. <choices>
  195. <item>
  196. <label>무관</label>
  197. <value>radio1</value>
  198. </item>
  199. <item>
  200. <label>연결</label>
  201. <value>radio2</value>
  202. </item>
  203. <item>
  204. <label>연결되지않음</label>
  205. <value>radio3</value>
  206. </item>
  207. </choices>
  208. </select1>
  209. <line id="line1" class="line_4" style="x1:883px; y1:7px; x2:883px; y2:53px; "/>
  210. <button id="btn_search" class="btn1_letter2" style="left:893px; top:17px; width:56px; height:22px; ">
  211. <caption>조회</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. fGetDtmnList();
  215. ]]>
  216. </script>
  217. </button>
  218. </group>
  219. <group id="group2" style="left:225px; top:82px; width:970px; height:698px; ">
  220. <caption id="caption9" class="tit_2" style="left:5px; top:10px; width:150px; height:13px; ">데이터마이닝 템플릿</caption>
  221. <caption id="caption35" style="left:743px; top:10px; width:90px; height:19px; ">전체 템플릿 수 :</caption>
  222. <output id="output1" ref="/root/temp/countnode" appearance="output" style="left:833px; top:9px; width:30px; height:19px; text-align:right; "/>
  223. <caption id="caption7" style="left:873px; top:10px; width:30px; height:19px; ">건</caption>
  224. <button id="btn_saveexcel" class="btn2_letter4" style="left:903px; top:10px; width:64px; height:19px; ">
  225. <caption>엑셀저장</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. var file_nm = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  229. if (file_nm != "") {
  230. grd_dtmnlist.saveExcel(file_nm, "SheetName", true, true, "", "", false);
  231. }
  232. ]]>
  233. </script>
  234. </button>
  235. <line id="line2" class="line_1" style="x1:0px; y1:31px; x2:970px; y2:31px; "/>
  236. <datagrid id="grd_dtmnlist" nodeset="/root/main/list/dtmnlist" class="text_center" caption="탬플릿명^그룹^연결캠페인 여부^자동실행 여부^등록일시^등록자^총실행건수^최종실행건수^최종실행일^" colsep="^" colwidth="165, 110, 95, 90, 100, 80, 75, 90, 100, 0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:36px; width:970px; height:633px; ">
  237. <col ref="dtmntitl"/>
  238. <col ref="dtmnsmltitl"/>
  239. <col disabled="true" ref="lnktmplyn" type="combo" style="text-align:center; ">
  240. <choices>
  241. <item>
  242. <label>연결</label>
  243. <value>Y</value>
  244. </item>
  245. </choices>
  246. </col>
  247. <col disabled="true" ref="autexecflag" type="combo" style="text-align:center; ">
  248. <choices>
  249. <itemset nodeset="/root/init/C0030list/C0030">
  250. <label ref="cdnm"/>
  251. <value ref="cdid"/>
  252. </itemset>
  253. </choices>
  254. </col>
  255. <col ref="fstrgstdt" format="yyyy-mm-dd hh:mm"/>
  256. <col ref="fstrgstnm" style="text-align:center; "/>
  257. <col ref="examcnt" style="text-align:center; "/>
  258. <col ref="lastexamcnt" style="text-align:center; "/>
  259. <col ref="lastexamdd" style="text-align:center; "/>
  260. <col ref="dtmnkey" visibility="hidden" style="text-align:center; "/>
  261. <script type="javascript" ev:event="ondblclick">
  262. <![CDATA[
  263. if( grd_dtmnlist.isCell(event.target) && grd_dtmnlist.row >= grd_dtmnlist.fixedRows ){
  264. fGetDtmnAttr(); // 데이터마이닝 정보조회
  265. }
  266. ]]>
  267. </script>
  268. </datagrid>
  269. <button id="button40" class="btn2_letter4" style="left:903px; top:672px; width:64px; height:19px; ">
  270. <caption>정보보기</caption>
  271. </button>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. if( grd_dtmnlist.row > 0 ){
  275. fGetDtmnAttr(); // 데이터마이닝 정보조회
  276. } else {
  277. messageBox("조회하신 후 목록을 ","C002");
  278. model.SetFocus("grd_dtmnlist");
  279. }
  280. ]]>
  281. </script>
  282. </group>
  283. <group id="group12" style="left:0px; top:23px; width:215px; height:757px; ">
  284. <caption id="caption30" class="tit_2" style="left:0px; top:0px; width:215px; height:13px; ">데이터마아닝 템플릿</caption>
  285. <import id="import1" instancetype="merge" src="./SSCDT00400_데이터마이닝그룹트리.xrw" style="left:0px; top:13px; width:215px; height:744px; "/>
  286. </group>
  287. </xhtml:body>
  288. </xhtml:html>