提交代码

This commit is contained in:
2024-02-28 16:45:20 +08:00
parent f227bbeba2
commit d28f7920d8
24 changed files with 5866 additions and 393 deletions
@@ -49,6 +49,32 @@ namespace BLL
Funs.DB.SubmitChanges();
}
public static void AddDriverRunForApi(Model.DriverRun_DriverRun driverRun)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.DriverRun_DriverRun newDriverRun = new Model.DriverRun_DriverRun();
newDriverRun.DriverRunId = driverRun.DriverRunId;
newDriverRun.ProjectId = driverRun.ProjectId;
newDriverRun.Code = driverRun.Code;
newDriverRun.UnitId = driverRun.UnitId;
newDriverRun.Implement = driverRun.Implement;
newDriverRun.Descriptions = driverRun.Descriptions;
newDriverRun.InstallationId = driverRun.InstallationId;
newDriverRun.InstallationNames = driverRun.InstallationNames;
newDriverRun.Objective = driverRun.Objective;
newDriverRun.NeedCompletedDate = driverRun.NeedCompletedDate;
newDriverRun.CompileMan = driverRun.CompileMan;
newDriverRun.CompileDate = driverRun.CompileDate;
newDriverRun.AttachUrl = driverRun.AttachUrl;
newDriverRun.Remark = driverRun.Remark;
newDriverRun.State = driverRun.State;
db.DriverRun_DriverRun.InsertOnSubmit(newDriverRun);
db.SubmitChanges();
}
}
/// <summary>
/// 修改开车保运管理
/// </summary>