123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCPC00600_캠페인응답설정.xrw
- * Summary : 캠페인 응답조회 기준을 설정
- * Programmer : 엄윤호
- * Date Written : 2007.09.12
- * History : 2007.09.12
- * Remark :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <item>
- <bfdayno/>
- <autyn/>
- <usecmpn/>
- <rgstseq/>
- </item>
- </main>
- <temp>
- <result/>
- <olditem/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- submit("TRCPC00601");
- if (model.getValue("/root/main/item/bfdayno") == "") {
- model.makeNode("/root/main/item/bfdayno");
- model.makeNode("/root/main/item/autyn");
- } else {
- //변경 여부를 위해 인스턴스 카피
- model.copyNode("/root/temp/olditem", "/root/main/item");
- }
-
- fCheckAuth();
- model.refresh();
- ]]>
- </script>
- <submission id="TRCPC00601" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/item"/>
- <submission id="TXCPC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/item" resultref="/root/temp/result"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fCheckAuth() {
- // 권한체크
- //if (!checkAuth("r")) {
- //}
- if (!checkAuth("x")) {
- btn_save.disabled=true;
- }
- //if (!checkAuth("p")) {
- //}
- }
-
- function fSaveData() {
- // 변경 시 기존 항목은 삭제하고 새로운 항목을 저장한다.
- if (model.getValue("/root/main/item/bfdayno") != model.getValue("/root/temp/olditem/bfdayno") ||
- model.getValue("/root/main/item/autyn") != model.getValue("/root/temp/olditem/autyn")) {
- if (submit("TXCPC00601")) {
- messageBox("설정정보 저장이","I002");
- model.copyNode("/root/temp/olditem", "/root/main/item");
- }
- } else {
- messageBox("설정정보 저장이","I002");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="406" pageheight="235" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" scroll="auto" style="left:0px; top:0px; width:389px; height:200px; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:35px; width:389px; height:160px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:200px; height:14px; vertical-align:middle; ">캠페인 응답 조회 기준 설정</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:389px; y2:25px; "/>
- <caption id="caption2" class="search_no_b" style="left:30px; top:65px; width:100px; height:17px; ">캠페인 실행 후</caption>
- <caption id="caption3" class="search_no_b" style="left:205px; top:65px; width:160px; height:17px; ">일 이내에 내원한 고객을</caption>
- <caption id="caption4" class="search_no_b" style="left:30px; top:100px; width:160px; height:17px; ">캠페인에 응답한 고객으로</caption>
- <caption id="caption5" class="search_no_b" style="left:286px; top:100px; width:80px; height:17px; ">체크합니다.</caption>
- <caption id="caption6" class="hand" style="left:30px; top:155px; width:314px; height:14px; ">이 설정은 모든 캠페인에 일괄적으로 적용됩니다.</caption>
- <input id="ipt_rfdayno" ref="/root/main/item/bfdayno" format="999" style="left:129px; top:66px; width:70px; height:19px; "/>
- <select1 id="cmb_autyn" ref="/root/main/item/autyn" appearance="minimal" style="left:193px; top:101px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>자동으로</label>
- <value>Y</value>
- </item>
- <item>
- <label>수동으로</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:200px; width:389px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:273px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveData();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:332px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|