123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMCNZ00100" position="absolute 0 0 1200 788" titletext="대량전송" oninit="SMCNZ00100_oninit" onload="SMCNZ00100_onload">
- <Layouts>
- <Layout>
- <Static id="caption1" text="대량전송 (엑셀파일을 통한)" class="tit_1" position="absolute 0 0 236 24"/>
- <Static id="caption9" text="엑셀 파일을 통한 대량전송" class="tit_2" position="absolute 0 31 206 52"/>
- <Button id="btn_sms" taborder="1" text="SMS 전송" class="btn3" position="absolute 0 48 92 70" onclick="btn_sms_onclick"/>
- <Button id="btn_email" taborder="2" text="이메일발송" class="btn3" position="absolute 95 48 187 70" onclick="btn_email_onclick"/>
- <Button id="btn_dm" taborder="3" text="DM 출력" class="btn3" position="absolute 190 48 270 70" onclick="btn_dm_onclick"/>
- <Static id="caption35" text="전체 :" position="absolute 934 54 974 71" anchor="top right"/>
- <Edit id="opt_countnode" taborder="4" readonly="true" position="absolute 974 53 1004 70" anchor="top right" autoselect="true" style="background:transparent stretch 5,5;align:center middle;"/>
- <Static id="caption7" text="건" position="absolute 1007 54 1037 71" anchor="top right"/>
- <Button id="btn_sample" taborder="5" text="샘플파일" class="btn7" position="absolute 1034 51 1114 70" anchor="top right" onclick="btn_sample_onclick"/>
- <Button id="btn_insert" taborder="6" text="엑셀입력" class="btn7" position="absolute 1115 51 1195 70" anchor="top right" onclick="btn_insert_onclick"/>
- <Shape id="line2" class="line_10" position="absolute 0 70 1195 76" anchor="left top right"/>
- <Grid id="grd_trsminfo" taborder="7" binddataset="ds_main_data_trsminfo" useinputpanel="false" position="absolute 0 75 1195 776" autoenter="select" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="100"/>
- <Column size="130"/>
- <Column size="250"/>
- <Column size="100"/>
- <Column size="490"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="이름"/>
- <Cell col="2" text="휴대폰"/>
- <Cell col="3" text="이메일"/>
- <Cell col="4" text="우편번호"/>
- <Cell col="5" text="주소"/>
- <Cell col="6" text="등록번호"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" text="bind:usenm"/>
- <Cell col="2" text="bind:mpphone" mask="###########" maskchar=" "/>
- <Cell col="3" text="bind:email"/>
- <Cell col="4" text="bind:zipcd" mask="######" maskchar=" "/>
- <Cell col="5" text="bind:addr"/>
- <Cell col="6" text="bind:pid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_data_trsminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="countnode" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="opt_countnode" propid="value" datasetid="ds_temp"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "crm_crmxp::CCZ001.xjs";
- function SMCNZ00100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMCNZ00100_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_trsminfo);
- fCheckAuth();
- }
- function fCheckAuth()
- {
- // 권한체크
- if (!frmf_checkAuth("x"))
- {
- btn_sms.enable = false;
- btn_email.enable = false;
- }
- if (!frmf_checkAuth("p"))
- {
- btn_sample.enable = false;
- btn_insert.enable = false;
- }
- }
- function btn_sms_onclick(obj:Button, e:ClickEventInfo)
- {
- cczfSMSTrsmOpen("grid", grd_trsminfo,"usenm","mpphone","","");
- }
- function btn_email_onclick(obj:Button, e:ClickEventInfo)
- {
- cczfEmailTrsmOpen("grid",grd_trsminfo,"email","");
- }
- function btn_dm_onclick(obj:Button, e:ClickEventInfo)
- {
- cczfDMTrsmOpen(grd_trsminfo,"usenm","zipcd","addr","pid");
- }
- function btn_sample_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_trsminfo, "대량전송샘플", "주소록", "true", "", "");
- }
- function btn_insert_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_ImportExcel("ds_main_data_trsminfo ", 2, grd_trsminfo, 0);
- grd_trsminfo.setFocus();
-
- var grid_rows = ds_main_data_trsminfo.rowcount;
- ds_temp.setColumn(0, "countnode" , grid_rows);
- }
- ]]></Script>
- </Form>
- </FDL>
|