123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPCCN00200" position="absolute 0 0 608 681" titletext="Email전송" oninit="SPCCN00200_oninit" onload="SPCCN00200_onload">
- <Layouts>
- <Layout>
- <ImageViewer id="img_bg1" taborder="5" image="URL('..\..\..\IMAGES\crm\CMC_Graphic_Motif.png')" visible="false" position="absolute 93 327 603 651"/>
- <ImageViewer id="img_bg2" taborder="6" visible="false" position="absolute 93 327 603 651"/>
- <ImageViewer id="img_bg3" taborder="7" visible="false" position="absolute 93 327 603 651"/>
- <Tab position="absolute 450 0 605 193" id="switch2" style="border:1 solid #808080ff ;">
- <Tabpages>
- <Tabpage text="편지지" id="case1">
- <Layouts>
- <Layout>
- <ImageViewer position="absolute 2 3 75 88" id="img1" image="URL('..\..\..\IMAGES\crm\CMC_Graphic_Motif.png')" stretch="fit" onclick="switch2_case1_img1_onclick"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="특수문자" id="case2">
- <Layouts>
- <Layout>
- <Button position="absolute 5 70 44 89" id="caption40" class="btn_number" text="@" onclick="tab_ButtonEvent"/>
- <Button position="absolute 47 70 86 89" id="caption41" class="btn_number" text="♨" onclick="tab_ButtonEvent"/>
- <Button position="absolute 89 70 128 89" id="caption42" class="btn_number" text="☎" onclick="tab_ButtonEvent"/>
- <Button position="absolute 47 202 86 221" id="caption31" class="btn_number" text="♥" onclick="tab_ButtonEvent"/>
- <Button position="absolute 89 92 128 111" id="caption20" class="btn_number" text="◎" onclick="tab_ButtonEvent"/>
- <Button position="absolute 5 158 44 177" id="caption43" class="btn_number" text="☜" onclick="tab_ButtonEvent"/>
- <Button position="absolute 5 48 44 67" id="caption32" class="btn_number" text="♧" onclick="tab_ButtonEvent"/>
- <Button position="absolute 5 180 44 199" id="caption21" class="btn_number" text="◇" onclick="tab_ButtonEvent"/>
- <Button position="absolute 47 158 86 177" id="caption44" class="btn_number" text="☞" onclick="tab_ButtonEvent"/>
- <Button position="absolute 47 48 86 67" id="caption33" class="btn_number" text="♣" onclick="tab_ButtonEvent"/>
- <Button position="absolute 47 180 86 199" id="caption22" class="btn_number" text="◆" onclick="tab_ButtonEvent"/>
- <Button position="absolute 89 158 128 177" id="caption45" class="btn_number" text="%" onclick="tab_ButtonEvent"/>
- <Button position="absolute 89 48 128 67" id="caption34" class="btn_number" text="◁" onclick="tab_ButtonEvent"/>
- <Button position="absolute 5 26 44 45" id="caption23" class="btn_number" text="□" onclick="tab_ButtonEvent"/>
- <Button position="absolute 89 180 128 199" id="caption46" class="btn_number" text="☏" onclick="tab_ButtonEvent"/>
- <Button position="absolute 5 136 44 155" id="caption35" class="btn_number" text="◀" onclick="tab_ButtonEvent"/>
- <Button position="absolute 47 26 86 45" id="caption24" class="btn_number" text="■" onclick="tab_ButtonEvent"/>
- <Button position="absolute 89 202 128 221" id="caption47" class="btn_number" text="♪" onclick="tab_ButtonEvent"/>
- <Button position="absolute 47 136 86 155" id="caption36" class="btn_number" text="▷" onclick="tab_ButtonEvent"/>
- <Button position="absolute 89 26 128 45" id="caption25" class="btn_number" text="△" onclick="tab_ButtonEvent"/>
- <Button position="absolute 89 136 128 155" id="caption37" class="btn_number" text="▶" onclick="tab_ButtonEvent"/>
- <Button position="absolute 5 114 44 133" id="caption26" class="btn_number" text="▲" onclick="tab_ButtonEvent"/>
- <Button position="absolute 5 4 44 23" id="caption15" class="btn_number" text="●" onclick="tab_ButtonEvent"/>
- <Button position="absolute 5 224 44 243" id="caption38" class="btn_number" text="♤" onclick="tab_ButtonEvent"/>
- <Button position="absolute 47 114 86 133" id="caption27" class="btn_number" text="▽" onclick="tab_ButtonEvent"/>
- <Button position="absolute 47 4 86 23" id="caption16" class="btn_number" text="※" onclick="tab_ButtonEvent"/>
- <Button position="absolute 47 224 86 243" id="caption39" class="btn_number" text="♠" onclick="tab_ButtonEvent"/>
- <Button position="absolute 89 114 128 133" id="caption28" class="btn_number" text="▼" onclick="tab_ButtonEvent"/>
- <Button position="absolute 89 4 128 23" id="caption17" class="btn_number" text="☆" onclick="tab_ButtonEvent"/>
- <Button position="absolute 5 202 44 221" id="caption29" class="btn_number" text="♡" onclick="tab_ButtonEvent"/>
- <Button position="absolute 5 92 44 111" id="caption18" class="btn_number" text="★" onclick="tab_ButtonEvent"/>
- <Button position="absolute 47 92 86 111" id="caption19" class="btn_number" text="○" onclick="tab_ButtonEvent"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <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">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="51"/>
- <Column size="348"/>
- <Column size="0"/>
- </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"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:msgsmlcd"/>
- <Cell col="2" text="bind:emailtitl"/>
- <Cell col="3" text="bind:smstrsmcntcno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line3" class="line_2" position="absolute 0 46 445 52"/>
- <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"/>
- <Static id="cap_dtmntitl" text="그룹" class="cell_1" position="absolute 0 24 105 47" style="padding:0 0 0 0;align:center middle;"/>
- <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"/>
- <Shape id="line1" class="line_10" position="absolute 0 19 445 25"/>
- <Static id="caption1" text="E-mail템플릿" class="tit_2" position="absolute 0 3 105 25"/>
- <Shape id="line2" linetype="horizontal" class="line_2" position="absolute 0 295 605 301"/>
- <Static id="caption2" text="E-mail전송" class="tit_2" position="absolute 0 200 95 222"/>
- <Button id="btn_init" taborder="4" text="초기화" class="btn2" position="absolute 552 197 605 216" onclick="btn_init_onclick"/>
- <Shape id="line4" linetype="horizontal" class="line_10" position="absolute 0 216 605 222"/>
- <Static id="cap_emailbdtext" text="내 용" class="cell_1" position="absolute 0 325 90 651" style="padding:0 0 0 0;align:center middle;"/>
- <Shape id="line24" linetype="horizontal" class="line_2" position="absolute 0 243 605 249"/>
- <Edit id="ipt_refemail" taborder="10" class="input_essential" position="absolute 93 275 422 294"/>
- <Static id="cap_emailtitl" text="제 목" class="cell_1" position="absolute 0 221 90 244" style="padding:0 0 0 0;align:center middle;"/>
- <Static id="cap_replemail" text="발 신" class="cell_1" position="absolute 363 221 453 244" style="padding:0 0 0 0;align:center middle;"/>
- <Edit id="ipt_emailtitl" taborder="11" class="input_essential" position="absolute 93 223 358 242"/>
- <Shape id="line7" linetype="horizontal" class="line_2" position="absolute 0 269 605 275"/>
- <Static id="cap_recvremail" text="수 신" class="cell_1" position="absolute 0 247 90 270" style="padding:0 0 0 0;align:center middle;"/>
- <Edit id="ipt_recvremail" taborder="12" class="input_essential" position="absolute 93 249 422 268"/>
- <Button id="btn_address" taborder="13" text="주소록" class="btn2" position="absolute 427 249 480 268" onclick="btn_address_onclick"/>
- <Button id="btn_addfile" taborder="14" text="외부파일 가져오기" class="btn2" position="absolute 485 249 604 268" onclick="btn_addfile_onclick"/>
- <Button id="btn_address2" taborder="15" text="주소록" class="btn2" position="absolute 427 275 480 294" onclick="btn_address2_onclick"/>
- <Button id="btn_addfile2" taborder="16" text="외부파일 가져오기" class="btn2" position="absolute 485 275 604 294" onclick="btn_addfile2_onclick"/>
- <Static id="cap_refemail" text="참 조" class="cell_1" position="absolute 0 273 90 296" style="padding:0 0 0 0;align:center middle;"/>
- <Edit id="ipt_replemail" taborder="17" position="absolute 456 223 604 242"/>
- <Static id="caption6" text="예약설정" class="cell_1" position="absolute 0 299 90 322" style="padding:0 0 0 0;align:center middle;"/>
- <Radio id="rdo_rsrvyn" taborder="18" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 93 302 184 320" onitemchanged="rdo_rsrvyn_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">일반</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">예약</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Calendar id="ipt_trsmreqdt_date" taborder="19" class="input_default" position="absolute 183 301 281 320"/>
- <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;"/>
- <Shape id="line5" linetype="horizontal" class="line_2" position="absolute 0 321 605 327"/>
- <Button id="btn_trsm" taborder="21" text="전송" class="btn4" position="absolute 488 654 544 676" onclick="btn_trsm_onclick"/>
- <Button id="btn_cncl" taborder="22" text="취소" class="btn4" position="absolute 547 654 603 676" onclick="btn_cncl_onclick"/>
- <Shape id="line32" linetype="horizontal" class="line_6" position="absolute 0 192 601 198"/>
- <ImageViewer id="img_bg4" taborder="8" visible="false" position="absolute 93 327 603 651"/>
- <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 ;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_emailattr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="trsmdd" type="STRING" size="256"/>
- <Column id="bizflag" type="STRING" size="256"/>
- <Column id="delivedd" type="STRING" size="256"/>
- <Column id="delivereqtm" type="STRING" size="256"/>
- <Column id="recvremail" type="STRING" size="256"/>
- <Column id="recvrnm" type="STRING" size="256"/>
- <Column id="replemail" type="STRING" size="256"/>
- <Column id="refemail" type="STRING" size="256"/>
- <Column id="emailtitl" type="STRING" size="256"/>
- <Column id="emailbdtext" type="STRING" size="256"/>
- <Column id="emailbdtextfile" type="STRING" size="256"/>
- <Column id="msglrgcd" type="STRING" size="256"/>
- <Column id="msgmdlcd" type="STRING" size="256"/>
- <Column id="msgsmlcd" type="STRING" size="256"/>
- <Column id="rsrvyn" type="STRING" size="256"/>
- <Column id="delivedd" type="STRING" size="256"/>
- <Column id="delivereqtm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="trsmdd"/>
- <Col id="bizflag"/>
- <Col id="delivedd"/>
- <Col id="delivereqtm"/>
- <Col id="recvremail"/>
- <Col id="recvrnm"/>
- <Col id="replemail"/>
- <Col id="refemail"/>
- <Col id="emailtitl"/>
- <Col id="emailbdtext"/>
- <Col id="emailbdtextfile"/>
- <Col id="msglrgcd"/>
- <Col id="msgmdlcd"/>
- <Col id="msgsmlcd"/>
- <Col id="rsrvyn">1</Col>
- <Col id="delivedd"/>
- <Col id="delivereqtm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_chnllrglist_chnllrggrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_chnlmdllist_chnlmdlgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="msgmdlcd" type="INT" size="256" sumtext="메시지중분류코드"/>
- <Column id="msgmdlnm" type="STRING" size="256" sumtext="메시지중분류명"/>
- <Column id="msglrgcd" type="INT" size="256" sumtext="메시지대분류코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_msgsmllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="msgsmlcd" type="STRING" size="256" sumtext="메시지소분류코드"/>
- <Column id="msgcnts" type="STRING" size="256" sumtext="SMS메시지내용"/>
- <Column id="smstrsmcntcno" type="STRING" size="256" sumtext="SMS전송자연락처번호"/>
- <Column id="emailtitl" type="STRING" size="256" sumtext="이메일제목"/>
- <Column id="dmtitl" type="STRING" size="256" sumtext="DM제목"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_arg_emailattr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="msglrgcd" type="STRING" size="256"/>
- <Column id="msgmdlcd" type="STRING" size="256"/>
- <Column id="msgsmlcd" type="STRING" size="256"/>
- <Column id="chnlflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="msglrgcd"/>
- <Col id="msgmdlcd"/>
- <Col id="msgsmlcd"/>
- <Col id="chnlflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_emailattr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="msgsmlcd" type="INT" size="256" sumtext="메시지소분류코드"/>
- <Column id="emailtitl" type="STRING" size="256" sumtext="이메일제목"/>
- <Column id="trsmpsnemailinfo" type="STRING" size="256" sumtext="회신이메일"/>
- <Column id="emailbdtext" type="STRING" size="256" sumtext="이메일내용"/>
- <Column id="emailbdtextfile" type="STRING" size="256" sumtext="이메일 이미지태그내용"/>
- <Column id="msglrgcd" type="INT" size="256" sumtext="메시지대분류코드"/>
- <Column id="msgmdlcd" type="INT" size="256" sumtext="메시지중분류코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_imgset" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="img1" type="STRING" size="256"/>
- <Column id="img2" type="STRING" size="256"/>
- <Column id="img3" type="STRING" size="256"/>
- <Column id="img4" type="STRING" size="256"/>
- <Column id="imguse" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="img1">F</Col>
- <Col id="img2">F</Col>
- <Col id="img3">F</Col>
- <Col id="img4">F</Col>
- <Col id="imguse">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_fwd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="type" type="STRING" size="256"/>
- <Column id="searchtype" type="STRING" size="256"/>
- <Column id="searchname" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="type">email</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_fwd2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="searchname" type="STRING" size="256"/>
- <Column id="searchtype" type="STRING" size="256"/>
- <Column id="type" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="type">refemail</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_emailtitl" propid="value" datasetid="ds_main_emailattr" columnid="emailtitl"/>
- <BindItem id="item1" compid="ipt_recvremail" propid="value" datasetid="ds_main_emailattr" columnid="recvremail"/>
- <BindItem id="item2" compid="ipt_refemail" propid="value" datasetid="ds_main_emailattr" columnid="refemail"/>
- <BindItem id="item3" compid="rdo_rsrvyn" propid="value" datasetid="ds_main_emailattr" columnid="rsrvyn"/>
- <BindItem id="item4" compid="ipt_trsmreqdt_date" propid="value" datasetid="ds_main_emailattr" columnid="delivedd"/>
- <BindItem id="item5" compid="ipt_trsmreqdt_time" propid="value" datasetid="ds_main_emailattr" columnid="delivereqtm"/>
- <BindItem id="item6" compid="tar_emailbdtext" propid="value" datasetid="ds_main_emailattr" columnid="emailbdtext"/>
- <BindItem id="item7" compid="ipt_replemail" propid="value" datasetid="ds_main_emailattr" columnid="replemail"/>
- </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";
- function SPCCN00200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPCCN00200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_msglist);
- grdf_setRowTypeIcon(grd_msglist, 0);
-
- try
- {
- ds_arg_emailattr.copyData(arg_ds_main_emailattr);
- }
- catch(e){}
-
- ds_main_emailattr.setColumn(0, "recvremail", ds_arg_emailattr.getColumn(0, "recvremail"));
-
- switch2.tabindex = 0; // 초기화면을 편지지로 보여준다.
-
- ds_main_msgsmllist.clearData(); // Email탬플릿 그리드의 col을 초기화 시켜준다.
- ds_send_info.setColumn(0, "chnlflag", "E"); // 메시지 분류코드 설정 (Email : E)
-
- var oParam = {};
- oParam.id = "TRCNS00201";
- oParam.service = "chnlmngtapp.ChnlClsMngt";
- oParam.method = "reqGetChnlLrgCd";
- oParam.inds = "req=ds_send_info";
- oParam.outds = "ds_init_chnllrglist_chnllrggrup=chnllrggrup";
- oParam.async = false;
- //oParam.callback = "cf_TRCNS00201";
- tranf_submit(oParam); // 메시지 대그룹을 가져온다
-
- ds_main_emailattr.setColumn(0, "trsmdd", utlf_getCurrentDate()); // 전송일자를 입력해준다.
- ds_main_emailattr.setColumn(0, "bizflag", "2"); // 수동전송은 업무구분을 무조건 2로 한다.
- ds_main_emailattr.setColumn(0, "delivedd", utlf_getCurrentDate()); // 발송요청일자를 입력해준다.
- ds_main_emailattr.setColumn(0, "delivereqtm", String(utlf_getCurrentTime()).substr(0,4));
-
- // 예약일자와 예약시간 비활성
- ipt_trsmreqdt_date.enable = false;
- ipt_trsmreqdt_time.enable = false;
- }
- function cmb_msglrgcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- ds_init_chnlmdllist_chnlmdlgrup.clearData(); // 기존에 선택된 중분류를 초기화한다.
-
- fGetChnlMdlCd(); // 선택한 채널관리 대분류에 따른 채널관리 중분류를 가져온다.
- cmb_msgmdlcd.setFocus();
- }
- function fGetChnlMdlCd()
- {
- var msglrgcd = ds_main_emailattr.getColumn(0, "msglrgcd");
- ds_send_info.setColumn(0, "msglrgcd",msglrgcd);
- var oParam = {};
- oParam.id = "TRCNS00202";
- oParam.service = "chnlmngtapp.ChnlClsMngt";
- oParam.method = "reqGetChnlMdlCd";
- oParam.inds = "req=ds_send_info";
- oParam.outds = "ds_init_chnlmdllist_chnlmdlgrup=chnlmdlgrup";
- oParam.async = false;
- //oParam.callback = "cf_TRCNS00202";
- tranf_submit(oParam);
- }
- function cmb_msgmdlcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- ds_main_msgsmllist.clearData(); // 메시지 리스트를 초기화한다.
-
- fGetChnlSmlCd(); // 선택한 채널관리 대분류에 따른 채널관리 중분류를 가져온다.
- }
- function fGetChnlSmlCd()
- {
- var msgmdlcd = ds_main_emailattr.getColumn(0, "msgmdlcd");
- ds_send_info.setColumn(0, "msgmdlcd",msgmdlcd);
- var oParam = {};
- oParam.id = "TRCCN00101";
- oParam.service = "crmapp.Common";
- oParam.method = "reqGetMsgList";
- oParam.inds = "req=ds_send_info";
- oParam.outds = "ds_main_msgsmllist=msgsmllist";
- oParam.async = false;
- //oParam.callback = "cf_TRCCN00101";
- tranf_submit(oParam);
- }
- function grd_msglist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fGetEmailAttr();
- fGetImg();
- }
- function fGetEmailAttr()
- {
- var row = ds_main_msgsmllist.rowposition;
-
- // 선택한 채널관리 리스트항목의 대분류에 따른 채널관리 중분류를 가져온다.
- var msgsmlcd = ds_main_msgsmllist.getColumn(row, "msgsmlcd");
- if (!utlf_isNull(msgsmlcd))
- {
- ds_send_info.setColumn(0, "msgsmlcd", msgsmlcd);
- var oParam = {};
- oParam.id = "TRCCN00201";
- oParam.service = "crmapp.Common";
- oParam.method = "reqGetEmailInfo";
- oParam.inds = "req=ds_send_info";
- oParam.outds = "ds_temp_emailattr=emailattr";
- oParam.async = false;
- //oParam.callback = "cf_TRCCN00201";
- tranf_submit(oParam);
- var msgsmlcd = ds_temp_emailattr.getColumn(0, "msgsmlcd");
- var emailtitl = ds_temp_emailattr.getColumn(0, "emailtitl");
- var replemail = ds_temp_emailattr.getColumn(0, "trsmpsnemailinfo");
- var emailbdtext = ds_temp_emailattr.getColumn(0, "emailbdtext");
- var emailbdtextfile = ds_temp_emailattr.getColumn(0, "emailbdtextfile");
- var msglrgcd = ds_temp_emailattr.getColumn(0, "msglrgcd");
- var msgmdlcd = ds_temp_emailattr.getColumn(0, "msgmdlcd");
-
- ds_main_emailattr.setColumn(0, "msgsmlcd", msgsmlcd);
- ds_main_emailattr.setColumn(0, "emailtitl", emailtitl);
- ds_main_emailattr.setColumn(0, "replemail", replemail);
- ds_main_emailattr.setColumn(0, "emailbdtext", emailbdtext);
- ds_main_emailattr.setColumn(0, "emailbdtextfile", emailbdtextfile);
- ds_main_emailattr.setColumn(0, "msglrgcd", msglrgcd);
- ds_main_emailattr.setColumn(0, "msgmdlcd", msgmdlcd);
- }
- }
- function fGetImg()
- {
- var str_find = String(ds_main_emailattr.getColumn(0, "emailbdtextfile"));
- var str_index1 = str_find.indexOf("/23/")//1번 이미지
- var str_index2 = str_find.indexOf("/28/")//2번 이미지
- var str_index3 = str_find.indexOf("/84/")//3번 이미지
- var str_index4 = str_find.indexOf("/51/")//4번 이미지
- if(str_index1 != -1)
- {
- ds_temp_imgset.setColumn(0, "img1", "T");
- img_bg1.visible = true;
- ds_temp_imgset.setColumn(0, "img2", "F");
- ds_temp_imgset.setColumn(0, "img3", "F");
- ds_temp_imgset.setColumn(0, "img4", "F");
- img_bg2.visible = false;
- img_bg3.visible = false;
- img_bg4.visible = false;
-
- ds_temp_imgset.setColumn(0, "imguse", "Y");
- }
- else if(str_index2 != -1)
- {
- ds_temp_imgset.setColumn(0, "img2", "T");
- img_bg2.visible = true;
-
- ds_temp_imgset.setColumn(0, "img1", "F");
- ds_temp_imgset.setColumn(0, "img3", "F");
- ds_temp_imgset.setColumn(0, "img4", "F");
- img_bg1.visible = false;
- img_bg3.visible = false;
- img_bg4.visible = false;
- ds_temp_imgset.setColumn(0, "imguse", "Y");
- }
- else if(str_index3 != -1)
- {
- ds_temp_imgset.setColumn(0, "img3", "T");
- img_bg3.visible = true;
-
- ds_temp_imgset.setColumn(0, "img1", "F");
- ds_temp_imgset.setColumn(0, "img2", "F");
- ds_temp_imgset.setColumn(0, "img4", "F");
- img_bg1.visible = false;
- img_bg2.visible = false;
- img_bg4.visible = false;
- ds_temp_imgset.setColumn(0, "imguse", "Y");
- }
- else if(str_index4 != -1)
- {
- ds_temp_imgset.setColumn(0, "img4", "T");
- img_bg4.visible = true;
-
- ds_temp_imgset.setColumn(0, "img1", "F");
- ds_temp_imgset.setColumn(0, "img2", "F");
- ds_temp_imgset.setColumn(0, "img3", "F");
- img_bg1.visible = false;
- img_bg2.visible = false;
- img_bg3.visible = false;
- ds_temp_imgset.setColumn(0, "imguse", "Y");
- }
- else
- {
- ds_temp_imgset.setColumn(0, "img1", "F");
- ds_temp_imgset.setColumn(0, "img2", "F");
- ds_temp_imgset.setColumn(0, "img3", "F");
- ds_temp_imgset.setColumn(0, "img4", "F");
- img_bg1.visible = false;
- img_bg2.visible = false;
- img_bg3.visible = false;
- img_bg4.visible = false;
- ds_temp_imgset.setColumn(0, "imguse", "N");
- }
- }
- function switch2_case1_img1_onclick(obj:ImageViewer, e:ClickEventInfo)
- {
- if (ds_temp_imgset.getColumn(0, "img1") == "F")
- {
- img_bg1.visible = true;
- ds_temp_imgset.setColumn(0, "img1", "T");
- ds_temp_imgset.setColumn(0, "imguse", "Y");
- }
- else
- {
- img_bg1.visible = false;
- ds_temp_imgset.setColumn(0, "img1", "F");
- ds_temp_imgset.setColumn(0, "imguse", "N");
- }
- ds_temp_imgset.setColumn(0, "img2", "F");
- ds_temp_imgset.setColumn(0, "img3", "F");
- ds_temp_imgset.setColumn(0, "img4", "F");
- img_bg2.visible = false;
- img_bg3.visible = false;
- img_bg4.visible = false;
- }
- function tab_ButtonEvent(obj)
- {
- var trgObj = obj;
-
- if(sysf_getObjType(obj) == "Button")
- {
- var btnMark = trgObj.text;
- tar_emailbdtext.setFocus();
- var txtSelPos = tar_emailbdtext.getCaretPos();
-
- var curText = String(tar_emailbdtext.text);
- var curTextBefore = curText.substr(0, txtSelPos);
- var curTextAfter = curText.substr(txtSelPos, curText.length);
-
- tar_emailbdtext.value = curTextBefore + btnMark + curTextAfter;
-
- var curLength = String(curTextBefore + btnMark).length;
- tar_emailbdtext.setCaretPos(curLength);
- }
- }
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- // 해당인스턴스의 값을 지운다
- ds_main_emailattr.setColumn(0, "msglrgcd", "");
- ds_main_emailattr.setColumn(0, "msgmdlcd", "");
- ds_main_emailattr.setColumn(0, "recvremail", "");
- ds_main_emailattr.setColumn(0, "recvrnm", "");
- ds_main_emailattr.setColumn(0, "replemail", "");
- ds_main_emailattr.setColumn(0, "refemail", "");
- ds_main_emailattr.setColumn(0, "emailtitl", "");
- ds_main_emailattr.setColumn(0, "emailbdtext", "");
- img_bg1.visible = false;
- img_bg2.visible = false;
- img_bg3.visible = false;
- img_bg4.visible = false;
- }
- function rdo_rsrvyn_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- frdocheck();
- }
- function frdocheck()
- {
- var req_chk = ds_main_emailattr.getColumn(0, "rsrvyn");
- if (req_chk == "1")
- {
- ipt_trsmreqdt_date.enable = false;
- ipt_trsmreqdt_time.enable = false;
- // 일반전송 선택시 기존 입력한 예약일자 및 예약시간 Clear
- ds_main_emailattr.setColumn(0, "delivedd", "");
- ds_main_emailattr.setColumn(0, "delivereqtm", "");
- }
- else
- {
- ipt_trsmreqdt_date.enable = true;
- ipt_trsmreqdt_time.enable = true;
- }
- }
- function btn_address_onclick(obj:Button, e:ClickEventInfo)
- {
- var objArg = new Object();
- objArg.arg_ds_fwd = ds_fwd;
- frmf_modal("SPCCN00500", "SPCCN00500", objArg, "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_addfile_onclick(obj:Button, e:ClickEventInfo)
- {
- var objArg = new Object();
- objArg.arg_ds_fwd = ds_fwd;
- frmf_modal("SPCCN00600", "SPCCN00600", objArg, "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_address2_onclick(obj:Button, e:ClickEventInfo)
- {
- var objArg = new Object();
- objArg.arg_ds_fwd = ds_fwd2;
- frmf_modal("SPCCN00500", "SPCCN00500", objArg, "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_addfile2_onclick(obj:Button, e:ClickEventInfo)
- {
- var objArg = new Object();
- objArg.arg_ds_fwd = ds_fwd2;
- frmf_modal("SPCCN00600", "SPCCN00600", objArg, "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_trsm_onclick(obj:Button, e:ClickEventInfo)
- {
- fEmailSubmit();
- }
- function fEmailSubmit()
- {
- arrCompId = new Array("ipt_emailtitl","ipt_recvremail", "ipt_replemail", "tar_emailbdtext");
- if(!frmf_isRequiredControls(arrCompId)) return;
-
- //bg_img
- if(ds_temp_imgset.getColumn(0, "imguse") == "Y")
- {
- var emailbdtextfile = "";
- 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='"
- var img = "";
- var bottom ="' width='700' height='300'></TD></TR></TABLE>";
- if(ds_temp_imgset.getColumn(0, "img1") == "T")
- {
- img = "http://crm001.cmcnu.or.kr/himed/webapps/crm/crmweb/images/CMC_Graphic_Motif.jpg";
- }
- else if(ds_temp_imgset.getColumn(0, "img2") == "T")
- {
- img = "";
- }
- else if(ds_temp_imgset.getColumn(0, "img3") == "T")
- {
- img = "";
- }
- else if(ds_temp_imgset.getColumn(0, "img4") == "T")
- {
- img = "";
- }
- emailbdtextfile = top + img + bottom;
- ds_main_emailattr.setColumn(0, "emailbdtextfile", emailbdtextfile);
- }
-
- var emailbdtext = String(ds_main_emailattr.getColumn(0, "emailbdtext"));
-
- emailbdtext = fGetReplaceValue(emailbdtext, "\n", "<BR>");
-
- ds_main_emailattr.setColumn(0, "emailbdtext", emailbdtext);
-
- var replemail = ds_main_emailattr.getColumn(0, "replemail");
- var recvremail = ds_main_emailattr.getColumn(0, "recvremail");
- var refemail = ds_main_emailattr.getColumn(0, "refemail");
- var emailok1, emailok2, emailok3, emailok4, emailok5, emailok6;
- if (replemail.indexOf("@") != -1)
- {
- emailok1 = "ok"
- }
- if (replemail.indexOf(".") != -1)
- {
- emailok2 = "ok"
- }
- if (recvremail.indexOf("@") != -1)
- {
- emailok3 = "ok"
- }
- if (recvremail.indexOf(".") != -1)
- {
- emailok4 = "ok"
- }
-
- if (!utlf_isNull(refemail))
- {
- if (refemail.indexOf("@") != -1)
- {
- emailok5 = "ok"
- }
- if (refemail.indexOf(".") != -1)
- {
- emailok6 = "ok"
- }
- }
-
- if (emailok1 != "ok" || emailok2 != "ok")
- {
- sysf_messageBox("보내는이 메일주소를 올바르게", "C001")
- ipt_replemail.setFocus();
- }
- else if (emailok3 != "ok" || emailok4 != "ok")
- {
- sysf_messageBox("받는이 메일주소를 올바르게", "C001")
- ipt_recvremail.setFocus();
- }
- else if (!utlf_isNull(refemail) && (emailok5 != "ok" || emailok6 != "ok"))
- {
- sysf_messageBox("참조 메일주소를 올바르게", "C001")
- ipt_refemail.setFocus();
- }
- else
- {
- var oParam = {};
- oParam.id = "TXCCN00201";
- oParam.service = "crmapp.Common";
- oParam.method = "reqInsEmailTrsm";
- oParam.inds = "emailtrsm=ds_main_emailattr";
- oParam.outds = "ds_=message";
- oParam.async = false;
- //oParam.callback = "cf_TXCCN00201";
- tranf_submit(oParam);
- sysf_messageBox("Email 전송이","I002");
-
- ds_main_emailattr.setColumn(0, "emailtitl", "");
- ds_main_emailattr.setColumn(0, "replemail", "");
- ds_main_emailattr.setColumn(0, "recvremail", "");
- ds_main_emailattr.setColumn(0, "refemail", "");
- ds_main_emailattr.setColumn(0, "rsrvyn", "1");
-
- ipt_trsmreqdt_date.enable = false;
- ipt_trsmreqdt_time.enable = false;
-
- ds_main_emailattr.setColumn(0, "delivedd", "");
- ds_main_emailattr.setColumn(0, "delivereqtm", "");
- ds_main_emailattr.setColumn(0, "emailbdtext", "");
-
- img_bg1.visible = false;
- img_bg2.visible = false;
- img_bg3.visible = false;
- img_bg4.visible = false;
- }
- }
- function fGetReplaceValue(str, original, replacement)
- {
- var result = "";
- while(str.indexOf(original) != -1)
- {
- if (str.indexOf(original) > 0)
- {
- result = result + str.substring(0, str.indexOf(original)) + replacement;
- }
- else
- {
- result = result + replacement;
- }
- str = str.substring(str.indexOf(original) + original.length, str.length);
-
- }
- return result + str;
- }
- function btn_cncl_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|