合并最新

This commit is contained in:
2022-12-20 09:32:32 +08:00
parent 844e9f1488
commit 1abdaa9476
654 changed files with 73563 additions and 9746 deletions
@@ -0,0 +1,98 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
public static class EduTrain_TaskNoticeService
{
public static Model.EduTrain_TaskNotice GetEduTrain_TaskNoticeById(string TaskNoticeId)
{
if (string.IsNullOrEmpty(TaskNoticeId))
{
return null;
}
else
{
return Funs.DB.EduTrain_TaskNotice.FirstOrDefault(e => e.TaskNoticeId == TaskNoticeId);
}
}
public static void AddEduTrain_TaskNotice(Model.EduTrain_TaskNotice newtable)
{
Model.EduTrain_TaskNotice table = new Model.EduTrain_TaskNotice();
table.TaskNoticeId = newtable.TaskNoticeId;
table.CycleStartDate = newtable.CycleStartDate;
table.CycleEndDate = newtable.CycleEndDate;
table.TrainContent = newtable.TrainContent;
table.CreatMan = newtable.CreatMan;
table.CreatDate = newtable.CreatDate;
table.TrainTitle = newtable.TrainTitle;
table.TrainType = newtable.TrainType;
table.TeachHour = newtable.TeachHour;
table.Units = newtable.Units;
table.TeachAddress = newtable.TeachAddress;
table.TeachMan = newtable.TeachMan;
table.TrainStartDate = newtable.TrainStartDate;
table.Cycle = newtable.Cycle;
table.ProjectId = newtable.ProjectId;
table.AheadOfTime = newtable.AheadOfTime;
table.DayOfWeek = newtable.DayOfWeek;
table.WeekOfMonth = newtable.WeekOfMonth;
table.State = newtable.State;
Funs.DB.EduTrain_TaskNotice.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
}
public static void UpdateEduTrain_TaskNotice(Model.EduTrain_TaskNotice newtable)
{
Model.EduTrain_TaskNotice table = Funs.DB.EduTrain_TaskNotice.FirstOrDefault(e => e.TaskNoticeId == newtable.TaskNoticeId);
if (table != null)
{
table.TaskNoticeId = newtable.TaskNoticeId;
table.CycleStartDate = newtable.CycleStartDate;
table.CycleEndDate = newtable.CycleEndDate;
table.TrainContent = newtable.TrainContent;
table.CreatMan = newtable.CreatMan;
table.CreatDate = newtable.CreatDate;
table.TrainTitle = newtable.TrainTitle;
table.TrainType = newtable.TrainType;
table.TeachHour = newtable.TeachHour;
table.Units = newtable.Units;
table.TeachAddress = newtable.TeachAddress;
table.TeachMan = newtable.TeachMan;
table.TrainStartDate = newtable.TrainStartDate;
table.Cycle = newtable.Cycle;
table.ProjectId = newtable.ProjectId;
table.AheadOfTime = newtable.AheadOfTime;
table.DayOfWeek = newtable.DayOfWeek;
table.WeekOfMonth = newtable.WeekOfMonth;
table.State = newtable.State;
Funs.DB.SubmitChanges();
}
}
public static void DeleteEduTrain_TaskNoticeById(string TaskNoticeId)
{
Model.EduTrain_TaskNotice table = Funs.DB.EduTrain_TaskNotice.FirstOrDefault(e => e.TaskNoticeId == TaskNoticeId);
if (table != null)
{
Funs.DB.EduTrain_TaskNotice.DeleteOnSubmit(table);
Funs.DB.SubmitChanges();
}
}
}
}
@@ -39,6 +39,8 @@ namespace BLL
TestType = TestTrainingItem.TestType,
WorkPostIds = TestTrainingItem.WorkPostIds,
WorkPostNames = TestTrainingItem.WorkPostNames,
DepartIds = TestTrainingItem.DepartIds,
DepartNames = TestTrainingItem.DepartNames,
AItem = TestTrainingItem.AItem,
BItem = TestTrainingItem.BItem,
CItem = TestTrainingItem.CItem,
@@ -68,6 +70,8 @@ namespace BLL
newTestTrainingItem.TestType = TestTrainingItem.TestType;
newTestTrainingItem.WorkPostIds = TestTrainingItem.WorkPostIds;
newTestTrainingItem.WorkPostNames = TestTrainingItem.WorkPostNames;
newTestTrainingItem.DepartIds = TestTrainingItem.DepartIds;
newTestTrainingItem.DepartNames = TestTrainingItem.DepartNames;
newTestTrainingItem.AItem = TestTrainingItem.AItem;
newTestTrainingItem.BItem = TestTrainingItem.BItem;
newTestTrainingItem.CItem = TestTrainingItem.CItem;