SMZWT00000_AWT조회.xrw 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <keyword/>
  11. <awttype>C</awttype>
  12. <qestcd/>
  13. <qestclscd/>
  14. <qeststatcd/>
  15. <answstatcd/>
  16. <userenvestblist/>
  17. <userid/>
  18. </send>
  19. <main>
  20. <words/>
  21. </main>
  22. </root>
  23. </instance>
  24. <submission id="TXZWT00200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save" replace="instance"/>
  25. <submission id="TXMMB01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  26. </model>
  27. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  28. <script type="javascript">
  29. <![CDATA[
  30. var AWTCONFIG_TGT_GRP = "041";
  31. function doSearch() {
  32. model.removenode("/root/main/words");
  33. model.makeNode("/root/main/words");
  34. model.refresh();
  35. parent.javascript.AwtSearchLike(model.getValue("/root/send/keyword"), model.getValue("/root/send/awttype"));
  36. }
  37. function doSel(row) {
  38. parent.javascript.AwtSetResult(model.getValue("/root/main/words/item[" + row + "]/data"), parent.javascript.AwtMode);
  39. }
  40. function doRefresh() {
  41. awt_grd.resizeCells();
  42. model.refresh();
  43. }
  44. function doFocus() {
  45. model.setFocus("awt_ipt");
  46. awt_grd.row = 0;
  47. if (awt_grd.rows > 1) {
  48. model.setFocus("awt_grd");
  49. awt_grd.row = 1;
  50. }
  51. }
  52. ]]>
  53. </script>
  54. <script type="javascript" ev:event="xforms-ready">
  55. <![CDATA[
  56. model.setValue("/root/send/awttype", getViewer("sysMessage").window.javascript.fGetUserAwtGrpCd());
  57. model.refresh();
  58. doSearch();
  59. ]]>
  60. </script>
  61. <json/>
  62. </xhtml:head>
  63. <xhtml:body pagewidth="380" pageheight="220" style="background-color:#3366ff; ">
  64. <shape id="awt_rect" class="roundrect_search" appearance="roundrect" style="left:2px; top:2px; width:378px; height:46px; "/>
  65. <datagrid id="awt_grd" nodeset="/root/main/words/item" autoresize="true" autosizemouse="true" caption="단어/구문^약어" colsep="^" colwidth="267, 64" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:2px; top:50px; width:378px; height:170px; ">
  66. <col ref="data"/>
  67. <col ref="keyword"/>
  68. <script type="javascript" ev:event="onkeydown">
  69. <![CDATA[
  70. if (event.keyCode == 13 || event.keyCode == 32) {
  71. doSel(awt_grd.row);
  72. }
  73. if (event.keyCode == 38) {
  74. if (awt_grd.rows == 1) {
  75. model.setFocus("awt_ipt");
  76. }
  77. if (awt_grd.row == 1) {
  78. awt_grd.row = 0;
  79. model.setFocus("awt_ipt");
  80. }
  81. }
  82. ]]>
  83. </script>
  84. <script type="javascript" ev:event="ondblclick">
  85. <![CDATA[
  86. if (awt_grd.row < 1 || awt_grd.row > awt_grd.rows)
  87. return;
  88. doSel(awt_grd.row);
  89. ]]>
  90. </script>
  91. </datagrid>
  92. <caption id="awt_cap1" class="search_name" style="left:5px; top:4px; width:82px; height:17px; ">대상그룹:</caption>
  93. <caption id="awt_cap2" class="search_name" style="left:5px; top:26px; width:82px; height:17px; ">검 색 어:</caption>
  94. <select1 id="awt_rdo" ref="/root/send/awttype" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:85px; top:4px; width:140px; height:20px; border-style:none; ">
  95. <choices>
  96. <item>
  97. <label>개인</label>
  98. <value>P</value>
  99. </item>
  100. <item>
  101. <label>공용</label>
  102. <value>C</value>
  103. </item>
  104. </choices>
  105. <script type="javascript" ev:event="onkeydown">
  106. <![CDATA[
  107. if (event.keyCode == 40) {
  108. model.setFocus("awt_ipt");
  109. }
  110. ]]>
  111. </script>
  112. <script type="javascript" ev:event="xforms-value-changed">
  113. <![CDATA[
  114. getViewer("sysMessage").window.javascript.fSetUserAwtGrpCd(model.getValue("/root/send/awttype"));
  115. model.refresh();
  116. doSearch();
  117. ]]>
  118. </script>
  119. </select1>
  120. <input id="awt_ipt" ref="/root/send/keyword" style="left:84px; top:26px; width:86px; height:19px; ">
  121. <script type="javascript" ev:event="onkeydown">
  122. <![CDATA[
  123. if (event.keyCode == 13) {
  124. model.setFocus("awt_grd");
  125. model.setFocus("awt_ipt");
  126. doSearch();
  127. }
  128. if (event.keyCode == 40) {
  129. if (awt_grd.rows > 0) {
  130. model.setFocus("awt_grd");
  131. awt_grd.row = 1;
  132. }
  133. }
  134. if (event.keyCode == 38) {
  135. model.setFocus("awt_rdo");
  136. }
  137. ]]>
  138. </script>
  139. </input>
  140. <button id="awt_btn_search" class="btn1_letter2" style="left:172px; top:25px; width:56px; height:22px; ">
  141. <caption>조회</caption>
  142. <script type="javascript" ev:event="DOMActivate">
  143. <![CDATA[
  144. doSearch();
  145. ]]>
  146. </script>
  147. </button>
  148. <script type="javascript" ev:event="onkeyup">
  149. <![CDATA[
  150. if (event.keyCode == 27) {
  151. parent.window.javascript.AwtHide();
  152. }
  153. ]]>
  154. </script>
  155. <button id="awt_btn_manage" class="btn4_letter2" style="left:312px; top:25px; width:56px; height:22px; ">
  156. <caption>관리</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. modal("SMZWT00110", "1", "", "", "SMZWT00110");
  160. ]]>
  161. </script>
  162. </button>
  163. <button id="awt_btn_close" class="btn6_letter2" style="left:255px; top:25px; width:56px; height:22px; ">
  164. <caption>닫기</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. parent.window.javascript.AwtHide();
  168. ]]>
  169. </script>
  170. </button>
  171. <button id="awt_btn_sav" class="btn2_letter6" visibility="hidden" heeight="19px" style="left:232px; top:4px; width:86px; ">
  172. <caption>기본그룹저장</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. getViewer("sysMessage").window.javascript.fSetUserAwtGrpCd(model.getValue("/root/send/awttype"));
  176. ]]>
  177. </script>
  178. </button>
  179. </xhtml:body>
  180. </xhtml:html>