SMCSC00200_개별캠페인통계.xrw 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SMCSC00200_개별캠페인통계
  4. * Summary : 개별 캠페인 통계
  5. * Programmer : 김준규
  6. * Date Written : 2007.09.13
  7. * History : 2008/07/17,박원희: 오류수정, 사용자 추가요구사항은 없음
  8. * Remark :
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <send>
  19. <data>
  20. <srchyear1/>
  21. <srchyear2/>
  22. <srchmonth/>
  23. <srchcmpnnm/>
  24. <srchcmpncd/>
  25. <ptype>Y</ptype>
  26. <logo_pic/>
  27. </data>
  28. </send>
  29. <hidden>
  30. <itemset>
  31. <item>
  32. <lbl/>
  33. <val/>
  34. </item>
  35. </itemset>
  36. </hidden>
  37. </root>
  38. </instance>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. var currentYear = getNewDate().getFullYear();
  42. var currentMonth= getNewDate().getMonth() + 1;
  43. var currentMonth = (("" + currentMonth).length == 1) ? "0" + currentMonth : "" + currentMonth;
  44. var piclogo = getLogoImageURL();
  45. makeSrchYearItem();
  46. model.setValue("/root/send/data/srchyear1", currentYear);
  47. model.setValue("/root/send/data/srchyear2", currentYear);
  48. model.setValue("/root/send/data/srchmonth", currentMonth);
  49. model.setValue("/root/send/data/logo_pic", piclogo);
  50. model.refresh();
  51. // btn_save.disabled = !checkAuth("X");
  52. makeReportPreview(0,88,1195,654);
  53. ]]>
  54. </script>
  55. <script type="javascript">
  56. <![CDATA[
  57. function makeSrchYearItem() {
  58. // item 초기화
  59. model.removeNodeset("/root/hidden/itemset/item");
  60. // Temp Item Node 생성
  61. var tmpItemNode = instance1.createNode("element", "item", "");
  62. var tmpLabelNode = instance1.createNode("element", "lbl", "");
  63. var tmpValueNode = instance1.createNode("element", "val", "");
  64. tmpItemNode.appendChild(tmpLabelNode);
  65. tmpItemNode.appendChild(tmpValueNode);
  66. // 현재 Year
  67. var curYear = getNewDate().getFullYear();
  68. // 초기 데이타가 2007년부터 있으므로
  69. var minYear = "2007"
  70. // Item Node
  71. var itemNode = null;
  72. for( var i = curYear; i >= minYear; i-- ) {
  73. tmpItemNode.lbl.text = i;
  74. tmpItemNode.val.text = i;
  75. // Temp Item Node 복사
  76. itemNode = tmpItemNode.cloneNode(true);
  77. model.duplicate("/root/hidden/itemset", itemNode);
  78. }
  79. cmb_SrchYear1.refresh();
  80. cmb_SrchYear2.refresh();
  81. }
  82. ]]>
  83. </script>
  84. <submission id="TRCSC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list"/>
  85. <submission id="TRCSC00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list"/>
  86. </model>
  87. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  90. <script type="javascript" src="../../../crm/campainweb/js/CPZ001.js"/>
  91. </xhtml:head>
  92. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  93. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  94. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:125px; height:13px; ">개별 캠페인 통계</caption>
  95. </group>
  96. <group id="grp_johe" style="left:0px; top:23px; width:1194px; height:35px; vertical-align:top; ">
  97. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  98. <caption id="caption9" class="search_name" style="left:15px; top:9px; width:95px; height:17px; ">캠페인명 :</caption>
  99. <input id="ipt_cmpnnm" ref="/root/send/data/srchcmpnnm" class="input_s_essential" editable="false" style="left:107px; top:8px; width:220px; height:19px; "/>
  100. <button id="btn_cmpnsrch" class="icon_search" style="left:331px; top:8px; width:16px; height:16px; ">
  101. <caption/>
  102. <script type="javascript" ev:event="DOMActivate">
  103. <![CDATA[
  104. var send_cmpn_cd = "";
  105. var send_cmpn_nm = model.getValue("/root/send/data/srchcmpnnm");
  106. var recv_cmpn_cd_path = "/root/send/data/srchcmpncd";
  107. var recv_cmpn_nm_path = "/root/send/data/srchcmpnnm";
  108. cpzfOpenSelectCmpn(send_cmpn_cd, send_cmpn_nm, recv_cmpn_cd_path, recv_cmpn_nm_path); // 캠페인 선택 팝업(modal)
  109. ]]>
  110. </script>
  111. </button>
  112. <input id="ipt_cmpncd" ref="/root/send/data/srchcmpncd" class="input_search" visibility="hidden" maxlength="30" style="left:351px; top:8px; width:75px; height:19px; "/>
  113. <caption id="caption2" class="search_name" style="left:395px; top:9px; width:95px; height:17px; ">실행일자 :</caption>
  114. <select1 id="cmb_PType2" ref="/root/send/data/ptype" appearance="full" overflow="visible" style="left:484px; top:9px; width:50px; height:17px; font-weight:bold; background-color:transparent; border-style:none; ">
  115. <choices>
  116. <item>
  117. <label>연도</label>
  118. <value>Y</value>
  119. </item>
  120. </choices>
  121. <script type="javascript" ev:event="xforms-select">
  122. <![CDATA[
  123. cmb_SrchYear1.disabled = "false";
  124. cmb_SrchYear2.disabled = "true";
  125. cmb_SrchMonth.disabled = "true";
  126. ]]>
  127. </script>
  128. </select1>
  129. <select1 id="cmb_SrchYear1" ref="/root/send/data/srchyear1" class="input_s_essential" appearance="minimal" style="left:542px; top:8px; width:85px; height:19px; text-align:center; ">
  130. <choices>
  131. <itemset nodeset="/root/hidden/itemset/item">
  132. <label ref="lbl"/>
  133. <value ref="val"/>
  134. </itemset>
  135. </choices>
  136. </select1>
  137. <caption id="caption4" class="search_no_b" style="left:849px; top:9px; width:20px; height:17px; ">년</caption>
  138. <select1 id="cmb_PType3" ref="/root/send/data/ptype" appearance="full" overflow="visible" style="left:684px; top:9px; width:70px; height:17px; font-weight:bold; background-color:transparent; border-style:none; ">
  139. <choices>
  140. <item>
  141. <label>연도/월</label>
  142. <value>M</value>
  143. </item>
  144. </choices>
  145. <script type="javascript" ev:event="xforms-select">
  146. <![CDATA[
  147. cmb_SrchYear1.disabled = "true";
  148. cmb_SrchYear2.disabled = "false";
  149. cmb_SrchMonth.disabled = "false";
  150. ]]>
  151. </script>
  152. </select1>
  153. <select1 id="cmb_SrchYear2" ref="/root/send/data/srchyear2" class="input_s_essential" disabled="true" appearance="minimal" style="left:762px; top:8px; width:85px; height:19px; text-align:center; ">
  154. <choices>
  155. <itemset nodeset="/root/hidden/itemset/item">
  156. <label ref="lbl"/>
  157. <value ref="val"/>
  158. </itemset>
  159. </choices>
  160. </select1>
  161. <caption id="caption5" class="search_no_b" style="left:629px; top:9px; width:20px; height:17px; ">년</caption>
  162. <select1 id="cmb_SrchMonth" ref="/root/send/data/srchmonth" class="input_s_essential" disabled="true" appearance="minimal" style="left:872px; top:8px; width:65px; height:19px; text-align:center; ">
  163. <choices>
  164. <item>
  165. <label>1</label>
  166. <value>01</value>
  167. </item>
  168. <item>
  169. <label>2</label>
  170. <value>02</value>
  171. </item>
  172. <item>
  173. <label>3</label>
  174. <value>03</value>
  175. </item>
  176. <item>
  177. <label>4</label>
  178. <value>04</value>
  179. </item>
  180. <item>
  181. <label>5</label>
  182. <value>05</value>
  183. </item>
  184. <item>
  185. <label>6</label>
  186. <value>06</value>
  187. </item>
  188. <item>
  189. <label>7</label>
  190. <value>07</value>
  191. </item>
  192. <item>
  193. <label>8</label>
  194. <value>08</value>
  195. </item>
  196. <item>
  197. <label>9</label>
  198. <value>09</value>
  199. </item>
  200. <item>
  201. <label>10</label>
  202. <value>10</value>
  203. </item>
  204. <item>
  205. <label>11</label>
  206. <value>11</value>
  207. </item>
  208. <item>
  209. <label>12</label>
  210. <value>12</value>
  211. </item>
  212. </choices>
  213. </select1>
  214. <caption id="caption6" class="search_no_b" style="left:939px; top:9px; width:20px; height:17px; ">월</caption>
  215. <line id="line1" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; "/>
  216. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
  217. <caption>조회</caption>
  218. <script type="javascript" ev:event="DOMActivate">
  219. <![CDATA[
  220. var strType = model.getValue("/root/send/data/ptype");
  221. var reSrchCmpnNm = model.getValue("/root/send/data/srchcmpnnm");
  222. if ( strType == 'Y') {
  223. if (isRequiredControls("cmb_SrchYear1") ){
  224. if (reSrchCmpnNm == "" || reSrchCmpnNm == null) {
  225. messageBox("캠페인 명은 ", "I003");
  226. model.SetFocus("btn_cmpnsrch");
  227. } else {
  228. exeReportPreview("RPCSC00200", "XMLFILE", "/root/send/data", "TRCSC00201");
  229. }
  230. }
  231. } else if ( strType == 'M') {
  232. if (isRequiredControls("cmb_SrchYear2", "cmb_SrchMonth") ){
  233. if (reSrchCmpnNm == "" || reSrchCmpnNm == null) {
  234. messageBox("캠페인 명은 ", "I003");
  235. model.SetFocus("btn_cmpnsrch");
  236. } else {
  237. exeReportPreview("RPCSC00201", "XMLFILE", "/root/send/data", "TRCSC00202");
  238. }
  239. }
  240. }
  241. ]]>
  242. </script>
  243. </button>
  244. </group>
  245. <group id="grp_customer" style="left:0px; top:58px; width:1194px; height:669px; ">
  246. <caption id="caption8" class="tit_2" style="left:5px; top:10px; width:125px; height:13px; ">개별 캠페인 통계</caption>
  247. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  248. </group>
  249. </xhtml:body>
  250. </xhtml:html>