SMCNZ00100_대량전송.xfdl 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMCNZ00100" position="absolute 0 0 1200 788" titletext="대량전송" oninit="SMCNZ00100_oninit" onload="SMCNZ00100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="대량전송 (엑셀파일을 통한)" class="tit_1" position="absolute 0 0 236 24"/>
  8. <Static id="caption9" text="엑셀 파일을 통한 대량전송" class="tit_2" position="absolute 0 31 206 52"/>
  9. <Button id="btn_sms" taborder="1" text="SMS 전송" class="btn3" position="absolute 0 48 92 70" onclick="btn_sms_onclick"/>
  10. <Button id="btn_email" taborder="2" text="이메일발송" class="btn3" position="absolute 95 48 187 70" onclick="btn_email_onclick"/>
  11. <Button id="btn_dm" taborder="3" text="DM 출력" class="btn3" position="absolute 190 48 270 70" onclick="btn_dm_onclick"/>
  12. <Static id="caption35" text="전체 :" position="absolute 934 54 974 71" anchor="top right"/>
  13. <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;"/>
  14. <Static id="caption7" text="건" position="absolute 1007 54 1037 71" anchor="top right"/>
  15. <Button id="btn_sample" taborder="5" text="샘플파일" class="btn7" position="absolute 1034 51 1114 70" anchor="top right" onclick="btn_sample_onclick"/>
  16. <Button id="btn_insert" taborder="6" text="엑셀입력" class="btn7" position="absolute 1115 51 1195 70" anchor="top right" onclick="btn_insert_onclick"/>
  17. <Shape id="line2" class="line_10" position="absolute 0 70 1195 76" anchor="left top right"/>
  18. <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">
  19. <Formats>
  20. <Format id="default">
  21. <Columns>
  22. <Column size="24"/>
  23. <Column size="100"/>
  24. <Column size="130"/>
  25. <Column size="250"/>
  26. <Column size="100"/>
  27. <Column size="490"/>
  28. <Column size="80"/>
  29. </Columns>
  30. <Rows>
  31. <Row size="24" band="head"/>
  32. <Row size="24"/>
  33. </Rows>
  34. <Band id="head">
  35. <Cell/>
  36. <Cell col="1" text="이름"/>
  37. <Cell col="2" text="휴대폰"/>
  38. <Cell col="3" text="이메일"/>
  39. <Cell col="4" text="우편번호"/>
  40. <Cell col="5" text="주소"/>
  41. <Cell col="6" text="등록번호"/>
  42. </Band>
  43. <Band id="body">
  44. <Cell celltype="head" expr="currow+1"/>
  45. <Cell col="1" text="bind:usenm"/>
  46. <Cell col="2" text="bind:mpphone" mask="###########" maskchar=" "/>
  47. <Cell col="3" text="bind:email"/>
  48. <Cell col="4" text="bind:zipcd" mask="######" maskchar=" "/>
  49. <Cell col="5" text="bind:addr"/>
  50. <Cell col="6" text="bind:pid"/>
  51. </Band>
  52. </Format>
  53. </Formats>
  54. </Grid>
  55. </Layout>
  56. </Layouts>
  57. <Objects>
  58. <Dataset id="ds_main_data_trsminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  59. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  60. <ColumnInfo>
  61. <Column id="countnode" type="STRING" size="256"/>
  62. </ColumnInfo>
  63. <Rows>
  64. <Row/>
  65. </Rows>
  66. </Dataset>
  67. </Objects>
  68. <Bind>
  69. <BindItem id="item0" compid="opt_countnode" propid="value" datasetid="ds_temp"/>
  70. </Bind>
  71. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  72. * System Name :
  73. * Job Name :
  74. * Creator :
  75. * Make Date : 2016-05-24
  76. * Description :
  77. *---------------------------------------------------------------------------------------
  78. * Modify Date Modifier Modify Description
  79. *---------------------------------------------------------------------------------------
  80. * 2016-05-24 Live Converter TF->XP
  81. *
  82. *---------------------------------------------------------------------------------------
  83. ****************************************************************************************/
  84. include "com_commonxp::comm_main.xjs";
  85. include "crm_crmxp::CCZ001.xjs";
  86. function SMCNZ00100_oninit(obj:Form, e:InitEventInfo)
  87. {
  88. frmf_initForm(obj);
  89. }
  90. function SMCNZ00100_onload(obj:Form, e:LoadEventInfo)
  91. {
  92. grdf_initGrid(grd_trsminfo);
  93. fCheckAuth();
  94. }
  95. function fCheckAuth()
  96. {
  97. // 권한체크
  98. if (!frmf_checkAuth("x"))
  99. {
  100. btn_sms.enable = false;
  101. btn_email.enable = false;
  102. }
  103. if (!frmf_checkAuth("p"))
  104. {
  105. btn_sample.enable = false;
  106. btn_insert.enable = false;
  107. }
  108. }
  109. function btn_sms_onclick(obj:Button, e:ClickEventInfo)
  110. {
  111. cczfSMSTrsmOpen("grid", grd_trsminfo,"usenm","mpphone","","");
  112. }
  113. function btn_email_onclick(obj:Button, e:ClickEventInfo)
  114. {
  115. cczfEmailTrsmOpen("grid",grd_trsminfo,"email","");
  116. }
  117. function btn_dm_onclick(obj:Button, e:ClickEventInfo)
  118. {
  119. cczfDMTrsmOpen(grd_trsminfo,"usenm","zipcd","addr","pid");
  120. }
  121. function btn_sample_onclick(obj:Button, e:ClickEventInfo)
  122. {
  123. grdf_exportExcel(grd_trsminfo, "대량전송샘플", "주소록", "true", "", "");
  124. }
  125. function btn_insert_onclick(obj:Button, e:ClickEventInfo)
  126. {
  127. grdf_ImportExcel("ds_main_data_trsminfo ", 2, grd_trsminfo, 0);
  128. grd_trsminfo.setFocus();
  129. var grid_rows = ds_main_data_trsminfo.rowcount;
  130. ds_temp.setColumn(0, "countnode" , grid_rows);
  131. }
  132. ]]></Script>
  133. </Form>
  134. </FDL>