SMCND00200_DM템플릿관리.xrw 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SMCND00200_DM템플릿관리
  4. * Summary : DM템플릿관리
  5. * Programmer : 최정환
  6. * Date Written : 2007.08.20
  7. * History : 2007.08.20
  8. * Remark :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>DM템플릿관리</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <list>
  19. <msgtmpllist>
  20. <dmtitl/>
  21. <usernm/>
  22. <msgsmlcd/>
  23. <msglrgnm/>
  24. <msgmdlnm/>
  25. </msgtmpllist>
  26. </list>
  27. <msgtmpl>
  28. <msglrgcd/>
  29. <msgmdlcd/>
  30. <msgsmlcd/>
  31. <dmtitl/>
  32. <dmbdtext/>
  33. <dmsigntext/>
  34. <replzipcd1/>
  35. <replzipcd2/>
  36. <replzipcdseq/>
  37. <replzipcdaddr/>
  38. <repldetladdr/>
  39. <replnm/>
  40. <useyn/>
  41. <savemode/>
  42. <chnlflag/>
  43. </msgtmpl>
  44. </main>
  45. <CountNode/>
  46. <focusid/>
  47. <send>
  48. <data>
  49. <rgstfromdd/>
  50. <rgsttodd/>
  51. <dmtitl/>
  52. <dmbdtext/>
  53. <useyn>Y</useyn>
  54. <mdlgrupcd/>
  55. </data>
  56. <info>
  57. <msglrgcd/>
  58. <msgsmlcd/>
  59. <chnlflag/>
  60. </info>
  61. </send>
  62. <init>
  63. <chnllrglist>
  64. <chnllrggrup>
  65. <msglrgnm/>
  66. <msglrgcd/>
  67. </chnllrggrup>
  68. </chnllrglist>
  69. <chnlmdllist>
  70. <chnlmdlgrup>
  71. <msgmdlnm/>
  72. <msgmdlcd/>
  73. <msglrgcd/>
  74. </chnlmdlgrup>
  75. </chnlmdllist>
  76. </init>
  77. <temp>
  78. <prvwscrn/>
  79. <msgsmlcd/>
  80. <searchtype/>
  81. </temp>
  82. <hidden>
  83. <messagecnt/>
  84. </hidden>
  85. </root>
  86. </instance>
  87. <submission id="TRCNS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/info" resultref="/root/init/chnllrglist/chnllrggrup"/>
  88. <submission id="TRCNS00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/info" replace="instance" resultref="/root/init/chnlmdllist/chnlmdlgrup"/>
  89. <submission id="TRCNS00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/msgtmpllist"/>
  90. <submission id="TRCND00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/info" resultref="/root/main/msgtmpl"/>
  91. <submission id="TXCNS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/msgtmpl"/>
  92. </model>
  93. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  96. <script type="javascript" ev:event="xforms-ready">
  97. <![CDATA[
  98. // DM 탭버튼 활성
  99. btn_dm.selected = true;
  100. //분류 제목선택
  101. cmb_titlesearch.select(0);
  102. // DM메시지 그리드의 col을 초기화 시켜준다.
  103. model.removenodeset("/root/main/list/msgtmpllist");
  104. // 메시지 분류코드 설정 (DM : D)
  105. model.setValue("/root/send/info/chnlflag", "D");
  106. // 메시지 대그룹을 가져온다
  107. submit("TRCNS00201");
  108. // 입력모드로 표시
  109. model.setValue("/root/main/msgtmpl/savemode","I");
  110. //저장 수정버튼 활성화 구분
  111. fGetMsgStatus();
  112. fCheckAuth();
  113. ]]>
  114. </script>
  115. <script type="javascript">
  116. <![CDATA[
  117. // 권한체크
  118. function fCheckAuth() {
  119. if (!checkAuth("r")) {
  120. btn_search.disabled=true;
  121. }
  122. if (!checkAuth("x")) {
  123. btn_save.disabled=true;
  124. btn_updt.disabled=true;
  125. btn_del.disabled=true;
  126. }
  127. }
  128. // 초기화
  129. function fInitiate() {
  130. // DM등록화면 초기화
  131. //model.resetInstanceNode("/root/main/msgtmpl");
  132. model.setValue("/root/main/msgtmpl/useyn", "");
  133. model.setValue("/root/main/msgtmpl/dmtitl", "");
  134. model.setValue("/root/main/msgtmpl/dmbdtext", "");
  135. model.setValue("/root/main/msgtmpl/dmsigntext", "");
  136. model.setValue("/root/main/msgtmpl/replzipcd1", "");
  137. model.setValue("/root/main/msgtmpl/replzipcd2", "");
  138. model.setValue("/root/main/msgtmpl/replzipcdseq", "");
  139. model.setValue("/root/main/msgtmpl/replzipcdaddr", "");
  140. model.setValue("/root/main/msgtmpl/repldetladdr", "");
  141. model.setValue("/root/main/msgtmpl/replnm", "");
  142. model.setValue("/root/main/msgtmpl/msgsmlcd", "");
  143. //model.setValue("/root/main/msgtmpl/dmprnt", "D");
  144. //model.resetInstanceNode("/root/temp/prvwscrn");
  145. model.setValue("/root/main/msgtmpl/savemode", "I");
  146. //trv_leftmenu.deselect(0);//tree선택 초기화
  147. //저장 수정버튼 활성화 구분
  148. fGetMsgStatus();
  149. }
  150. // 선택한 채널관리 대분류에 따른 채널관리 중분류를 가져온다.
  151. function fGetChnlMdlCd() {
  152. var msglrgcd = model.getValue("/root/main/msgtmpl/msglrgcd");
  153. model.setValue("/root/send/info/msglrgcd",msglrgcd);
  154. submit("TRCNS00202");
  155. }
  156. // 그룹관리의 변경된 내용을 새로 적용시켜준다.
  157. function fChnlLrg() {
  158. model.removenodeset("/root/init/chnllrglist/chnllrggrup");
  159. model.removenodeset("/root/init/chnlmdllist/chnlmdlgrup");
  160. model.resetInstanceNode("/root/main/msgtmpl/msglrgcd");
  161. model.resetInstanceNode("/root/main/msgtmpl/msgmdlcd");
  162. submit("TRCNS00201");
  163. }
  164. // DM정보조회
  165. function fGetDMAttr() {
  166. var row = grd_msgtmpllist.row;
  167. // 선택한 채널관리 리스트항목의 대분류에 따른 채널관리 중분류를 가져온다.
  168. var msgsmlcd = grd_msgtmpllist.valueMatrix(row, grd_msgtmpllist.colRef("msgsmlcd"));
  169. if (msgsmlcd != "") {
  170. model.setValue("/root/send/info/msgsmlcd", msgsmlcd);
  171. submit("TRCND00201");
  172. // 선택한 채널관리 리스트항목의 대분류에 따른 채널관리 중분류를 가져온다.
  173. var msglrgcd = model.getValue("/root/main/msgtmpl/msglrgcd");
  174. model.setValue("/root/send/info/msglrgcd",msglrgcd);
  175. submit("TRCNS00202");
  176. // 수정모드로 표시
  177. model.setValue("/root/main/msgtmpl/savemode","U");
  178. model.refresh();
  179. }
  180. }
  181. // DM메시지 관리 등록 및 수정
  182. function fSaveMsg(savemode) {
  183. var chnlflag = model.getValue("/root/send/info/chnlflag");
  184. model.setValue("/root/main/msgtmpl/chnlflag", chnlflag);
  185. submit("TXCNS00201");
  186. messageBox("탬플릿 저장이", "I002", "");
  187. fInitiate();
  188. //model.setValue("/root/main/msgtmpl/msglrgcd", "");
  189. //model.setValue("/root/main/msgtmpl/msgmdlcd", "");
  190. }
  191. // DM메시지 리스트 조회
  192. function fGetMsgTmplList() {
  193. model.removeNodeset("/root/main/list/msgtmpllist");
  194. submit("TRCNS00203");
  195. var grid_rows = grd_msgtmpllist.rows-1;
  196. model.setvalue("/root/CountNode" , grid_rows);
  197. model.refresh();
  198. }
  199. //-------------------------//
  200. // 저장,수정버튼 활성화 //
  201. //-------------------------//
  202. function fGetMsgStatus(){
  203. var msgStatus = model.getValue("/root/main/msgtmpl/savemode");
  204. if(msgStatus == "I"){
  205. btn_updt.disabled = true;
  206. btn_save.disabled = false;
  207. }else if(msgStatus == "U"){
  208. btn_updt.disabled = false;
  209. btn_save.disabled = true;
  210. }else{
  211. btn_updt.disabled = true;
  212. btn_save.disabled = true;
  213. }
  214. model.refresh();
  215. }
  216. //DM 저장시 정합성 체크
  217. function fMsgValid(){
  218. var msgtitl = model.getValue("/root/main/msgtmpl/dmtitl");
  219. var msgcnts = model.getValue("/root/main/msgtmpl/dmbdtext");
  220. var msglrgcd = model.getValue("/root/main/msgtmpl/msglrgcd");
  221. var msgmdlcd = model.getValue("/root/main/msgtmpl/msgmdlcd");
  222. if(msgtitl == ""){
  223. messageBox("DM제목이 입력 되지", "E007");
  224. model.setFocus("ipt_dmtitl");
  225. return false;
  226. }
  227. if(msgcnts == ""){
  228. messageBox("DM내용이 입력 되지", "E007");
  229. model.setFocus("tar_dmbdtext");
  230. return false;
  231. }
  232. if(msglrgcd == ""){
  233. messageBox("DM의 대분류가 선택 되지 않았습니다. 좌측 트리 메뉴를 먼저", "C002");
  234. return false;
  235. }
  236. if(msgmdlcd == "" || msgmdlcd == "0"){
  237. messageBox("DM의 중분류가 선택 되지 않았습니다. 좌측 트리 메뉴를 먼저", "C002");
  238. return false;
  239. }
  240. return true;
  241. }
  242. // DM 관리 삭제(사용안함 상태로 바꾸기)
  243. function fDelMsg(savemode) {
  244. var chnlflag = model.getValue("/root/send/info/chnlflag");
  245. model.setValue("/root/main/msgtmpl/chnlflag", chnlflag);
  246. submit("TXCNS00201");
  247. messageBox("탬플릿 삭제가", "I002", "");
  248. fInitiate();
  249. model.resetInstanceNode("/root/temp/prvwscrn");
  250. model.resetInstanceNode("/root/hidden/messagecnt");
  251. //model.setValue("/root/main/msgtmpl/savemode", "I");
  252. model.refresh();
  253. }
  254. ]]>
  255. </script>
  256. </xhtml:head>
  257. <xhtml:body guideline="1,358;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  258. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  259. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">상용구 관리</caption>
  260. </group>
  261. <group id="grp_johe" style="left:225px; top:23px; width:665px; height:60px; vertical-align:top; ">
  262. <caption id="caption4" class="tit_2" style="left:5px; top:3px; width:150px; height:14px; ">DM</caption>
  263. <line id="line4" class="line_1" style="x1:0px; y1:17px; x2:665px; y2:17px; "/>
  264. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:25px; width:665px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  265. <caption id="caption2" class="search_name" style="left:15px; top:34px; width:90px; height:17px; ">검색조건 :</caption>
  266. <select1 id="cmb_titlesearch" ref="/root/temp/searchtype" class="combo_search" appearance="minimal" style="left:104px; top:34px; width:66px; height:19px; ">
  267. <choices>
  268. <item>
  269. <label>제 목</label>
  270. <value>T</value>
  271. </item>
  272. <item>
  273. <label>내 용</label>
  274. <value>C</value>
  275. </item>
  276. </choices>
  277. <script type="javascript" ev:event="xforms-value-changed">
  278. <![CDATA[
  279. var searchtype = model.getValue("/root/temp/searchtype");
  280. if(searchtype == "T"){
  281. ipt_s_dtmntitl.visible = true;
  282. ipt_s_dtmnbdtext.visible = false;
  283. model.setValue("/root/send/data/dmtitl","");
  284. model.setValue("/root/send/data/dmbdtext","");
  285. }else{
  286. ipt_s_dtmntitl.visible = false;
  287. ipt_s_dtmnbdtext.visible = true;
  288. model.setValue("/root/send/data/dmtitl","");
  289. model.setValue("/root/send/data/dmbdtext","");
  290. }
  291. ]]>
  292. </script>
  293. </select1>
  294. <input id="ipt_s_dtmntitl" ref="/root/send/data/dmtitl" class="input_search" style="left:175px; top:34px; width:130px; height:19px; "/>
  295. <input id="ipt_s_dtmnbdtext" ref="/root/send/data/dmbdtext" class="input_search" style="left:175px; top:34px; width:130px; height:19px; ">
  296. <script type="javascript" ev:event="onkeyup">
  297. <![CDATA[
  298. inputEnterKey("btn_search", "DOMActivate");
  299. ]]>
  300. </script>
  301. </input>
  302. <line id="line1" class="line_4" style="x1:582px; y1:32px; x2:582px; y2:54px; "/>
  303. <button id="btn_search" class="btn1_letter2" style="left:597px; top:32px; width:56px; height:22px; ">
  304. <caption>조회</caption>
  305. <script type="javascript" ev:event="DOMActivate">
  306. <![CDATA[
  307. fGetMsgTmplList();
  308. // 등록화면 초기화
  309. model.resetInstanceNode("/root/main/msgtmpl");
  310. model.setValue("/root/main/msgtmpl/savemode", "I");
  311. //저장 수정버튼 활성화 구분
  312. fGetMsgStatus();
  313. ]]>
  314. </script>
  315. </button>
  316. </group>
  317. <group id="group6" style="left:895px; top:25px; width:300px; height:335px; ">
  318. <caption id="caption3" class="tit_2" style="left:5px; top:0px; width:150px; height:14px; ">용지</caption>
  319. <line id="line3" class="line_1" style="x1:0px; y1:15px; x2:292px; y2:15px; "/>
  320. <shape id="rectangle1" appearance="rectangle" style="left:0px; top:21px; width:292px; height:313px; border-color:#c0c0c0; "/>
  321. <caption id="caption12" style="left:15px; top:45px; width:264px; height:221px; ">
  322. <![CDATA[DM 출력은 라벨용지 출력과 DM용지 출력을
  323. 말합니다.
  324. 라벨용지는 Formtec 주소용 라벨 용지 2종류 -
  325. 3107(16칸), 3108(14칸)을 지원하며
  326. DM용지는 3단 접이식(A4)을 지원합니다.
  327. 라벨용지에는 주소만 들어가므로,
  328. DM 템플릿은 DM용지에만 사용하실 수
  329. 있습니다.]]>
  330. </caption>
  331. </group>
  332. <group id="group2" style="left:224px; top:83px; width:666px; height:277px; ">
  333. <button id="btn_del" class="btn5_letter2" style="left:624px; top:5px; width:42px; height:19px; ">
  334. <caption>삭제</caption>
  335. <script type="javascript" ev:event="DOMActivate">
  336. <![CDATA[
  337. if(model.getValue("/root/main/msgtmpl/msgsmlcd")!=""){
  338. if (messageBox("선택된 DM 메세지를","Q001")==6){
  339. grd_msgtmpllist.deleteItem(grd_msgtmpllist.selectedRow(0));
  340. model.setValue("/root/main/msgtmpl/useyn","N");
  341. var savemode = "U";
  342. fDelMsg(savemode);
  343. }
  344. }else{
  345. messageBox("삭제할 DM 메세지를", "C002");
  346. }
  347. ]]>
  348. </script>
  349. </button>
  350. <caption id="caption9" class="tit_2" style="left:5px; top:10px; width:105px; height:13px; ">DM 메시지</caption>
  351. <line id="line2" class="line_1" style="x1:0px; y1:26px; x2:665px; y2:26px; "/>
  352. <datagrid id="grd_msgtmpllist" nodeset="/root/main/list/msgtmpllist" allowselection="false" caption="DM 제목^대분류^중분류^최초 등록자" colsep="^" colwidth="350, 140, 140, 120, 0" ellipsis="true" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:30px; width:665px; height:247px; ">
  353. <col ref="dmtitl"/>
  354. <col ref="msglrgnm"/>
  355. <col ref="msgmdlnm"/>
  356. <col ref="usernm"/>
  357. <col ref="msgsmlcd" visibility="hidden"/>
  358. <script type="javascript" ev:event="ondblclick">
  359. <![CDATA[
  360. if( grd_msgtmpllist.isCell(event.target) && grd_msgtmpllist.row >= grd_msgtmpllist.fixedRows ){
  361. fGetDMAttr(); // DM메시지 정보조회
  362. model.setValue("/root/main/msgtmpl/savemode","U");
  363. //저장 수정버튼 활성화 구분
  364. fGetMsgStatus();
  365. }
  366. ]]>
  367. </script>
  368. <script type="javascript" ev:event="onrowchanged">
  369. <![CDATA[
  370. fGetDMAttr(); // DM메시지 정보조회
  371. model.setValue("/root/main/msgtmpl/savemode","U");
  372. //저장 수정버튼 활성화 구분
  373. fGetMsgStatus();
  374. ]]>
  375. </script>
  376. </datagrid>
  377. </group>
  378. <group id="group1" style="left:224px; top:360px; width:510px; height:420px; ">
  379. <caption id="caption6" class="tit_2" style="left:5px; top:10px; width:150px; height:13px; ">DM 메시지</caption>
  380. <line id="line5" class="line_1" style="x1:0px; y1:25px; x2:510px; y2:25px; "/>
  381. <line id="line6" class="line_2" style="x1:0px; y1:53px; x2:510px; y2:53px; "/>
  382. <line id="line7" class="line_2" style="x1:0px; y1:78px; x2:510px; y2:78px; "/>
  383. <caption id="caption5" class="cell_1" style="left:0px; top:30px; width:105px; height:23px; text-align:center; vertical-align:middle; ">용지선택</caption>
  384. <caption id="cap_dmtitl" class="cell_1" style="left:0px; top:55px; width:105px; height:23px; text-align:center; ">DM 제목</caption>
  385. <input id="ipt_dmtitl" ref="/root/main/msgtmpl/dmtitl" class="text_essential" maxlength="30" style="left:108px; top:57px; width:400px; height:19px; "/>
  386. <caption id="caption7" class="cell_1" style="left:0px; top:80px; width:105px; height:71px; text-align:center; ">발신정보</caption>
  387. <output id="ipt_zipcd1" ref="/root/main/msgtmpl/replzipcd1" class="output_fix" style="left:108px; top:83px; width:45px; height:19px; "/>
  388. <output id="ipt_zipcd2" ref="/root/main/msgtmpl/replzipcd2" class="output_fix" style="left:156px; top:83px; width:45px; height:19px; "/>
  389. <button id="btnicon_search3" class="icon_search" style="left:207px; top:84px; width:16px; height:16px; ">
  390. <script type="javascript" ev:event="DOMActivate">
  391. <![CDATA[
  392. var search_condition = "srchzipcd";
  393. var search_term1 = model.getValue("/root/main/msgtmpl/replzipcd1");
  394. var search_term2 = model.getValue("/root/main/msgtmpl/replzipcd2");
  395. var search_term = search_term1 + "-" + search_term2;
  396. var receive_zipcd1_path = "/root/main/msgtmpl/replzipcd1";
  397. var receive_zipcd2_path = "/root/main/msgtmpl/replzipcd2";
  398. var receive_zipcdseq_path = "/root/main/msgtmpl/replzipcdseq";
  399. var receive_zipcdaddr_path = "/root/main/msgtmpl/replzipcdaddr";
  400. setParameter("search_condition", search_condition);
  401. setParameter("search_term", search_term);
  402. setParameter("receive_zipcd1_path", receive_zipcd1_path);
  403. setParameter("receive_zipcd2_path", receive_zipcd2_path);
  404. setParameter("receive_zipcdseq_path", receive_zipcdseq_path);
  405. setParameter("receive_zipcdaddr_path", receive_zipcdaddr_path);
  406. modal("SPCCM00200");
  407. //modal("../../../crm/crmweb/xrw/SPCCM00200_우편번호검색.xrw" ,"","","","","");
  408. clearParameter("search_condition");
  409. clearParameter("search_term");
  410. clearParameter("receive_zipcd1_path");
  411. clearParameter("receive_zipcd2_path");
  412. clearParameter("receive_zipcdseq_path");
  413. clearParameter("receive_zipcdaddr_path");
  414. ]]>
  415. </script>
  416. <caption/>
  417. </button>
  418. <output id="ipt_zipcdaddr" ref="/root/main/msgtmpl/replzipcdaddr" class="output_fix" style="left:228px; top:83px; width:280px; height:19px; "/>
  419. <input id="ipt_detladdr" ref="/root/main/msgtmpl/repldetladdr" class="input_default" style="left:108px; top:106px; width:400px; height:19px; "/>
  420. <input id="ipt_rplenm" ref="/root/main/msgtmpl/replnm" class="input_default" maxlength="25" style="left:108px; top:129px; width:205px; height:19px; "/>
  421. <caption id="caption8" style="left:318px; top:130px; width:172px; height:19px; ">(주소 아래 표시될 발신인 정보)</caption>
  422. <line id="line13" class="line_2" style="x1:0px; y1:341px; x2:510px; y2:341px; "/>
  423. <caption id="cap_dmbdtext" class="cell_1" style="left:0px; top:153px; width:105px; height:188px; text-align:center; ">본문 내용</caption>
  424. <textarea id="tar_dmbdtext" ref="/root/main/msgtmpl/dmbdtext" class="text_essential" style="left:108px; top:153px; width:400px; height:186px; ">
  425. <script type="javascript" ev:event="DOMFocusIn">
  426. <![CDATA[
  427. model.setValue("/root/focusid", event.focus)
  428. ]]>
  429. </script>
  430. </textarea>
  431. <caption id="caption14" class="cell_1" style="left:0px; top:343px; width:105px; height:48px; text-align:center; ">서명 내용</caption>
  432. <textarea id="tar_dmsigntext" ref="/root/main/msgtmpl/dmsigntext" class="input_default" style="left:108px; top:343px; width:400px; height:46px; ">
  433. <script type="javascript" ev:event="DOMFocusIn">
  434. <![CDATA[
  435. model.setValue("/root/focusid", event.focus)
  436. ]]>
  437. </script>
  438. </textarea>
  439. <line id="line8" class="line_2" style="x1:0px; y1:391px; x2:510px; y2:391px; "/>
  440. <line id="line9" class="line_2" style="x1:0px; y1:151px; x2:510px; y2:151px; "/>
  441. <button id="btn_init" class="btn5_letter3" style="left:1px; top:395px; width:53px; height:19px; ">
  442. <caption>초기화</caption>
  443. <script type="javascript" ev:event="DOMActivate">
  444. <![CDATA[
  445. fInitiate();
  446. ]]>
  447. </script>
  448. </button>
  449. <button id="btn_save" class="btn5_letter5" style="left:355px; top:395px; width:75px; height:19px; ">
  450. <caption>메시지저장</caption>
  451. <script type="javascript" ev:event="DOMActivate">
  452. <![CDATA[
  453. if(fMsgValid()){
  454. model.setValue("/root/main/msgtmpl/useyn","Y");
  455. var savemode = model.getValue("/root/main/msgtmpl/savemode");
  456. fSaveMsg(savemode); //DM관리 속성 저장(I:등록, U:수정)
  457. model.setValue("/root/send/data/mdlgrupcd", model.getValue("/root/main/msgtmpl/msgmdlcd"));
  458. submit("TRCNS00203"); //재조회
  459. model.setValue("/root/send/data/mdlgrupcd", "");
  460. }
  461. ]]>
  462. </script>
  463. </button>
  464. <button id="btn_updt" class="btn5_letter5" style="left:433px; top:395px; width:75px; height:19px; ">
  465. <caption>메시지수정</caption>
  466. <script type="javascript" ev:event="DOMActivate">
  467. <![CDATA[
  468. if(fMsgValid()){
  469. model.setValue("/root/main/msgtmpl/useyn","Y");
  470. var savemode = model.getValue("/root/main/msgtmpl/savemode");
  471. fSaveMsg(savemode); //DM메시지관리 속성 저장(I:등록, U:수정)
  472. model.setValue("/root/send/data/mdlgrupcd", model.getValue("/root/main/msgtmpl/msgmdlcd"));
  473. submit("TRCNS00203"); //재조회
  474. model.setValue("/root/send/data/mdlgrupcd", "");
  475. }
  476. ]]>
  477. </script>
  478. </button>
  479. <caption id="caption10" style="left:108px; top:32px; width:400px; height:19px; ">DM용지에만 사용가능하므로 용지선택을 하실 필요 없습니다.</caption>
  480. </group>
  481. <group id="group3" style="left:739px; top:360px; width:451px; height:417px; ">
  482. <caption id="caption11" class="tit_2" style="left:5px; top:10px; width:150px; height:14px; ">자동입력어</caption>
  483. <line id="line10" class="line_1" style="x1:0px; y1:25px; x2:451px; y2:25px; "/>
  484. <shape id="rectangle2" appearance="rectangle" style="left:0px; top:30px; width:451px; height:25px; border-color:#c0c0c0; "/>
  485. <shape id="rectangle3" appearance="rectangle" style="left:0px; top:87px; width:451px; height:93px; border-color:#c0c0c0; "/>
  486. <shape id="rectangle4" appearance="rectangle" style="left:0px; top:212px; width:451px; height:179px; border-color:#c0c0c0; "/>
  487. <group id="group5" style="left:2px; top:31px; width:231px; height:22px; ">
  488. <button id="button4" class="btn2_letter3" style="left:5px; top:2px; width:53px; height:19px; ">
  489. <caption>고객</caption>
  490. </button>
  491. <script type="javascript" ev:event="onclick">
  492. <![CDATA[
  493. var trgObj = document.controls.item(event.target);
  494. var trgTextarea = model.getValue("/root/focusid");
  495. if( trgObj.elementName == "xforms:button" ) {
  496. if ( trgTextarea == "tar_dmbdtext" ) {
  497. var btnMark = "<@" + trgObj.label + ">";
  498. var txtSelPos = tar_dmbdtext.selBegin;
  499. var curText = tar_dmbdtext.currentText;
  500. var curTextBefore = curText.substr(0, txtSelPos);
  501. var curTextAfter = curText.substr(txtSelPos, curText.length);
  502. tar_dmbdtext.currentText = curTextBefore + btnMark + curTextAfter;
  503. var endTxt = tar_dmbdtext.currentText;
  504. model.setFocus("tar_dmbdtext");
  505. tar_dmbdtext.selBegin = endTxt.length-curTextAfter.length;
  506. tar_dmbdtext.dispatch("onkeyup");
  507. } else if ( trgTextarea == "tar_dmsigntext" ) {
  508. var btnMark = "<@" + trgObj.label + ">";
  509. var txtSelPos = tar_dmsigntext.selBegin;
  510. var curText = tar_dmsigntext.currentText;
  511. var curTextBefore = curText.substr(0, txtSelPos);
  512. var curTextAfter = curText.substr(txtSelPos, curText.length);
  513. tar_dmsigntext.currentText = curTextBefore + btnMark + curTextAfter;
  514. var endTxt = tar_dmsigntext.currentText;
  515. model.setFocus("tar_dmsigntext");
  516. tar_dmsigntext.selBegin = endTxt.length-curTextAfter.length;
  517. tar_dmsigntext.dispatch("onkeyup");
  518. }
  519. }
  520. ]]>
  521. </script>
  522. </group>
  523. <caption id="caption13" class="tit_2" style="left:5px; top:67px; width:85px; height:13px; ">특수문자</caption>
  524. <line id="line11" class="line_1" style="x1:0px; y1:82px; x2:451px; y2:82px; "/>
  525. <line id="line12" class="line_1" style="x1:0px; y1:207px; x2:451px; y2:207px; "/>
  526. <caption id="caption15" class="tit_2" style="left:5px; top:192px; width:85px; height:13px; ">이모티콘</caption>
  527. <group id="group10" style="left:3px; top:213px; width:412px; height:174px; ">
  528. <button id="button74" style="left:5px; top:68px; width:45px; height:19px; background-color:transparent; border-style:none; ">
  529. <caption>n.n</caption>
  530. </button>
  531. <button id="button75" style="left:52px; top:68px; width:45px; height:19px; ">
  532. <caption>^Δ^</caption>
  533. </button>
  534. <button id="button76" style="left:99px; top:68px; width:45px; height:19px; ">
  535. <caption>^v^</caption>
  536. </button>
  537. <button id="button77" style="left:349px; top:24px; width:45px; height:19px; ">
  538. <caption>^.^</caption>
  539. </button>
  540. <button id="button78" style="left:255px; top:2px; width:45px; height:19px; ">
  541. <caption>^_^</caption>
  542. </button>
  543. <button id="button79" style="left:151px; top:68px; width:45px; height:19px; ">
  544. <caption>^O^</caption>
  545. </button>
  546. <button id="button80" style="left:5px; top:46px; width:45px; height:19px; ">
  547. <caption>^L^</caption>
  548. </button>
  549. <button id="button81" style="left:302px; top:2px; width:45px; height:19px; ">
  550. <caption>⌒⌒</caption>
  551. </button>
  552. <button id="button82" style="left:203px; top:68px; width:45px; height:19px; ">
  553. <caption>^.~</caption>
  554. </button>
  555. <button id="button83" style="left:52px; top:46px; width:45px; height:19px; ">
  556. <caption>^ε^</caption>
  557. </button>
  558. <button id="button84" style="left:349px; top:2px; width:45px; height:19px; ">
  559. <caption>^-^b</caption>
  560. </button>
  561. <button id="button85" style="left:255px; top:68px; width:45px; height:19px; ">
  562. <caption>*^^*</caption>
  563. </button>
  564. <button id="button86" style="left:99px; top:46px; width:45px; height:19px; ">
  565. <caption>^▽^</caption>
  566. </button>
  567. <button id="button87" style="left:5px; top:24px; width:45px; height:19px; ">
  568. <caption>=^.^=</caption>
  569. </button>
  570. <button id="button88" style="left:302px; top:68px; width:45px; height:19px; ">
  571. <caption>(^^)γ</caption>
  572. </button>
  573. <button id="button89" style="left:151px; top:46px; width:45px; height:19px; ">
  574. <caption>o(^-^)o</caption>
  575. </button>
  576. <button id="button90" style="left:52px; top:24px; width:45px; height:19px; ">
  577. <caption>(*^-^)</caption>
  578. </button>
  579. <button id="button91" style="left:349px; top:68px; width:45px; height:19px; ">
  580. <caption>(*^o^*)</caption>
  581. </button>
  582. <button id="button92" style="left:203px; top:46px; width:45px; height:19px; ">
  583. <caption>^o^~~♬</caption>
  584. </button>
  585. <button id="button93" style="left:99px; top:24px; width:45px; height:19px; ">
  586. <caption>☞^.^☜</caption>
  587. </button>
  588. <button id="button94" style="left:255px; top:46px; width:45px; height:19px; ">
  589. <caption>S(^.^)b</caption>
  590. </button>
  591. <button id="button95" style="left:151px; top:24px; width:45px; height:19px; ">
  592. <caption>( ̄∇ ̄)</caption>
  593. </button>
  594. <button id="button96" style="left:5px; top:2px; width:45px; height:19px; ">
  595. <caption>(*^-^*)</caption>
  596. </button>
  597. <button id="button97" style="left:302px; top:46px; width:45px; height:19px; ">
  598. <caption>(^o^)/</caption>
  599. </button>
  600. <button id="button98" style="left:203px; top:24px; width:45px; height:19px; ">
  601. <caption>♥.♥</caption>
  602. </button>
  603. <button id="button99" style="left:52px; top:2px; width:31px; height:19px; ">
  604. <caption>♡.♡</caption>
  605. </button>
  606. <button id="button100" style="left:349px; top:46px; width:45px; height:19px; ">
  607. <caption>*♥o♥*</caption>
  608. </button>
  609. <button id="button101" style="left:255px; top:24px; width:45px; height:19px; ">
  610. <caption>(~.^)s</caption>
  611. </button>
  612. <button id="button102" style="left:99px; top:2px; width:45px; height:19px; ">
  613. <caption>☞♡☜</caption>
  614. </button>
  615. <button id="button103" style="left:302px; top:24px; width:45px; height:19px; ">
  616. <caption>γ^ε^γ</caption>
  617. </button>
  618. <button id="button104" style="left:151px; top:2px; width:45px; height:19px; ">
  619. <caption>(♡.♡)</caption>
  620. </button>
  621. <button id="button105" style="left:203px; top:2px; width:45px; height:19px; ">
  622. <caption>(*`0`*)</caption>
  623. </button>
  624. <button id="button1" style="left:5px; top:134px; width:55px; height:19px; ">
  625. <caption>(⌒ε⌒*)</caption>
  626. </button>
  627. <button id="button2" style="left:64px; top:134px; width:45px; height:19px; ">
  628. <caption>(*^}{^*)</caption>
  629. </button>
  630. <button id="button3" style="left:5px; top:90px; width:55px; height:19px; ">
  631. <caption>づ^O^)づ</caption>
  632. </button>
  633. <button id="button6" style="left:5px; top:112px; width:55px; height:19px; ">
  634. <caption>☜(^^*)☞</caption>
  635. </button>
  636. <button id="button14" style="left:199px; top:90px; width:55px; height:19px; ">
  637. <caption>(*^з(^^*)</caption>
  638. </button>
  639. <button id="button15" style="left:134px; top:90px; width:45px; height:19px; ">
  640. <caption>(^*^)</caption>
  641. </button>
  642. <button id="button16" style="left:60px; top:90px; width:65px; height:19px; ">
  643. <caption>(つ^з^)つ</caption>
  644. </button>
  645. <button id="button17" style="left:260px; top:90px; width:75px; height:19px; ">
  646. <caption>(*⌒.^)(^ε⌒*)</caption>
  647. </button>
  648. <button id="button18" style="left:260px; top:112px; width:75px; height:19px; ">
  649. <caption>(*^-^)♡(^o^*)</caption>
  650. </button>
  651. <button id="button106" style="left:169px; top:90px; width:45px; height:19px; ">
  652. <caption>~o~</caption>
  653. </button>
  654. <button id="button107" style="left:219px; top:112px; width:45px; height:19px; ">
  655. <caption>⊙.⊙</caption>
  656. </button>
  657. <button id="button108" style="left:169px; top:112px; width:45px; height:19px; ">
  658. <caption>^----^</caption>
  659. </button>
  660. <button id="button109" style="left:134px; top:112px; width:45px; height:19px; ">
  661. <caption>^.~♥</caption>
  662. </button>
  663. <button id="button110" style="left:64px; top:112px; width:61px; height:19px; ">
  664. <caption>♬(^O^)~♪</caption>
  665. </button>
  666. <button id="button111" style="left:149px; top:134px; width:56px; height:19px; ">
  667. <caption>s( ̄▽ ̄)/</caption>
  668. </button>
  669. <button id="button112" style="left:114px; top:134px; width:45px; height:19px; ">
  670. <caption>(*^.^)</caption>
  671. </button>
  672. <script type="javascript" ev:event="onclick">
  673. <![CDATA[
  674. var trgObj = document.controls.item(event.target);
  675. var trgTextarea = model.getValue("/root/focusid");
  676. if( trgObj.elementName == "xforms:button" ) {
  677. if ( trgTextarea == "tar_dmbdtext" ) {
  678. var btnMark = trgObj.label;
  679. var txtSelPos = tar_dmbdtext.selBegin;
  680. var curText = tar_dmbdtext.currentText;
  681. var curTextBefore = curText.substr(0, txtSelPos);
  682. var curTextAfter = curText.substr(txtSelPos, curText.length);
  683. tar_dmbdtext.currentText = curTextBefore + btnMark + curTextAfter;
  684. var endTxt = tar_dmbdtext.currentText;
  685. model.setFocus("tar_dmbdtext");
  686. tar_dmbdtext.selBegin = endTxt.length-curTextAfter.length;
  687. tar_dmbdtext.dispatch("onkeyup");
  688. } else if ( trgTextarea == "tar_dmsigntext" ) {
  689. var btnMark = trgObj.label;
  690. var txtSelPos = tar_dmsigntext.selBegin;
  691. var curText = tar_dmsigntext.currentText;
  692. var curTextBefore = curText.substr(0, txtSelPos);
  693. var curTextAfter = curText.substr(txtSelPos, curText.length);
  694. tar_dmsigntext.currentText = curTextBefore + btnMark + curTextAfter;
  695. var endTxt = tar_dmsigntext.currentText;
  696. model.setFocus("tar_dmsigntext");
  697. tar_dmsigntext.selBegin = endTxt.length-curTextAfter.length;
  698. tar_dmsigntext.dispatch("onkeyup");
  699. }
  700. }
  701. ]]>
  702. </script>
  703. </group>
  704. <group id="group4" style="left:2px; top:88px; width:438px; height:90px; ">
  705. <button id="button19" style="left:5px; top:68px; width:17px; height:19px; background-color:transparent; border-style:none; ">
  706. <caption>@</caption>
  707. </button>
  708. <button id="button20" style="left:27px; top:68px; width:17px; height:19px; ">
  709. <caption>♨</caption>
  710. </button>
  711. <button id="button21" style="left:49px; top:68px; width:17px; height:19px; ">
  712. <caption>☎</caption>
  713. </button>
  714. <button id="button22" style="left:159px; top:24px; width:17px; height:19px; ">
  715. <caption>♥</caption>
  716. </button>
  717. <button id="button23" style="left:115px; top:2px; width:17px; height:19px; ">
  718. <caption>◎</caption>
  719. </button>
  720. <button id="button24" style="left:71px; top:68px; width:17px; height:19px; ">
  721. <caption>☜</caption>
  722. </button>
  723. <button id="button25" style="left:5px; top:46px; width:17px; height:19px; ">
  724. <caption>♧</caption>
  725. </button>
  726. <button id="button26" style="left:137px; top:2px; width:17px; height:19px; ">
  727. <caption>◇</caption>
  728. </button>
  729. <button id="button27" style="left:93px; top:68px; width:17px; height:19px; ">
  730. <caption>☞</caption>
  731. </button>
  732. <button id="button28" style="left:27px; top:46px; width:17px; height:19px; ">
  733. <caption>♣</caption>
  734. </button>
  735. <button id="button29" style="left:159px; top:2px; width:17px; height:19px; ">
  736. <caption>◆</caption>
  737. </button>
  738. <button id="button30" style="left:115px; top:68px; width:17px; height:19px; ">
  739. <caption>%</caption>
  740. </button>
  741. <button id="button31" style="left:49px; top:46px; width:17px; height:19px; ">
  742. <caption>◁</caption>
  743. </button>
  744. <button id="button32" style="left:5px; top:24px; width:17px; height:19px; ">
  745. <caption>□</caption>
  746. </button>
  747. <button id="button33" style="left:137px; top:68px; width:17px; height:19px; ">
  748. <caption>☏</caption>
  749. </button>
  750. <button id="button34" style="left:71px; top:46px; width:17px; height:19px; ">
  751. <caption>◀</caption>
  752. </button>
  753. <button id="button35" style="left:27px; top:24px; width:17px; height:19px; ">
  754. <caption>■</caption>
  755. </button>
  756. <button id="button36" style="left:159px; top:68px; width:17px; height:19px; ">
  757. <caption>♪</caption>
  758. </button>
  759. <button id="button37" style="left:93px; top:46px; width:17px; height:19px; ">
  760. <caption>▷</caption>
  761. </button>
  762. <button id="button38" style="left:49px; top:24px; width:17px; height:19px; ">
  763. <caption>△</caption>
  764. </button>
  765. <button id="button39" style="left:115px; top:46px; width:17px; height:19px; ">
  766. <caption>▶</caption>
  767. </button>
  768. <button id="button40" style="left:71px; top:24px; width:17px; height:19px; ">
  769. <caption>▲</caption>
  770. </button>
  771. <button id="button41" style="left:5px; top:2px; width:17px; height:19px; ">
  772. <caption>●</caption>
  773. </button>
  774. <button id="button42" style="left:137px; top:46px; width:17px; height:19px; ">
  775. <caption>♤</caption>
  776. </button>
  777. <button id="button43" style="left:93px; top:24px; width:17px; height:19px; ">
  778. <caption>▽</caption>
  779. </button>
  780. <button id="button44" style="left:27px; top:2px; width:17px; height:19px; ">
  781. <caption>※</caption>
  782. </button>
  783. <button id="button45" style="left:159px; top:46px; width:17px; height:19px; ">
  784. <caption>♠</caption>
  785. </button>
  786. <button id="button46" style="left:115px; top:24px; width:17px; height:19px; ">
  787. <caption>▼</caption>
  788. </button>
  789. <button id="button47" style="left:49px; top:2px; width:17px; height:19px; ">
  790. <caption>☆</caption>
  791. </button>
  792. <button id="button48" style="left:137px; top:24px; width:17px; height:19px; ">
  793. <caption>♡</caption>
  794. </button>
  795. <button id="button49" style="left:71px; top:2px; width:17px; height:19px; ">
  796. <caption>★</caption>
  797. </button>
  798. <button id="button50" style="left:93px; top:2px; width:17px; height:19px; ">
  799. <caption>○</caption>
  800. </button>
  801. <button id="button51" style="left:179px; top:68px; width:17px; height:19px; ">
  802. <caption>♬</caption>
  803. </button>
  804. <button id="button52" style="left:199px; top:68px; width:17px; height:19px; ">
  805. <caption>♩</caption>
  806. </button>
  807. <button id="button53" style="left:179px; top:24px; width:17px; height:19px; ">
  808. <caption>ㆀ</caption>
  809. </button>
  810. <button id="button54" style="left:179px; top:46px; width:17px; height:19px; ">
  811. <caption>▣</caption>
  812. </button>
  813. <button id="button55" style="left:259px; top:2px; width:17px; height:19px; ">
  814. <caption>→</caption>
  815. </button>
  816. <button id="button56" style="left:239px; top:2px; width:17px; height:19px; ">
  817. <caption>←</caption>
  818. </button>
  819. <button id="button57" style="left:219px; top:2px; width:17px; height:19px; ">
  820. <caption>▒</caption>
  821. </button>
  822. <button id="button58" style="left:199px; top:2px; width:17px; height:19px; ">
  823. <caption>▦</caption>
  824. </button>
  825. <button id="button59" style="left:179px; top:2px; width:17px; height:19px; ">
  826. <caption>▤</caption>
  827. </button>
  828. <button id="button60" style="left:279px; top:2px; width:17px; height:19px; ">
  829. <caption>Ø</caption>
  830. </button>
  831. <button id="button61" style="left:259px; top:24px; width:17px; height:19px; ">
  832. <caption>↓</caption>
  833. </button>
  834. <button id="button62" style="left:239px; top:24px; width:17px; height:19px; ">
  835. <caption>↑</caption>
  836. </button>
  837. <button id="button63" style="left:219px; top:24px; width:17px; height:19px; ">
  838. <caption>◇</caption>
  839. </button>
  840. <button id="button64" style="left:199px; top:24px; width:17px; height:19px; ">
  841. <caption>▨</caption>
  842. </button>
  843. <button id="button65" style="left:259px; top:46px; width:17px; height:19px; ">
  844. <caption>§</caption>
  845. </button>
  846. <button id="button66" style="left:239px; top:46px; width:17px; height:19px; ">
  847. <caption>⇒</caption>
  848. </button>
  849. <button id="button67" style="left:219px; top:46px; width:17px; height:19px; ">
  850. <caption>◈</caption>
  851. </button>
  852. <button id="button68" style="left:199px; top:46px; width:17px; height:19px; ">
  853. <caption>▩</caption>
  854. </button>
  855. <button id="button69" style="left:279px; top:24px; width:17px; height:19px; ">
  856. <caption>∀</caption>
  857. </button>
  858. <button id="button70" style="left:259px; top:68px; width:17px; height:19px; ">
  859. <caption>◑</caption>
  860. </button>
  861. <button id="button71" style="left:239px; top:68px; width:17px; height:19px; ">
  862. <caption>◐</caption>
  863. </button>
  864. <button id="button72" style="left:219px; top:68px; width:17px; height:19px; ">
  865. <caption>⊙</caption>
  866. </button>
  867. <button id="button73" style="left:319px; top:68px; width:17px; height:19px; ">
  868. <caption>≥</caption>
  869. </button>
  870. <button id="button113" style="left:299px; top:68px; width:17px; height:19px; ">
  871. <caption>≤</caption>
  872. </button>
  873. <button id="button114" style="left:379px; top:68px; width:17px; height:19px; ">
  874. <caption>!</caption>
  875. </button>
  876. <button id="button115" style="left:359px; top:68px; width:17px; height:19px; ">
  877. <caption>』</caption>
  878. </button>
  879. <button id="button116" style="left:339px; top:68px; width:17px; height:19px; ">
  880. <caption>『</caption>
  881. </button>
  882. <button id="button117" style="left:279px; top:68px; width:17px; height:19px; ">
  883. <caption>∏</caption>
  884. </button>
  885. <button id="button118" style="left:279px; top:46px; width:17px; height:19px; ">
  886. <caption>∃</caption>
  887. </button>
  888. <button id="button119" style="left:379px; top:46px; width:17px; height:19px; ">
  889. <caption>≫</caption>
  890. </button>
  891. <button id="button120" style="left:359px; top:46px; width:17px; height:19px; ">
  892. <caption>≪</caption>
  893. </button>
  894. <button id="button121" style="left:339px; top:46px; width:17px; height:19px; ">
  895. <caption>℡</caption>
  896. </button>
  897. <button id="button122" style="left:319px; top:46px; width:17px; height:19px; ">
  898. <caption>≫</caption>
  899. </button>
  900. <button id="button123" style="left:299px; top:46px; width:17px; height:19px; ">
  901. <caption>≪</caption>
  902. </button>
  903. <button id="button124" style="left:379px; top:24px; width:17px; height:19px; ">
  904. <caption>¥</caption>
  905. </button>
  906. <button id="button125" style="left:359px; top:24px; width:17px; height:19px; ">
  907. <caption>¢</caption>
  908. </button>
  909. <button id="button126" style="left:339px; top:24px; width:17px; height:19px; ">
  910. <caption>⊃</caption>
  911. </button>
  912. <button id="button127" style="left:319px; top:24px; width:17px; height:19px; ">
  913. <caption>≠</caption>
  914. </button>
  915. <button id="button128" style="left:299px; top:24px; width:17px; height:19px; ">
  916. <caption>∽</caption>
  917. </button>
  918. <button id="button129" style="left:379px; top:2px; width:17px; height:19px; ">
  919. <caption>∴</caption>
  920. </button>
  921. <button id="button130" style="left:359px; top:2px; width:17px; height:19px; ">
  922. <caption>∬</caption>
  923. </button>
  924. <button id="button131" style="left:339px; top:2px; width:17px; height:19px; ">
  925. <caption>∪</caption>
  926. </button>
  927. <button id="button132" style="left:319px; top:2px; width:17px; height:19px; ">
  928. <caption>∧</caption>
  929. </button>
  930. <button id="button133" style="left:299px; top:2px; width:17px; height:19px; ">
  931. <caption>∞</caption>
  932. </button>
  933. <script type="javascript" ev:event="onclick">
  934. <![CDATA[
  935. var trgObj = document.controls.item(event.target);
  936. var trgTextarea = model.getValue("/root/focusid");
  937. if( trgObj.elementName == "xforms:button" ) {
  938. if ( trgTextarea == "tar_dmbdtext" ) {
  939. var btnMark = trgObj.label;
  940. var txtSelPos = tar_dmbdtext.selBegin;
  941. var curText = tar_dmbdtext.currentText;
  942. var curTextBefore = curText.substr(0, txtSelPos);
  943. var curTextAfter = curText.substr(txtSelPos, curText.length);
  944. tar_dmbdtext.currentText = curTextBefore + btnMark + curTextAfter;
  945. model.setFocus("tar_dmbdtext");
  946. tar_dmbdtext.selBegin = txtSelPos + 1;
  947. tar_dmbdtext.dispatch("onkeyup");
  948. } else if ( trgTextarea == "tar_dmsigntext" ) {
  949. var btnMark = trgObj.label;
  950. var txtSelPos = tar_dmsigntext.selBegin;
  951. var curText = tar_dmsigntext.currentText;
  952. var curTextBefore = curText.substr(0, txtSelPos);
  953. var curTextAfter = curText.substr(txtSelPos, curText.length);
  954. tar_dmsigntext.currentText = curTextBefore + btnMark + curTextAfter;
  955. model.setFocus("tar_dmsigntext");
  956. tar_dmsigntext.selBegin = txtSelPos + 1;
  957. tar_dmsigntext.dispatch("onkeyup");
  958. }
  959. }
  960. ]]>
  961. </script>
  962. </group>
  963. </group>
  964. <group id="group12" style="left:0px; top:23px; width:225px; height:757px; ">
  965. <button id="btn_dm" class="btn_sw" group="tab" style="left:0px; top:5px; width:71px; height:27px; ">
  966. <caption>DM</caption>
  967. <script type="javascript" ev:event="DOMActivate">
  968. <![CDATA[
  969. navigate("SMCND00200");
  970. ]]>
  971. </script>
  972. </button>
  973. <button id="btn_mail" class="btn_sw" group="tab" style="left:72px; top:5px; width:71px; height:27px; ">
  974. <caption>E-mail</caption>
  975. <script type="javascript" ev:event="DOMActivate">
  976. <![CDATA[
  977. navigate("SMCNE00200");
  978. ]]>
  979. </script>
  980. </button>
  981. <button id="btn_sms" class="btn_sw" group="tab" style="left:144px; top:5px; width:71px; height:27px; ">
  982. <caption>SMS</caption>
  983. <script type="javascript" ev:event="DOMActivate">
  984. <![CDATA[
  985. navigate("SMCNS00200");
  986. ]]>
  987. </script>
  988. </button>
  989. <import id="import1" src="./SSCNS00300_채널그룹트리.xrw" style="left:0px; top:30px; width:215px; height:727px; "/>
  990. </group>
  991. </xhtml:body>
  992. </xhtml:html>