SPZMI00301_메시지전송팝업.xrw 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. </main>
  11. <send>
  12. <calltype>msg</calltype>
  13. <calltelno/>
  14. <insuflag/>
  15. <msgcnts/>
  16. <recvrid/>
  17. <recvrnm/>
  18. <deptnm/>
  19. <deptcd/>
  20. <mpphonno/>
  21. </send>
  22. <temp/>
  23. <init>
  24. <calltype>
  25. <label>메시지만</label>
  26. <value>msg</value>
  27. </calltype>
  28. <calltype>
  29. <label>호출만</label>
  30. <value>call</value>
  31. </calltype>
  32. <calltype>
  33. <label>메시지+호출</label>
  34. <value>msgcall</value>
  35. </calltype>
  36. </init>
  37. </root>
  38. </instance>
  39. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. var calltelno = model.getValue("/root/main/calltelno");
  46. if (calltelno =="") {
  47. calltelno = getUserInfo("mpphonno");
  48. }
  49. model.setValue("/root/send/calltelno",calltelno);
  50. var calltype = model.getValue("/root/main/calltype");
  51. if (calltype =="") {
  52. calltype = "msg";
  53. }
  54. model.makeValue("/root/send/calltype",calltype);
  55. var recvrid = model.getValue("/root/main/recvrid");
  56. if (recvrid == "") {
  57. messageBox("수신자 사번이 지정되지", "E007");
  58. model.close();
  59. return;
  60. } else {
  61. model.makeValue("/root/send/recvrid",recvrid);
  62. }
  63. var recvrnm = model.getValue("/root/main/recvrnm");
  64. if (recvrnm == "") {
  65. messageBox("수신자 명이 지정되지", "E007");
  66. model.close();
  67. return;
  68. } else {
  69. model.makeValue("/root/send/recvrnm",recvrnm);
  70. }
  71. var deptcd = model.getValue("/root/main/deptcd");
  72. if (deptcd == "") {
  73. messageBox("수신자 근무부서코드가 지정되지", "E007");
  74. model.close();
  75. return;
  76. } else {
  77. model.makeValue("/root/send/deptcd",deptcd);
  78. }
  79. var deptnm = model.getValue("/root/main/deptnm");
  80. model.makeValue("/root/send/deptnm",deptnm);
  81. var mpphonno = model.getValue("/root/main/mpphonno");
  82. model.makeValue("/root/send/mpphonno",mpphonno);
  83. var msgcnts = model.getValue("/root/main/msgcnts");
  84. model.makeValue("/root/send/msgcnts",msgcnts);
  85. model.refresh();
  86. ]]>
  87. </script>
  88. <submission id="TXZMI00209" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  89. </model>
  90. </xhtml:head>
  91. <xhtml:body pagewidth="340" pageheight="320" guideline="1,0;1,713;2,318;" style="vertical-align:middle; ">
  92. <caption id="caption6" class="tit_2" style="left:5px; top:10px; width:144px; height:14px; vertical-align:middle; ">사용자 메시지 전송</caption>
  93. <button id="btn_close" class="btn4_letter2" disabled="false" style="left:275px; top:288px; width:56px; height:22px; ">
  94. <caption>닫기</caption>
  95. <script type="javascript" ev:event="DOMActivate">
  96. <![CDATA[
  97. model.close();
  98. ]]>
  99. </script>
  100. </button>
  101. <button id="btn_msgsend" class="btn4_letter7" visibility="visible" style="left:155px; top:288px; width:116px; height:22px; ">
  102. <caption>메세지 보내기</caption>
  103. <script type="javascript" ev:event="DOMActivate">
  104. <![CDATA[
  105. // 필수 입력 확인
  106. if (tar_msgcnts.value == "" ) {
  107. messageBox("메시지는", "I003");
  108. return;
  109. }
  110. // 메시지 크기 확인
  111. var msgcnts = new String(model.getValue("/root/send/msgcnts"));
  112. var msglen = msgcnts.getByteLength();
  113. //var msglen = zmifGetMessageByteLen(model.getValue("/root/send/writemsg/send/msgcnts"));
  114. var calltype = model.getValue("/root/send/calltype");
  115. if (calltype == "msg" && msglen > 200) {
  116. messageBox("한글 100글자를 초과 입력할 수 없습니다.\n현재 "+msglen,"E");
  117. return;
  118. } else if (calltype != "msg" && msglen > 80) {
  119. messageBox("한글 40글자를 초과 입력할 수 없습니다.\n현재 "+msglen,"E");
  120. return;
  121. }
  122. if (submit("TXZMI00209") ) {
  123. messageBox("메시지 전송이 ", "I002");
  124. model.close();
  125. }
  126. ]]>
  127. </script>
  128. </button>
  129. <group id="group3" style="left:10px; top:30px; width:320px; height:115px; ">
  130. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:320px; height:115px; "/>
  131. <caption id="caption4" class="search_name" style="left:6px; top:10px; width:93px; height:17px; ">수신자 명 :</caption>
  132. <select1 id="rdo_calltype" ref="/root/send/calltype" navindex="1" appearance="full" cols="3" overflow="visible" style="left:100px; top:60px; width:85px; height:20px; border-style:none; ">
  133. <choices>
  134. <itemset nodeset="/root/init/calltype">
  135. <label ref="label"/>
  136. <value ref="value"/>
  137. </itemset>
  138. </choices>
  139. </select1>
  140. <caption id="caption2" class="search_name" style="left:6px; top:60px; width:95px; height:17px; ">호출 형태 :</caption>
  141. <caption id="caption12" class="search_name" style="left:6px; top:86px; width:99px; height:17px; ">발신 번호 :</caption>
  142. <input id="ipt_replytelno" ref="/root/send/calltelno" visibility="visible" style="left:100px; top:86px; width:130px; height:19px; "/>
  143. <caption id="caption1" class="search_name" style="left:6px; top:35px; width:91px; height:17px; ">호출 번호 :</caption>
  144. <output id="output1" ref="/root/send/recvrnm" style="left:100px; top:10px; width:100px; height:19px; "/>
  145. <output id="output2" ref="/root/send/deptnm" style="left:205px; top:10px; width:100px; height:19px; "/>
  146. <input id="output3" ref="/root/send/mpphonno" visibility="visible" style="left:100px; top:35px; width:100px; height:19px; "/>
  147. </group>
  148. <caption id="caption14" style="left:10px; top:150px; width:310px; height:20px; text-align:right; ">메시지는 최대 100자(호출시 40자)까지 입력가능합니다.</caption>
  149. <textarea id="tar_msgcnts" ref="/root/send/msgcnts" navindex="7" style="left:10px; top:170px; width:320px; height:114px; vertical-align:top; "/>
  150. </xhtml:body>
  151. </xhtml:html>