20220315 代码初始化上传

This commit is contained in:
2022-03-15 17:36:38 +08:00
commit 9dc8a7e05d
9501 changed files with 2066431 additions and 0 deletions
@@ -0,0 +1,81 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
public class DriverPrepareDriverConStudyService
{
/// <summary>
/// 增加--开车资料收集
/// </summary>
public static void AddDriverPrepareDriverPlan(Model.DriverPrepare_ConStudy DriverPrepareDriverPlan)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_ConStudy newDriverData = new Model.DriverPrepare_ConStudy();
newDriverData.ConStudyId = DriverPrepareDriverPlan.ConStudyId;
newDriverData.ProjectId = DriverPrepareDriverPlan.ProjectId;
newDriverData.ConstudyName = DriverPrepareDriverPlan.ConstudyName;
newDriverData.OrganizationMan = DriverPrepareDriverPlan.OrganizationMan;
newDriverData.Code = DriverPrepareDriverPlan.Code;
newDriverData.OrganizationDate = DriverPrepareDriverPlan.OrganizationDate;
newDriverData.AttachUrl = DriverPrepareDriverPlan.AttachUrl;
newDriverData.Remark = DriverPrepareDriverPlan.Remark;
db.DriverPrepare_ConStudy.InsertOnSubmit(newDriverData);
db.SubmitChanges();
}
}
/// <summary>
/// 修改--开车资料收集
/// </summary>
public static void UpdateDriverPrepareDriverPlan(Model.DriverPrepare_ConStudy DriverPrepareDriverPlan)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_ConStudy newDriverData = db.DriverPrepare_ConStudy.FirstOrDefault(e => e.ConStudyId == DriverPrepareDriverPlan.ConStudyId);
if (newDriverData != null)
{
newDriverData.ProjectId = DriverPrepareDriverPlan.ProjectId;
newDriverData.ConstudyName = DriverPrepareDriverPlan.ConstudyName;
newDriverData.Code = DriverPrepareDriverPlan.Code;
newDriverData.OrganizationMan = DriverPrepareDriverPlan.OrganizationMan;
newDriverData.OrganizationDate = DriverPrepareDriverPlan.OrganizationDate;
newDriverData.AttachUrl = DriverPrepareDriverPlan.AttachUrl;
newDriverData.Remark = DriverPrepareDriverPlan.Remark;
}
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除 开车资料收集
/// </summary>
/// <param name="DriverDataId"></param>
public static void DeleteDriverPlan(string ConStudyId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_ConStudy newDriverData = db.DriverPrepare_ConStudy.FirstOrDefault(e => e.ConStudyId == ConStudyId);
if (newDriverData != null)
{
db.DriverPrepare_ConStudy.DeleteOnSubmit(newDriverData);
db.SubmitChanges();
}
}
}
/// <summary>
/// 详情--开车资料收集
/// </summary>
public static Model.DriverPrepare_ConStudy GetDriverPlanById(string ConStudyId)
{
return Funs.DB.DriverPrepare_ConStudy.FirstOrDefault(e => e.ConStudyId == ConStudyId);
}
}
}
@@ -0,0 +1,75 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
public class DriverPrepareDriverDataService
{
/// <summary>
/// 增加--开车资料收集
/// </summary>
public static void AddDriverPrepareDriverData(Model.DriverPrepare_DriverData DriverPrepareDriverData)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_DriverData newDriverData = new Model.DriverPrepare_DriverData();
newDriverData.DriverDataId = DriverPrepareDriverData.DriverDataId;
newDriverData.ProjectId = DriverPrepareDriverData.ProjectId;
newDriverData.Code = DriverPrepareDriverData.Code;
newDriverData.DriverDataName = DriverPrepareDriverData.DriverDataName;
newDriverData.Remark = DriverPrepareDriverData.Remark;
db.DriverPrepare_DriverData.InsertOnSubmit(newDriverData);
db.SubmitChanges();
}
}
/// <summary>
/// 修改--开车资料收集
/// </summary>
public static void UpdateDriverPrepareDriverData(Model.DriverPrepare_DriverData DriverPrepareDriverData)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_DriverData newDriverData = db.DriverPrepare_DriverData.FirstOrDefault(e => e.DriverDataId == DriverPrepareDriverData.DriverDataId);
if (newDriverData != null)
{
newDriverData.ProjectId = DriverPrepareDriverData.ProjectId;
newDriverData.Code = DriverPrepareDriverData.Code;
newDriverData.DriverDataName = DriverPrepareDriverData.DriverDataName;
newDriverData.Remark = DriverPrepareDriverData.Remark;
}
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除 开车资料收集
/// </summary>
/// <param name="DriverDataId"></param>
public static void DeleteDriverData(string DriverDataId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_DriverData newDriverData = db.DriverPrepare_DriverData.FirstOrDefault(e => e.DriverDataId == DriverDataId);
if (newDriverData != null)
{
db.DriverPrepare_DriverData.DeleteOnSubmit(newDriverData);
db.SubmitChanges();
}
}
}
/// <summary>
/// 详情--开车资料收集
/// </summary>
public static Model.DriverPrepare_DriverData GetDriverDataById(string DriverDataId)
{
return Funs.DB.DriverPrepare_DriverData.FirstOrDefault(e => e.DriverDataId == DriverDataId);
}
}
}
@@ -0,0 +1,87 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
public class DriverPrepareDriverPersonPlanService
{
/// <summary>
/// 增加--开车资料收集
/// </summary>
public static void AddDriverPrepareDriverPlan(Model.DriverPrepare_DriverPersonPlan DriverPrepareDriverPlan)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_DriverPersonPlan newDriverData = new Model.DriverPrepare_DriverPersonPlan();
newDriverData.DriverPersonPlanId = DriverPrepareDriverPlan.DriverPersonPlanId;
newDriverData.ProjectId = DriverPrepareDriverPlan.ProjectId;
newDriverData.DriverPersonPlanName = DriverPrepareDriverPlan.DriverPersonPlanName;
newDriverData.DriverPersonPlanCode = DriverPrepareDriverPlan.DriverPersonPlanCode;
newDriverData.CompileMan = DriverPrepareDriverPlan.CompileMan;
newDriverData.SubmitDate = DriverPrepareDriverPlan.SubmitDate;
newDriverData.Audit = DriverPrepareDriverPlan.Audit;
newDriverData.Approve = DriverPrepareDriverPlan.Approve;
newDriverData.ApproveDate = DriverPrepareDriverPlan.ApproveDate;
newDriverData.AttachUrl = DriverPrepareDriverPlan.AttachUrl;
newDriverData.Remark = DriverPrepareDriverPlan.Remark;
db.DriverPrepare_DriverPersonPlan.InsertOnSubmit(newDriverData);
db.SubmitChanges();
}
}
/// <summary>
/// 修改--开车资料收集
/// </summary>
public static void UpdateDriverPrepareDriverPlan(Model.DriverPrepare_DriverPersonPlan DriverPrepareDriverPlan)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_DriverPersonPlan newDriverData = db.DriverPrepare_DriverPersonPlan.FirstOrDefault(e => e.DriverPersonPlanId == DriverPrepareDriverPlan.DriverPersonPlanId);
if (newDriverData != null)
{
newDriverData.ProjectId = DriverPrepareDriverPlan.ProjectId;
newDriverData.DriverPersonPlanName = DriverPrepareDriverPlan.DriverPersonPlanName;
newDriverData.DriverPersonPlanCode = DriverPrepareDriverPlan.DriverPersonPlanCode;
newDriverData.CompileMan = DriverPrepareDriverPlan.CompileMan;
newDriverData.SubmitDate = DriverPrepareDriverPlan.SubmitDate;
newDriverData.Audit = DriverPrepareDriverPlan.Audit;
newDriverData.Approve = DriverPrepareDriverPlan.Approve;
newDriverData.ApproveDate = DriverPrepareDriverPlan.ApproveDate;
newDriverData.AttachUrl = DriverPrepareDriverPlan.AttachUrl;
newDriverData.Remark = DriverPrepareDriverPlan.Remark;
}
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除 开车资料收集
/// </summary>
/// <param name="DriverDataId"></param>
public static void DeleteDriverPlan(string DriverPersonPlanId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_DriverPersonPlan newDriverData = db.DriverPrepare_DriverPersonPlan.FirstOrDefault(e => e.DriverPersonPlanId == DriverPersonPlanId);
if (newDriverData != null)
{
db.DriverPrepare_DriverPersonPlan.DeleteOnSubmit(newDriverData);
db.SubmitChanges();
}
}
}
/// <summary>
/// 详情--开车资料收集
/// </summary>
public static Model.DriverPrepare_DriverPersonPlan GetDriverPlanById(string DriverPersonPlanId)
{
return Funs.DB.DriverPrepare_DriverPersonPlan.FirstOrDefault(e => e.DriverPersonPlanId == DriverPersonPlanId);
}
}
}
@@ -0,0 +1,87 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
public class DriverPrepareDriverPlanService
{
/// <summary>
/// 增加--开车资料收集
/// </summary>
public static void AddDriverPrepareDriverPlan(Model.DriverPrepare_DriverPlan DriverPrepareDriverPlan)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_DriverPlan newDriverData = new Model.DriverPrepare_DriverPlan();
newDriverData.DriverPlanId = DriverPrepareDriverPlan.DriverPlanId;
newDriverData.ProjectId = DriverPrepareDriverPlan.ProjectId;
newDriverData.DriverPlanName = DriverPrepareDriverPlan.DriverPlanName;
newDriverData.DriverPlanCode = DriverPrepareDriverPlan.DriverPlanCode;
newDriverData.CompileMan = DriverPrepareDriverPlan.CompileMan;
newDriverData.SubmitDate = DriverPrepareDriverPlan.SubmitDate;
newDriverData.Audit = DriverPrepareDriverPlan.Audit;
newDriverData.Approve = DriverPrepareDriverPlan.Approve;
newDriverData.ApproveDate = DriverPrepareDriverPlan.ApproveDate;
newDriverData.AttachUrl = DriverPrepareDriverPlan.AttachUrl;
newDriverData.Remark = DriverPrepareDriverPlan.Remark;
db.DriverPrepare_DriverPlan.InsertOnSubmit(newDriverData);
db.SubmitChanges();
}
}
/// <summary>
/// 修改--开车资料收集
/// </summary>
public static void UpdateDriverPrepareDriverPlan(Model.DriverPrepare_DriverPlan DriverPrepareDriverPlan)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_DriverPlan newDriverData = db.DriverPrepare_DriverPlan.FirstOrDefault(e => e.DriverPlanId == DriverPrepareDriverPlan.DriverPlanId);
if (newDriverData != null)
{
newDriverData.ProjectId = DriverPrepareDriverPlan.ProjectId;
newDriverData.DriverPlanName = DriverPrepareDriverPlan.DriverPlanName;
newDriverData.DriverPlanCode = DriverPrepareDriverPlan.DriverPlanCode;
newDriverData.CompileMan = DriverPrepareDriverPlan.CompileMan;
newDriverData.SubmitDate = DriverPrepareDriverPlan.SubmitDate;
newDriverData.Audit = DriverPrepareDriverPlan.Audit;
newDriverData.Approve = DriverPrepareDriverPlan.Approve;
newDriverData.ApproveDate = DriverPrepareDriverPlan.ApproveDate;
newDriverData.AttachUrl = DriverPrepareDriverPlan.AttachUrl;
newDriverData.Remark = DriverPrepareDriverPlan.Remark;
}
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除 开车资料收集
/// </summary>
/// <param name="DriverDataId"></param>
public static void DeleteDriverPlan(string DriverPlanId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_DriverPlan newDriverData = db.DriverPrepare_DriverPlan.FirstOrDefault(e => e.DriverPlanId == DriverPlanId);
if (newDriverData != null)
{
db.DriverPrepare_DriverPlan.DeleteOnSubmit(newDriverData);
db.SubmitChanges();
}
}
}
/// <summary>
/// 详情--开车资料收集
/// </summary>
public static Model.DriverPrepare_DriverPlan GetDriverPlanById(string DriverPlanId)
{
return Funs.DB.DriverPrepare_DriverPlan.FirstOrDefault(e => e.DriverPlanId == DriverPlanId);
}
}
}
@@ -0,0 +1,81 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
public class DriverPrepareDutyService
{
/// <summary>
/// 增加--开车资料收集
/// </summary>
public static void AddDriverPrepareDriverPlan(Model.DriverPrepare_Duty DriverPrepareDriverPlan)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_Duty newDriverData = new Model.DriverPrepare_Duty();
newDriverData.DutyId = DriverPrepareDriverPlan.DutyId;
newDriverData.ProjectId = DriverPrepareDriverPlan.ProjectId;
newDriverData.DutyName = DriverPrepareDriverPlan.DutyName;
newDriverData.DutyCode = DriverPrepareDriverPlan.DutyCode;
newDriverData.CompileMan = DriverPrepareDriverPlan.CompileMan;
newDriverData.CompileDate = DriverPrepareDriverPlan.CompileDate;
newDriverData.AttchUrl = DriverPrepareDriverPlan.AttchUrl;
newDriverData.Remark = DriverPrepareDriverPlan.Remark;
db.DriverPrepare_Duty.InsertOnSubmit(newDriverData);
db.SubmitChanges();
}
}
/// <summary>
/// 修改--开车资料收集
/// </summary>
public static void UpdateDriverPrepareDriverPlan(Model.DriverPrepare_Duty DriverPrepareDriverPlan)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_Duty newDriverData = db.DriverPrepare_Duty.FirstOrDefault(e => e.DutyId == DriverPrepareDriverPlan.DutyId);
if (newDriverData != null)
{
newDriverData.ProjectId = DriverPrepareDriverPlan.ProjectId;
newDriverData.DutyName = DriverPrepareDriverPlan.DutyName;
newDriverData.DutyCode = DriverPrepareDriverPlan.DutyCode;
newDriverData.CompileMan = DriverPrepareDriverPlan.CompileMan;
newDriverData.CompileDate = DriverPrepareDriverPlan.CompileDate;
newDriverData.AttchUrl = DriverPrepareDriverPlan.AttchUrl;
newDriverData.Remark = DriverPrepareDriverPlan.Remark;
}
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除 开车资料收集
/// </summary>
/// <param name="DriverDataId"></param>
public static void DeleteDriverPlan(string DutyId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_Duty newDriverData = db.DriverPrepare_Duty.FirstOrDefault(e => e.DutyId == DutyId);
if (newDriverData != null)
{
db.DriverPrepare_Duty.DeleteOnSubmit(newDriverData);
db.SubmitChanges();
}
}
}
/// <summary>
/// 详情--开车资料收集
/// </summary>
public static Model.DriverPrepare_Duty GetDriverPlanById(string DutyId)
{
return Funs.DB.DriverPrepare_Duty.FirstOrDefault(e => e.DutyId == DutyId);
}
}
}
@@ -0,0 +1,81 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
public class DriverPrepareSchemePlanService
{
/// <summary>
/// 增加--开车资料收集
/// </summary>
public static void AddDriverPrepareDriverPlan(Model.DriverPrepare_SchemePlan DriverPrepareDriverPlan)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_SchemePlan newDriverData = new Model.DriverPrepare_SchemePlan();
newDriverData.SchemePlanId = DriverPrepareDriverPlan.SchemePlanId;
newDriverData.ProjectId = DriverPrepareDriverPlan.ProjectId;
newDriverData.SchemePlanName = DriverPrepareDriverPlan.SchemePlanName;
newDriverData.SchemePlanCode = DriverPrepareDriverPlan.SchemePlanCode;
newDriverData.CompileMan = DriverPrepareDriverPlan.CompileMan;
newDriverData.CompileDate = DriverPrepareDriverPlan.CompileDate;
newDriverData.AttachUrl = DriverPrepareDriverPlan.AttachUrl;
newDriverData.Remark = DriverPrepareDriverPlan.Remark;
db.DriverPrepare_SchemePlan.InsertOnSubmit(newDriverData);
db.SubmitChanges();
}
}
/// <summary>
/// 修改--开车资料收集
/// </summary>
public static void UpdateDriverPrepareDriverPlan(Model.DriverPrepare_SchemePlan DriverPrepareDriverPlan)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_SchemePlan newDriverData = db.DriverPrepare_SchemePlan.FirstOrDefault(e => e.SchemePlanId == DriverPrepareDriverPlan.SchemePlanId);
if (newDriverData != null)
{
newDriverData.ProjectId = DriverPrepareDriverPlan.ProjectId;
newDriverData.SchemePlanName = DriverPrepareDriverPlan.SchemePlanName;
newDriverData.SchemePlanCode = DriverPrepareDriverPlan.SchemePlanCode;
newDriverData.CompileMan = DriverPrepareDriverPlan.CompileMan;
newDriverData.CompileDate = DriverPrepareDriverPlan.CompileDate;
newDriverData.AttachUrl = DriverPrepareDriverPlan.AttachUrl;
newDriverData.Remark = DriverPrepareDriverPlan.Remark;
}
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除 开车资料收集
/// </summary>
/// <param name="DriverDataId"></param>
public static void DeleteDriverPlan(string SchemePlanId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverPrepare_SchemePlan newDriverData = db.DriverPrepare_SchemePlan.FirstOrDefault(e => e.SchemePlanId == SchemePlanId);
if (newDriverData != null)
{
db.DriverPrepare_SchemePlan.DeleteOnSubmit(newDriverData);
db.SubmitChanges();
}
}
}
/// <summary>
/// 详情--开车资料收集
/// </summary>
public static Model.DriverPrepare_SchemePlan GetDriverPlanById(string SchemePlanId)
{
return Funs.DB.DriverPrepare_SchemePlan.FirstOrDefault(e => e.SchemePlanId == SchemePlanId);
}
}
}