SPTEM00100_메신저전송샘플팝업.xrw 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <recvrid/>
  13. <msg/>
  14. <waityn>Y</waityn>
  15. </send>
  16. <init>
  17. </init>
  18. <hidden>
  19. </hidden>
  20. </root>
  21. </instance>
  22. <submission id="TXTSS00701" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden"/>
  23. </model>
  24. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  25. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  26. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  27. <script type="javascript">
  28. <![CDATA[/**
  29. * @group :
  30. * @ver : 2006.12.20
  31. * @by : 이상준
  32. * @---------------------------------------------------
  33. * @type : function
  34. * @access : public
  35. * @desc : 초기화
  36. * @return :
  37. * @---------------------------------------------------
  38. */
  39. function fInitialize() {
  40. // 폼의 입력값들을 초기화한다.
  41. model.resetInstanceNode("/root/send");
  42. model.refresh();
  43. rdo_waityn.select(0);
  44. }
  45. /**
  46. * @group :
  47. * @ver : 2006.12.20
  48. * @by : 이상준
  49. * @---------------------------------------------------
  50. * @type : function
  51. * @access : public
  52. * @desc : 폼값을 체크함
  53. * @return :
  54. * @---------------------------------------------------
  55. */
  56. function fMsgSubmit()
  57. {
  58. // 각 필드값을 체크한다.
  59. if(model.getValue("/root/send/recvrid").getTrim()=="")
  60. {
  61. messageBox("수신자아이디는 ", "I003");
  62. model.setFocus("ipt_recvrid");
  63. return;
  64. }
  65. if(model.getValue("/root/send/msg").getTrim()=="")
  66. {
  67. messageBox("메시지내용은 ", "I003");
  68. model.setFocus("tar_msg");
  69. return;
  70. }
  71. // 서브밋하여 결과를 표시한다.
  72. if (submit("TXTSS00701"))
  73. {
  74. messageBox(model.getValue("/root/hidden/msg/contents"), "I999");
  75. }
  76. }]]>
  77. </script>
  78. </xhtml:head>
  79. <xhtml:body pagewidth="517" pageheight="220" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  80. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:501px; height:180px; ">
  81. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">메신저전송</caption>
  82. <button id="btn_initailize" class="btn2_letter3" style="left:447px; top:5px; width:53px; height:19px; ">
  83. <caption>초기화</caption>
  84. <script type="javascript" ev:event="DOMActivate">
  85. <![CDATA[
  86. fInitialize();
  87. ]]>
  88. </script>
  89. </button>
  90. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:500px; y2:25px; "/>
  91. <caption id="caption50" class="cell_1" style="left:0px; top:54px; width:90px; height:93px; vertical-align:middle; ">메시지내용</caption>
  92. <textarea id="tar_msg" ref="/root/send/msg" navindex="4" class="text_essential" style="left:93px; top:55px; width:407px; height:89px; "/>
  93. <line id="line2" class="line_2" style="x1:0px; y1:52px; x2:500px; y2:52px; "/>
  94. <caption id="caption2" class="cell_1" style="left:0px; top:30px; width:90px; height:23px; vertical-align:middle; ">수신자아이디</caption>
  95. <input id="ipt_recvrid" ref="/root/send/recvrid" navindex="2" class="input_essential" style="left:93px; top:31px; width:407px; height:19px; "/>
  96. <line id="line4" class="line_2" style="x1:0px; y1:146px; x2:500px; y2:146px; "/>
  97. <caption id="caption3" class="cell_1" style="left:0px; top:148px; width:90px; height:23px; vertical-align:middle; ">전송대기여부</caption>
  98. <line id="line3" class="line_2" style="x1:0px; y1:170px; x2:500px; y2:170px; "/>
  99. <select1 id="rdo_waityn" ref="/root/send/waityn" overflow="visible" appearance="full" cols="2" style="left:95px; top:150px; width:90px; height:15px; border-style:none; ">
  100. <choices>
  101. <item>
  102. <label>true</label>
  103. <value>Y</value>
  104. </item>
  105. <item>
  106. <label>false</label>
  107. <value>N</value>
  108. </item>
  109. </choices>
  110. </select1>
  111. </group>
  112. <group id="grp_btn" scroll="auto" style="left:0px; top:176px; width:501px; height:27px; ">
  113. <button id="btn_confirm" class="btn4_letter2" style="left:385px; top:5px; width:56px; height:22px; ">
  114. <caption>확인</caption>
  115. <script type="javascript" ev:event="DOMActivate">
  116. <![CDATA[
  117. fMsgSubmit();
  118. ]]>
  119. </script>
  120. </button>
  121. <button id="btn_cancel" class="btn4_letter2" style="left:444px; top:5px; width:56px; height:22px; ">
  122. <caption>취소</caption>
  123. </button>
  124. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:501px; y2:0px; "/>
  125. </group>
  126. </xhtml:body>
  127. </xhtml:html>