当前位置:   article > 正文

OA会议管理系统之我的会议(会议排座&可拖拽座位&附源码)_完整的会议管理源码

完整的会议管理源码

目录

一、前言

1.导读

二、我的会议功能实现

1.功能介绍

2.功能分析

3.功能实现

3.1.前期准备

3.2.dao层编写

3.3.jsp页面搭建

3.4.Web层编写

4.案例展示


一、前言

1.导读

OA会议管理系统之会议发布(内含原型图&项目介绍&多功能下拉框&源码)http://t.csdn.cn/K3UNV        书接上文,在上一篇中我们完成了会议发布,但是发布就是要召开会议吗?不见得,如果选择的会议场地已经被占用或是会议人员因为某种事情而缺席等等原因应该怎么办?这时候就到了我的会议功能的重要性了,通过发布会议的会议信息会在这里显示,等待发布人员排座和提交上级领导审核通过后,方可正式召开会议。

二、我的会议功能实现

1.功能介绍

先看原型图

首先,引入眼帘的肯定是我们的初始数据,其次才是我们的主要模块的功能会议排座和送审,因为每个场地的不同所以更应该要排座,如果没有排座就不能送审,这是硬性要求,送审人也是用户身份编号为3(审批者)方可显示在我们的下拉框中。 

排座效果展示: 

明确了开发会议排座的意义
思考如何去完成这个功能?
1.查询出本场会议中的所有参与人员(参会人员、列席人员、主持人)
2.需要完成在页面上元素的拖动功能,把对应的参会人员放在指定位置,

如:重要的人就放在主位
3.将已经画好的会议座位图,保存下来,并且绑定到本次会议数据上去。

2.功能分析

1.寻找插件资料

网上其实有大把的资料,只要功夫深铁杵磨成针。

2.修改插件

 但是搜索出来的结果肯定不能达到我们的预期,需要进一步调整。

(调整代码的过程,我这里就不一一附属了,代码会在后面给到大家!!)

3.将插件部署到我们的项目中

修改后的代码肯定又是个新的jsp文件,到时候以iframe的方式嵌入到我们指定的页面即可。

4.将排座好的图片下载

  1. 座位图要写入到xxx盘(可配置-读配置文件)
  2. 修改会议中图片地址
  3. 修改服务器配置,完成图片真实硬盘地址与浏览器请求地址的映射
  4. 在页面上直接显示图片,而并不是图片地址

这里会使用第三方库 html2canvas,将指定元素 screen_body(通过其 ID 获取)的内容转换为 canvas 元素。 然后将 canvas 元素的内容转换为 base64 编码的数据 URL,赋值给指定的变量方便我们取值。

5.初始化人员信息到会议排座中

  1. 获取参会人员的所有id
  2. 拿到id之后查询用户详细信息

3.功能实现

3.1.前期准备

配置我们本地存放图片的位置

resource.properties

  1. dirPath=E:/oa/
  2. serverPath=/upload/paizuo/

温馨提示:

上面是图片本地路径下面的是服务器路径并且要存入数据库的也是下面的路径

配置文件存放的位置与我们配置Action一致

关配置还不行,还需要读取配置文件内容,这里我将这步操作封装成了一个工具类方便我们使用。

PropertiesUtil(读取图片配置工具类)

  1. package com.zking.util;
  2. import java.io.IOException;
  3. import java.io.InputStream;
  4. import java.util.Properties;
  5. public class PropertiesUtil {
  6. public static String getValue(String key) throws IOException {
  7. Properties p = new Properties();
  8. InputStream in = PropertiesUtil.class.getResourceAsStream("/resource.properties");
  9. p.load(in);
  10. return p.getProperty(key);
  11. }
  12. }

引入项目外的资源(tomcat容器方式)

3.2.dao层编写

dao层会涉及到User和Meetinginfo

MeetinginfoDao

初始化我的会议信息和送审人信息以及保存会议排座和送审人的信息修改操作

  1. package com.xw.dao;
  2. import java.sql.SQLException;
  3. import java.text.ParseException;
  4. import java.text.SimpleDateFormat;
  5. import java.util.Date;
  6. import java.util.List;
  7. import java.util.Map;
  8. import com.xw.entity.Meetinginfo;
  9. import com.zking.util.BaseDao;
  10. import com.zking.util.PageBean;
  11. import com.zking.util.StringUtils;
  12. /**
  13. * Meetingroominfo数据访问层接口实现
  14. *
  15. * @author 索隆
  16. *
  17. */
  18. public class MeetinginfoDaoImpl extends BaseDao<Meetinginfo> implements IMeetinginfoDao {
  19. /**
  20. * 新增会议发布数据
  21. *
  22. * @param minfo
  23. * @return
  24. * @throws Exception
  25. */
  26. @Override
  27. public int add(Meetinginfo minfo) throws Exception {
  28. // sql语句编写
  29. String sql = "insert into t_oa_meeting_info (title,content,canyuze,liexize,zhuchiren,location,startTime,endTime,remark) values(?,?,?,?,?,?,?,?,?)";
  30. return super.executeUpdate(sql, minfo, new String[] { "title", "content", "canyuze", "liexize", "zhuchiren",
  31. "location", "startTime", "endTime", "remark" });
  32. }
  33. /**
  34. * 我的审批数据初始化
  35. *
  36. * @param title
  37. * 会议标题
  38. * @param zhuchiren
  39. * 用户id
  40. * @return
  41. * @throws Exception
  42. */
  43. @Override
  44. public List<Map<String, Object>> list(Meetinginfo minfo, PageBean pageBean) throws Exception {
  45. // sql语句编写
  46. String sql = "SELECT\r\n" + " a.id,\r\n" + " a.title,\r\n" + " a.content,\r\n" + " a.canyuze,\r\n"
  47. + " a.liexize,\r\n" + " a.zhuchiren,\r\n" + " b.NAME,\r\n" + " d.NAME AS roomName,\r\n"
  48. + " DATE_FORMAT( a.startTime, '%Y-%m-%d %H:%i:%s' ) AS startTime,\r\n"
  49. + " DATE_FORMAT( a.endTime, '%Y-%m-%d %H:%i:%s' ) AS endTime,\r\n" + " a.state,\r\n" + " (\r\n"
  50. + "CASE\r\n" + " \r\n" + " WHEN a.state = '1' THEN\r\n" + " '新建' \r\n"
  51. + " WHEN a.state = '2' THEN\r\n" + " '待审核' \r\n" + " WHEN a.state = '3' THEN\r\n" + " '驳回' \r\n"
  52. + " WHEN a.state = '4' THEN\r\n" + " '待开' \r\n" + " WHEN a.state = '5' THEN\r\n" + " '进行中' \r\n"
  53. + " WHEN a.state = '6' THEN\r\n" + " '开启投票' \r\n" + " WHEN a.state = '7' THEN\r\n"
  54. + " '结束会议' ELSE '会议取消' \r\n" + "END \r\n" + " ) AS meetingState,\r\n" + " a.seatPic,\r\n"
  55. + " a.remark,\r\n" + " a.auditor,\r\n" + " c.NAME AS auditorName \r\n" + "FROM\r\n"
  56. + " t_oa_meeting_info a\r\n" + " INNER JOIN t_oa_user b ON a.zhuchiren = b.id\r\n"
  57. + " LEFT JOIN t_oa_user c ON a.auditor = c.id\r\n"
  58. + " LEFT JOIN t_oa_meeting_room d ON d.id = a.location \r\n" + "WHERE\r\n" + " 1 = 1 ";
  59. // 进行参数非空判断
  60. String title = minfo.getTitle();// 会议标题
  61. String auditor = minfo.getAuditor();// 会议状态
  62. Integer state = minfo.getState();// 会议状态
  63. // 根据标题查找
  64. if (StringUtils.isNotBlank(title)) {
  65. sql += " AND title LIKE '%" + title + "%'";
  66. }
  67. // 根据主持人查找
  68. if (StringUtils.isNotBlank(auditor)) {
  69. sql += " and auditor = '" + auditor + "'";
  70. }
  71. // 根据会议状态查找
  72. if (state != null) {
  73. sql += " and state = " + 2;
  74. }
  75. // 按照id降序排序
  76. sql += " ORDER BY a.id DESC";
  77. return super.executeQuery(sql, pageBean);
  78. }
  79. @Override
  80. public List<Map<String, Object>> Bystatelist(Meetinginfo minfo, PageBean pageBean) throws Exception {
  81. // sql语句编写
  82. String sql = "SELECT\r\n" + " a.id,\r\n" + " a.title,\r\n" + " a.content,\r\n" + " a.canyuze,\r\n"
  83. + " a.liexize,\r\n" + " a.zhuchiren,\r\n" + " b.NAME,\r\n" + " d.NAME AS roomName,\r\n"
  84. + " DATE_FORMAT( a.startTime, '%Y-%m-%d %H:%i:%s' ) AS startTime,\r\n"
  85. + " DATE_FORMAT( a.endTime, '%Y-%m-%d %H:%i:%s' ) AS endTime,\r\n" + " a.state,\r\n" + " (\r\n"
  86. + "CASE\r\n" + " \r\n" + " WHEN a.state = '1' THEN\r\n" + " '新建' \r\n"
  87. + " WHEN a.state = '2' THEN\r\n" + " '待审核' \r\n" + " WHEN a.state = '3' THEN\r\n" + " '驳回' \r\n"
  88. + " WHEN a.state = '4' THEN\r\n" + " '待开' \r\n" + " WHEN a.state = '5' THEN\r\n" + " '进行中' \r\n"
  89. + " WHEN a.state = '6' THEN\r\n" + " '开启投票' \r\n" + " WHEN a.state = '7' THEN\r\n"
  90. + " '结束会议' ELSE '会议取消' \r\n" + "END \r\n" + " ) AS meetingState,\r\n" + " a.seatPic,\r\n"
  91. + " a.remark,\r\n" + " a.auditor,\r\n" + " c.NAME AS auditorName \r\n" + "FROM\r\n"
  92. + " t_oa_meeting_info a\r\n" + " INNER JOIN t_oa_user b ON a.zhuchiren = b.id\r\n"
  93. + " LEFT JOIN t_oa_user c ON a.auditor = c.id\r\n"
  94. + " LEFT JOIN t_oa_meeting_room d ON d.id = a.location \r\n" + "WHERE\r\n" + " 1 = 1 ";
  95. // 进行参数非空判断
  96. String title = minfo.getTitle();// 会议标题
  97. Integer state = minfo.getState();// 会议状态
  98. String zhuchiren = minfo.getZhuchiren();// 会议主持人
  99. // 根据标题查找
  100. if (StringUtils.isNotBlank(title)) {
  101. sql += " AND title LIKE '%" + title + "%'";
  102. }
  103. // 根据主持人查找
  104. if (StringUtils.isNotBlank(zhuchiren)) {
  105. sql += " and zhuchiren = '" + zhuchiren + "'";
  106. }
  107. // 根据会议状态查找
  108. if (state != null&&state!=0) {
  109. sql += " and state = " + state;
  110. }
  111. // 按照id降序排序
  112. sql += " ORDER BY a.id DESC";
  113. return super.executeQuery(sql, pageBean);
  114. }
  115. @Override
  116. public int updateSeatPicById(Meetinginfo meetinginfo) throws Exception {
  117. String sql = "UPDATE t_oa_meeting_info set seatPic =? WHERE id=?";
  118. return super.executeUpdate(sql, meetinginfo, new String[] { "seatPic", "id" });
  119. }
  120. @Override
  121. public int updateAuditorById(Meetinginfo meetinginfo) throws Exception {
  122. String sql = "UPDATE t_oa_meeting_info set auditor =?,state=2 WHERE id=?";
  123. return super.executeUpdate(sql, meetinginfo, new String[] { "auditor", "id" });
  124. }
  125. }

UserDao

初始化我的会议排座人员信息

  1. package com.xw.dao;
  2. import java.util.List;
  3. import java.util.Map;
  4. import com.xw.entity.User;
  5. import com.zking.util.BaseDao;
  6. import com.zking.util.PageBean;
  7. import com.zking.util.StringUtils;
  8. /**
  9. * 用户
  10. *
  11. * @author 索隆
  12. *
  13. */
  14. public class UserDao extends BaseDao<User> {
  15. //会议排座的人员信息绑定
  16. public List<User> queryUserByMeetingId(Integer valueOf) throws Exception {
  17. String sql="select * from t_oa_user where FIND_IN_SET(id,(select CONCAT(canyuze,',',liexize,',',zhuchiren) from t_oa_meeting_info where id="+valueOf+" ))";
  18. return super.executeQuery(sql,User.class, null);
  19. }
  20. }

3.3.jsp页面搭建

先将我们的第三方库导入

seatPic.jsp(会议排座)

  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  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=UTF-8">
  7. <%@ include file="/common/static.jsp"%>
  8. <title>会议座位安排</title>
  9. </head>
  10. <style type="text/css">
  11. * {
  12. padding: 0;
  13. margin: 0;
  14. }
  15. body{
  16. width: 100%;
  17. height: 100%;
  18. /* background: red; */
  19. }
  20. .tips {
  21. /* position: absolute; */
  22. background: pink;
  23. display: inline-block;
  24. height: 60px;
  25. /* width: 60px; */
  26. line-height: 60px;
  27. text-align: center;
  28. margin: 5px;
  29. padding: 0 10px;
  30. }
  31. .add {
  32. position: fixed;
  33. right: 10px;
  34. top: 10px;
  35. display:inline;
  36. }
  37. #tu {
  38. width: 100%;
  39. height: 100%;
  40. /* background: lightblue; */
  41. /*background: url('u=3318199716,2583790385&fm=26&gp=0.jpg');*/
  42. }
  43. .layui-input{
  44. height:30px;
  45. }
  46. </style>
  47. <body id="screen_body">
  48. <div id="tu"></div>
  49. <!-- 下面不要使用layui的表单行内模式,会导致canvas的toDataURL()数据为 data:, -->
  50. <div class="add">
  51. <div style="display:inline-block;">
  52. <input id="dan_input" type="text" value="" class="layui-input">
  53. </div>
  54. <div style="display:inline-block;">
  55. <button onclick="return addDanMu()" class="layui-btn layui-btn-sm">添加座位</button><input id="jie_input" type="button" class="layui-btn layui-btn-sm" value='下载'>
  56. </div>
  57. </div>
  58. </body>
  59. <script type="text/javascript">
  60. var $id = function(id) {
  61. return document.getElementById(id);
  62. }
  63. //会议排座拖拽
  64. var dragF = {
  65. locked: false,
  66. lastObj: undefined,
  67. drag: function(obj) {
  68. $id(obj).onmousedown = function(e) {
  69. var e = e ? e : window.event;
  70. if (!window.event) {
  71. e.preventDefault();
  72. } /* 阻止标注<a href='/site/js-5791-1.html' target='_blank'><u>浏览器</u></a>下拖动a,img的默认事件 */
  73. dragF.locked = true;
  74. $id(obj).style.position = "absolute";
  75. $id(obj).style.zIndex = "100";
  76. if (dragF.lastObj && dragF.lastObj != $id(obj)) { /* 多元素拖动需要恢复上次元素状态 */
  77. dragF.lastObj.style.zIndex = "1";
  78. }
  79. dragF.lastObj = $id(obj);
  80. var tempX = $id(obj).offsetLeft;
  81. var tempY = $id(obj).offsetTop;
  82. dragF.x = e.clientX;
  83. dragF.y = e.clientY;
  84. document.onmousemove = function(e) {
  85. var e = e ? e : window.event;
  86. if (dragF.locked == false) return false;
  87. $id(obj).style.left = tempX + e.clientX - dragF.x + "px";
  88. $id(obj).style.top = tempY + e.clientY - dragF.y + "px";
  89. if (window.event) {
  90. e.returnValue = false;
  91. } /* 阻止ie下a,img的默认事件 */
  92. }
  93. document.onmouseup = function() {
  94. dragF.locked = false;
  95. }
  96. }
  97. }
  98. }
  99. </script>
  100. <script type="text/javascript">
  101. var layer;
  102. layui.use(['layer'],function(){
  103. layer=layui.layer;
  104. //初始化会议排座:根据会议ID获取参会的所有人员的名字(主持人+参会人+列席人)
  105. initMeetingUsers();
  106. //绘制会议排座图片
  107. $("#jie_input").on("click", function(event) {
  108. $('.add').hide();
  109. event.preventDefault();
  110. html2canvas(document.getElementById("screen_body")).then(function(canvas) {
  111. var dataUrl = canvas.toDataURL();
  112. console.log(dataUrl);
  113. var param = {};
  114. param['seatPic'] = dataUrl;
  115. param['id'] = '${param.id}';
  116. param['methodName']='updateSeatPicById';
  117. console.log(param);
  118. //此处需要完成会议排座图片上传操作
  119. $.post('Meetinginfo.action',param,function(rs){
  120. if(rs.success){
  121. //先得到当前iframe层的索引
  122. var index = parent.layer.getFrameIndex(window.name);
  123. //再执行关闭
  124. parent.layer.close(index);
  125. //调用父页面的刷新方法
  126. parent.query();
  127. }else{
  128. layer.msg(rs.msg,{icon:5},function(){});
  129. }
  130. },'json');
  131. });
  132. });
  133. });
  134. function initMeetingUsers(){
  135. //http://localhost:8080/xxx/seatPic.jsp?id=12 -> ${param.id}
  136. $.getJSON('user.action',{
  137. 'methodName':'queryUserByMeetingId',
  138. 'meetingId':'${param.id}'
  139. },function(rs){
  140. console.log(rs);
  141. let data=rs.data;
  142. $.each(data,function(i,e){
  143. $('#dan_input').val(e.name);
  144. addDanMu();
  145. });
  146. });
  147. }
  148. //添加会议排座
  149. function addDanMu() {
  150. var dan = document.getElementById("dan_input").value;
  151. if (dan == "") {
  152. alert("请输入弹幕~");
  153. return false;
  154. } else {
  155. document.getElementById("dan_input").value = ""; //清空 弹幕输入框
  156. // var br = document.createElement("BR"); // <br />
  157. var node = document.createElement("DIV"); // <div>
  158. var tipsArr = document.getElementsByClassName('tips');
  159. var i;
  160. // console.log(parseInt(tipsArr[tipsArr.length-1].id.substr(4))+1);
  161. if (tipsArr.length == 0) {
  162. i = 1
  163. } else {
  164. i = parseInt(tipsArr[tipsArr.length - 1].id.substr(4)) + 1;
  165. }
  166. // var aNode = document.createElement("P"); // <p>
  167. node.setAttribute("class", "tips");
  168. node.setAttribute("id", "tips" + i);
  169. node.setAttribute("onmouseover", "dragF.drag('tips" + i + "');");
  170. var textnode = document.createTextNode(dan); // 创建个 文本节点, 将用户输入的弹幕,存入 创建的 元素节点 <p> 中
  171. // aNode.appendChild(textnode);
  172. node.appendChild(textnode);
  173. // document.body.appendChild(br);
  174. // document.body.appendChild(node);
  175. document.getElementById("tu").appendChild(node);
  176. return true;
  177. }
  178. }
  179. </script>
  180. </html>

myMeeting.jsp(逻辑代码分离)

  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ include file="/common/static.jsp"%>
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  8. <script type="text/javascript" src="static/js/meeting/myMeeting.js"></script>
  9. <title>我的会议</title>
  10. </head>
  11. <style>
  12. body {
  13. margin: 15px;
  14. }
  15. .layui-table-cell {
  16. height: inherit;
  17. }
  18. .layui-layer-page .layui-layer-content {
  19. overflow: visible !important;
  20. }
  21. </style>
  22. <body>
  23. <!-- 搜索栏 -->
  24. <div class="layui-form-item" style="margin: 15px 0px;">
  25. <div class="layui-inline">
  26. <label class="layui-form-label">会议标题</label>
  27. <div class="layui-input-inline">
  28. <input type="hidden" id="zhuchiren" value="${user.id }" />
  29. <input type="text" id="title" autocomplete="off" class="layui-input" placeholder="请输入需要查询的会议标题">
  30. </div>
  31. </div>
  32. <div class="layui-inline">
  33. <button id="btn_search" type="button" class="layui-btn">
  34. <i class="layui-icon layui-icon-search"></i> 查询
  35. </button>
  36. </div>
  37. </div>
  38. <!-- 数据表格 -->
  39. <table id="tb" lay-filter="tb" class="layui-table"
  40. style="margin-top: -15px"></table>
  41. <!-- 对话框(送审) -->
  42. <div id="audit" style="display: none;">
  43. <form style="margin: 20px 15px;" class="layui-form layui-form-pane"
  44. lay-filter="audit">
  45. <div class="layui-inline">
  46. <label class="layui-form-label">送审人</label>
  47. <div class="layui-input-inline">
  48. <input type="hidden" id="meetingId" value="" />
  49. <select
  50. id="auditor" style="poistion: relative; z-index: 1000">
  51. <option value="">---请选择---</option>
  52. </select>
  53. </div>
  54. <div class="layui-input-inline">
  55. <button id="btn_auditor" class="layui-btn">送审</button>
  56. </div>
  57. </div>
  58. </form>
  59. </div>
  60. <!-- 对话框(反馈详情) -->
  61. <div id="feedback" style="display: none; padding: 15px;">
  62. <fieldset class="layui-elem-field layui-field-title">
  63. <legend>参会人员</legend>
  64. </fieldset>
  65. <blockquote class="layui-elem-quote" id="meeting_ok"></blockquote>
  66. <fieldset class="layui-elem-field layui-field-title">
  67. <legend>缺席人员</legend>
  68. </fieldset>
  69. <blockquote class="layui-elem-quote" id="meeting_no"></blockquote>
  70. <fieldset class="layui-elem-field layui-field-title">
  71. <legend>未读人员</legend>
  72. </fieldset>
  73. <blockquote class="layui-elem-quote" id="meeting_noread"></blockquote>
  74. </div>
  75. <script type="text/html" id="tbar">
  76. {{# if(d.state==1 || d.state==3){ }}
  77. <a class="layui-btn layui-btn-xs" lay-event="seat">会议排座</a>
  78. <a class="layui-btn layui-btn-xs" lay-event="send">送审</a>
  79. <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
  80. {{# } }}
  81. {{# if(d.state!=1 && d.state!=2 && d.state!=3){ }}
  82. <a class="layui-btn layui-btn-xs" lay-event="back">反馈详情</a>
  83. {{# } }}
  84. </script>
  85. </body>
  86. </html>

myMeeting.js

  1. //--------------------------------------------------我的会议------------------------------------------------------
  2. var table,$,layer,form;
  3. var row;
  4. layui.use(['table','jquery','layer','form'], function(){
  5. table = layui.table
  6. ,layer=layui.layer
  7. ,$=layui.jquery
  8. ,form=layui.form;
  9. initTable();
  10. //为查询按钮设置点击事件
  11. $("#btn_search").click(function(){
  12. query();
  13. })
  14. //初始化审批人
  15. initFormSelects();
  16. //送审
  17. $('#btn_auditor').click(function(){
  18. $.post('Meetinginfo.action',{
  19. 'methodName':'updateAuditorById',
  20. 'id':$('#meetingId').val(),
  21. 'auditor':$('#auditor').val()
  22. },function(rs){
  23. console.log(rs.success);
  24. if(rs.success){
  25. //关闭对话框
  26. layer.closeAll();
  27. layer.msg(rs.msg,{icon:6},function(){});
  28. //刷新列表
  29. query();
  30. //隐藏页面层
  31. $('#audit').hide();
  32. $(document).on('click', '.layui-layer-close', function() {
  33. layer.closeAll();
  34. $('#audit').hide();
  35. });
  36. }else{
  37. layer.msg(rs.msg,{icon:5},function(){});
  38. }
  39. },'json');
  40. return false;
  41. });
  42. });
  43. //查询的点击事件
  44. function query(){
  45. table.reload('tb', {
  46. url: 'Meetinginfo.action?methodName=BystateList', //请求地址
  47. method: 'POST', //请求方式,GET或者POST
  48. page: true, //是否分页
  49. where: { //设定异步数据接口的额外参数,任意设
  50. 'title':$('#title').val(),
  51. },
  52. request: { //自定义分页请求参数名
  53. pageName: 'page', //页码的参数名称,默认:page
  54. limitName: 'rows' //每页数据量的参数名,默认:limit
  55. },
  56. done: function (res) {
  57. //console.log(res);
  58. }
  59. })
  60. };
  61. //将分页查询方法封装
  62. function initTable(){
  63. table.render({
  64. elem: '#tb'
  65. ,url:'Meetinginfo.action?methodName=BystateList'
  66. ,title: '我的会议'
  67. ,cols: [[
  68. {type: 'checkbox', fixed: 'left'}
  69. ,{field:'id', title:'会议编号', width:140, fixed: 'left', unresize: true, sort: true}
  70. ,{field:'title', title:'会议标题', width:180, edit: 'text'}
  71. ,{field:'roomName', title:'会议地点', width:150, edit: 'text'}
  72. ,{field:'startTime', title:'开始时间', width:150, edit: 'text'}
  73. ,{field:'endTime', title:'结束时间', width:120, edit: 'text'}
  74. ,{field:'meetingState', title:'会议状态', width:120, edit: 'text'}
  75. ,{field:'seatPic', title:'会议排座', width:120 ,
  76. templet: function(d){
  77. if(d.seatPic==null || d.seatPic=="")
  78. return "尚未排座";
  79. else
  80. return "<img width='35px' src='"+d.seatPic+"'/>";
  81. }}
  82. ,{field:'auditorName', title:'审批人', width:120,
  83. templet: function(d){
  84. if(d.auditorName==null || d.auditorName=="")
  85. return "未送审";
  86. else
  87. return "<p width='120px' >"+d.auditorName+"";
  88. }}
  89. ,{fixed: 'right', title:'操作', toolbar: '#tbar', width:300}
  90. ]]
  91. ,page: true
  92. });
  93. //工具条事件
  94. table.on('tool(tb)', function(obj){ //注:tool 是工具条事件名,test 是 table 原始容器的属性 lay-filter="对应的值"
  95. row = obj.data; //获得当前行数据
  96. var layEvent = obj.event; //获得 lay-event 对应的值(也可以是表头的 event 参数对应的值)
  97. var tr = obj.tr; //获得当前行 tr 的 DOM 对象(如果有的话)
  98. //console.log(row);
  99. if(layEvent === 'seat'){ //会议排座
  100. open(row.id);
  101. } else if(layEvent === 'send'){ //送审
  102. if(row.seatPic==null || row.seatPic==""){
  103. layer.msg('先请完成会议排座,再进行送审操作!',function(){});
  104. return false;
  105. }
  106. //在打开送审页面之前,先请完成会议ID的赋值操作(送审人)
  107. $('#meetingId').val(row.id);
  108. openLayerAudit();
  109. } else if(layEvent==="back"){ //反馈详情
  110. openLayerFeedBack(row.id);
  111. }
  112. });
  113. }
  114. //打开会议排座对话框
  115. function open(id){
  116. layer.open({
  117. type: 2, //layer提供了5种层类型。可传入的值有:0(信息框,默认)1(页面层)2(iframe层)3(加载层)4(tips层)
  118. title: '会议排座', //对话框标题
  119. area: ['700px', '600px'], //宽高
  120. skin: 'layui-layer-rim', //样式类名
  121. content: '../../Layui/jsp/meeting/seatPic.jsp?id='+id//弹出内容。可以传入普通的html内容,还可以指定DOM,更可以随着type的不同而不同
  122. });
  123. }
  124. //会议送审
  125. function openLayerAudit(){
  126. //每次打开都对送审人进行初始化默认值设置
  127. $('#auditor').val("");
  128. //必须重新渲染
  129. form.render('select');
  130. //弹出对话框
  131. layer.open({
  132. type: 1, //layer提供了5种层类型。可传入的值有:0(信息框,默认)1(页面层)2(iframe层)3(加载层)4(tips层)
  133. title:'会议送审',
  134. area: ['426px', '140px'], //宽高
  135. skin: 'layui-layer-rim', //样式类名
  136. content: $('#audit'), //弹出内容。可以传入普通的html内容,还可以指定DOM,更可以随着type的不同而不同
  137. });
  138. }
  139. //初始化审批人
  140. function initFormSelects(){
  141. $.getJSON('user.action',{
  142. 'methodName':'queryUaerfromSelect',
  143. 'rid':'3'
  144. },function(rs){
  145. //console.log(rs);
  146. let data=rs.data;
  147. $.each(data,function(i,e){
  148. $('#auditor').append(new Option(e.name,e.value));
  149. });
  150. //重新渲染
  151. form.render('select');
  152. });
  153. }
  154. //反馈详情
  155. function openLayerFeedBack(id){
  156. $.getJSON('MeetingFeedBack.action',{
  157. methodName:'queryMeetingBackByMeetingId',
  158. meetingId:id
  159. },function(data){
  160. //先清空人员信息
  161. $('#meeting_ok').html("");
  162. $('#meeting_no').html("");
  163. $('#meeting_noread').html("");
  164. if(data.success){
  165. //console.log(data.data);
  166. $.each(data.data,function(i,e){
  167. if(e.result==1)
  168. $('#meeting_ok').html(e.NAMES);
  169. else if(e.result==2)
  170. $('#meeting_no').html(e.NAMES);
  171. else
  172. $('#meeting_noread').html(e.NAMES);
  173. });
  174. //弹出对话框
  175. layer.open({
  176. type: 1, //layer提供了5种层类型。可传入的值有:0(信息框,默认)1(页面层)2(iframe层)3(加载层)4(tips层)
  177. title:'反馈详情',
  178. area: ['600px', '460px'], //宽高
  179. skin: 'layui-layer-rim', //样式类名
  180. content: $('#feedback'), //弹出内容。可以传入普通的html内容,还可以指定DOM,更可以随着type的不同而不同
  181. btn:['关闭'],
  182. yes:function(index,layero){
  183. layer.closeAll();
  184. $('#feedback').hide(); //隐藏页面层
  185. //获取到关闭“x”,隐藏页面层
  186. $(document).on('click', '.layui-layer-close', function() {
  187. layer.closeAll();
  188. $('#feedback').hide();
  189. });
  190. }
  191. });
  192. }
  193. });
  194. }

3.4.Web层编写

Useraction

  1. package com.xw.web;
  2. import java.util.List;
  3. import java.util.Map;
  4. import javax.servlet.http.HttpServletRequest;
  5. import javax.servlet.http.HttpServletResponse;
  6. import javax.servlet.http.HttpSession;
  7. import com.xw.entity.User;
  8. import com.xw.dao.UserDao;
  9. import com.zking.framework.ActionSupport;
  10. import com.zking.framework.ModelDriver;
  11. import com.zking.util.PageBean;
  12. import com.zking.util.R;
  13. import com.zking.util.ResponseUtil;
  14. import com.zking.util.StringUtils;
  15. public class Useraction extends ActionSupport implements ModelDriver<User> {
  16. User user = new User();
  17. UserDao userdao = new UserDao();
  18. /**
  19. * 会议排座人员信息绑定
  20. *
  21. * @param req
  22. * @param resp
  23. * @return
  24. * @throws Exception
  25. */
  26. public void queryUserByMeetingId(HttpServletRequest req, HttpServletResponse resp) throws Exception {
  27. String meetingId = req.getParameter("meetingId");
  28. List<User> users= userdao.queryUserByMeetingId(Integer.valueOf(meetingId));
  29. ResponseUtil.writeJson(resp, R.ok(0, "查询成功", users));
  30. }
  31. @Override
  32. public User getModel() {
  33. return user;
  34. }
  35. }

MeetinginfoAction

  1. package com.xw.web;
  2. import java.text.SimpleDateFormat;
  3. import java.util.Date;
  4. import java.util.Enumeration;
  5. import java.util.List;
  6. import java.util.Map;
  7. import java.util.UUID;
  8. import javax.security.auth.message.callback.PrivateKeyCallback.Request;
  9. import javax.servlet.http.HttpServletRequest;
  10. import javax.servlet.http.HttpServletResponse;
  11. import javax.servlet.http.HttpSession;
  12. import org.apache.commons.beanutils.ConvertUtils;
  13. import com.sun.xml.internal.ws.encoding.soap.SOAP12Constants;
  14. import com.xw.biz.IMeetinginfoBiz;
  15. import com.xw.biz.MeetinginfoBizImpl;
  16. import com.xw.entity.Meetinginfo;
  17. import com.xw.entity.User;
  18. import com.zking.framework.ActionSupport;
  19. import com.zking.framework.ModelDriver;
  20. import com.zking.util.Base64ImageUtils;
  21. import com.zking.util.DateUtil;
  22. import com.zking.util.MyDateConverter;
  23. import com.zking.util.PageBean;
  24. import com.zking.util.PropertiesUtil;
  25. import com.zking.util.R;
  26. import com.zking.util.ResponseUtil;
  27. import com.zking.util.StringUtils;
  28. /**
  29. * 会议管理
  30. *
  31. * @author 索隆
  32. *
  33. */
  34. public class MeetinginfoAction extends ActionSupport implements ModelDriver<Meetinginfo> {
  35. private Meetinginfo Meetinginfo = new Meetinginfo();
  36. private IMeetinginfoBiz imd = new MeetinginfoBizImpl();
  37. /**
  38. * 会议送审
  39. *
  40. * @param req
  41. * @param resp
  42. * @throws Exception
  43. */
  44. public void updateAuditorById(HttpServletRequest req, HttpServletResponse resp) throws Exception {
  45. // 调用的方法
  46. int update = imd.updateAuditorById(Meetinginfo);
  47. if (update > 0) {
  48. // 会议送审成功
  49. ResponseUtil.writeJson(resp, R.ok(0, "会议送审成功"));
  50. } else {
  51. // 会议送审失败
  52. ResponseUtil.writeJson(resp, R.error(1, "会议送审失败"));
  53. }
  54. }
  55. /**
  56. * 会议发布的排座图片存储
  57. *
  58. * @param req
  59. * @param resp
  60. * @throws Exception
  61. */
  62. public void updateSeatPicById(HttpServletRequest req, HttpServletResponse resp) throws Exception {
  63. // 获取图片的存放地址
  64. String dirPath = PropertiesUtil.getValue("dirPath");
  65. // 获取浏览器请求路径
  66. String serverPath = PropertiesUtil.getValue("serverPath");
  67. // 生成图片的名称
  68. String finleName = UUID.randomUUID().toString().replaceAll("-", "") + ".png";
  69. Meetinginfo.getSeatPic();
  70. Base64ImageUtils.GenerateImage(Meetinginfo.getSeatPic().replaceAll("data:image/png;base64,", ""),
  71. dirPath + finleName);
  72. // 将数据库的图片内容进行修改从存放地址改变成请求路径
  73. Meetinginfo.setSeatPic(serverPath + finleName);
  74. // 修改会议信息的SeatPic字段
  75. int n = imd.updateSeatPicById(Meetinginfo);
  76. if (n > 0) {
  77. // 会议排座成功
  78. ResponseUtil.writeJson(resp, R.ok(0, "会议排座成功"));
  79. } else {
  80. // 会议排座失败
  81. ResponseUtil.writeJson(resp, R.error(1, "会议排座失败"));
  82. }
  83. }
  84. /**
  85. * 初始化我的会议数据
  86. *
  87. * @param req
  88. * @param resp
  89. * @throws Exception
  90. */
  91. public void BystateList(HttpServletRequest req, HttpServletResponse resp) throws Exception {
  92. // 初始化PageBean
  93. PageBean pageBean = new PageBean();
  94. pageBean.setRequest(req);
  95. // 获取当前登陆的用户id
  96. HttpSession session = req.getSession();
  97. User user = (User) session.getAttribute("user");
  98. if (user != null) {
  99. Meetinginfo.setZhuchiren(user.getId() + "");
  100. }
  101. // 初始化数据
  102. String title = req.getParameter("title");
  103. String state = req.getParameter("state");
  104. if (StringUtils.isNotBlank(title)) {
  105. Meetinginfo.setTitle(title);
  106. }
  107. if (StringUtils.isNotBlank(state)) {
  108. Meetinginfo.setState(Integer.valueOf(state));
  109. }
  110. List<Map<String, Object>> list = imd.Bystatelist(Meetinginfo, pageBean);
  111. // 利用R工具类制造出符合要求的json格式数据
  112. ResponseUtil.writeJson(resp, R.ok(0, "查询成功", pageBean.getTotal(), list));
  113. }
  114. @Override
  115. public Meetinginfo getModel() {
  116. // 将获取到时间String类型转换成date类型
  117. ConvertUtils.register(new MyDateConverter(), Date.class);
  118. return Meetinginfo;
  119. }
  120. }

温馨提示:

先用PropertiesUtil工具类读取配置文件,再用Base64ImageUtils通过io流的方式生成图片

Base64ImageUtils(生成图片的工具类)

  1. package com.zking.util;
  2. import java.io.FileInputStream;
  3. import java.io.FileOutputStream;
  4. import java.io.IOException;
  5. import java.io.InputStream;
  6. import java.io.OutputStream;
  7. import sun.misc.BASE64Decoder;
  8. import sun.misc.BASE64Encoder;
  9. public class Base64ImageUtils {
  10. public static void main(String[] args) {
  11. // 测试从Base64编码转换为图片文件
  12. // String strImg =
  13. // "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCADcALIDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqs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aKKAP/2Xd3d2lkNWNuTWV4OGFGcEFwcEYrZGl2VkcwUk5LQT09";
  14. // 使用index.js中 保存图片中console.log(url) 替换成strImg
  15. String strImg = "iVBORw0KGgoAAAANSUhEUgAAAzgAAACWCAYAAAASci2BAAAAAXNSR0IArs4c6QAAIABJREFUeF7tnQfUBUV1x/92sWGJ3aggpoBgQexiQ1FsYD0oioi9oWhEFEVQRIwVewNR7Ah2wQIqKEYQBYQUEcEIiAawRcWWnH8yexwer+zum92d2f3NOXu+97035d7fzJa7M3PvZUSCAAQgAAEIQAACEIAABCAwEgKXGYkeqAEBCEAAAhCAAAQgAAEIQEAYOAwCCEAAAhCAAAQgAAEIQGA0BDBwRtOVKAIBCEAAAhCAAAQgAAEIYOAwBiAAAQhAAAIQgAAEIACB0RDAwBlNV6IIBCAAAQhAAAIQgAAEIICBwxiAAAQgAAEIQAACEIAABEZDAANnNF2JIhCAAAQgAAEIQAACEIAABg5jAAIQgAAEIAABCEAAAhAYDQEMnNF0JYpAAAIQgAAEIAABCEAAAhg4jAEIQAACEIAABCAAAQhAYDQEMHBG05UoAgEIQAACEIAABCAAAQhg4DAGIAABCEAAAhCAAAQgAIHREMDAGU1XoggEIAABCEAAAhCAAAQggIHDGIAABCAAAQhAAAIQgAAERkMAA2c0XYkiEIAABCAAAQhAAAIQgAAGDmMAAhCAAAQgAAEIQAACEBgNAQyc0XQlikAAAhCAAAQgAAEIQAACGDiMAQhAAAIQgAAEIAABCEBgNAQwcEbTlSgCAQhAAAIQgAAEIAABCGDgMAYgAAEIQAACEIAABCAAgdEQwMAZTVeiCAQgMGEC15F0M0k3D0f8eYvA5SWSDpF0zoQ5oToEIAABCEyAAAbOBDoZFSEAgdESuKekYxpq9zFJ75f0uYblyA4BCEAAAhAoggAGThHdhJAQgAAELkVgf0kvir49WdLZks6K/laf7yhpZ0mPmqnlSEknheM7oSyoIQABCEAAAkUTwMApuvvWEv5uknaQtHuNWnaVdFCNfGSBAAT6IfA/UTMHzBg6yyS4c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4IF18C7oTIDZiMTrNrRrZOisWxflIQABCEAAAhC4JIF7SjomfDW7J+dGkjadOex9rUo/jQybiwALgakTwMAZ9wiIl6qtqyljZV2ClIcABCAAAQgsJ7C/pBc1hPSsYNw0LEZ2CIyXAA+t4+1bNIMABCAAAQhAoDwCi15O2uPa6TPHueWph8QQ6J4ABk73jGkBAhCAAAQgAAEIQAACEOiJAAZOT6BpBgIQgAAEIAABCEAAAhDongAGTveMaQECEIAABCAAAQhAAAIQ6IkABk5PoGkGAhCAAAQgAAEIQAACEOieAAZO94xpAQIQgAAEIAABCEAAAhDoiQAGTk+gaQYCEIAABCAAAQhAAAIQ6J4ABk73jGkBAhCAAAQgAAEIQAACEOiJAAZOT6BpBgIQgAAEIAABCEAAAhDongAGTveMaQECEIAABCAAAQhAAAIQ6IkABk5PoGkGAhCAAAQgAAEIQAACEOieAAZO94xpAQIQgAAEIAABCEAAAhDoiQAGTk+gaQYCEIAABCAAAQhAAAIQ6J4ABk73jGkBAhCAAAQgAAEIQAACEOiJAAZOT6BpBgIQgAAEIAABCEAAAhDongAGTveMaQECEIAABCAAAQhAAAIQ6IkABk5PoGkGAhCAAAQgAAEIQAACEOiewP8CwlS48Zcj/uAAAAAASUVORK5CYII=";
  18. GenerateImage(strImg, "E:\\oa");
  19. // GenerateImage(strImg1, "D:\\temp\\xiao.jpg");
  20. // 测试从图片文件转换为Base64编码
  21. // System.out.println(GetImageStr("d:\\wangyc.jpg"));
  22. }
  23. public static String GetImageStr(String imgFilePath) {// 将图片文件转化为字节数组字符串,并对其进行Base64编码处理
  24. byte[] data = null;
  25. // 读取图片字节数组
  26. try {
  27. InputStream in = new FileInputStream(imgFilePath);
  28. data = new byte[in.available()];
  29. in.read(data);
  30. in.close();
  31. } catch (IOException e) {
  32. e.printStackTrace();
  33. }
  34. // 对字节数组Base64编码
  35. BASE64Encoder encoder = new BASE64Encoder();
  36. return encoder.encode(data);// 返回Base64编码过的字节数组字符串
  37. }
  38. public static boolean GenerateImage(String imgStr, String imgFilePath) {
  39. // 对字节数组字符串进行Base64解码并生成图片
  40. if (imgStr == null) // 图像数据为空
  41. return false;
  42. BASE64Decoder decoder = new BASE64Decoder();
  43. try {
  44. // Base64解码
  45. byte[] bytes = decoder.decodeBuffer(imgStr);
  46. for (int i = 0; i < bytes.length; ++i) {
  47. if (bytes[i] < 0) {// 调整异常数据
  48. bytes[i] += 256;
  49. }
  50. }
  51. // 生成jpeg图片
  52. OutputStream out = new FileOutputStream(imgFilePath);
  53. out.write(bytes);
  54. out.flush();
  55. out.close();
  56. return true;
  57. } catch (Exception e) {
  58. return false;
  59. }
  60. }
  61. }

4.案例展示

到这里我的分享就结束了,欢迎到评论区探讨交流!!

如果觉得有用的话还请点个赞吧 ♥  ♥

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/378334
推荐阅读
相关标签
  

闽ICP备14008679号