SMCNZ00100_대량전송.xrw 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SMCNZ00100_대량전송
  4. * Summary : 엑셀파일을 통한 대량전송
  5. * Programmer : 최정환
  6. * Date Written : 2007.07.05
  7. * History : 2007.07.05
  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. <data>
  19. <trsminfo>
  20. <usernm/>
  21. <mpphone/>
  22. <email/>
  23. <zipcd/>
  24. <addr/>
  25. </trsminfo>
  26. </data>
  27. </main>
  28. <temp>
  29. <smsinfo>
  30. <recvrlist>
  31. <chk/>
  32. <recvrnm/>
  33. <recvrtelno/>
  34. </recvrlist>
  35. </smsinfo>
  36. <emailinfo>
  37. <recvremail/>
  38. </emailinfo>
  39. <countnode/>
  40. </temp>
  41. </root>
  42. </instance>
  43. </model>
  44. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  45. <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. // 전송결과 그리드를 초기화한다.
  49. model.removenodeset("/root/main/data/trsminfo");
  50. fCheckAuth();
  51. ]]>
  52. </script>
  53. <script type="javascript">
  54. <![CDATA[
  55. function fCheckAuth() {
  56. // 권한체크
  57. if (!checkAuth("x")) {
  58. btn_sms.disabled=true;
  59. btn_email.disabled=true;
  60. }
  61. if (!checkAuth("p")) {
  62. btn_sample.disabled=true;
  63. btn_insert.disabled=true;
  64. }
  65. }
  66. ]]>
  67. </script>
  68. </xhtml:head>
  69. <xhtml:body guideline="1,358;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  70. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  71. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; ">대량전송 (엑셀파일을 통한)</caption>
  72. </group>
  73. <group id="group2" style="left:0px; top:14px; width:1195px; height:757px; ">
  74. <caption id="caption9" class="tit_2" style="left:5px; top:10px; width:150px; height:13px; ">엑셀 파일을 통한 대량전송</caption>
  75. <button id="brn_sms" class="btn3_letter5" style="left:5px; top:26px; width:92px; height:22px; ">
  76. <caption>SMS 전송</caption>
  77. <script type="javascript" ev:event="DOMActivate">
  78. <![CDATA[
  79. cczfSMSTrsmOpen("grid", grd_trsminfo,1,2,"","");
  80. ]]>
  81. </script>
  82. </button>
  83. <button id="btn_email" class="btn3_letter5" style="left:100px; top:26px; width:92px; height:22px; ">
  84. <caption>이메일발송</caption>
  85. <script type="javascript" ev:event="DOMActivate">
  86. <![CDATA[
  87. cczfEmailTrsmOpen("grid",grd_trsminfo,3,"");
  88. ]]>
  89. </script>
  90. </button>
  91. <button id="btn_dm" class="btn3_letter4" style="left:195px; top:26px; width:80px; height:22px; ">
  92. <caption>DM 출력</caption>
  93. <script type="javascript" ev:event="DOMActivate">
  94. <![CDATA[
  95. cczfDMTrsmOpen(grd_trsminfo,1,4,5,6);
  96. ]]>
  97. </script>
  98. </button>
  99. <caption id="caption35" style="left:958px; top:27px; width:40px; height:17px; ">전체 :</caption>
  100. <output id="opt_countnode" ref="/root/temp/countnode" appearance="output" style="left:998px; top:26px; width:30px; height:17px; text-align:right; "/>
  101. <caption id="caption7" style="left:1031px; top:27px; width:30px; height:17px; ">건</caption>
  102. <button id="btn_sample" class="btn2_letter4" style="left:1061px; top:25px; width:64px; height:19px; ">
  103. <caption>샘플파일</caption>
  104. <script type="javascript" ev:event="DOMActivate">
  105. <![CDATA[
  106. var fileName = window.fileDialog("save", ",", false, "대량전송샘플", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  107. if (fileName != "")
  108. {
  109. grd_trsminfo.saveExcel(fileName, "주소록", true, true, "", "", false);
  110. }
  111. ]]>
  112. </script>
  113. </button>
  114. <button id="btn_insert" class="btn2_letter4" style="left:1128px; top:25px; width:64px; height:19px; ">
  115. <caption>엑셀입력</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  119. grd_trsminfo.loadExcel(fileName, 1, false);
  120. grd_trsminfo.deleteRow(1);
  121. model.SetFocus("grd_trsminfo");
  122. var grid_rows = grd_trsminfo.rows-1;
  123. model.setvalue("/root/temp/countnode" , grid_rows);
  124. model.refresh();
  125. ]]>
  126. </script>
  127. </button>
  128. <line id="line2" class="line_1" style="x1:0px; y1:51px; x2:1195px; y2:51px; "/>
  129. <datagrid id="grd_trsminfo" nodeset="/root/main/data/trsminfo" caption="이름^휴대폰^이메일^우편번호^주소^등록번호" colsep="^" colwidth="100, 130, 250, 100, 490, 80" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:56px; width:1195px; height:701px; ">
  130. <col ref="usenm"/>
  131. <col ref="mpphone" format="99999999999"/>
  132. <col ref="email"/>
  133. <col ref="zipcd" format="999999"/>
  134. <col ref="addr"/>
  135. <col ref="pid"/>
  136. </datagrid>
  137. </group>
  138. </xhtml:body>
  139. </xhtml:html>