123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SMCNZ00100_대량전송
- * Summary : 엑셀파일을 통한 대량전송
- * Programmer : 최정환
- * Date Written : 2007.07.05
- * History : 2007.07.05
- * 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>
- <data>
- <trsminfo>
- <usernm/>
- <mpphone/>
- <email/>
- <zipcd/>
- <addr/>
- </trsminfo>
- </data>
- </main>
- <temp>
- <smsinfo>
- <recvrlist>
- <chk/>
- <recvrnm/>
- <recvrtelno/>
- </recvrlist>
- </smsinfo>
- <emailinfo>
- <recvremail/>
- </emailinfo>
- <countnode/>
- </temp>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 전송결과 그리드를 초기화한다.
- model.removenodeset("/root/main/data/trsminfo");
-
- fCheckAuth();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- function fCheckAuth() {
- // 권한체크
- if (!checkAuth("x")) {
- btn_sms.disabled=true;
- btn_email.disabled=true;
- }
- if (!checkAuth("p")) {
- btn_sample.disabled=true;
- btn_insert.disabled=true;
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,358;" 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:180px; height:14px; ">대량전송 (엑셀파일을 통한)</caption>
- </group>
- <group id="group2" style="left:0px; top:14px; width:1195px; height:757px; ">
- <caption id="caption9" class="tit_2" style="left:5px; top:10px; width:150px; height:13px; ">엑셀 파일을 통한 대량전송</caption>
- <button id="brn_sms" class="btn3_letter5" style="left:5px; top:26px; width:92px; height:22px; ">
- <caption>SMS 전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cczfSMSTrsmOpen("grid", grd_trsminfo,1,2,"","");
- ]]>
- </script>
- </button>
- <button id="btn_email" class="btn3_letter5" style="left:100px; top:26px; width:92px; height:22px; ">
- <caption>이메일발송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cczfEmailTrsmOpen("grid",grd_trsminfo,3,"");
- ]]>
- </script>
- </button>
- <button id="btn_dm" class="btn3_letter4" style="left:195px; top:26px; width:80px; height:22px; ">
- <caption>DM 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cczfDMTrsmOpen(grd_trsminfo,1,4,5,6);
- ]]>
- </script>
- </button>
- <caption id="caption35" style="left:958px; top:27px; width:40px; height:17px; ">전체 :</caption>
- <output id="opt_countnode" ref="/root/temp/countnode" appearance="output" style="left:998px; top:26px; width:30px; height:17px; text-align:right; "/>
- <caption id="caption7" style="left:1031px; top:27px; width:30px; height:17px; ">건</caption>
- <button id="btn_sample" class="btn2_letter4" style="left:1061px; top:25px; width:64px; height:19px; ">
- <caption>샘플파일</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "대량전송샘플", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_trsminfo.saveExcel(fileName, "주소록", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter4" style="left:1128px; top:25px; width:64px; height:19px; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grd_trsminfo.loadExcel(fileName, 1, false);
- grd_trsminfo.deleteRow(1);
- model.SetFocus("grd_trsminfo");
-
- var grid_rows = grd_trsminfo.rows-1;
- model.setvalue("/root/temp/countnode" , grid_rows);
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:51px; x2:1195px; y2:51px; "/>
- <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; ">
- <col ref="usenm"/>
- <col ref="mpphone" format="99999999999"/>
- <col ref="email"/>
- <col ref="zipcd" format="999999"/>
- <col ref="addr"/>
- <col ref="pid"/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|