SMRMS98200_단문메시지전송.xrw 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>단문메시지전송</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <bizabbr>com</bizabbr>
  11. <replytelno/>
  12. <rsrvyn>0</rsrvyn>
  13. <rsrvdate/>
  14. <rsrvtime/>
  15. <msgcnts/>
  16. <closeflag/>
  17. <recvrlist>
  18. <chk/>
  19. <recvrnm/>
  20. <recvrtelno/>
  21. </recvrlist>
  22. </main>
  23. <send>
  24. </send>
  25. <init>
  26. </init>
  27. <hidden>
  28. </hidden>
  29. <temp>
  30. <bytecnt>0</bytecnt>
  31. </temp>
  32. </root>
  33. </instance>
  34. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  36. <script type="javascript" src="../../../com/shortmsgweb/js/ZMS00100.js"/>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. fInitialize();
  40. ]]>
  41. </script>
  42. <script type="javascript">
  43. <![CDATA[
  44. function fInitialize()
  45. {
  46. for(var s = grd_recvrlist.fixedRows; s < grd_recvrlist.rows; s++)
  47. {
  48. grd_recvrlist.rowStatus(s) = 2;
  49. }
  50. // openPopup 이되었을때 자동으로 전송을 실행시킨후 화면을 닫아준다.
  51. if(model.getValue("/root/main/closeflag") == "Y")
  52. {
  53. ipt_send.dispatch("DOMActivate");
  54. btn_cancel.dispatch("DOMActivate");
  55. }
  56. }
  57. ]]>
  58. </script>
  59. <submission id="TXZMS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  60. </model>
  61. </xhtml:head>
  62. <xhtml:body pagewidth="267" pageheight="607" guideline="1,250;2,591;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  63. <group id="group1" class="sms" style="left:0px; top:0px; width:251px; height:593px; ">
  64. <textarea id="tar_contents" ref="/root/main/msgcnts" style="left:26px; top:65px; width:197px; height:174px; padding:10; background-color:transparent; ">
  65. <script type="javascript" ev:event="onkeyup">
  66. <![CDATA[
  67. var opt_bytesValue = tar_contents.currentText.getByteLength();
  68. var contents = tar_contents.currentText;
  69. if (parseInt(opt_bytesValue) > 80)
  70. {
  71. messageBox("단문메시지는 80bytes 를 넘을 수 없습니다.", "I999");
  72. model.setValue("/root/main/msgcnts",contents.cut(80));
  73. tar_contents.refresh();
  74. return;
  75. }
  76. model.setValue(opt_bytes.attribute("ref"), opt_bytesValue);
  77. opt_bytes.refresh();
  78. ]]>
  79. </script>
  80. </textarea>
  81. <button id="btn_addnumber" class="num_add" style="left:49px; top:316px; width:73px; height:23px; ">
  82. <caption/>
  83. <script type="javascript" ev:event="DOMActivate">
  84. <![CDATA[
  85. var i;
  86. grd_recvrlist.addItem();
  87. i = grd_recvrlist.rows;
  88. grd_recvrlist.bottomRow = i;
  89. grd_recvrlist.select(i, 1, i, 1) = true;
  90. ]]>
  91. </script>
  92. </button>
  93. <button id="btn_deletenumber" class="num_del" style="left:128px; top:316px; width:73px; height:23px; ">
  94. <caption/>
  95. <script type="javascript" ev:event="DOMActivate">
  96. <![CDATA[
  97. fgriddelete(grd_recvrlist);
  98. ]]>
  99. </script>
  100. </button>
  101. <button id="ipt_send" class="sms_send" style="left:57px; top:534px; width:62px; height:21px; ">
  102. <caption/>
  103. <script type="javascript" ev:event="DOMActivate">
  104. <![CDATA[
  105. fSMSSubmit("/root/main");
  106. ]]>
  107. </script>
  108. </button>
  109. <button id="btn_cancel" class="sms_cancel" style="left:127px; top:534px; width:62px; height:21px; ">
  110. <caption/>
  111. <script type="javascript" ev:event="DOMActivate">
  112. <![CDATA[
  113. window.close();
  114. ]]>
  115. </script>
  116. </button>
  117. <line id="line1" style="x1:28px; y1:475px; x2:221px; y2:475px; border-color:#C4CDDB; "/>
  118. <button id="button5" class="send_name" style="left:35px; top:437px; width:52px; height:10px; ">
  119. <caption/>
  120. </button>
  121. <button id="button6" class="send_phone" style="left:35px; top:457px; width:64px; height:10px; ">
  122. <caption/>
  123. </button>
  124. <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; "/>
  125. <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; "/>
  126. <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; ">
  127. <choices>
  128. <item>
  129. <label>즉시전송</label>
  130. <value>0</value>
  131. </item>
  132. <item>
  133. <label>예약전송</label>
  134. <value>1</value>
  135. </item>
  136. </choices>
  137. <script type="javascript" ev:event="xforms-value-changed">
  138. <![CDATA[
  139. frdocheck();
  140. ]]>
  141. </script>
  142. </select1>
  143. <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; "/>
  144. <output id="opt_sender" class="input_default" disabled="false" style="left:112px; top:431px; width:109px; height:19px; "/>
  145. <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; ">
  146. <col class="sms" checkvalue="Y,N" ref="chk" type="checkbox" style="text-align:center; "/>
  147. <col ref="recvrnm" type="input"/>
  148. <col ref="recvrtelno" type="input" format="99999999999" maxlength="11"/>
  149. </datagrid>
  150. <button id="button7" style="left:48px; top:357px; width:15px; height:15px; ">
  151. <caption>v</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. fSelectAll(grd_recvrlist);
  155. ]]>
  156. </script>
  157. </button>
  158. <output id="opt_bytes" ref="/root/temp/bytecnt" style="left:78px; top:246px; width:30px; height:19px; color:#ff0000; text-align:right; "/>
  159. <caption id="caption1" style="left:109px; top:248px; width:65px; height:15px; color:#0000ff; ">/80 bytes</caption>
  160. </group>
  161. </xhtml:body>
  162. </xhtml:html>