小程序接口修改

This commit is contained in:
2023-07-11 16:32:16 +08:00
parent ca5c3fe9a7
commit 4449a7754f
68 changed files with 4634 additions and 2984 deletions
+69 -11
View File
@@ -79,12 +79,43 @@ namespace BLL
////增加一条编码记录
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectAttendMeetingMenuId, attendMeeting.ProjectId, null, attendMeeting.AttendMeetingId, attendMeeting.CompileDate);
}
public static void AddAttendMeetingForApi(Model.Meeting_AttendMeeting attendMeeting)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
/// <summary>
/// 修改其他会议记录
/// </summary>
/// <param name="attendMeeting"></param>
public static void UpdateAttendMeeting(Model.Meeting_AttendMeeting attendMeeting)
Model.Meeting_AttendMeeting newAttendMeeting = new Model.Meeting_AttendMeeting
{
AttendMeetingId = attendMeeting.AttendMeetingId,
ProjectId = attendMeeting.ProjectId,
UnitId = attendMeeting.UnitId,
AttendMeetingCode = attendMeeting.AttendMeetingCode,
AttendMeetingName = attendMeeting.AttendMeetingName,
AttendMeetingDate = attendMeeting.AttendMeetingDate,
CompileMan = attendMeeting.CompileMan,
AttendMeetingContents = attendMeeting.AttendMeetingContents,
CompileDate = attendMeeting.CompileDate,
States = attendMeeting.States,
MeetingHours = attendMeeting.MeetingHours,
MeetingHostMan = attendMeeting.MeetingHostMan,
AttentPerson = attendMeeting.AttentPerson,
MeetingPlace = attendMeeting.MeetingPlace,
MeetingHostManId = attendMeeting.MeetingHostManId,
AttentPersonIds = attendMeeting.AttentPersonIds,
AttentPersonNum = attendMeeting.AttentPersonNum,
MeetingHostManOther = attendMeeting.MeetingHostManOther
};
db.Meeting_AttendMeeting.InsertOnSubmit(attendMeeting);
db.SubmitChanges();
////增加一条编码记录
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectAttendMeetingMenuId, attendMeeting.ProjectId, null, attendMeeting.AttendMeetingId, attendMeeting.CompileDate);
}
}
/// <summary>
/// 修改其他会议记录
/// </summary>
/// <param name="attendMeeting"></param>
public static void UpdateAttendMeeting(Model.Meeting_AttendMeeting attendMeeting)
{
Model.SGGLDB db = Funs.DB;
Model.Meeting_AttendMeeting newAttendMeeting = db.Meeting_AttendMeeting.FirstOrDefault(e => e.AttendMeetingId == attendMeeting.AttendMeetingId);
@@ -110,12 +141,39 @@ namespace BLL
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除其他会议记录
/// </summary>
/// <param name="attendMeetingId"></param>
public static void DeleteAttendMeetingById(string attendMeetingId)
public static void UpdateAttendMeetingForApi(Model.Meeting_AttendMeeting attendMeeting)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.Meeting_AttendMeeting newAttendMeeting = db.Meeting_AttendMeeting.FirstOrDefault(e => e.AttendMeetingId == attendMeeting.AttendMeetingId);
if (newAttendMeeting != null)
{
//newAttendMeeting.ProjectId = attendMeeting.ProjectId;
newAttendMeeting.UnitId = attendMeeting.UnitId;
newAttendMeeting.AttendMeetingCode = attendMeeting.AttendMeetingCode;
newAttendMeeting.AttendMeetingName = attendMeeting.AttendMeetingName;
newAttendMeeting.AttendMeetingDate = attendMeeting.AttendMeetingDate;
newAttendMeeting.CompileMan = attendMeeting.CompileMan;
newAttendMeeting.AttendMeetingContents = attendMeeting.AttendMeetingContents;
newAttendMeeting.CompileDate = attendMeeting.CompileDate;
newAttendMeeting.States = attendMeeting.States;
newAttendMeeting.MeetingHours = attendMeeting.MeetingHours;
newAttendMeeting.MeetingHostMan = attendMeeting.MeetingHostMan;
newAttendMeeting.AttentPerson = attendMeeting.AttentPerson;
newAttendMeeting.MeetingPlace = attendMeeting.MeetingPlace;
newAttendMeeting.MeetingHostManId = attendMeeting.MeetingHostManId;
newAttendMeeting.AttentPersonIds = attendMeeting.AttentPersonIds;
newAttendMeeting.MeetingHostManOther = attendMeeting.MeetingHostManOther;
newAttendMeeting.AttentPersonNum = attendMeeting.AttentPersonNum;
db.SubmitChanges();
}
}
}
/// <summary>
/// 根据主键删除其他会议记录
/// </summary>
/// <param name="attendMeetingId"></param>
public static void DeleteAttendMeetingById(string attendMeetingId)
{
Model.SGGLDB db = Funs.DB;
Model.Meeting_AttendMeeting attendMeeting = db.Meeting_AttendMeeting.FirstOrDefault(e => e.AttendMeetingId == attendMeetingId);