123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SMCSC00200_개별캠페인통계
- * Summary : 개별 캠페인 통계
- * Programmer : 김준규
- * Date Written : 2007.09.13
- * History : 2008/07/17,박원희: 오류수정, 사용자 추가요구사항은 없음
- * Remark :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>개별 캠페인 통계</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main/>
- <send>
- <data>
- <srchyear1/>
- <srchyear2/>
- <srchmonth/>
- <srchcmpnnm/>
- <srchcmpncd/>
- <ptype>Y</ptype>
- <logo_pic/>
- </data>
- </send>
- <hidden>
- <itemset>
- <item>
- <lbl/>
- <val/>
- </item>
- </itemset>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var currentYear = getNewDate().getFullYear();
- var currentMonth= getNewDate().getMonth() + 1;
- var currentMonth = (("" + currentMonth).length == 1) ? "0" + currentMonth : "" + currentMonth;
- var piclogo = getLogoImageURL();
-
- makeSrchYearItem();
- model.setValue("/root/send/data/srchyear1", currentYear);
- model.setValue("/root/send/data/srchyear2", currentYear);
- model.setValue("/root/send/data/srchmonth", currentMonth);
- model.setValue("/root/send/data/logo_pic", piclogo);
- model.refresh();
-
- // btn_save.disabled = !checkAuth("X");
- makeReportPreview(0,88,1195,654);
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function makeSrchYearItem() {
-
- // item 초기화
- model.removeNodeset("/root/hidden/itemset/item");
-
- // Temp Item Node 생성
- var tmpItemNode = instance1.createNode("element", "item", "");
- var tmpLabelNode = instance1.createNode("element", "lbl", "");
- var tmpValueNode = instance1.createNode("element", "val", "");
- tmpItemNode.appendChild(tmpLabelNode);
- tmpItemNode.appendChild(tmpValueNode);
-
- // 현재 Year
- var curYear = getNewDate().getFullYear();
- // 초기 데이타가 2007년부터 있으므로
- var minYear = "2007"
- // Item Node
- var itemNode = null;
-
- for( var i = curYear; i >= minYear; i-- ) {
-
- tmpItemNode.lbl.text = i;
- tmpItemNode.val.text = i;
-
- // Temp Item Node 복사
- itemNode = tmpItemNode.cloneNode(true);
-
- model.duplicate("/root/hidden/itemset", itemNode);
- }
- cmb_SrchYear1.refresh();
- cmb_SrchYear2.refresh();
- }
- ]]>
- </script>
- <submission id="TRCSC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list"/>
- <submission id="TRCSC00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../crm/campainweb/js/CPZ001.js"/>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:125px; height:13px; ">개별 캠페인 통계</caption>
- </group>
- <group id="grp_johe" style="left:0px; top:23px; width:1194px; height:35px; vertical-align:top; ">
- <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; "/>
- <caption id="caption9" class="search_name" style="left:15px; top:9px; width:95px; height:17px; ">캠페인명 :</caption>
- <input id="ipt_cmpnnm" ref="/root/send/data/srchcmpnnm" class="input_s_essential" editable="false" style="left:107px; top:8px; width:220px; height:19px; "/>
- <button id="btn_cmpnsrch" class="icon_search" style="left:331px; top:8px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var send_cmpn_cd = "";
- var send_cmpn_nm = model.getValue("/root/send/data/srchcmpnnm");
- var recv_cmpn_cd_path = "/root/send/data/srchcmpncd";
- var recv_cmpn_nm_path = "/root/send/data/srchcmpnnm";
-
- cpzfOpenSelectCmpn(send_cmpn_cd, send_cmpn_nm, recv_cmpn_cd_path, recv_cmpn_nm_path); // 캠페인 선택 팝업(modal)
- ]]>
- </script>
- </button>
- <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; "/>
- <caption id="caption2" class="search_name" style="left:395px; top:9px; width:95px; height:17px; ">실행일자 :</caption>
- <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; ">
- <choices>
- <item>
- <label>연도</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- cmb_SrchYear1.disabled = "false";
- cmb_SrchYear2.disabled = "true";
- cmb_SrchMonth.disabled = "true";
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/hidden/itemset/item">
- <label ref="lbl"/>
- <value ref="val"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_no_b" style="left:849px; top:9px; width:20px; height:17px; ">년</caption>
- <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; ">
- <choices>
- <item>
- <label>연도/월</label>
- <value>M</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- cmb_SrchYear1.disabled = "true";
- cmb_SrchYear2.disabled = "false";
- cmb_SrchMonth.disabled = "false";
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/hidden/itemset/item">
- <label ref="lbl"/>
- <value ref="val"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_no_b" style="left:629px; top:9px; width:20px; height:17px; ">년</caption>
- <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; ">
- <choices>
- <item>
- <label>1</label>
- <value>01</value>
- </item>
- <item>
- <label>2</label>
- <value>02</value>
- </item>
- <item>
- <label>3</label>
- <value>03</value>
- </item>
- <item>
- <label>4</label>
- <value>04</value>
- </item>
- <item>
- <label>5</label>
- <value>05</value>
- </item>
- <item>
- <label>6</label>
- <value>06</value>
- </item>
- <item>
- <label>7</label>
- <value>07</value>
- </item>
- <item>
- <label>8</label>
- <value>08</value>
- </item>
- <item>
- <label>9</label>
- <value>09</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- <item>
- <label>11</label>
- <value>11</value>
- </item>
- <item>
- <label>12</label>
- <value>12</value>
- </item>
- </choices>
- </select1>
- <caption id="caption6" class="search_no_b" style="left:939px; top:9px; width:20px; height:17px; ">월</caption>
- <line id="line1" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var strType = model.getValue("/root/send/data/ptype");
- var reSrchCmpnNm = model.getValue("/root/send/data/srchcmpnnm");
-
- if ( strType == 'Y') {
- if (isRequiredControls("cmb_SrchYear1") ){
- if (reSrchCmpnNm == "" || reSrchCmpnNm == null) {
- messageBox("캠페인 명은 ", "I003");
- model.SetFocus("btn_cmpnsrch");
- } else {
- exeReportPreview("RPCSC00200", "XMLFILE", "/root/send/data", "TRCSC00201");
- }
- }
- } else if ( strType == 'M') {
- if (isRequiredControls("cmb_SrchYear2", "cmb_SrchMonth") ){
- if (reSrchCmpnNm == "" || reSrchCmpnNm == null) {
- messageBox("캠페인 명은 ", "I003");
- model.SetFocus("btn_cmpnsrch");
- } else {
- exeReportPreview("RPCSC00201", "XMLFILE", "/root/send/data", "TRCSC00202");
- }
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_customer" style="left:0px; top:58px; width:1194px; height:669px; ">
- <caption id="caption8" class="tit_2" style="left:5px; top:10px; width:125px; height:13px; ">개별 캠페인 통계</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|