Commit 8f9733c3 by 罗绍泽

Merge remote-tracking branch 'origin/zhutc' into develop

parents 1d9b615e 537b47f1
......@@ -228,6 +228,7 @@ function replySaveRow(){
var v_result = logModule.logActAction.insertReply(items);
if(v_result.NAME=='999'){
$('#logItemInputForm').datagrid('reload');
$('#USER_REPLY_CONTENT').textbox("setValue", "");
}
}
}
......
......@@ -151,6 +151,7 @@ function replySaveRow(){
var v_result = logModule.logActAction.insertReply(items);
if(v_result.NAME=='999'){
$('#logItemInputForm').datagrid('reload');
$('#USER_REPLY_CONTENT').textbox("setValue", "");
}
}
}
......
<%@page contentType="text/html; charset=UTF-8"%>
<style type="text/css">
.datagrid-header {
position: absolute;
visibility: hidden;
}
#inputForm {
position: relative;
}
.log_reply_list{
position:absolute;
bottom:7%;}
.log_item_list div div{
float:left;
}
.log_item_info{
margin-left: 26px;
}
.log_item_index input{
width:120px;
}
.tableStyle span,.log_item_one span{
border:none;
}
......
......@@ -45,12 +45,11 @@ var is_column = [ [
{field : 'MEETING_NAME',title : '会议名称',width : 100,align : 'center'},
{field : 'MEETING_CONTENT',title : '会议内容',width : 300,align : 'center'},
{field : 'VENUE',title : '会议地址',width : 300,align : 'center'},
{field : 'HOST',title : '主持人',width : 80,align : 'center'},
{field : 'START_TIME',title : '开始时间',width : 150,align : 'center'},
{field : 'END_TIME',title : '结束时间',width : 150,align : 'center'},
{field : 'CREATE_ID',title : '创建人',width : 80,align : 'center'},
{field : 'CREATE_TIME',title : '创建时间',width : 150,align : 'center'},
{field : 'UPDATE_ID',title : '修改人',width : 80,align : 'center'},
{field : 'UPDATE_TIME',title : '修改时间',width : 150,align : 'center'}
{field : 'CHECK_START_TIME',title : '签到开始时间',width : 150,align : 'center'},
{field : 'CHECK_END_TIME',title : '签到结束时间',width : 150,align : 'center'}
] ];
//列表加载完成回调
function dataOnLoadSuccess(){
......@@ -140,7 +139,7 @@ function editRow(index) {
//加载修改子页面成功后的回调
function updateUrlOnloadCallback(is_row){
initDateBox();
}
//保存
......
......@@ -12,6 +12,15 @@
</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>主持人:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" id="HOST" name="FIELD_HOST" style="width:600px" required=true value="${is_row.HOST}"/>
</td>
</tr>
<tr>
<tr>
<td class="tableStyleLable" valign="top" style="height:160px">
<span>会议内容:</span>
</td>
......@@ -39,5 +48,17 @@
<input id="END_TIME" name="FIELD_END_TIME" type="text" value="${is_row.END_TIME}" >
</td>
</tr>
<tr>
<td style="width: 20%;" class="tableStyleLable">
<span>
会议签到时间:
</span>
</td>
<td style="width: 80%">
<input class="easyui-datetimebox" required id="CHECK_START_TIME" name="FIELD_CHECK_START_TIME" value="${is_row.CHECK_START_TIME}" />
<span>到</span>
<input class="easyui-datetimebox" required id="CHECK_END_TIME" name="FIELD_CHECK_END_TIME" type="text" value="${is_row.CHECK_END_TIME}" >
</td>
</tr>
</table>
</form>
\ No newline at end of file
......@@ -67,12 +67,7 @@ var is_column = [ [
},
{field : 'REALLY_END_TIME',title : '实际结束时间',width : 150,align : 'center'},
{field : 'START_TIME',title : '开始时间',width : 150,align : 'center'},
{field : 'END_TIME',title : '结束时间',width : 150,align : 'center'},
{field : 'CREATE_ID',title : '创建人',width : 80,align : 'center'},
{field : 'CREATE_TIME',title : '创建时间',width : 150,align : 'center'},
{field : 'UPDATE_ID',title : '修改人',width : 80,align : 'center'},
{field : 'UPDATE_TIME',title : '修改时间',width : 150,align : 'center'},
{field : 'END_TIME',title : '结束时间',width : 150,align : 'center'}
] ];
//列表加载完成回调
function dataOnLoadSuccess(){
......
package com.jw.app.business.meeting;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
......@@ -13,6 +16,7 @@ import org.apache.ibatis.session.RowBounds;
import com.jw.app.business.MeetingBusiness;
import com.gaowj.business.exception.BusinessException;
import com.gaowj.business.util.Page;
import com.gaowj.business.util.QueryParamUtil;
import com.gaowj.business.util.SessionUtil;
import com.gaowj.standard.utils.CacheKit;
......@@ -55,6 +59,14 @@ public class MeetingBusinessImpl implements MeetingBusiness {
@Override
public void insert_check_in(Map<String, Object> entity) throws BusinessException {
List<Map<String, Object>> timeList = meetingDAO.list_checkTime(entity);
Map<String, Object> timeMap = timeList.get(0);
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
try {
Date startTime=sf.parse((String)timeMap.get("CHECK_START_TIME"));
Date endTime=sf.parse((String)timeMap.get("CHECK_END_TIME"));
Date thistime = new Date();
if (thistime.after(startTime) && thistime.before(endTime)) {
List<Map<String, Object>> items = meetingDAO.list_check_in(entity);
if (items.size() == 0) {
entity.put("UUID", java.util.UUID.randomUUID().toString());
......@@ -82,6 +94,11 @@ public class MeetingBusinessImpl implements MeetingBusiness {
}
}
}
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
@Override
public void update_meeting(Map<String, Object> entity) throws BusinessException {
......@@ -173,10 +190,9 @@ public class MeetingBusinessImpl implements MeetingBusiness {
@Override
public List<Map<String, Object>> list_meeting(Map<String, Object> query) throws BusinessException {
List<Map<String, Object>> list_data = CacheKit.get("ehcache10", "meeting" + query);
List<Map<String, Object>> list_data = null;
if (list_data == null || list_data.size() == 0) {
list_data = meetingDAO.list_meeting(query);
CacheKit.put("ehcache10", "kqmk" + query, list_data);
}
return list_data;
}
......
......@@ -31,4 +31,6 @@ public interface meetingDAO {
int listCount_check_in(Map<String, Object> query) throws BusinessException;
List<Map<String, Object>> list_checkTime(Map<String, Object> query) throws BusinessException;
}
......@@ -167,6 +167,12 @@
<include refid="WHERE"></include>
</select>
<select id="list_checkTime" parameterType="map" resultType="upperCaseKeyMap">
select *
from MEETING_MANAGE
where UUID=#{MEETING_ID}
</select>
<select id="list_check_in" parameterType="map" resultType="upperCaseKeyMap">
select check_in.*,info.real_name,unit.name,info.telephone
from
......
......@@ -13,6 +13,7 @@ import com.gaowj.business.comp.BusinessManager;
import com.gaowj.business.exception.BusinessException;
import com.gaowj.business.util.QueryParamUtil;
import com.gaowj.business.util.RequestUtils;
import com.gaowj.business.util.SessionUtil;
import com.gaowj.business.util.Status;
import com.gaowj.standard.utils.CacheKit;
......@@ -164,13 +165,16 @@ public class actAction extends BasicAction {
Map<String, Object> entity = RequestUtils.getUpdateFieldMap(request, RequestUtils.UPDATEDATAFIELDPREFIX);
String deletekey = (String) entity.get("CODE");
List<String> ListKey = QueryParamUtil.StringToList(deletekey);
String thiscode = (String) entity.get("THISCODE");
String sessioncode = SessionUtil.getCode();
try {
if (thiscode == null || thiscode.equals(sessioncode)) {
business.delete_reply(ListKey);
// 操作日志
SystemOpeBusiness sysbusiness = BusinessManager.getBusiness(SystemOpeBusiness.class);
sysbusiness.insert_logBusiness("deleteLog", "" + ListKey, "删除测试数据", deletekey, "多个流水号", "logdemo1");
jsonObject.putAll(Status.getStatusSuccessMessage("删除成功"));
}
} catch (Exception e) {
jsonObject.putAll(Status.getStatusErrorMessage("删除失败"));
e.printStackTrace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment