SPCMZ00500_기념일전송설정.xrw 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCMZ00500_기념일전송설정
  4. * Summary : 기념일 전송 설정
  5. * Programmer : Roger Kim
  6. * Date Written : 2007.09.11
  7. * History :
  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. <list>
  19. <basiclist>
  20. <memodayflag/>
  21. <memodaybfnotidayno/>
  22. <memodayatnotidayno/>
  23. </basiclist>
  24. </list>
  25. </main>
  26. <send>
  27. <data/>
  28. <memogrid/>
  29. </send>
  30. <init>
  31. <C0021list>
  32. <cdid/>
  33. <cdnm/>
  34. </C0021list>
  35. </init>
  36. </root>
  37. </instance>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  40. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. zbcfGetCodeList( new Array("C0021"), new Array("/root/init/C0021list"), true );
  44. model.removeNodeset("/root/main/list/basiclist");
  45. submit("TRCMZ00502");
  46. fCheckAuth();
  47. model.refresh();
  48. ]]>
  49. </script>
  50. <script type="javascript">
  51. <![CDATA[
  52. function fCheckAuth() {
  53. // 권한체크
  54. //if (!checkAuth("r")) {
  55. //}
  56. if (!checkAuth("x")) {
  57. btn_addmemo.disabled=true;
  58. btn_delmemo.disabled=true;
  59. btn_save.disabled=true;
  60. }
  61. //if (!checkAuth("p")) {
  62. //}
  63. }
  64. ]]>
  65. </script>
  66. <submission id="TXCMZ00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/memogrid" replace="instance"/>
  67. <submission id="TRCMZ00502" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/list"/>
  68. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  69. </model>
  70. </xhtml:head>
  71. <xhtml:body pagewidth="510" pageheight="320" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  72. <group id="grp_Condition" style="left:0px; top:0px; width:490px; height:220px; ">
  73. <caption id="caption9" class="tit_2" style="left:5px; top:10px; width:154px; height:13px; vertical-align:middle; ">기념일 전송 기본 설정</caption>
  74. <button id="btn_addmemo" class="btn2_letter3" style="left:376px; top:5px; width:53px; height:19px; ">
  75. <caption>행 추가</caption>
  76. <script type="javascript" ev:event="DOMActivate">
  77. <![CDATA[
  78. grd_basiclist.addRow();
  79. var cur_row = grd_basiclist.row;
  80. model.setValue("/root/main/list/basiclist[" + cur_row + "]/memodaybfnotidayno", "0" );
  81. model.setValue("/root/main/list/basiclist[" + cur_row + "]/memodayatnotidayno", "0" );
  82. model.refresh();
  83. ]]>
  84. </script>
  85. </button>
  86. <button id="btn_delmemo" class="btn2_letter3" style="left:432px; top:5px; width:53px; height:19px; ">
  87. <caption>행 삭제</caption>
  88. <script type="javascript" ev:event="DOMActivate">
  89. <![CDATA[
  90. var row = grd_basiclist.row;
  91. deleteSelectedRows(grd_basiclist, true);
  92. // grd_family.deleteRow(grd_basiclist.row);
  93. // grd_family.refresh();
  94. ]]>
  95. </script>
  96. </button>
  97. <line id="line12" class="line_1" style="x1:0px; y1:25px; x2:489px; y2:25px; "/>
  98. <datagrid id="grd_basiclist" nodeset="/root/main/list/basiclist" allowselection="false" caption="기념일 구분^기념일 전 알림일수^기념일 후 알림일수" colwidth="200, 125, 125" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" style="left:0px; top:30px; width:488px; height:190px; ">
  99. <col class="text_center" ref="memodayflag" type="combo">
  100. <choices>
  101. <itemset nodeset="/root/init/C0021list/C0021">
  102. <label ref="cdnm"/>
  103. <value ref="cdid"/>
  104. </itemset>
  105. </choices>
  106. </col>
  107. <col class="text_center" ref="memodaybfnotidayno" type="input" format="9"/>
  108. <col class="text_center" ref="memodayatnotidayno" type="input" format="9"/>
  109. </datagrid>
  110. </group>
  111. <group id="grp_button" scroll="auto" style="left:0px; top:221px; width:490px; height:27px; ">
  112. <button id="btn_save" class="btn4_letter2" style="left:373px; top:5px; width:56px; height:22px; ">
  113. <caption>저장</caption>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. var row = grd_basiclist.row;
  117. var updt_list = getGridUpdateData(grd_basiclist)
  118. if (updt_list != "") {
  119. model.makeValue("/root/send/memogrid", grd_basiclist.getUpdateData());
  120. }
  121. if ( submit("TXCMZ00501") ) {
  122. grd_basiclist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  123. messageBox("기념일 전송 기본 설정 저장이 ", "I002");
  124. model.removeNodeset("/root/main/list/basiclist");
  125. submit("TRCMZ00502");
  126. model.removeNodeset("/root/send/memogrid");
  127. model.refresh();
  128. }
  129. ]]>
  130. </script>
  131. </button>
  132. <button id="btn_close" class="btn4_letter2" style="left:432px; top:5px; width:56px; height:22px; ">
  133. <caption>닫기</caption>
  134. <close ev:event="DOMActivate"/>
  135. </button>
  136. </group>
  137. <group id="grp_remark" style="left:0px; top:249px; width:490px; height:53px; ">
  138. <caption id="caption1" class="hand" style="left:5px; top:10px; width:484px; height:42px; ">
  139. <![CDATA[ 고객의 기념일 정보 중 위 기념일에 대하여 알림설정을 기념일 전 또는 후
  140. 라고 설정한 경우 적용되는 기본 설정입니다. 위에서 설정한 기념일 전/후
  141. 알림일수는 모든 사용자에 적용됩니다.]]>
  142. </caption>
  143. </group>
  144. </xhtml:body>
  145. </xhtml:html>