123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCCN00300_DM전송
- * Summary : DM전송
- * Programmer : 최정환
- * Date Written : 2007.08.20
- * History : 2007.08.20
- * Remark :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>DM출력</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <dmattr>
- <trsmdd/>
- <trsmdt/>
- <bizflag/>
- <replzipcd1/>
- <replzipcd2/>
- <replzipcdseq/>
- <replzipcdaddr/>
- <repldetladdr/>
- <replzipcd/>
- <repladdr/>
- <replnm/>
- <delivetitl/>
- <delivecnts/>
- <delivesigncnts/>
- <msglrgcd/>
- <msgmdlcd/>
- <msgsmlcd/>
- <labelpaper/>
- <recvrlist/>
- </dmattr>
- <msgsmllist>
- <msgsmlcd/>
- <dmtitl/>
- </msgsmllist>
- <recvrinfo>
- <recvrlist>
- <chk>N</chk>
- <recvrnm/>
- <recvrzipcd/>
- <recvraddr/>
- <recvrpid/>
- </recvrlist>
- </recvrinfo>
- </main>
- <focusid/>
- <send>
- <info>
- <msglrgcd/>
- <msgmdlcd/>
- <msgsmlcd/>
- <chnlflag/>
- </info>
- </send>
- <init>
- <chnllrglist>
- <chnllrggrup>
- <msglrgnm/>
- <msglrgcd/>
- </chnllrggrup>
- </chnllrglist>
- <chnlmdllist>
- <chnlmdlgrup>
- <msgmdlnm/>
- <msgmdlcd/>
- <msglrgcd/>
- </chnlmdlgrup>
- </chnlmdllist>
- </init>
- <temp>
- <dmattr>
- <msgsmlcd/>
- <dmtitl/>
- <dmbdtext/>
- <dmsigntext/>
- <msglrgcd/>
- <msgmdlcd/>
- <replzipcd1/>
- <replzipcd2/>
- <replzipcdseq/>
- <replzipcdaddr/>
- <repldetladdr/>
- <replnm/>
- </dmattr>
- </temp>
- <hidden/>
- <fwd>
- <type>dm</type>
- </fwd>
- </root>
- </instance>
- <submission id="TRCNS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/info" resultref="/root/init/chnllrglist/chnllrggrup"/>
- <submission id="TRCNS00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/info" replace="instance" resultref="/root/init/chnlmdllist/chnlmdlgrup"/>
- <submission id="TRCCN00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/info" replace="instance" resultref="/root/main/msgsmllist"/>
- <submission id="TRCCN00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/info" replace="instance" resultref="/root/temp/dmattr"/>
- <submission id="TXCCN00301" mediatype="multipart/form-data" method="form-data-post" ref="/root/main/dmattr" resultref="/root/hidden"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // DM탬플릿 그리드의 col을 초기화 시켜준다.
- model.removenodeset("/root/main/msgsmllist");
-
- // 메시지 분류코드 설정 (DM : D)
- model.setValue("/root/send/info/chnlflag", "D");
-
- // 메시지 대그룹을 가져온다
- submit("TRCNS00201");
-
- // 수동전송은 업무구분을 무조건 2로 한다.
- model.setValue("/root/main/dmattr/bizflag", "2");
-
- // 용지선택의 기본값을 정해준다.
- model.setValue("/root/main/dmattr/labelpaper", "A");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 선택한 채널관리 대분류에 따른 채널관리 중분류를 가져온다.
- function fGetChnlMdlCd() {
-
- var msglrgcd = model.getValue("/root/main/dmattr/msglrgcd");
- model.setValue("/root/send/info/msglrgcd",msglrgcd);
- submit("TRCNS00202");
- }
-
- // 선택한 채널관리 중분류에 따른 메시지 리스트를 가져온다.
- function fGetChnlSmlCd() {
-
- var msgmdlcd = model.getValue("/root/main/dmattr/msgmdlcd");
- model.setValue("/root/send/info/msgmdlcd",msgmdlcd);
- submit("TRCCN00101");
- }
-
- // DM정보조회
- function fGetDMAttr() {
- var row = grd_msglist.row;
-
- // 선택한 채널관리 리스트항목의 대분류에 따른 채널관리 중분류를 가져온다.
- var msgsmlcd = grd_msglist.valueMatrix(row, grd_msglist.colRef("msgsmlcd"));
- if (msgsmlcd != "") {
- model.setValue("/root/send/info/msgsmlcd", msgsmlcd);
- submit("TRCCN00301");
-
- var msgsmlcd = model.getValue("/root/temp/dmattr/msgsmlcd");
- var dmtitl = model.getValue("/root/temp/dmattr/dmtitl");
- var dmbdtext = model.getValue("/root/temp/dmattr/dmbdtext");
- var msglrgcd = model.getValue("/root/temp/dmattr/msglrgcd");
- var msgmdlcd = model.getValue("/root/temp/dmattr/msgmdlcd");
- var dmsigntext = model.getValue("/root/temp/dmattr/dmsigntext");
- var replzipcd1 = model.getValue("/root/temp/dmattr/replzipcd1");
- var replzipcd2 = model.getValue("/root/temp/dmattr/replzipcd2");
- var replzipcdseq = model.getValue("/root/temp/dmattr/replzipcdseq");
- var replzipcdaddr = model.getValue("/root/temp/dmattr/replzipcdaddr");
- var repldetladdr = model.getValue("/root/temp/dmattr/repldetladdr");
- var replnm = model.getValue("/root/temp/dmattr/replnm");
-
- model.setValue("/root/main/dmattr/msgsmlcd", msgsmlcd);
- model.setValue("/root/main/dmattr/delivetitl", dmtitl);
- model.setValue("/root/main/dmattr/delivecnts", dmbdtext);
- model.setValue("/root/main/dmattr/msglrgcd", msglrgcd);
- model.setValue("/root/main/dmattr/msgmdlcd", msgmdlcd);
- model.setValue("/root/main/dmattr/delivesigncnts", dmsigntext);
- model.setValue("/root/main/dmattr/replzipcd1", replzipcd1);
- model.setValue("/root/main/dmattr/replzipcd2", replzipcd2);
- model.setValue("/root/main/dmattr/replzipcdseq", replzipcdseq);
- model.setValue("/root/main/dmattr/replzipcdaddr", replzipcdaddr);
- model.setValue("/root/main/dmattr/repldetladdr", repldetladdr);
- model.setValue("/root/main/dmattr/replnm", replnm);
-
- model.refresh();
- }
- }
-
- // 그리드에 선택한 수신자를 삭제하는 함수
- function fgriddelete(grid) {
- var cur_row = grid.row; // 행 번호 가져오기
- var iStatus = grid.rowstatus(cur_row);
- var d_cnt = 0;
- var selectedRows = new Array();
-
- for (var i=grid.fixedRows; i<grid.rows; i++)
- {
- var chk = model.getValue("/root/main/recvrinfo/recvrlist["+i+"]/chk");
- if (chk == "Y")
- {
- selectedRows[d_cnt++] = i;
- }
- }
- if(d_cnt == 0) {
- messageBox("삭제할 행을", "C002");
- return;
- }
-
- for (var i=d_cnt-1; i>=0; i--)
- {
- grid.deleterow(selectedRows[i],false);
- }
-
- model.refresh();
- }
-
- // DM 전송
- function fDMSubmit() {
- if(isRequiredControls("ipt_dmtitl", "tar_dmbdtext")) {
-
- // 전송일자를 입력해준다.
- model.setValue("/root/main/dmattr/trsmdd",getCurrentDate());
-
- // 전송시간을 입력해준다.
- var getdate = getCurrentTime();
- var trsmdt = getdate.substring(0,4);
- model.setValue("/root/main/dmattr/trsmdt", trsmdt);
-
- // 회신자 우편번호 및 주소를 합친다.
- var replzipcd1 = model.getValue("/root/main/dmattr/replzipcd1");
- var replzipcd2 = model.getValue("/root/main/dmattr/replzipcd2");
- model.setValue("/root/main/dmattr/replzipcd", replzipcd1 + replzipcd2);
-
- var replzipaddr = model.getValue("/root/temp/dmattr/replzipcdaddr");
- var detladdr = model.getValue("/root/main/dmattr/repldetladdr");
- model.setValue("/root/main/dmattr/repladdr", replzipaddr + " " + detladdr);
-
- // 수신자 리스트가 담긴의 그리드를 체크한다.
- var nodeset = grd_recvrlist.nodeset;
- var recvrnm;
- var recvrzipcd;
- var recvraddr;
- var recvrpid;
- var cnt = 0;
- for (i=grd_recvrlist.fixedRows; i<grd_recvrlist.rows; i++)
- {
- cnt++;
- recvrnm = model.getValue("/root/main/recvrinfo/recvrlist["+cnt+"]/recvrnm");
- recvrzipcd = model.getValue("/root/main/recvrinfo/recvrlist["+cnt+"]/recvrzipcd");
- recvraddr = model.getValue("/root/main/recvrinfo/recvrlist["+cnt+"]/recvraddr");
- recvrpid = model.getValue("/root/main/recvrinfo/recvrlist["+cnt+"]/recvrpid");
-
- if(recvrnm.getTrim()=="")
- {
- messageBox(cnt+" 번째 수신자 이름을 ", "C001");
- grd_recvrlist.row = i;
- return;
- }
-
- if(recvrzipcd.length <6)
- {
- messageBox(cnt+" 번째 수신자 우편번호를 ", "C001");
- grd_recvrlist.row = i;
- return;
- }
-
- if(recvraddr.length <10)
- {
- messageBox(cnt+" 번째 수신자 주소를 ", "C001");
- grd_recvrlist.row = i;
- return;
- }
- }
- var nodeList = instance1.selectNodes("/root/main/recvrinfo/recvrlist");
- var rCSV = getNodeListCSV(nodeList);
-
- model.setValue("/root/main/dmattr/recvrlist", rCSV);
-
- var labelpaper = model.getValue("/root/main/dmattr/labelpaper");
- var s_replzipcd1 = model.getValue("/root/main/dmattr/replzipcd1");
- var s_replzipcd2 = model.getValue("/root/main/dmattr/replzipcd2");
- var s_repldetladdr = model.getValue("/root/main/dmattr/repldetladdr");
- var s_replnm = model.getValue("/root/main/dmattr/replnm");
-
- if (labelpaper == "A") {
- if ((s_replzipcd1 == "") || (s_replzipcd2 == "")){
- messageBox("발신자 주소를", "C001");
- model.setFocus("btnicon_search3");
- return false;
- } else if (s_repldetladdr == "") {
- var rtn = messageBox("상세주소가 없습니다. 상세주소 없이 ", "Q003");
- if(rtn == 6){
- } else {
- model.setFocus("ipt_detladdr");
- return false;
- }
- } else if (s_replnm == "") {
- var rtn = messageBox("발신자 이름이 없습니다. 발신자 이름 없이 ", "Q003");
- if(rtn == 6){
- } else {
- model.setFocus("ipt_rplenm");
- return false;
- }
- }
- exeReportPreview("RPCCN00300", "XMLSTR", "/root/main/recvrinfo/recvrlist");
- } else if (labelpaper == "B") {
- if ((s_replzipcd1 == "") || (s_replzipcd2 == "")){
- messageBox("발신자 주소를", "C001");
- model.setFocus("btnicon_search3");
- return false;
- } else if (s_repldetladdr == "") {
- var rtn = messageBox("상세주소가 없습니다. 상세주소 없이 ", "Q003");
- if(rtn == 6){
- } else {
- model.setFocus("ipt_detladdr");
- return false;
- }
- } else if (s_replnm == "") {
- var rtn = messageBox("발신자 이름이 없습니다. 발신자 이름 없이 ", "Q003");
- if(rtn == 6){
- } else {
- model.setFocus("ipt_rplenm");
- return false;
- }
- }
- exeReportPreview("RPCCN00303", "XMLSTR", "/root/main/recvrinfo/recvrlist");
- } else if (labelpaper == "X") {
- exeReportPreview("RPCCN00301", "XMLSTR", "/root/main/recvrinfo/recvrlist");
- } else if (labelpaper == "Y") {
- exeReportPreview("RPCCN00302", "XMLSTR", "/root/main/recvrinfo/recvrlist");
- } else {
- messageBox("출력할 용지를", "C002");
- return;
- }
- submit("TXCCN00301");
- messageBox("DM 출력 요청이 등록","I001");
- }
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="600" pageheight="720" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tmpl" scroll="auto" style="left:0px; top:0px; width:420px; height:200px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">DM템플릿</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:420px; y2:25px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:53px; x2:420px; y2:53px; "/>
- <caption id="cap_dtmntitl" class="cell_1" style="left:0px; top:30px; width:105px; height:23px; text-align:center; vertical-align:middle; ">그룹</caption>
- <select1 id="cmb_msglrgcd" ref="/root/main/dmattr/msglrgcd" class="combo_default" appearance="minimal" style="left:108px; top:31px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/chnllrglist/chnllrggrup">
- <label ref="msglrgnm"/>
- <value ref="msglrgcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 기존에 선택된 중분류를 초기화한다.
- model.removenodeset("/root/init/chnlmdllist/chnlmdlgrup");
-
- // 선택한 채널관리 대분류에 따른 채널관리 중분류를 가져온다.
- fGetChnlMdlCd();
- model.setFocus("cmb_msgmdlcd");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_msgmdlcd" ref="/root/main/dmattr/msgmdlcd" class="combo_default" appearance="minimal" style="left:261px; top:31px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/chnlmdllist/chnlmdlgrup">
- <label ref="msgmdlnm"/>
- <value ref="msgmdlcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 메시지 리스트를 초기화한다.
- model.removenodeset("/root/main/msgsmllist");
-
- // 선택한 채널관리 대분류에 따른 채널관리 중분류를 가져온다.
- fGetChnlSmlCd();
- ]]>
- </script>
- </select1>
- <datagrid id="grd_msglist" nodeset="/root/main/msgsmllist" caption="메시지코드^DM제목^" colwidth="113, 269" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" tooltip="true" style="left:0px; top:57px; width:420px; height:143px; ">
- <col ref="msgsmlcd"/>
- <col ref="dmtitl"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( grd_msglist.isCell(event.target) && grd_msglist.row >= grd_msglist.fixedRows ){
- fGetDMAttr(); // DM메시지 정보조회
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:200px; width:580px; height:285px; ">
- <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">DM출력</caption>
- <button id="btn_init" class="btn2_letter3" style="left:527px; top:5px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 해당인스턴스의 값을 지운다
- model.setValue("/root/main/dmattr/msgsmlcd", "");
- model.setValue("/root/main/dmattr/delivetitl", "");
- model.setValue("/root/main/dmattr/delivecnts", "");
- model.setValue("/root/main/dmattr/delivesigncnts", "");
- model.setValue("/root/main/dmattr/msglrgcd", "");
- model.setValue("/root/main/dmattr/msgmdlcd", "");
- model.setValue("/root/main/dmattr/replzipcd1", "");
- model.setValue("/root/main/dmattr/replzipcd2", "");
- model.setValue("/root/main/dmattr/replzipcdaddr", "");
- //model.setValue("/root/main/dmattr/detladdr", "");
- model.setValue("/root/main/dmattr/labelpaper", "A");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line4" class="line_1" style="x1:0px; y1:25px; x2:580px; y2:25px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:124px; x2:580px; y2:124px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:247px; x2:580px; y2:247px; "/>
- <caption id="cap_zipcdaddr" class="cell_1" style="left:0px; top:77px; width:90px; height:48px; text-align:center; vertical-align:middle; ">발신정보</caption>
- <output id="ipt_zipcd1" ref="/root/main/dmattr/replzipcd1" class="output_fix" style="left:93px; top:78px; width:45px; height:19px; "/>
- <output id="ipt_zipcd2" ref="/root/main/dmattr/replzipcd2" class="output_fix" style="left:141px; top:78px; width:45px; height:19px; "/>
- <button id="btnicon_search3" class="icon_search" style="left:193px; top:79px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_condition = "srchzipcd";
- var search_term1 = model.getValue("/root/main/msgtmpl/replzipcd1");
- var search_term2 = model.getValue("/root/main/msgtmpl/replzipcd2");
- var search_term = search_term1 + "-" + search_term2;
- var receive_zipcd1_path = "/root/main/dmattr/replzipcd1";
- var receive_zipcd2_path = "/root/main/dmattr/replzipcd2";
- var receive_zipcdseq_path = "/root/main/dmattr/replzipcdseq";
- var receive_zipcdaddr_path = "/root/main/dmattr/replzipcdaddr";
-
- setParameter("search_condition", search_condition);
- setParameter("search_term", search_term);
- setParameter("receive_zipcd1_path", receive_zipcd1_path);
- setParameter("receive_zipcd2_path", receive_zipcd2_path);
- setParameter("receive_zipcdseq_path", receive_zipcdseq_path);
- setParameter("receive_zipcdaddr_path", receive_zipcdaddr_path);
-
- modal("SPCCM00200")
-
- clearParameter("search_condition");
- clearParameter("search_term");
- clearParameter("receive_zipcd1_path");
- clearParameter("receive_zipcd2_path");
- clearParameter("receive_zipcdseq_path");
- clearParameter("receive_zipcdaddr_path");
- ]]>
- </script>
- </button>
- <output id="ipt_zipcdaddr" ref="/root/main/dmattr/replzipcdaddr" class="output_fix" style="left:213px; top:78px; width:367px; height:19px; "/>
- <input id="ipt_detladdr" ref="/root/main/dmattr/repldetladdr" class="input_default" style="left:93px; top:102px; width:362px; height:19px; "/>
- <input id="ipt_rplenm" ref="/root/main/dmattr/replnm" class="input_default" maxlength="25" style="left:458px; top:102px; width:120px; height:19px; ">
- <hint>
- <![CDATA[발신인]]>
- </hint>
- </input>
- <line id="line6" class="line_2" style="x1:0px; y1:74px; x2:580px; y2:74px; "/>
- <caption id="cap_dmtitl" class="cell_1" style="left:0px; top:53px; width:90px; height:23px; text-align:center; vertical-align:middle; ">DM제목</caption>
- <input id="ipt_dmtitl" ref="/root/main/dmattr/delivetitl" class="input_essential" navindex="3" style="left:93px; top:54px; width:487px; height:19px; "/>
- <line id="line2" class="line_3" style="x1:0px; y1:283px; x2:580px; y2:283px; "/>
- <caption id="cap_dmbdtext" class="cell_1" style="left:0px; top:126px; width:90px; height:122px; text-align:center; vertical-align:middle; ">DM본문내용</caption>
- <textarea id="tar_dmbdtext" ref="/root/main/dmattr/delivecnts" class="text_essential" navindex="4" style="left:93px; top:127px; width:487px; height:119px; ">
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- model.setValue("/root/focusid", event.focus)
- ]]>
- </script>
- </textarea>
- <caption id="caption6" class="cell_1" style="left:0px; top:249px; width:90px; height:34px; text-align:center; vertical-align:middle; ">DM서명내용</caption>
- <textarea id="tar_dmsigntext" ref="/root/main/dmattr/delivesigncnts" class="input_default" navindex="4" style="left:93px; top:249px; width:487px; height:33px; ">
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- model.setValue("/root/focusid", event.focus)
- ]]>
- </script>
- </textarea>
- <line id="line9" class="line_2" style="x1:0px; y1:51px; x2:580px; y2:51px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:29px; width:90px; height:23px; text-align:center; vertical-align:middle; ">용지선택</caption>
- <select1 id="rdo_labelpaper" ref="/root/main/dmattr/labelpaper" navindex="13" appearance="full" cellspacing="15" cols="4" overflow="visible" style="left:93px; top:30px; width:395px; height:19px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>DM용지1</label>
- <value>A</value>
- </item>
- <item>
- <label>DM용지2</label>
- <value>B</value>
- </item>
- <item>
- <label>라벨용지(16칸)</label>
- <value>X</value>
- </item>
- <item>
- <label>라벨용지(14칸)</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sLabelpaper = model.getValue("/root/main/dmattr/labelpaper");
- if (sLabelpaper == "X"){
- model.setValue("/root/main/dmattr/delivetitl", getCurrentDate() + "_라벨용지(16칸) 출력");
- model.setValue("/root/main/dmattr/delivecnts", "라벨용지(16칸) 출력입니다.");
- model.setValue("/root/main/dmattr/delivesigncnts", "");
- } else if (sLabelpaper == "Y"){
- model.setValue("/root/main/dmattr/delivetitl", getCurrentDate() + "_라벨용지(14칸) 출력");
- model.setValue("/root/main/dmattr/delivecnts", "라벨용지(14칸) 출력입니다.");
- model.setValue("/root/main/dmattr/delivesigncnts", "");
- } else {
- model.setValue("/root/main/dmattr/delivetitl", "");
- model.setValue("/root/main/dmattr/delivecnts", "");
- model.setValue("/root/main/dmattr/delivesigncnts", "");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <group id="grp_recvrlist" scroll="auto" style="left:0px; top:484px; width:580px; height:176px; ">
- <caption id="caption4" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">수신자리스트</caption>
- <button id="button42" class="btn2_letter5" style="left:242px; top:4px; width:75px; height:19px; ">
- <caption>수신자추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var i;
- grd_recvrlist.addItem();
- i = grd_recvrlist.rows;
- grd_recvrlist.bottomRow = i;
- grd_recvrlist.select(i, 1, i, 1) = true;
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter5" style="left:322px; top:4px; width:75px; height:19px; ">
- <caption>수신자삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fgriddelete(grd_recvrlist);
- ]]>
- </script>
- </button>
- <button id="btn_address" class="btn2_letter3" style="left:402px; top:4px; width:53px; height:19px; ">
- <caption>주소록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPCCN00500", "", "", "", "SPCCN00500", "/root/fwd", "/root/fwd");
- if ( grd_recvrlist.valueMatrix(1,grd_recvrlist.colRef("recvrnm")) == "" && grd_recvrlist.valueMatrix(1,grd_recvrlist.colRef("recvrzipcd")) == "" && grd_recvrlist.valueMatrix(1,grd_recvrlist.colRef("recvraddr")) == "" ) {
- grd_recvrlist.deleterow(1, false);
- };
- ]]>
- </script>
- </button>
- <button id="btn_addfile" class="btn2_letter9" style="left:460px; top:4px; width:119px; height:19px; ">
- <caption>외부파일 가져오기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPCCN00600", "", "", "", "SPCCN00600", "/root/fwd", "/root/fwd");
- if ( grd_recvrlist.valueMatrix(1,grd_recvrlist.colRef("recvrnm")) == "" && grd_recvrlist.valueMatrix(1,grd_recvrlist.colRef("recvrzipcd")) == "" && grd_recvrlist.valueMatrix(1,grd_recvrlist.colRef("recvraddr")) == "" ) {
- grd_recvrlist.deleterow(1, false);
- };
- ]]>
- </script>
- </button>
- <line id="line10" class="line_1" style="x1:0px; y1:25px; x2:580px; y2:25px; "/>
- <datagrid id="grd_recvrlist" nodeset="/root/main/recvrinfo/recvrlist" caption="^수신자명^수신자우편번호^수신자주소^등록번호" colwidth="19, 80, 121, 320, 100" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" tooltip="true" style="left:0px; top:29px; width:580px; height:146px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox" style="text-align:center; "/>
- <col ref="recvrnm" type="input"/>
- <col ref="recvrzipcd" type="input" maxlength="7"/>
- <col ref="recvraddr" type="input"/>
- <col ref="recvrpid" type="input"/>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:660px; width:580px; height:27px; ">
- <button id="btn_trsm" class="btn4_letter7" style="left:410px; top:5px; width:56px; height:22px; ">
- <caption>미리보기/출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDMSubmit();
- ]]>
- </script>
- </button>
- <button id="btn_cncl" class="btn4_letter2" style="left:524px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- <switch id="switch2" style="left:425px; top:21px; width:155px; height:180px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true">
- <caption id="caption5" style="left:10px; top:15px; width:130px; height:112px; ">
- <![CDATA[DM용지는
- 3단 접이식(A4)
- 라벨용지는
- Formtec 3107(16칸)
- Formtec 3108(14칸)
- 를 지원합니다.]]>
- </caption>
- </case>
- <case id="case2">
- <button id="caption40" class="btn_number" style="left:5px; top:70px; width:39px; height:19px; ">
- <caption>@</caption>
- </button>
- <button id="caption41" class="btn_number" style="left:47px; top:70px; width:39px; height:19px; ">
- <caption>♨</caption>
- </button>
- <button id="caption42" class="btn_number" style="left:89px; top:70px; width:39px; height:19px; ">
- <caption>☎</caption>
- </button>
- <button id="caption31" class="btn_number" style="left:47px; top:202px; width:39px; height:19px; ">
- <caption>♥</caption>
- </button>
- <button id="caption20" class="btn_number" style="left:89px; top:92px; width:39px; height:19px; ">
- <caption>◎</caption>
- </button>
- <button id="caption43" class="btn_number" style="left:5px; top:158px; width:39px; height:19px; ">
- <caption>☜</caption>
- </button>
- <button id="caption32" class="btn_number" style="left:5px; top:48px; width:39px; height:19px; ">
- <caption>♧</caption>
- </button>
- <button id="caption21" class="btn_number" style="left:5px; top:180px; width:39px; height:19px; ">
- <caption>◇</caption>
- </button>
- <button id="caption44" class="btn_number" style="left:47px; top:158px; width:39px; height:19px; ">
- <caption>☞</caption>
- </button>
- <button id="caption33" class="btn_number" style="left:47px; top:48px; width:39px; height:19px; ">
- <caption>♣</caption>
- </button>
- <button id="caption22" class="btn_number" style="left:47px; top:180px; width:39px; height:19px; ">
- <caption>◆</caption>
- </button>
- <button id="caption45" class="btn_number" style="left:89px; top:158px; width:39px; height:19px; ">
- <caption>%</caption>
- </button>
- <button id="caption34" class="btn_number" style="left:89px; top:48px; width:39px; height:19px; ">
- <caption>◁</caption>
- </button>
- <button id="caption23" class="btn_number" style="left:5px; top:26px; width:39px; height:19px; ">
- <caption>□</caption>
- </button>
- <button id="caption46" class="btn_number" style="left:89px; top:180px; width:39px; height:19px; ">
- <caption>☏</caption>
- </button>
- <button id="caption35" class="btn_number" style="left:5px; top:136px; width:39px; height:19px; ">
- <caption>◀</caption>
- </button>
- <button id="caption24" class="btn_number" style="left:47px; top:26px; width:39px; height:19px; ">
- <caption>■</caption>
- </button>
- <button id="caption47" class="btn_number" style="left:89px; top:202px; width:39px; height:19px; ">
- <caption>♪</caption>
- </button>
- <button id="caption36" class="btn_number" style="left:47px; top:136px; width:39px; height:19px; ">
- <caption>▷</caption>
- </button>
- <button id="caption25" class="btn_number" style="left:89px; top:26px; width:39px; height:19px; ">
- <caption>△</caption>
- </button>
- <button id="caption37" class="btn_number" style="left:89px; top:136px; width:39px; height:19px; ">
- <caption>▶</caption>
- </button>
- <button id="caption26" class="btn_number" style="left:5px; top:114px; width:39px; height:19px; ">
- <caption>▲</caption>
- </button>
- <button id="caption15" class="btn_number" style="left:5px; top:4px; width:39px; height:19px; ">
- <caption>●</caption>
- </button>
- <button id="caption38" class="btn_number" style="left:5px; top:224px; width:39px; height:19px; ">
- <caption>♤</caption>
- </button>
- <button id="caption27" class="btn_number" style="left:47px; top:114px; width:39px; height:19px; ">
- <caption>▽</caption>
- </button>
- <button id="caption16" class="btn_number" style="left:47px; top:4px; width:39px; height:19px; ">
- <caption>※</caption>
- </button>
- <button id="caption39" class="btn_number" style="left:47px; top:224px; width:39px; height:19px; ">
- <caption>♠</caption>
- </button>
- <button id="caption28" class="btn_number" style="left:89px; top:114px; width:39px; height:19px; ">
- <caption>▼</caption>
- </button>
- <button id="caption17" class="btn_number" style="left:89px; top:4px; width:39px; height:19px; ">
- <caption>☆</caption>
- </button>
- <button id="caption29" class="btn_number" style="left:5px; top:202px; width:39px; height:19px; ">
- <caption>♡</caption>
- </button>
- <button id="caption18" class="btn_number" style="left:5px; top:92px; width:39px; height:19px; ">
- <caption>★</caption>
- </button>
- <button id="caption19" class="btn_number" style="left:47px; top:92px; width:39px; height:19px; ">
- <caption>○</caption>
- </button>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var trgObj = document.controls.item(event.target);
- var trgTextarea = model.getValue("/root/focusid");
-
- if( trgObj.elementName == "xforms:button" ) {
- if ( trgTextarea == "tar_dmbdtext" ) {
- var btnMark = trgObj.label;
- var txtSelPos = tar_dmbdtext.selBegin;
-
- var curText = tar_dmbdtext.currentText;
- var curTextBefore = curText.substr(0, txtSelPos);
- var curTextAfter = curText.substr(txtSelPos, curText.length);
-
- tar_dmbdtext.currentText = curTextBefore + btnMark + curTextAfter;
-
- model.setFocus("tar_dmbdtext");
- tar_dmbdtext.selBegin = txtSelPos + 1;
- tar_dmbdtext.dispatch("onkeyup");
- } else if ( trgTextarea == "tar_dmsigntext" ) {
- var btnMark = trgObj.label;
- var txtSelPos = tar_dmsigntext.selBegin;
-
- var curText = tar_dmsigntext.currentText;
- var curTextBefore = curText.substr(0, txtSelPos);
- var curTextAfter = curText.substr(txtSelPos, curText.length);
-
- tar_dmsigntext.currentText = curTextBefore + btnMark + curTextAfter;
-
- model.setFocus("tar_dmsigntext");
- tar_dmsigntext.selBegin = txtSelPos + 1;
- tar_dmsigntext.dispatch("onkeyup");
- }
- }
- ]]>
- </script>
- </case>
- <case id="case3">
- <button id="button4" class="btn2_letter3" style="left:5px; top:5px; width:53px; height:19px; ">
- <caption>고객</caption>
- </button>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var trgObj = document.controls.item(event.target);
- var trgTextarea = model.getValue("/root/focusid");
-
- if( trgObj.elementName == "xforms:button" ) {
- if ( trgTextarea == "tar_dmbdtext" ) {
- var btnMark = "<@" + trgObj.label + ">";
- var txtSelPos = tar_dmbdtext.selBegin;
-
- var curText = tar_dmbdtext.currentText;
- var curTextBefore = curText.substr(0, txtSelPos);
- var curTextAfter = curText.substr(txtSelPos, curText.length);
-
- tar_dmbdtext.currentText = curTextBefore + btnMark + curTextAfter;
-
- var endTxt = tar_dmbdtext.currentText;
- model.setFocus("tar_dmbdtext");
- tar_dmbdtext.selBegin = endTxt.length-curTextAfter.length;
- tar_dmbdtext.dispatch("onkeyup");
- } else if ( trgTextarea == "tar_dmsigntext" ) {
- var btnMark = "<@" + trgObj.label + ">";
- var txtSelPos = tar_dmsigntext.selBegin;
-
- var curText = tar_dmsigntext.currentText;
- var curTextBefore = curText.substr(0, txtSelPos);
- var curTextAfter = curText.substr(txtSelPos, curText.length);
-
- tar_dmsigntext.currentText = curTextBefore + btnMark + curTextAfter;
-
- var endTxt = tar_dmsigntext.currentText;
- model.setFocus("tar_dmsigntext");
- tar_dmsigntext.selBegin = endTxt.length-curTextAfter.length;
- tar_dmsigntext.dispatch("onkeyup");
- }
- }
- ]]>
- </script>
- </case>
- </switch>
- <button id="btn_lattr" class="btn_sw" group="tab" style="left:425px; top:0px; width:38px; height:22px; ">
- <caption>용지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //var chosinfouseyn = model.getvalue("/root/main/dtmntmpl/tmpldefine/chosinfouseyn")
-
- //if (chosinfouseyn == "Y") {
- model.toggle("case1");
- //} else {
- //messageBox("연결정보중 내원정보가 선택되지","E007");
- //}
- ]]>
- </script>
- </button>
- <button id="btn_schar" class="btn_sw" group="tab" style="left:463px; top:0px; width:61px; height:22px; ">
- <caption>특수문자</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- ]]>
- </script>
- </button>
- <button id="btn_prmchar" class="btn_sw" group="tab" style="left:524px; top:0px; width:56px; height:22px; ">
- <caption>예약어</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case3");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|