123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>단문메시지전송</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <bizabbr>com</bizabbr>
- <replytelno/>
- <rsrvyn>0</rsrvyn>
- <rsrvdate/>
- <rsrvtime/>
- <msgcnts/>
- <closeflag/>
- <recvrlist>
- <chk/>
- <recvrnm/>
- <recvrtelno/>
- </recvrlist>
- </main>
- <send>
- </send>
- <init>
- </init>
- <hidden>
- </hidden>
- <temp>
- <bytecnt>0</bytecnt>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/shortmsgweb/js/ZMS00100.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- for(var s = grd_recvrlist.fixedRows; s < grd_recvrlist.rows; s++)
- {
- grd_recvrlist.rowStatus(s) = 2;
- }
-
- // openPopup 이되었을때 자동으로 전송을 실행시킨후 화면을 닫아준다.
- if(model.getValue("/root/main/closeflag") == "Y")
- {
- ipt_send.dispatch("DOMActivate");
- btn_cancel.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- <submission id="TXZMS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="267" pageheight="607" guideline="1,250;2,591;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" class="sms" style="left:0px; top:0px; width:251px; height:593px; ">
- <textarea id="tar_contents" ref="/root/main/msgcnts" style="left:26px; top:65px; width:197px; height:174px; padding:10; background-color:transparent; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var opt_bytesValue = tar_contents.currentText.getByteLength();
- var contents = tar_contents.currentText;
-
- if (parseInt(opt_bytesValue) > 80)
- {
- messageBox("단문메시지는 80bytes 를 넘을 수 없습니다.", "I999");
- model.setValue("/root/main/msgcnts",contents.cut(80));
- tar_contents.refresh();
- return;
- }
-
- model.setValue(opt_bytes.attribute("ref"), opt_bytesValue);
- opt_bytes.refresh();
- ]]>
- </script>
- </textarea>
- <button id="btn_addnumber" class="num_add" style="left:49px; top:316px; width:73px; height:23px; ">
- <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="btn_deletenumber" class="num_del" style="left:128px; top:316px; width:73px; height:23px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fgriddelete(grd_recvrlist);
- ]]>
- </script>
- </button>
- <button id="ipt_send" class="sms_send" style="left:57px; top:534px; width:62px; height:21px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSMSSubmit("/root/main");
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="sms_cancel" style="left:127px; top:534px; width:62px; height:21px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:28px; y1:475px; x2:221px; y2:475px; border-color:#C4CDDB; "/>
- <button id="button5" class="send_name" style="left:35px; top:437px; width:52px; height:10px; ">
- <caption/>
- </button>
- <button id="button6" class="send_phone" style="left:35px; top:457px; width:64px; height:10px; ">
- <caption/>
- </button>
- <input id="ipt_trsmreqdt_date" ref="/root/main/rsrvdate" class="input_default" imemode="disabled" inputtype="date" validateformat="true" style="left:44px; top:503px; width:93px; height:19px; "/>
- <input id="ipt_callback" ref="/root/main/replytelno" class="input_default" imemode="disabled" maxlength="11" format="99999999999" style="left:112px; top:452px; width:109px; height:19px; "/>
- <select1 id="rdo_rsrvyn" ref="/root/main/rsrvyn" overflow="visible" appearance="full" cols="2" style="left:44px; top:481px; width:161px; height:17px; text-align:left; border-style:none; ">
- <choices>
- <item>
- <label>즉시전송</label>
- <value>0</value>
- </item>
- <item>
- <label>예약전송</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- frdocheck();
- ]]>
- </script>
- </select1>
- <input id="ipt_trsmreqdt_time" ref="/root/main/rsrvtime" class="input_default" imemode="disabled" format="hh:nn" showmask="true" validateformat="true" style="left:140px; top:503px; width:65px; height:19px; "/>
- <output id="opt_sender" class="input_default" disabled="false" style="left:112px; top:431px; width:109px; height:19px; "/>
- <datagrid id="grd_recvrlist" nodeset="/root/main/recvrlist" class="datagrid_sms" caption="^수신자명^전화번호" colwidth="19, 53, 100" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:26px; top:355px; width:195px; height:72px; ">
- <col class="sms" checkvalue="Y,N" ref="chk" type="checkbox" style="text-align:center; "/>
- <col ref="recvrnm" type="input"/>
- <col ref="recvrtelno" type="input" format="99999999999" maxlength="11"/>
- </datagrid>
- <button id="button7" style="left:48px; top:357px; width:15px; height:15px; ">
- <caption>v</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelectAll(grd_recvrlist);
- ]]>
- </script>
- </button>
- <output id="opt_bytes" ref="/root/temp/bytecnt" style="left:78px; top:246px; width:30px; height:19px; color:#ff0000; text-align:right; "/>
- <caption id="caption1" style="left:109px; top:248px; width:65px; height:15px; color:#0000ff; ">/80 bytes</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|