20240308 会议管理
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Linq;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 会议管理
|
||||
/// </summary>
|
||||
public static class MeetingService
|
||||
public static class MeetingService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取会议信息
|
||||
@@ -40,6 +36,10 @@ namespace BLL
|
||||
newMeeting.MeetingType = meeting.MeetingType;
|
||||
newMeeting.AttachUrl = meeting.AttachUrl;
|
||||
newMeeting.Remark = meeting.Remark;
|
||||
newMeeting.MeetingCode = meeting.MeetingCode;
|
||||
newMeeting.CompileMan = meeting.CompileMan;
|
||||
newMeeting.CompileDate = meeting.CompileDate;
|
||||
newMeeting.States = meeting.States;
|
||||
|
||||
Funs.DB.Driver_Meeting.InsertOnSubmit(newMeeting);
|
||||
Funs.DB.SubmitChanges();
|
||||
@@ -65,6 +65,8 @@ namespace BLL
|
||||
//newMeeting.MeetingType = meeting.MeetingType;
|
||||
newMeeting.AttachUrl = meeting.AttachUrl;
|
||||
newMeeting.Remark = meeting.Remark;
|
||||
newMeeting.MeetingCode = meeting.MeetingCode;
|
||||
newMeeting.States = meeting.States;
|
||||
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
@@ -79,10 +81,9 @@ namespace BLL
|
||||
Model.Driver_Meeting meeting = Funs.DB.Driver_Meeting.FirstOrDefault(e => e.MeetingId == meetingId);
|
||||
if (meeting != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(meeting.AttachUrl))
|
||||
{
|
||||
BLL.UploadAttachmentService.DeleteFile(Funs.RootPath, meeting.AttachUrl);//删除附件
|
||||
}
|
||||
CommonService.DeleteAttachFileById(meetingId + "#1");//删除会议纪要附件
|
||||
CommonService.DeleteAttachFileById(meetingId + "#2");//删除签到表附件
|
||||
CommonService.DeleteFlowOperateByID(meetingId);//删除流程表
|
||||
Funs.DB.Driver_Meeting.DeleteOnSubmit(meeting);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user