infoSignMeeting.jsp 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%String meeting_id = request.getParameter("meeting_id");%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>会议签收情况</title>
  8. <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
  9. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  10. <script type="text/javascript" src="/shares/js/common.js"></script>
  11. <script type="text/javascript" src="/shares/js/constant.js"></script>
  12. <script type="text/javascript" src="/shares/js/yw/master1/page.js"></script>
  13. <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
  14. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  15. <script type="text/javascript" src="/shares/js/yw/core/deptUserTree.js"></script>
  16. <script type="text/javascript" src="/shares/js/yw/master1/searchBox.js"></script>
  17. <script type="text/javascript">
  18. $(function () {
  19. searchByKword();
  20. });
  21. function search(s){
  22. var p = $("#p").val();
  23. var pSize = getPize();
  24. var param={"p":p,"pSize":pSize};
  25. sendAsyncAjax(param, "MTMeetingAction.do?task=signMeetingInfo"+s, "json", function(data) {
  26. var num = data.Total;
  27. page(num,pSize,p);
  28. var datas = data.Rows;
  29. var item_name = $('#contentDiv');
  30. $(item_name).empty();//初始化table,清空table
  31. var html = '';
  32. if(datas.length == 0){
  33. html += '<div align="center" valign="middle">';
  34. html += '<div class="info_ico"><img src="/shares/images/master1/ooopic.png" width="173" height="173" /></div>';
  35. html += '<div class="info_f1">未查询到相关信息!</div>';
  36. html += '</div>';
  37. }else{
  38. var j=0;
  39. for (var i = 0; i < datas.length; i++){
  40. var arr = datas[i];
  41. var bdiv = 1;
  42. bdiv = 1 + j;
  43. if (j < 7) {j++} else {j = 0;};
  44. html += '<div class="tr_cont_new mar4 f5_new">';
  45. //html+= '<a href="#" onclick="details('+arr["meeting_id"]+')">';
  46. html += '<div class="wdrw_tiao_new bn'+bdiv+' fl"></div>';
  47. html += '<div class="tr_rw_d_new fl">';
  48. html+= '<p><img src="/shares/images/master1/rw_ico_menu.png" width="17" height="15" />';
  49. if(arr.meeting_user_type == 0){
  50. html+= '【<font color="red">未签收</font>】';
  51. }else{
  52. html+= '【已签收】';
  53. }
  54. html+= ''+arr.name+'&nbsp;&nbsp;';
  55. if(arr.participate == 0){
  56. html+= '<font color="red">不参加</font>';
  57. }else if(arr.participate == 1){
  58. html+= '本人参加';
  59. }else if(arr.participate == 2){
  60. html+= '他人参加';
  61. }
  62. if(arr.replace_person != null){
  63. html+= '&nbsp;&nbsp;'+arr.replace_person+'';
  64. }
  65. html+= '</p>';
  66. html+= '<p class="mar5">'+arr.meeting_title+'</p>';
  67. html+= '</div>';
  68. // html+= '</a>';
  69. html+= '<div class="tr_rw_btn_new fr">';
  70. //html+= '<div class="div_btn"><input class="btn_c" name="" onclick="del('+arr["meeting_id"]+')" type="button" value="删除"/></div>';
  71. //html+= '<div class="div_btn"><input class="btn_c" name="" onclick="signFor('+arr["meeting_id"]+')" type="button" value="签收情况"/></div>';
  72. html+= '</div>';
  73. html+= '</div>';
  74. }
  75. }
  76. $(item_name).html(html);
  77. });
  78. }
  79. var dialog = "";
  80. //新增
  81. function add(id){
  82. dialog = $.ligerDialog.open({ height: 420,width:550,title:"新增新闻",url: 'mtNews.do?task=toAddNews'});
  83. }
  84. //詳情
  85. function details(id){
  86. item('MTMeetingAction.do?task=info&meeting_id='+id+'');
  87. //openMsg("编辑新闻","${pageContext.request.contextPath }/mtNews.do?task=toEdit&news_id="+id+"&tabid="+ getCurrentTabId()+"","400","500");
  88. //dialog = $.ligerDialog.open({ height: 420,width:550,title:"编辑新闻",url: 'mtNews.do?task=toEdit&news_id='+id+''});
  89. }
  90. //签收情況
  91. function signFor(id){
  92. item('MTMeetingAction.do?task=infoSign&meeting_id='+id+'');
  93. //dialog = $.ligerDialog.open({ height: 500,width:650,title:"新闻查看",url: 'mtNews.do?task=info&news_id='+id+''});
  94. }
  95. //删除
  96. function del(id){
  97. if (confirm("确定要删除吗?")) {
  98. $.ajax({
  99. type : "POST",
  100. url:'MTMeetingAction.do?task=del',
  101. data : {"meeting_id":id},
  102. success: function (data) {
  103. alert("删除成功");
  104. searchByKword();
  105. },
  106. error: function(data){
  107. alert("删除失败");
  108. searchByKword();
  109. }
  110. });
  111. }
  112. }
  113. //置顶
  114. function topRow(id){
  115. if (confirm("确定要置顶吗?")) {
  116. $.ajax({
  117. type : "POST",
  118. url:'mtNews.do?task=topNews',
  119. data : {"news_id":id},
  120. success: function (data) {
  121. alert("置顶成功");
  122. searchByKword();
  123. },
  124. error: function(data){
  125. alert("置顶失败");
  126. searchByKword();
  127. }
  128. });
  129. }
  130. }
  131. //查询
  132. function searchByKword(){
  133. var meeting_id = "${requestScope.meeting_id }";
  134. //var news_title = document.getElementById("news_title");
  135. //var news_type_id = document.getElementById("news_type_id");
  136. var news_sort = document.getElementById("news_sort");
  137. var s = "";
  138. /* if(news_title.value != "" && typeof(news_title.value) != "undefined" ){
  139. s += "&news_title=" + encodeURI(encodeURI(news_title.value));
  140. } */
  141. /* if(news_type_id.value != "" && typeof(news_type_id.value) != "undefined" ){
  142. s += "&news_type_id=" + encodeURI(encodeURI(news_type_id.value));
  143. } */
  144. if(news_sort.value != "" && typeof(news_sort.value) != "undefined" ){
  145. s += "&news_sort=" + encodeURI(encodeURI(news_sort.value));
  146. }
  147. s += "&meeting_id=" + meeting_id;
  148. search(s);
  149. }
  150. //查询全部
  151. function searchAll(){
  152. $("#news_title").val("");
  153. $("#news_type_id").val("");
  154. $("#news_sort").val("");
  155. var s = "";
  156. submitItemName(s);
  157. }
  158. //获取焦点
  159. $(document).ready(function() {
  160. $("[id='news_title']").focus();
  161. });
  162. </script>
  163. </head>
  164. <span style="float:none;"></span>
  165. <body>
  166. <input type="hidden" id="news_sort" name="news_sort" value="${news_sort}">
  167. <div class="tc_b">
  168. <div id="left" style="float:left;width:100%;">
  169. <div class="tc_r">
  170. <div class="tr_con b5 f4">
  171. <div class="fl">
  172. <img src="/shares/images/master1/wdrw_ico.png" width="25" height="31" />&nbsp;会议签收情况
  173. </div>
  174. <!-- <div class="div_ck_k fr">
  175. <input class="div_cx fl" name="" type="text" />
  176. <input class="btn_ck fl" type="button" id="button" />
  177. </div> -->
  178. </div>
  179. <div class="tr_right_bg">
  180. <div id="contentDiv"></div>
  181. <jsp:include page="/yw/master1/page.jsp">
  182. <jsp:param name="functionName" value="searchByKword"/>
  183. <jsp:param name="p" value="1"/>
  184. <jsp:param name="pSize" value="7"/>
  185. </jsp:include>
  186. </div>
  187. </div>
  188. </div>
  189. <%@ include file="/yw/master1_oa/meeting/leftSignMeeting.jsp"%>
  190. </div>
  191. </body>
  192. </html>