|
|
@@ -170,6 +170,12 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers |
|
|
|
{ |
|
|
|
UserInfo userInfo = LoginUserInfo.Get(); |
|
|
|
MeetingManagementEntity entity = strEntity.ToObject<MeetingManagementEntity>(); |
|
|
|
//判断会议场地是否被占用 |
|
|
|
var isOccupy = meetingManagementIBLL.JudgeIsOccupy(entity); |
|
|
|
if (isOccupy) |
|
|
|
{ |
|
|
|
return Fail("会议场地当前时间段已被占用!"); |
|
|
|
} |
|
|
|
entity.CreateUser = userInfo.userId; |
|
|
|
entity.CreateTime = DateTime.Now; |
|
|
|
entity.CheckStatus = "0"; |
|
|
@@ -200,6 +206,13 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers |
|
|
|
[AjaxOnly] |
|
|
|
public ActionResult DoSubmit(string keyValue, string status, string processId) |
|
|
|
{ |
|
|
|
//判断会议场地是否被占用 |
|
|
|
var entity = meetingManagementIBLL.GetMeetingManagementEntity(keyValue); |
|
|
|
var isOccupy = meetingManagementIBLL.JudgeIsOccupy(entity); |
|
|
|
if (isOccupy) |
|
|
|
{ |
|
|
|
return Fail("会议场地当前时间段已被占用!"); |
|
|
|
} |
|
|
|
meetingManagementIBLL.DoSubmit(keyValue, status, processId); |
|
|
|
return Success("操作成功!"); |
|
|
|
} |
|
|
|