SPCCN00200_Email전송.xfdl 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPCCN00200" position="absolute 0 0 608 681" titletext="Email전송" oninit="SPCCN00200_oninit" onload="SPCCN00200_onload">
  5. <Layouts>
  6. <Layout>
  7. <ImageViewer id="img_bg1" taborder="5" image="URL('..\..\..\IMAGES\crm\CMC_Graphic_Motif.png')" visible="false" position="absolute 93 327 603 651"/>
  8. <ImageViewer id="img_bg2" taborder="6" visible="false" position="absolute 93 327 603 651"/>
  9. <ImageViewer id="img_bg3" taborder="7" visible="false" position="absolute 93 327 603 651"/>
  10. <Tab position="absolute 450 0 605 193" id="switch2" style="border:1 solid #808080ff ;">
  11. <Tabpages>
  12. <Tabpage text="편지지" id="case1">
  13. <Layouts>
  14. <Layout>
  15. <ImageViewer position="absolute 2 3 75 88" id="img1" image="URL('..\..\..\IMAGES\crm\CMC_Graphic_Motif.png')" stretch="fit" onclick="switch2_case1_img1_onclick"/>
  16. </Layout>
  17. </Layouts>
  18. </Tabpage>
  19. <Tabpage text="특수문자" id="case2">
  20. <Layouts>
  21. <Layout>
  22. <Button position="absolute 5 70 44 89" id="caption40" class="btn_number" text="@" onclick="tab_ButtonEvent"/>
  23. <Button position="absolute 47 70 86 89" id="caption41" class="btn_number" text="♨" onclick="tab_ButtonEvent"/>
  24. <Button position="absolute 89 70 128 89" id="caption42" class="btn_number" text="☎" onclick="tab_ButtonEvent"/>
  25. <Button position="absolute 47 202 86 221" id="caption31" class="btn_number" text="♥" onclick="tab_ButtonEvent"/>
  26. <Button position="absolute 89 92 128 111" id="caption20" class="btn_number" text="◎" onclick="tab_ButtonEvent"/>
  27. <Button position="absolute 5 158 44 177" id="caption43" class="btn_number" text="☜" onclick="tab_ButtonEvent"/>
  28. <Button position="absolute 5 48 44 67" id="caption32" class="btn_number" text="♧" onclick="tab_ButtonEvent"/>
  29. <Button position="absolute 5 180 44 199" id="caption21" class="btn_number" text="◇" onclick="tab_ButtonEvent"/>
  30. <Button position="absolute 47 158 86 177" id="caption44" class="btn_number" text="☞" onclick="tab_ButtonEvent"/>
  31. <Button position="absolute 47 48 86 67" id="caption33" class="btn_number" text="♣" onclick="tab_ButtonEvent"/>
  32. <Button position="absolute 47 180 86 199" id="caption22" class="btn_number" text="◆" onclick="tab_ButtonEvent"/>
  33. <Button position="absolute 89 158 128 177" id="caption45" class="btn_number" text="%" onclick="tab_ButtonEvent"/>
  34. <Button position="absolute 89 48 128 67" id="caption34" class="btn_number" text="◁" onclick="tab_ButtonEvent"/>
  35. <Button position="absolute 5 26 44 45" id="caption23" class="btn_number" text="□" onclick="tab_ButtonEvent"/>
  36. <Button position="absolute 89 180 128 199" id="caption46" class="btn_number" text="☏" onclick="tab_ButtonEvent"/>
  37. <Button position="absolute 5 136 44 155" id="caption35" class="btn_number" text="◀" onclick="tab_ButtonEvent"/>
  38. <Button position="absolute 47 26 86 45" id="caption24" class="btn_number" text="■" onclick="tab_ButtonEvent"/>
  39. <Button position="absolute 89 202 128 221" id="caption47" class="btn_number" text="♪" onclick="tab_ButtonEvent"/>
  40. <Button position="absolute 47 136 86 155" id="caption36" class="btn_number" text="▷" onclick="tab_ButtonEvent"/>
  41. <Button position="absolute 89 26 128 45" id="caption25" class="btn_number" text="△" onclick="tab_ButtonEvent"/>
  42. <Button position="absolute 89 136 128 155" id="caption37" class="btn_number" text="▶" onclick="tab_ButtonEvent"/>
  43. <Button position="absolute 5 114 44 133" id="caption26" class="btn_number" text="▲" onclick="tab_ButtonEvent"/>
  44. <Button position="absolute 5 4 44 23" id="caption15" class="btn_number" text="●" onclick="tab_ButtonEvent"/>
  45. <Button position="absolute 5 224 44 243" id="caption38" class="btn_number" text="♤" onclick="tab_ButtonEvent"/>
  46. <Button position="absolute 47 114 86 133" id="caption27" class="btn_number" text="▽" onclick="tab_ButtonEvent"/>
  47. <Button position="absolute 47 4 86 23" id="caption16" class="btn_number" text="※" onclick="tab_ButtonEvent"/>
  48. <Button position="absolute 47 224 86 243" id="caption39" class="btn_number" text="♠" onclick="tab_ButtonEvent"/>
  49. <Button position="absolute 89 114 128 133" id="caption28" class="btn_number" text="▼" onclick="tab_ButtonEvent"/>
  50. <Button position="absolute 89 4 128 23" id="caption17" class="btn_number" text="☆" onclick="tab_ButtonEvent"/>
  51. <Button position="absolute 5 202 44 221" id="caption29" class="btn_number" text="♡" onclick="tab_ButtonEvent"/>
  52. <Button position="absolute 5 92 44 111" id="caption18" class="btn_number" text="★" onclick="tab_ButtonEvent"/>
  53. <Button position="absolute 47 92 86 111" id="caption19" class="btn_number" text="○" onclick="tab_ButtonEvent"/>
  54. </Layout>
  55. </Layouts>
  56. </Tabpage>
  57. </Tabpages>
  58. </Tab>
  59. <Grid id="grd_msglist" taborder="1" binddataset="ds_main_msgsmllist" useinputpanel="false" position="absolute 0 50 445 193" autoenter="select" cellsizingtype="col" oncellclick="grd_msglist_oncellclick">
  60. <Formats>
  61. <Format id="default">
  62. <Columns>
  63. <Column size="23"/>
  64. <Column size="51"/>
  65. <Column size="348"/>
  66. <Column size="0"/>
  67. </Columns>
  68. <Rows>
  69. <Row size="24" band="head"/>
  70. <Row size="24"/>
  71. </Rows>
  72. <Band id="head">
  73. <Cell/>
  74. <Cell col="1" text="코드"/>
  75. <Cell col="2" text="이메일제목"/>
  76. <Cell col="3"/>
  77. </Band>
  78. <Band id="body">
  79. <Cell celltype="head"/>
  80. <Cell col="1" text="bind:msgsmlcd"/>
  81. <Cell col="2" text="bind:emailtitl"/>
  82. <Cell col="3" text="bind:smstrsmcntcno"/>
  83. </Band>
  84. </Format>
  85. </Formats>
  86. </Grid>
  87. <Shape id="line3" class="line_2" position="absolute 0 46 445 52"/>
  88. <Combo id="cmb_msglrgcd" taborder="2" innerdataset="@ds_init_chnllrglist_chnllrggrup" codecolumn="msglrgcd" datacolumn="msglrgnm" class="combo_default" position="absolute 108 26 258 45" onitemchanged="cmb_msglrgcd_onitemchanged"/>
  89. <Static id="cap_dtmntitl" text="그룹" class="cell_1" position="absolute 0 24 105 47" style="padding:0 0 0 0;align:center middle;"/>
  90. <Combo id="cmb_msgmdlcd" taborder="3" innerdataset="@ds_init_chnlmdllist_chnlmdlgrup" codecolumn="msgmdlcd" datacolumn="msgmdlnm" class="combo_default" position="absolute 261 26 411 45" onitemchanged="cmb_msgmdlcd_onitemchanged"/>
  91. <Shape id="line1" class="line_10" position="absolute 0 19 445 25"/>
  92. <Static id="caption1" text="E-mail템플릿" class="tit_2" position="absolute 0 3 105 25"/>
  93. <Shape id="line2" linetype="horizontal" class="line_2" position="absolute 0 295 605 301"/>
  94. <Static id="caption2" text="E-mail전송" class="tit_2" position="absolute 0 200 95 222"/>
  95. <Button id="btn_init" taborder="4" text="초기화" class="btn2" position="absolute 552 197 605 216" onclick="btn_init_onclick"/>
  96. <Shape id="line4" linetype="horizontal" class="line_10" position="absolute 0 216 605 222"/>
  97. <Static id="cap_emailbdtext" text="내 용" class="cell_1" position="absolute 0 325 90 651" style="padding:0 0 0 0;align:center middle;"/>
  98. <Shape id="line24" linetype="horizontal" class="line_2" position="absolute 0 243 605 249"/>
  99. <Edit id="ipt_refemail" taborder="10" class="input_essential" position="absolute 93 275 422 294"/>
  100. <Static id="cap_emailtitl" text="제 목" class="cell_1" position="absolute 0 221 90 244" style="padding:0 0 0 0;align:center middle;"/>
  101. <Static id="cap_replemail" text="발 신" class="cell_1" position="absolute 363 221 453 244" style="padding:0 0 0 0;align:center middle;"/>
  102. <Edit id="ipt_emailtitl" taborder="11" class="input_essential" position="absolute 93 223 358 242"/>
  103. <Shape id="line7" linetype="horizontal" class="line_2" position="absolute 0 269 605 275"/>
  104. <Static id="cap_recvremail" text="수 신" class="cell_1" position="absolute 0 247 90 270" style="padding:0 0 0 0;align:center middle;"/>
  105. <Edit id="ipt_recvremail" taborder="12" class="input_essential" position="absolute 93 249 422 268"/>
  106. <Button id="btn_address" taborder="13" text="주소록" class="btn2" position="absolute 427 249 480 268" onclick="btn_address_onclick"/>
  107. <Button id="btn_addfile" taborder="14" text="외부파일 가져오기" class="btn2" position="absolute 485 249 604 268" onclick="btn_addfile_onclick"/>
  108. <Button id="btn_address2" taborder="15" text="주소록" class="btn2" position="absolute 427 275 480 294" onclick="btn_address2_onclick"/>
  109. <Button id="btn_addfile2" taborder="16" text="외부파일 가져오기" class="btn2" position="absolute 485 275 604 294" onclick="btn_addfile2_onclick"/>
  110. <Static id="cap_refemail" text="참 조" class="cell_1" position="absolute 0 273 90 296" style="padding:0 0 0 0;align:center middle;"/>
  111. <Edit id="ipt_replemail" taborder="17" position="absolute 456 223 604 242"/>
  112. <Static id="caption6" text="예약설정" class="cell_1" position="absolute 0 299 90 322" style="padding:0 0 0 0;align:center middle;"/>
  113. <Radio id="rdo_rsrvyn" taborder="18" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 93 302 184 320" onitemchanged="rdo_rsrvyn_onitemchanged">
  114. <Dataset id="innerdataset">
  115. <ColumnInfo>
  116. <Column id="codecolumn"/>
  117. <Column id="datacolumn"/>
  118. </ColumnInfo>
  119. <Rows>
  120. <Row>
  121. <Col id="codecolumn">1</Col>
  122. <Col id="datacolumn">일반</Col>
  123. </Row>
  124. <Row>
  125. <Col id="codecolumn">2</Col>
  126. <Col id="datacolumn">예약</Col>
  127. </Row>
  128. </Rows>
  129. </Dataset>
  130. </Radio>
  131. <Calendar id="ipt_trsmreqdt_date" taborder="19" class="input_default" position="absolute 183 301 281 320"/>
  132. <MaskEdit id="ipt_trsmreqdt_time" taborder="20" mask="##:##" class="input_default" position="absolute 284 301 334 320" maskchar=" " type="string" trimtype="both" style="align:left middle;"/>
  133. <Shape id="line5" linetype="horizontal" class="line_2" position="absolute 0 321 605 327"/>
  134. <Button id="btn_trsm" taborder="21" text="전송" class="btn4" position="absolute 488 654 544 676" onclick="btn_trsm_onclick"/>
  135. <Button id="btn_cncl" taborder="22" text="취소" class="btn4" position="absolute 547 654 603 676" onclick="btn_cncl_onclick"/>
  136. <Shape id="line32" linetype="horizontal" class="line_6" position="absolute 0 192 601 198"/>
  137. <ImageViewer id="img_bg4" taborder="8" visible="false" position="absolute 93 327 603 651"/>
  138. <TextArea id="tar_emailbdtext" taborder="9" class="text_essential" position="absolute 93 327 603 651" style="background:transparent stretch 9,9;border:1 solid #808080ff ;"/>
  139. </Layout>
  140. </Layouts>
  141. <Objects>
  142. <Dataset id="ds_main_emailattr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  143. <ColumnInfo>
  144. <Column id="trsmdd" type="STRING" size="256"/>
  145. <Column id="bizflag" type="STRING" size="256"/>
  146. <Column id="delivedd" type="STRING" size="256"/>
  147. <Column id="delivereqtm" type="STRING" size="256"/>
  148. <Column id="recvremail" type="STRING" size="256"/>
  149. <Column id="recvrnm" type="STRING" size="256"/>
  150. <Column id="replemail" type="STRING" size="256"/>
  151. <Column id="refemail" type="STRING" size="256"/>
  152. <Column id="emailtitl" type="STRING" size="256"/>
  153. <Column id="emailbdtext" type="STRING" size="256"/>
  154. <Column id="emailbdtextfile" type="STRING" size="256"/>
  155. <Column id="msglrgcd" type="STRING" size="256"/>
  156. <Column id="msgmdlcd" type="STRING" size="256"/>
  157. <Column id="msgsmlcd" type="STRING" size="256"/>
  158. <Column id="rsrvyn" type="STRING" size="256"/>
  159. <Column id="delivedd" type="STRING" size="256"/>
  160. <Column id="delivereqtm" type="STRING" size="256"/>
  161. </ColumnInfo>
  162. <Rows>
  163. <Row>
  164. <Col id="trsmdd"/>
  165. <Col id="bizflag"/>
  166. <Col id="delivedd"/>
  167. <Col id="delivereqtm"/>
  168. <Col id="recvremail"/>
  169. <Col id="recvrnm"/>
  170. <Col id="replemail"/>
  171. <Col id="refemail"/>
  172. <Col id="emailtitl"/>
  173. <Col id="emailbdtext"/>
  174. <Col id="emailbdtextfile"/>
  175. <Col id="msglrgcd"/>
  176. <Col id="msgmdlcd"/>
  177. <Col id="msgsmlcd"/>
  178. <Col id="rsrvyn">1</Col>
  179. <Col id="delivedd"/>
  180. <Col id="delivereqtm"/>
  181. </Row>
  182. </Rows>
  183. </Dataset>
  184. <Dataset id="ds_init_chnllrglist_chnllrggrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  185. <Dataset id="ds_init_chnlmdllist_chnlmdlgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  186. <ColumnInfo>
  187. <Column id="msgmdlcd" type="INT" size="256" sumtext="메시지중분류코드"/>
  188. <Column id="msgmdlnm" type="STRING" size="256" sumtext="메시지중분류명"/>
  189. <Column id="msglrgcd" type="INT" size="256" sumtext="메시지대분류코드"/>
  190. </ColumnInfo>
  191. </Dataset>
  192. <Dataset id="ds_main_msgsmllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  193. <ColumnInfo>
  194. <Column id="msgsmlcd" type="STRING" size="256" sumtext="메시지소분류코드"/>
  195. <Column id="msgcnts" type="STRING" size="256" sumtext="SMS메시지내용"/>
  196. <Column id="smstrsmcntcno" type="STRING" size="256" sumtext="SMS전송자연락처번호"/>
  197. <Column id="emailtitl" type="STRING" size="256" sumtext="이메일제목"/>
  198. <Column id="dmtitl" type="STRING" size="256" sumtext="DM제목"/>
  199. </ColumnInfo>
  200. </Dataset>
  201. <Dataset id="ds_arg_emailattr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  202. <Dataset id="ds_send_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  203. <ColumnInfo>
  204. <Column id="msglrgcd" type="STRING" size="256"/>
  205. <Column id="msgmdlcd" type="STRING" size="256"/>
  206. <Column id="msgsmlcd" type="STRING" size="256"/>
  207. <Column id="chnlflag" type="STRING" size="256"/>
  208. </ColumnInfo>
  209. <Rows>
  210. <Row>
  211. <Col id="msglrgcd"/>
  212. <Col id="msgmdlcd"/>
  213. <Col id="msgsmlcd"/>
  214. <Col id="chnlflag"/>
  215. </Row>
  216. </Rows>
  217. </Dataset>
  218. <Dataset id="ds_temp_emailattr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  219. <ColumnInfo>
  220. <Column id="msgsmlcd" type="INT" size="256" sumtext="메시지소분류코드"/>
  221. <Column id="emailtitl" type="STRING" size="256" sumtext="이메일제목"/>
  222. <Column id="trsmpsnemailinfo" type="STRING" size="256" sumtext="회신이메일"/>
  223. <Column id="emailbdtext" type="STRING" size="256" sumtext="이메일내용"/>
  224. <Column id="emailbdtextfile" type="STRING" size="256" sumtext="이메일 이미지태그내용"/>
  225. <Column id="msglrgcd" type="INT" size="256" sumtext="메시지대분류코드"/>
  226. <Column id="msgmdlcd" type="INT" size="256" sumtext="메시지중분류코드"/>
  227. </ColumnInfo>
  228. </Dataset>
  229. <Dataset id="ds_temp_imgset" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  230. <ColumnInfo>
  231. <Column id="img1" type="STRING" size="256"/>
  232. <Column id="img2" type="STRING" size="256"/>
  233. <Column id="img3" type="STRING" size="256"/>
  234. <Column id="img4" type="STRING" size="256"/>
  235. <Column id="imguse" type="STRING" size="256"/>
  236. </ColumnInfo>
  237. <Rows>
  238. <Row>
  239. <Col id="img1">F</Col>
  240. <Col id="img2">F</Col>
  241. <Col id="img3">F</Col>
  242. <Col id="img4">F</Col>
  243. <Col id="imguse">N</Col>
  244. </Row>
  245. </Rows>
  246. </Dataset>
  247. <Dataset id="ds_fwd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  248. <ColumnInfo>
  249. <Column id="type" type="STRING" size="256"/>
  250. <Column id="searchtype" type="STRING" size="256"/>
  251. <Column id="searchname" type="STRING" size="256"/>
  252. </ColumnInfo>
  253. <Rows>
  254. <Row>
  255. <Col id="type">email</Col>
  256. </Row>
  257. </Rows>
  258. </Dataset>
  259. <Dataset id="ds_fwd2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  260. <ColumnInfo>
  261. <Column id="searchname" type="STRING" size="256"/>
  262. <Column id="searchtype" type="STRING" size="256"/>
  263. <Column id="type" type="STRING" size="256"/>
  264. </ColumnInfo>
  265. <Rows>
  266. <Row>
  267. <Col id="type">refemail</Col>
  268. </Row>
  269. </Rows>
  270. </Dataset>
  271. </Objects>
  272. <Bind>
  273. <BindItem id="item0" compid="ipt_emailtitl" propid="value" datasetid="ds_main_emailattr" columnid="emailtitl"/>
  274. <BindItem id="item1" compid="ipt_recvremail" propid="value" datasetid="ds_main_emailattr" columnid="recvremail"/>
  275. <BindItem id="item2" compid="ipt_refemail" propid="value" datasetid="ds_main_emailattr" columnid="refemail"/>
  276. <BindItem id="item3" compid="rdo_rsrvyn" propid="value" datasetid="ds_main_emailattr" columnid="rsrvyn"/>
  277. <BindItem id="item4" compid="ipt_trsmreqdt_date" propid="value" datasetid="ds_main_emailattr" columnid="delivedd"/>
  278. <BindItem id="item5" compid="ipt_trsmreqdt_time" propid="value" datasetid="ds_main_emailattr" columnid="delivereqtm"/>
  279. <BindItem id="item6" compid="tar_emailbdtext" propid="value" datasetid="ds_main_emailattr" columnid="emailbdtext"/>
  280. <BindItem id="item7" compid="ipt_replemail" propid="value" datasetid="ds_main_emailattr" columnid="replemail"/>
  281. </Bind>
  282. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  283. * System Name :
  284. * Job Name :
  285. * Creator :
  286. * Make Date : 2016-05-24
  287. * Description :
  288. *---------------------------------------------------------------------------------------
  289. * Modify Date Modifier Modify Description
  290. *---------------------------------------------------------------------------------------
  291. * 2016-05-24 Live Converter TF->XP
  292. *
  293. *---------------------------------------------------------------------------------------
  294. ****************************************************************************************/
  295. include "com_commonxp::comm_main.xjs";
  296. function SPCCN00200_oninit(obj:Form, e:InitEventInfo)
  297. {
  298. frmf_initForm(obj);
  299. }
  300. function SPCCN00200_onload(obj:Form, e:LoadEventInfo)
  301. {
  302. grdf_initGrid(grd_msglist);
  303. grdf_setRowTypeIcon(grd_msglist, 0);
  304. try
  305. {
  306. ds_arg_emailattr.copyData(arg_ds_main_emailattr);
  307. }
  308. catch(e){}
  309. ds_main_emailattr.setColumn(0, "recvremail", ds_arg_emailattr.getColumn(0, "recvremail"));
  310. switch2.tabindex = 0; // 초기화면을 편지지로 보여준다.
  311. ds_main_msgsmllist.clearData(); // Email탬플릿 그리드의 col을 초기화 시켜준다.
  312. ds_send_info.setColumn(0, "chnlflag", "E"); // 메시지 분류코드 설정 (Email : E)
  313. var oParam = {};
  314. oParam.id = "TRCNS00201";
  315. oParam.service = "chnlmngtapp.ChnlClsMngt";
  316. oParam.method = "reqGetChnlLrgCd";
  317. oParam.inds = "req=ds_send_info";
  318. oParam.outds = "ds_init_chnllrglist_chnllrggrup=chnllrggrup";
  319. oParam.async = false;
  320. //oParam.callback = "cf_TRCNS00201";
  321. tranf_submit(oParam); // 메시지 대그룹을 가져온다
  322. ds_main_emailattr.setColumn(0, "trsmdd", utlf_getCurrentDate()); // 전송일자를 입력해준다.
  323. ds_main_emailattr.setColumn(0, "bizflag", "2"); // 수동전송은 업무구분을 무조건 2로 한다.
  324. ds_main_emailattr.setColumn(0, "delivedd", utlf_getCurrentDate()); // 발송요청일자를 입력해준다.
  325. ds_main_emailattr.setColumn(0, "delivereqtm", String(utlf_getCurrentTime()).substr(0,4));
  326. // 예약일자와 예약시간 비활성
  327. ipt_trsmreqdt_date.enable = false;
  328. ipt_trsmreqdt_time.enable = false;
  329. }
  330. function cmb_msglrgcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  331. {
  332. ds_init_chnlmdllist_chnlmdlgrup.clearData(); // 기존에 선택된 중분류를 초기화한다.
  333. fGetChnlMdlCd(); // 선택한 채널관리 대분류에 따른 채널관리 중분류를 가져온다.
  334. cmb_msgmdlcd.setFocus();
  335. }
  336. function fGetChnlMdlCd()
  337. {
  338. var msglrgcd = ds_main_emailattr.getColumn(0, "msglrgcd");
  339. ds_send_info.setColumn(0, "msglrgcd",msglrgcd);
  340. var oParam = {};
  341. oParam.id = "TRCNS00202";
  342. oParam.service = "chnlmngtapp.ChnlClsMngt";
  343. oParam.method = "reqGetChnlMdlCd";
  344. oParam.inds = "req=ds_send_info";
  345. oParam.outds = "ds_init_chnlmdllist_chnlmdlgrup=chnlmdlgrup";
  346. oParam.async = false;
  347. //oParam.callback = "cf_TRCNS00202";
  348. tranf_submit(oParam);
  349. }
  350. function cmb_msgmdlcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  351. {
  352. ds_main_msgsmllist.clearData(); // 메시지 리스트를 초기화한다.
  353. fGetChnlSmlCd(); // 선택한 채널관리 대분류에 따른 채널관리 중분류를 가져온다.
  354. }
  355. function fGetChnlSmlCd()
  356. {
  357. var msgmdlcd = ds_main_emailattr.getColumn(0, "msgmdlcd");
  358. ds_send_info.setColumn(0, "msgmdlcd",msgmdlcd);
  359. var oParam = {};
  360. oParam.id = "TRCCN00101";
  361. oParam.service = "crmapp.Common";
  362. oParam.method = "reqGetMsgList";
  363. oParam.inds = "req=ds_send_info";
  364. oParam.outds = "ds_main_msgsmllist=msgsmllist";
  365. oParam.async = false;
  366. //oParam.callback = "cf_TRCCN00101";
  367. tranf_submit(oParam);
  368. }
  369. function grd_msglist_oncellclick(obj:Grid, e:GridClickEventInfo)
  370. {
  371. fGetEmailAttr();
  372. fGetImg();
  373. }
  374. function fGetEmailAttr()
  375. {
  376. var row = ds_main_msgsmllist.rowposition;
  377. // 선택한 채널관리 리스트항목의 대분류에 따른 채널관리 중분류를 가져온다.
  378. var msgsmlcd = ds_main_msgsmllist.getColumn(row, "msgsmlcd");
  379. if (!utlf_isNull(msgsmlcd))
  380. {
  381. ds_send_info.setColumn(0, "msgsmlcd", msgsmlcd);
  382. var oParam = {};
  383. oParam.id = "TRCCN00201";
  384. oParam.service = "crmapp.Common";
  385. oParam.method = "reqGetEmailInfo";
  386. oParam.inds = "req=ds_send_info";
  387. oParam.outds = "ds_temp_emailattr=emailattr";
  388. oParam.async = false;
  389. //oParam.callback = "cf_TRCCN00201";
  390. tranf_submit(oParam);
  391. var msgsmlcd = ds_temp_emailattr.getColumn(0, "msgsmlcd");
  392. var emailtitl = ds_temp_emailattr.getColumn(0, "emailtitl");
  393. var replemail = ds_temp_emailattr.getColumn(0, "trsmpsnemailinfo");
  394. var emailbdtext = ds_temp_emailattr.getColumn(0, "emailbdtext");
  395. var emailbdtextfile = ds_temp_emailattr.getColumn(0, "emailbdtextfile");
  396. var msglrgcd = ds_temp_emailattr.getColumn(0, "msglrgcd");
  397. var msgmdlcd = ds_temp_emailattr.getColumn(0, "msgmdlcd");
  398. ds_main_emailattr.setColumn(0, "msgsmlcd", msgsmlcd);
  399. ds_main_emailattr.setColumn(0, "emailtitl", emailtitl);
  400. ds_main_emailattr.setColumn(0, "replemail", replemail);
  401. ds_main_emailattr.setColumn(0, "emailbdtext", emailbdtext);
  402. ds_main_emailattr.setColumn(0, "emailbdtextfile", emailbdtextfile);
  403. ds_main_emailattr.setColumn(0, "msglrgcd", msglrgcd);
  404. ds_main_emailattr.setColumn(0, "msgmdlcd", msgmdlcd);
  405. }
  406. }
  407. function fGetImg()
  408. {
  409. var str_find = String(ds_main_emailattr.getColumn(0, "emailbdtextfile"));
  410. var str_index1 = str_find.indexOf("/23/")//1번 이미지
  411. var str_index2 = str_find.indexOf("/28/")//2번 이미지
  412. var str_index3 = str_find.indexOf("/84/")//3번 이미지
  413. var str_index4 = str_find.indexOf("/51/")//4번 이미지
  414. if(str_index1 != -1)
  415. {
  416. ds_temp_imgset.setColumn(0, "img1", "T");
  417. img_bg1.visible = true;
  418. ds_temp_imgset.setColumn(0, "img2", "F");
  419. ds_temp_imgset.setColumn(0, "img3", "F");
  420. ds_temp_imgset.setColumn(0, "img4", "F");
  421. img_bg2.visible = false;
  422. img_bg3.visible = false;
  423. img_bg4.visible = false;
  424. ds_temp_imgset.setColumn(0, "imguse", "Y");
  425. }
  426. else if(str_index2 != -1)
  427. {
  428. ds_temp_imgset.setColumn(0, "img2", "T");
  429. img_bg2.visible = true;
  430. ds_temp_imgset.setColumn(0, "img1", "F");
  431. ds_temp_imgset.setColumn(0, "img3", "F");
  432. ds_temp_imgset.setColumn(0, "img4", "F");
  433. img_bg1.visible = false;
  434. img_bg3.visible = false;
  435. img_bg4.visible = false;
  436. ds_temp_imgset.setColumn(0, "imguse", "Y");
  437. }
  438. else if(str_index3 != -1)
  439. {
  440. ds_temp_imgset.setColumn(0, "img3", "T");
  441. img_bg3.visible = true;
  442. ds_temp_imgset.setColumn(0, "img1", "F");
  443. ds_temp_imgset.setColumn(0, "img2", "F");
  444. ds_temp_imgset.setColumn(0, "img4", "F");
  445. img_bg1.visible = false;
  446. img_bg2.visible = false;
  447. img_bg4.visible = false;
  448. ds_temp_imgset.setColumn(0, "imguse", "Y");
  449. }
  450. else if(str_index4 != -1)
  451. {
  452. ds_temp_imgset.setColumn(0, "img4", "T");
  453. img_bg4.visible = true;
  454. ds_temp_imgset.setColumn(0, "img1", "F");
  455. ds_temp_imgset.setColumn(0, "img2", "F");
  456. ds_temp_imgset.setColumn(0, "img3", "F");
  457. img_bg1.visible = false;
  458. img_bg2.visible = false;
  459. img_bg3.visible = false;
  460. ds_temp_imgset.setColumn(0, "imguse", "Y");
  461. }
  462. else
  463. {
  464. ds_temp_imgset.setColumn(0, "img1", "F");
  465. ds_temp_imgset.setColumn(0, "img2", "F");
  466. ds_temp_imgset.setColumn(0, "img3", "F");
  467. ds_temp_imgset.setColumn(0, "img4", "F");
  468. img_bg1.visible = false;
  469. img_bg2.visible = false;
  470. img_bg3.visible = false;
  471. img_bg4.visible = false;
  472. ds_temp_imgset.setColumn(0, "imguse", "N");
  473. }
  474. }
  475. function switch2_case1_img1_onclick(obj:ImageViewer, e:ClickEventInfo)
  476. {
  477. if (ds_temp_imgset.getColumn(0, "img1") == "F")
  478. {
  479. img_bg1.visible = true;
  480. ds_temp_imgset.setColumn(0, "img1", "T");
  481. ds_temp_imgset.setColumn(0, "imguse", "Y");
  482. }
  483. else
  484. {
  485. img_bg1.visible = false;
  486. ds_temp_imgset.setColumn(0, "img1", "F");
  487. ds_temp_imgset.setColumn(0, "imguse", "N");
  488. }
  489. ds_temp_imgset.setColumn(0, "img2", "F");
  490. ds_temp_imgset.setColumn(0, "img3", "F");
  491. ds_temp_imgset.setColumn(0, "img4", "F");
  492. img_bg2.visible = false;
  493. img_bg3.visible = false;
  494. img_bg4.visible = false;
  495. }
  496. function tab_ButtonEvent(obj)
  497. {
  498. var trgObj = obj;
  499. if(sysf_getObjType(obj) == "Button")
  500. {
  501. var btnMark = trgObj.text;
  502. tar_emailbdtext.setFocus();
  503. var txtSelPos = tar_emailbdtext.getCaretPos();
  504. var curText = String(tar_emailbdtext.text);
  505. var curTextBefore = curText.substr(0, txtSelPos);
  506. var curTextAfter = curText.substr(txtSelPos, curText.length);
  507. tar_emailbdtext.value = curTextBefore + btnMark + curTextAfter;
  508. var curLength = String(curTextBefore + btnMark).length;
  509. tar_emailbdtext.setCaretPos(curLength);
  510. }
  511. }
  512. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  513. {
  514. // 해당인스턴스의 값을 지운다
  515. ds_main_emailattr.setColumn(0, "msglrgcd", "");
  516. ds_main_emailattr.setColumn(0, "msgmdlcd", "");
  517. ds_main_emailattr.setColumn(0, "recvremail", "");
  518. ds_main_emailattr.setColumn(0, "recvrnm", "");
  519. ds_main_emailattr.setColumn(0, "replemail", "");
  520. ds_main_emailattr.setColumn(0, "refemail", "");
  521. ds_main_emailattr.setColumn(0, "emailtitl", "");
  522. ds_main_emailattr.setColumn(0, "emailbdtext", "");
  523. img_bg1.visible = false;
  524. img_bg2.visible = false;
  525. img_bg3.visible = false;
  526. img_bg4.visible = false;
  527. }
  528. function rdo_rsrvyn_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  529. {
  530. frdocheck();
  531. }
  532. function frdocheck()
  533. {
  534. var req_chk = ds_main_emailattr.getColumn(0, "rsrvyn");
  535. if (req_chk == "1")
  536. {
  537. ipt_trsmreqdt_date.enable = false;
  538. ipt_trsmreqdt_time.enable = false;
  539. // 일반전송 선택시 기존 입력한 예약일자 및 예약시간 Clear
  540. ds_main_emailattr.setColumn(0, "delivedd", "");
  541. ds_main_emailattr.setColumn(0, "delivereqtm", "");
  542. }
  543. else
  544. {
  545. ipt_trsmreqdt_date.enable = true;
  546. ipt_trsmreqdt_time.enable = true;
  547. }
  548. }
  549. function btn_address_onclick(obj:Button, e:ClickEventInfo)
  550. {
  551. var objArg = new Object();
  552. objArg.arg_ds_fwd = ds_fwd;
  553. frmf_modal("SPCCN00500", "SPCCN00500", objArg, "", "", "", "", "", "", "", "", "", "M");
  554. }
  555. function btn_addfile_onclick(obj:Button, e:ClickEventInfo)
  556. {
  557. var objArg = new Object();
  558. objArg.arg_ds_fwd = ds_fwd;
  559. frmf_modal("SPCCN00600", "SPCCN00600", objArg, "", "", "", "", "", "", "", "", "", "M");
  560. }
  561. function btn_address2_onclick(obj:Button, e:ClickEventInfo)
  562. {
  563. var objArg = new Object();
  564. objArg.arg_ds_fwd = ds_fwd2;
  565. frmf_modal("SPCCN00500", "SPCCN00500", objArg, "", "", "", "", "", "", "", "", "", "M");
  566. }
  567. function btn_addfile2_onclick(obj:Button, e:ClickEventInfo)
  568. {
  569. var objArg = new Object();
  570. objArg.arg_ds_fwd = ds_fwd2;
  571. frmf_modal("SPCCN00600", "SPCCN00600", objArg, "", "", "", "", "", "", "", "", "", "M");
  572. }
  573. function btn_trsm_onclick(obj:Button, e:ClickEventInfo)
  574. {
  575. fEmailSubmit();
  576. }
  577. function fEmailSubmit()
  578. {
  579. arrCompId = new Array("ipt_emailtitl","ipt_recvremail", "ipt_replemail", "tar_emailbdtext");
  580. if(!frmf_isRequiredControls(arrCompId)) return;
  581. //bg_img
  582. if(ds_temp_imgset.getColumn(0, "imguse") == "Y")
  583. {
  584. var emailbdtextfile = "";
  585. var top = "<TABLE width='700' height='500' border='0' cellspacing='0' cellpadding='0'><TR><TD height='5' bgcolor='#2285bc'></TD></TR><TR><TD height='30'></TD></TR><TR><TD valign='top' style='padding-left:10px;font-size=10pt;'><!--@본문--></TD></TR><TR><TD width='700' height='300'><img src='"
  586. var img = "";
  587. var bottom ="' width='700' height='300'></TD></TR></TABLE>";
  588. if(ds_temp_imgset.getColumn(0, "img1") == "T")
  589. {
  590. img = "http://crm001.cmcnu.or.kr/himed/webapps/crm/crmweb/images/CMC_Graphic_Motif.jpg";
  591. }
  592. else if(ds_temp_imgset.getColumn(0, "img2") == "T")
  593. {
  594. img = "";
  595. }
  596. else if(ds_temp_imgset.getColumn(0, "img3") == "T")
  597. {
  598. img = "";
  599. }
  600. else if(ds_temp_imgset.getColumn(0, "img4") == "T")
  601. {
  602. img = "";
  603. }
  604. emailbdtextfile = top + img + bottom;
  605. ds_main_emailattr.setColumn(0, "emailbdtextfile", emailbdtextfile);
  606. }
  607. var emailbdtext = String(ds_main_emailattr.getColumn(0, "emailbdtext"));
  608. emailbdtext = fGetReplaceValue(emailbdtext, "\n", "<BR>");
  609. ds_main_emailattr.setColumn(0, "emailbdtext", emailbdtext);
  610. var replemail = ds_main_emailattr.getColumn(0, "replemail");
  611. var recvremail = ds_main_emailattr.getColumn(0, "recvremail");
  612. var refemail = ds_main_emailattr.getColumn(0, "refemail");
  613. var emailok1, emailok2, emailok3, emailok4, emailok5, emailok6;
  614. if (replemail.indexOf("@") != -1)
  615. {
  616. emailok1 = "ok"
  617. }
  618. if (replemail.indexOf(".") != -1)
  619. {
  620. emailok2 = "ok"
  621. }
  622. if (recvremail.indexOf("@") != -1)
  623. {
  624. emailok3 = "ok"
  625. }
  626. if (recvremail.indexOf(".") != -1)
  627. {
  628. emailok4 = "ok"
  629. }
  630. if (!utlf_isNull(refemail))
  631. {
  632. if (refemail.indexOf("@") != -1)
  633. {
  634. emailok5 = "ok"
  635. }
  636. if (refemail.indexOf(".") != -1)
  637. {
  638. emailok6 = "ok"
  639. }
  640. }
  641. if (emailok1 != "ok" || emailok2 != "ok")
  642. {
  643. sysf_messageBox("보내는이 메일주소를 올바르게", "C001")
  644. ipt_replemail.setFocus();
  645. }
  646. else if (emailok3 != "ok" || emailok4 != "ok")
  647. {
  648. sysf_messageBox("받는이 메일주소를 올바르게", "C001")
  649. ipt_recvremail.setFocus();
  650. }
  651. else if (!utlf_isNull(refemail) && (emailok5 != "ok" || emailok6 != "ok"))
  652. {
  653. sysf_messageBox("참조 메일주소를 올바르게", "C001")
  654. ipt_refemail.setFocus();
  655. }
  656. else
  657. {
  658. var oParam = {};
  659. oParam.id = "TXCCN00201";
  660. oParam.service = "crmapp.Common";
  661. oParam.method = "reqInsEmailTrsm";
  662. oParam.inds = "emailtrsm=ds_main_emailattr";
  663. oParam.outds = "ds_=message";
  664. oParam.async = false;
  665. //oParam.callback = "cf_TXCCN00201";
  666. tranf_submit(oParam);
  667. sysf_messageBox("Email 전송이","I002");
  668. ds_main_emailattr.setColumn(0, "emailtitl", "");
  669. ds_main_emailattr.setColumn(0, "replemail", "");
  670. ds_main_emailattr.setColumn(0, "recvremail", "");
  671. ds_main_emailattr.setColumn(0, "refemail", "");
  672. ds_main_emailattr.setColumn(0, "rsrvyn", "1");
  673. ipt_trsmreqdt_date.enable = false;
  674. ipt_trsmreqdt_time.enable = false;
  675. ds_main_emailattr.setColumn(0, "delivedd", "");
  676. ds_main_emailattr.setColumn(0, "delivereqtm", "");
  677. ds_main_emailattr.setColumn(0, "emailbdtext", "");
  678. img_bg1.visible = false;
  679. img_bg2.visible = false;
  680. img_bg3.visible = false;
  681. img_bg4.visible = false;
  682. }
  683. }
  684. function fGetReplaceValue(str, original, replacement)
  685. {
  686. var result = "";
  687. while(str.indexOf(original) != -1)
  688. {
  689. if (str.indexOf(original) > 0)
  690. {
  691. result = result + str.substring(0, str.indexOf(original)) + replacement;
  692. }
  693. else
  694. {
  695. result = result + replacement;
  696. }
  697. str = str.substring(str.indexOf(original) + original.length, str.length);
  698. }
  699. return result + str;
  700. }
  701. function btn_cncl_onclick(obj:Button, e:ClickEventInfo)
  702. {
  703. this.close();
  704. }
  705. ]]></Script>
  706. </Form>
  707. </FDL>