SPCPC00600_캠페인응답설정.xrw 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCPC00600_캠페인응답설정.xrw
  4. * Summary : 캠페인 응답조회 기준을 설정
  5. * Programmer : 엄윤호
  6. * Date Written : 2007.09.12
  7. * History : 2007.09.12
  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. <item>
  19. <bfdayno/>
  20. <autyn/>
  21. <usecmpn/>
  22. <rgstseq/>
  23. </item>
  24. </main>
  25. <temp>
  26. <result/>
  27. <olditem/>
  28. </temp>
  29. </root>
  30. </instance>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. submit("TRCPC00601");
  34. if (model.getValue("/root/main/item/bfdayno") == "") {
  35. model.makeNode("/root/main/item/bfdayno");
  36. model.makeNode("/root/main/item/autyn");
  37. } else {
  38. //변경 여부를 위해 인스턴스 카피
  39. model.copyNode("/root/temp/olditem", "/root/main/item");
  40. }
  41. fCheckAuth();
  42. model.refresh();
  43. ]]>
  44. </script>
  45. <submission id="TRCPC00601" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/item"/>
  46. <submission id="TXCPC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/item" resultref="/root/temp/result"/>
  47. </model>
  48. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  50. <script type="javascript">
  51. <![CDATA[
  52. function fCheckAuth() {
  53. // 권한체크
  54. //if (!checkAuth("r")) {
  55. //}
  56. if (!checkAuth("x")) {
  57. btn_save.disabled=true;
  58. }
  59. //if (!checkAuth("p")) {
  60. //}
  61. }
  62. function fSaveData() {
  63. // 변경 시 기존 항목은 삭제하고 새로운 항목을 저장한다.
  64. if (model.getValue("/root/main/item/bfdayno") != model.getValue("/root/temp/olditem/bfdayno") ||
  65. model.getValue("/root/main/item/autyn") != model.getValue("/root/temp/olditem/autyn")) {
  66. if (submit("TXCPC00601")) {
  67. messageBox("설정정보 저장이","I002");
  68. model.copyNode("/root/temp/olditem", "/root/main/item");
  69. }
  70. } else {
  71. messageBox("설정정보 저장이","I002");
  72. }
  73. }
  74. ]]>
  75. </script>
  76. </xhtml:head>
  77. <xhtml:body pagewidth="406" pageheight="235" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  78. <group id="group1" scroll="auto" style="left:0px; top:0px; width:389px; height:200px; ">
  79. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:35px; width:389px; height:160px; "/>
  80. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:200px; height:14px; vertical-align:middle; ">캠페인 응답 조회 기준 설정</caption>
  81. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:389px; y2:25px; "/>
  82. <caption id="caption2" class="search_no_b" style="left:30px; top:65px; width:100px; height:17px; ">캠페인 실행 후</caption>
  83. <caption id="caption3" class="search_no_b" style="left:205px; top:65px; width:160px; height:17px; ">일 이내에 내원한 고객을</caption>
  84. <caption id="caption4" class="search_no_b" style="left:30px; top:100px; width:160px; height:17px; ">캠페인에 응답한 고객으로</caption>
  85. <caption id="caption5" class="search_no_b" style="left:286px; top:100px; width:80px; height:17px; ">체크합니다.</caption>
  86. <caption id="caption6" class="hand" style="left:30px; top:155px; width:314px; height:14px; ">이 설정은 모든 캠페인에 일괄적으로 적용됩니다.</caption>
  87. <input id="ipt_rfdayno" ref="/root/main/item/bfdayno" format="999" style="left:129px; top:66px; width:70px; height:19px; "/>
  88. <select1 id="cmb_autyn" ref="/root/main/item/autyn" appearance="minimal" style="left:193px; top:101px; width:85px; height:19px; ">
  89. <choices>
  90. <item>
  91. <label>자동으로</label>
  92. <value>Y</value>
  93. </item>
  94. <item>
  95. <label>수동으로</label>
  96. <value>N</value>
  97. </item>
  98. </choices>
  99. </select1>
  100. </group>
  101. <group id="group2" scroll="auto" style="left:0px; top:200px; width:389px; height:27px; ">
  102. <button id="btn_save" class="btn4_letter2" style="left:273px; top:5px; width:56px; height:22px; ">
  103. <caption>저장</caption>
  104. <script type="javascript" ev:event="DOMActivate">
  105. <![CDATA[
  106. fSaveData();
  107. ]]>
  108. </script>
  109. </button>
  110. <button id="btn_cancel" class="btn4_letter2" style="left:332px; top:5px; width:56px; height:22px; ">
  111. <caption>취소</caption>
  112. <close ev:event="DOMActivate"/>
  113. </button>
  114. </group>
  115. </xhtml:body>
  116. </xhtml:html>