数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class AttendMeetingService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取其他会议记录
|
||||
@@ -52,7 +52,7 @@ namespace BLL
|
||||
/// <param name="attendMeeting"></param>
|
||||
public static void AddAttendMeeting(Model.Meeting_AttendMeeting attendMeeting)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_AttendMeeting newAttendMeeting = new Model.Meeting_AttendMeeting
|
||||
{
|
||||
AttendMeetingId = attendMeeting.AttendMeetingId,
|
||||
@@ -86,7 +86,7 @@ namespace BLL
|
||||
/// <param name="attendMeeting"></param>
|
||||
public static void UpdateAttendMeeting(Model.Meeting_AttendMeeting attendMeeting)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_AttendMeeting newAttendMeeting = db.Meeting_AttendMeeting.FirstOrDefault(e => e.AttendMeetingId == attendMeeting.AttendMeetingId);
|
||||
if (newAttendMeeting != null)
|
||||
{
|
||||
@@ -117,7 +117,7 @@ namespace BLL
|
||||
/// <param name="attendMeetingId"></param>
|
||||
public static void DeleteAttendMeetingById(string attendMeetingId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_AttendMeeting attendMeeting = db.Meeting_AttendMeeting.FirstOrDefault(e => e.AttendMeetingId == attendMeetingId);
|
||||
if (attendMeeting != null)
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class ClassMeetingService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取班前会
|
||||
@@ -25,7 +25,7 @@ namespace BLL
|
||||
/// <param name="classMeeting"></param>
|
||||
public static void AddClassMeeting(Model.Meeting_ClassMeeting classMeeting)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_ClassMeeting newClassMeeting = new Model.Meeting_ClassMeeting
|
||||
{
|
||||
ClassMeetingId = classMeeting.ClassMeetingId,
|
||||
@@ -58,7 +58,7 @@ namespace BLL
|
||||
/// <param name="classMeeting"></param>
|
||||
public static void UpdateClassMeeting(Model.Meeting_ClassMeeting classMeeting)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_ClassMeeting newClassMeeting = db.Meeting_ClassMeeting.FirstOrDefault(e => e.ClassMeetingId == classMeeting.ClassMeetingId);
|
||||
if (newClassMeeting != null)
|
||||
{
|
||||
@@ -89,7 +89,7 @@ namespace BLL
|
||||
/// <param name="classMeetingId"></param>
|
||||
public static void DeleteClassMeetingById(string classMeetingId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_ClassMeeting classMeeting = db.Meeting_ClassMeeting.FirstOrDefault(e => e.ClassMeetingId == classMeetingId);
|
||||
if (classMeeting != null)
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class MonthMeetingService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取安全月例会
|
||||
@@ -68,7 +68,7 @@ namespace BLL
|
||||
/// <param name="monthMeeting"></param>
|
||||
public static void AddMonthMeeting(Model.Meeting_MonthMeeting monthMeeting)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_MonthMeeting newMonthMeeting = new Model.Meeting_MonthMeeting
|
||||
{
|
||||
MonthMeetingId = monthMeeting.MonthMeetingId,
|
||||
@@ -102,7 +102,7 @@ namespace BLL
|
||||
/// <param name="monthMeeting"></param>
|
||||
public static void UpdateMonthMeeting(Model.Meeting_MonthMeeting monthMeeting)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_MonthMeeting newMonthMeeting = db.Meeting_MonthMeeting.FirstOrDefault(e => e.MonthMeetingId == monthMeeting.MonthMeetingId);
|
||||
if (newMonthMeeting != null)
|
||||
{
|
||||
@@ -133,7 +133,7 @@ namespace BLL
|
||||
/// <param name="monthMeetingId"></param>
|
||||
public static void DeleteMonthMeetingById(string monthMeetingId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_MonthMeeting monthMeeting = db.Meeting_MonthMeeting.FirstOrDefault(e => e.MonthMeetingId == monthMeetingId);
|
||||
if (monthMeeting != null)
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class SafetyLeaderGroupMeetingService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取安全领导小组会议
|
||||
@@ -70,7 +70,7 @@ namespace BLL
|
||||
/// <param name="SafetyLeaderGroupMeeting"></param>
|
||||
public static void AddSafetyLeaderGroupMeeting(Model.Meeting_SafetyLeaderGroupMeeting SafetyLeaderGroupMeeting)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_SafetyLeaderGroupMeeting newSafetyLeaderGroupMeeting = new Model.Meeting_SafetyLeaderGroupMeeting
|
||||
{
|
||||
SafetyLeaderGroupMeetingId = SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingId,
|
||||
@@ -104,7 +104,7 @@ namespace BLL
|
||||
/// <param name="SafetyLeaderGroupMeeting"></param>
|
||||
public static void UpdateSafetyLeaderGroupMeeting(Model.Meeting_SafetyLeaderGroupMeeting SafetyLeaderGroupMeeting)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_SafetyLeaderGroupMeeting newSafetyLeaderGroupMeeting = db.Meeting_SafetyLeaderGroupMeeting.FirstOrDefault(e => e.SafetyLeaderGroupMeetingId == SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingId);
|
||||
if (newSafetyLeaderGroupMeeting != null)
|
||||
{
|
||||
@@ -135,7 +135,7 @@ namespace BLL
|
||||
/// <param name="SafetyLeaderGroupMeetingId"></param>
|
||||
public static void DeleteSafetyLeaderGroupMeetingById(string SafetyLeaderGroupMeetingId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_SafetyLeaderGroupMeeting SafetyLeaderGroupMeeting = db.Meeting_SafetyLeaderGroupMeeting.FirstOrDefault(e => e.SafetyLeaderGroupMeetingId == SafetyLeaderGroupMeetingId);
|
||||
if (SafetyLeaderGroupMeeting != null)
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class SpecialMeetingService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取专题例会
|
||||
@@ -68,7 +68,7 @@ namespace BLL
|
||||
/// <param name="specialMeeting"></param>
|
||||
public static void AddSpecialMeeting(Model.Meeting_SpecialMeeting specialMeeting)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_SpecialMeeting newSpecialMeeting = new Model.Meeting_SpecialMeeting
|
||||
{
|
||||
SpecialMeetingId = specialMeeting.SpecialMeetingId,
|
||||
@@ -102,7 +102,7 @@ namespace BLL
|
||||
/// <param name="specialMeeting"></param>
|
||||
public static void UpdateSpecialMeeting(Model.Meeting_SpecialMeeting specialMeeting)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_SpecialMeeting newSpecialMeeting = db.Meeting_SpecialMeeting.FirstOrDefault(e => e.SpecialMeetingId == specialMeeting.SpecialMeetingId);
|
||||
if (newSpecialMeeting != null)
|
||||
{
|
||||
@@ -133,7 +133,7 @@ namespace BLL
|
||||
/// <param name="specialMeetingId"></param>
|
||||
public static void DeleteSpecialMeetingById(string specialMeetingId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_SpecialMeeting spcialMeeting = db.Meeting_SpecialMeeting.FirstOrDefault(e => e.SpecialMeetingId == specialMeetingId);
|
||||
if (spcialMeeting != null)
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class WeekMeetingService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取周例会
|
||||
@@ -68,7 +68,7 @@ namespace BLL
|
||||
/// <param name="weekMeeting"></param>
|
||||
public static void AddWeekMeeting(Model.Meeting_WeekMeeting weekMeeting)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_WeekMeeting newWeekMeeting = new Model.Meeting_WeekMeeting
|
||||
{
|
||||
WeekMeetingId = weekMeeting.WeekMeetingId,
|
||||
@@ -102,7 +102,7 @@ namespace BLL
|
||||
/// <param name="weekMeeting"></param>
|
||||
public static void UpdateWeekMeeting(Model.Meeting_WeekMeeting weekMeeting)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_WeekMeeting newWeekMeeting = db.Meeting_WeekMeeting.FirstOrDefault(e => e.WeekMeetingId == weekMeeting.WeekMeetingId);
|
||||
if (newWeekMeeting != null)
|
||||
{
|
||||
@@ -133,7 +133,7 @@ namespace BLL
|
||||
/// <param name="weekMeetingId"></param>
|
||||
public static void DeleteWeekMeetingById(string weekMeetingId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Meeting_WeekMeeting weekMeeting = db.Meeting_WeekMeeting.FirstOrDefault(e => e.WeekMeetingId == weekMeetingId);
|
||||
if (weekMeeting != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user