SMZUM01600_시스템공지사항관리.xrw 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. <noticelist>
  11. <rows>
  12. <valifromdd/>
  13. <valitodd/>
  14. <content/>
  15. <lastupdtrnm/>
  16. <lastupdtdt/>
  17. <notino/>
  18. </rows>
  19. </noticelist>
  20. </main>
  21. <send>
  22. <savenotice>
  23. <valifromdd/>
  24. <valitodd/>
  25. <content/>
  26. <notino/>
  27. <status/>
  28. </savenotice>
  29. <search>
  30. <fromdd/>
  31. <todd/>
  32. <searchkeyword/>
  33. </search>
  34. </send>
  35. </root>
  36. </instance>
  37. <submission id="TRZUM01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/noticelist"/>
  38. <submission id="TXZUM01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savenotice" resultref="/root/temp"/>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. fInit();
  42. model.setFocus("ipt_searchkeyword");
  43. model.refresh();
  44. ]]>
  45. </script>
  46. </model>
  47. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  50. <script type="javascript">
  51. <![CDATA[
  52. function fInit(){
  53. model.resetInstanceNode("/root/send");
  54. model.removeNodeset("/root/main/noticelist/rows");
  55. var toDay = getCurrentDate();
  56. model.setValue("/root/send/search/fromdd",toDay);
  57. model.setValue("/root/send/search/todd",toDay);
  58. model.setValue("/root/send/savenotice/valifromdd",toDay);
  59. model.setValue("/root/send/savenotice/valitodd",toDay);
  60. }
  61. ]]>
  62. </script>
  63. </xhtml:head>
  64. <xhtml:body>
  65. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  66. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">시스템 공지사항 관리</caption>
  67. </group>
  68. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  69. <input id="ipt_valifromdd" ref="/root/send/savenotice/valifromdd" inputtype="date" style="left:762px; top:76px; width:90px; height:19px; "/>
  70. <input id="ipt_valitodd" ref="/root/send/savenotice/valitodd" inputtype="date" style="left:870px; top:76px; width:90px; height:19px; "/>
  71. <textarea id="tar_content" ref="/root/send/savenotice/content" style="left:762px; top:100px; width:430px; height:115px; "/>
  72. <caption id="caption3" class="cell_1" style="left:700px; top:99px; width:60px; height:116px; ">공지내용</caption>
  73. <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:82px; height:14px; ">공지리스트</caption>
  74. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:690px; y2:70px; "/>
  75. <line id="line2" class="line_2" style="x1:700px; y1:97px; x2:1194px; y2:97px; "/>
  76. <caption id="caption2" class="search_no_b" style="left:855px; top:76px; width:15px; height:17px; ">~</caption>
  77. <caption id="caption1" class="cell_1" style="left:700px; top:75px; width:60px; height:20px; ">공지기간</caption>
  78. <line id="line6" class="line_3" style="x1:700px; y1:216px; x2:1194px; y2:216px; "/>
  79. <datagrid id="grd_noticelist" nodeset="/root/main/noticelist/rows" autoresize="true" caption="공지기간^공지기간^공지내용^등록자^등록일시^순번" colsep="^" colwidth="70, 70, 340, 70, 120, 30" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:75px; width:690px; height:640px; ">
  80. <col ref="valifromdd" format="yyyy-mm-dd"/>
  81. <col ref="valitodd" format="yyyy-mm-dd"/>
  82. <col ref="content"/>
  83. <col ref="lastupdtrnm"/>
  84. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  85. <col ref="notino" visibility="hidden"/>
  86. <script type="javascript" ev:event="onclick">
  87. <![CDATA[
  88. if(grd_noticelist.isCell(event.target) && grd_noticelist.row >= grd_noticelist.fixedRows){
  89. var row = grd_noticelist.row;
  90. model.copyNode("/root/send/savenotice", "/root/main/noticelist/rows["+row+"]");
  91. model.refresh();
  92. }
  93. ]]>
  94. </script>
  95. </datagrid>
  96. <caption id="caption5" class="tit_2" style="left:705px; top:55px; width:82px; height:13px; ">공지등록</caption>
  97. <line id="line3" class="line_1" style="x1:700px; y1:70px; x2:1194px; y2:70px; "/>
  98. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; ">
  99. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  100. <caption id="caption7" class="search_name" style="left:16px; top:9px; width:73px; height:17px; ">검색어 :</caption>
  101. <input id="ipt_searchkeyword" ref="/root/send/search/searchkeyword" class="input_search" navindex="1" style="left:92px; top:8px; width:130px; height:14px; "/>
  102. <caption id="caption9" class="search_name" style="left:565px; top:9px; width:86px; height:17px; ">공지기간 :</caption>
  103. <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_s_essential" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:654px; top:8px; width:90px; height:19px; "/>
  104. <caption id="caption10" class="search_no_b" style="left:746px; top:8px; width:12px; height:17px; ">~</caption>
  105. <input id="ipt_todd" ref="/root/send/search/todd" class="input_s_essential" navindex="4" inputtype="date" format="yyyy-mm-dd" style="left:760px; top:8px; width:90px; height:19px; "/>
  106. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  107. <caption>조회</caption>
  108. <script type="javascript" ev:event="DOMActivate">
  109. <![CDATA[
  110. submit("TRZUM01601");
  111. ]]>
  112. </script>
  113. </button>
  114. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  115. </group>
  116. <line id="line4" class="line_3" style="x1:0px; y1:716px; x2:690px; y2:716px; "/>
  117. <button id="btn_delete" class="btn5_letter2" style="left:1152px; top:50px; width:42px; height:19px; ">
  118. <caption>삭제</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. if(messageBox("공지를","Q001") == "6"){
  122. model.setValue("/root/send/savenotice/status","D");
  123. submit("TXZUM01601",false);
  124. model.resetInstanceNode("/root/send/savenotice");
  125. model.refresh();
  126. }
  127. ]]>
  128. </script>
  129. </button>
  130. <output id="opt_notino" ref="/root/send/savenotice/notino" visibility="hidden" style="left:970px; top:76px; width:100px; height:19px; "/>
  131. <button id="btn_insert" class="btn2_letter2" style="left:1062px; top:50px; width:42px; height:19px; ">
  132. <caption>신규</caption>
  133. <script type="javascript" ev:event="DOMActivate">
  134. <![CDATA[
  135. model.resetInstanceNode("/root/send/savenotice");
  136. model.refresh();
  137. ]]>
  138. </script>
  139. </button>
  140. <button id="btn_save" class="btn5_letter2" style="left:1107px; top:50px; width:42px; height:19px; ">
  141. <caption>저장</caption>
  142. <script type="javascript" ev:event="DOMActivate">
  143. <![CDATA[
  144. var content = model.getValue("/root/send/savenotice/content");
  145. var status = "I";
  146. if(content.isByteSize(300)){
  147. if(model.getValue("/root/send/savenotice/notino") != "") {
  148. status = "U";
  149. }
  150. model.setValue("/root/send/savenotice/status",status);
  151. submit("TXZUM01601",false);
  152. model.resetInstanceNode("/root/send/savenotice");
  153. model.refresh();
  154. }else{
  155. messageBox("공지내용이","E003");
  156. }
  157. ]]>
  158. </script>
  159. </button>
  160. </group>
  161. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  162. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  163. <caption>초기화</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. fInit();
  167. model.refresh();
  168. ]]>
  169. </script>
  170. </button>
  171. <line id="line14" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  172. </group>
  173. </xhtml:body>
  174. </xhtml:html>