2023-11-16
This commit is contained in:
@@ -156,47 +156,51 @@ namespace BLL
|
|||||||
/// <param name="newtable"></param>
|
/// <param name="newtable"></param>
|
||||||
public static void AddProject_CQMSData_CQMS(Model.Project_CQMSData_CQMS newtable)
|
public static void AddProject_CQMSData_CQMS(Model.Project_CQMSData_CQMS newtable)
|
||||||
{
|
{
|
||||||
|
using (var db = new SGGLDB(Funs.ConnString))
|
||||||
Model.Project_CQMSData_CQMS table = new Model.Project_CQMSData_CQMS
|
|
||||||
{
|
{
|
||||||
Id = newtable.Id,
|
Model.Project_CQMSData_CQMS table = new Model.Project_CQMSData_CQMS
|
||||||
ProjectId = newtable.ProjectId,
|
{
|
||||||
UnitId = newtable.UnitId,
|
Id = newtable.Id,
|
||||||
CollCropCode = newtable.CollCropCode,
|
ProjectId = newtable.ProjectId,
|
||||||
UnitName = newtable.UnitName,
|
UnitId = newtable.UnitId,
|
||||||
ReportDate = newtable.ReportDate,
|
CollCropCode = newtable.CollCropCode,
|
||||||
TrainPersonNum = newtable.TrainPersonNum,
|
UnitName = newtable.UnitName,
|
||||||
TechnicalDisclosePersonNum = newtable.TechnicalDisclosePersonNum,
|
ReportDate = newtable.ReportDate,
|
||||||
UseNum = newtable.UseNum,
|
TrainPersonNum = newtable.TrainPersonNum,
|
||||||
OKNum = newtable.OKNum,
|
TechnicalDisclosePersonNum = newtable.TechnicalDisclosePersonNum,
|
||||||
CompanyPersonNum = newtable.CompanyPersonNum,
|
UseNum = newtable.UseNum,
|
||||||
BranchPersonNum = newtable.BranchPersonNum,
|
OKNum = newtable.OKNum,
|
||||||
ProjectPersonNum = newtable.ProjectPersonNum,
|
CompanyPersonNum = newtable.CompanyPersonNum,
|
||||||
ProblemNum = newtable.ProblemNum,
|
BranchPersonNum = newtable.BranchPersonNum,
|
||||||
ProblemCompletedNum = newtable.ProblemCompletedNum,
|
ProjectPersonNum = newtable.ProjectPersonNum,
|
||||||
ProblemNotCompletedNum = newtable.ProblemNotCompletedNum,
|
ProblemNum = newtable.ProblemNum,
|
||||||
SNum = newtable.SNum,
|
ProblemCompletedNum = newtable.ProblemCompletedNum,
|
||||||
ANum = newtable.ANum,
|
ProblemNotCompletedNum = newtable.ProblemNotCompletedNum,
|
||||||
BNum = newtable.BNum,
|
SNum = newtable.SNum,
|
||||||
CNum = newtable.CNum,
|
ANum = newtable.ANum,
|
||||||
KeyProcessNum = newtable.KeyProcessNum,
|
BNum = newtable.BNum,
|
||||||
KeyProcessOKNum = newtable.KeyProcessOKNum,
|
CNum = newtable.CNum,
|
||||||
SpecialProcessNum = newtable.SpecialProcessNum,
|
KeyProcessNum = newtable.KeyProcessNum,
|
||||||
SpecialProcessOKNum = newtable.SpecialProcessOKNum,
|
KeyProcessOKNum = newtable.KeyProcessOKNum,
|
||||||
ConcealedWorksNum = newtable.ConcealedWorksNum,
|
SpecialProcessNum = newtable.SpecialProcessNum,
|
||||||
ConcealedWorksOKNum = newtable.ConcealedWorksOKNum,
|
SpecialProcessOKNum = newtable.SpecialProcessOKNum,
|
||||||
UnitProjectOnesNum = newtable.UnitProjectOnesNum,
|
ConcealedWorksNum = newtable.ConcealedWorksNum,
|
||||||
UnitProjectOnesOKNum = newtable.UnitProjectOnesOKNum,
|
ConcealedWorksOKNum = newtable.ConcealedWorksOKNum,
|
||||||
MaterialInRecheckNum = newtable.MaterialInRecheckNum,
|
UnitProjectOnesNum = newtable.UnitProjectOnesNum,
|
||||||
MaterialInRecheckOKNum = newtable.MaterialInRecheckOKNum,
|
UnitProjectOnesOKNum = newtable.UnitProjectOnesOKNum,
|
||||||
SingleProjectNum = newtable.SingleProjectNum,
|
MaterialInRecheckNum = newtable.MaterialInRecheckNum,
|
||||||
UnitProjectNum = newtable.UnitProjectNum,
|
MaterialInRecheckOKNum = newtable.MaterialInRecheckOKNum,
|
||||||
SubProjectNum = newtable.SubProjectNum,
|
SingleProjectNum = newtable.SingleProjectNum,
|
||||||
SubdivisionalWorksNum = newtable.SubdivisionalWorksNum,
|
UnitProjectNum = newtable.UnitProjectNum,
|
||||||
InspectionLotNum = newtable.InspectionLotNum,
|
SubProjectNum = newtable.SubProjectNum,
|
||||||
};
|
SubdivisionalWorksNum = newtable.SubdivisionalWorksNum,
|
||||||
db.Project_CQMSData_CQMS.InsertOnSubmit(table);
|
InspectionLotNum = newtable.InspectionLotNum,
|
||||||
db.SubmitChanges();
|
};
|
||||||
|
db.Project_CQMSData_CQMS.InsertOnSubmit(table);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 修改
|
/// 修改
|
||||||
@@ -205,46 +209,50 @@ namespace BLL
|
|||||||
public static void UpdateProject_CQMSData_CQMS(Model.Project_CQMSData_CQMS newtable)
|
public static void UpdateProject_CQMSData_CQMS(Model.Project_CQMSData_CQMS newtable)
|
||||||
{
|
{
|
||||||
|
|
||||||
Model.Project_CQMSData_CQMS table = db.Project_CQMSData_CQMS.FirstOrDefault(x => x.Id == newtable.Id);
|
using (var db = new SGGLDB(Funs.ConnString))
|
||||||
if (table != null)
|
|
||||||
{
|
{
|
||||||
table.Id = newtable.Id;
|
Model.Project_CQMSData_CQMS table = db.Project_CQMSData_CQMS.FirstOrDefault(x => x.Id == newtable.Id);
|
||||||
table.ProjectId = newtable.ProjectId;
|
if (table != null)
|
||||||
table.UnitId = newtable.UnitId;
|
{
|
||||||
table.CollCropCode = newtable.CollCropCode;
|
table.Id = newtable.Id;
|
||||||
table.UnitName = newtable.UnitName;
|
table.ProjectId = newtable.ProjectId;
|
||||||
table.ReportDate = newtable.ReportDate;
|
table.UnitId = newtable.UnitId;
|
||||||
table.TrainPersonNum = newtable.TrainPersonNum;
|
table.CollCropCode = newtable.CollCropCode;
|
||||||
table.TechnicalDisclosePersonNum = newtable.TechnicalDisclosePersonNum;
|
table.UnitName = newtable.UnitName;
|
||||||
table.UseNum = newtable.UseNum;
|
table.ReportDate = newtable.ReportDate;
|
||||||
table.OKNum = newtable.OKNum;
|
table.TrainPersonNum = newtable.TrainPersonNum;
|
||||||
table.CompanyPersonNum = newtable.CompanyPersonNum;
|
table.TechnicalDisclosePersonNum = newtable.TechnicalDisclosePersonNum;
|
||||||
table.BranchPersonNum = newtable.BranchPersonNum;
|
table.UseNum = newtable.UseNum;
|
||||||
table.ProjectPersonNum = newtable.ProjectPersonNum;
|
table.OKNum = newtable.OKNum;
|
||||||
table.ProblemNum = newtable.ProblemNum;
|
table.CompanyPersonNum = newtable.CompanyPersonNum;
|
||||||
table.ProblemCompletedNum = newtable.ProblemCompletedNum;
|
table.BranchPersonNum = newtable.BranchPersonNum;
|
||||||
table.ProblemNotCompletedNum = newtable.ProblemNotCompletedNum;
|
table.ProjectPersonNum = newtable.ProjectPersonNum;
|
||||||
table.SNum = newtable.SNum;
|
table.ProblemNum = newtable.ProblemNum;
|
||||||
table.ANum = newtable.ANum;
|
table.ProblemCompletedNum = newtable.ProblemCompletedNum;
|
||||||
table.BNum = newtable.BNum;
|
table.ProblemNotCompletedNum = newtable.ProblemNotCompletedNum;
|
||||||
table.CNum = newtable.CNum;
|
table.SNum = newtable.SNum;
|
||||||
table.KeyProcessNum = newtable.KeyProcessNum;
|
table.ANum = newtable.ANum;
|
||||||
table.KeyProcessOKNum = newtable.KeyProcessOKNum;
|
table.BNum = newtable.BNum;
|
||||||
table.SpecialProcessNum = newtable.SpecialProcessNum;
|
table.CNum = newtable.CNum;
|
||||||
table.SpecialProcessOKNum = newtable.SpecialProcessOKNum;
|
table.KeyProcessNum = newtable.KeyProcessNum;
|
||||||
table.ConcealedWorksNum = newtable.ConcealedWorksNum;
|
table.KeyProcessOKNum = newtable.KeyProcessOKNum;
|
||||||
table.ConcealedWorksOKNum = newtable.ConcealedWorksOKNum;
|
table.SpecialProcessNum = newtable.SpecialProcessNum;
|
||||||
table.UnitProjectOnesNum = newtable.UnitProjectOnesNum;
|
table.SpecialProcessOKNum = newtable.SpecialProcessOKNum;
|
||||||
table.UnitProjectOnesOKNum = newtable.UnitProjectOnesOKNum;
|
table.ConcealedWorksNum = newtable.ConcealedWorksNum;
|
||||||
table.MaterialInRecheckNum = newtable.MaterialInRecheckNum;
|
table.ConcealedWorksOKNum = newtable.ConcealedWorksOKNum;
|
||||||
table.MaterialInRecheckOKNum = newtable.MaterialInRecheckOKNum;
|
table.UnitProjectOnesNum = newtable.UnitProjectOnesNum;
|
||||||
table.SingleProjectNum = newtable.SingleProjectNum;
|
table.UnitProjectOnesOKNum = newtable.UnitProjectOnesOKNum;
|
||||||
table.UnitProjectNum = newtable.UnitProjectNum;
|
table.MaterialInRecheckNum = newtable.MaterialInRecheckNum;
|
||||||
table.SubProjectNum = newtable.SubProjectNum;
|
table.MaterialInRecheckOKNum = newtable.MaterialInRecheckOKNum;
|
||||||
table.SubdivisionalWorksNum = newtable.SubdivisionalWorksNum;
|
table.SingleProjectNum = newtable.SingleProjectNum;
|
||||||
table.InspectionLotNum = newtable.InspectionLotNum;
|
table.UnitProjectNum = newtable.UnitProjectNum;
|
||||||
db.SubmitChanges();
|
table.SubProjectNum = newtable.SubProjectNum;
|
||||||
|
table.SubdivisionalWorksNum = newtable.SubdivisionalWorksNum;
|
||||||
|
table.InspectionLotNum = newtable.InspectionLotNum;
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -254,12 +262,16 @@ namespace BLL
|
|||||||
public static void DeleteProject_CQMSData_CQMSById(string Id)
|
public static void DeleteProject_CQMSData_CQMSById(string Id)
|
||||||
{
|
{
|
||||||
|
|
||||||
Model.Project_CQMSData_CQMS table = db.Project_CQMSData_CQMS.FirstOrDefault(x => x.Id == Id);
|
using (var db = new SGGLDB(Funs.ConnString))
|
||||||
if (table != null)
|
|
||||||
{
|
{
|
||||||
db.Project_CQMSData_CQMS.DeleteOnSubmit(table);
|
Model.Project_CQMSData_CQMS table = db.Project_CQMSData_CQMS.FirstOrDefault(x => x.Id == Id);
|
||||||
db.SubmitChanges();
|
if (table != null)
|
||||||
|
{
|
||||||
|
db.Project_CQMSData_CQMS.DeleteOnSubmit(table);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using FineUIPro;
|
using FineUIPro;
|
||||||
|
using Model;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@@ -87,62 +88,75 @@ namespace BLL
|
|||||||
|
|
||||||
public static void AddProject_HJGLData_Defect(Model.Project_HJGLData_Defect newtable)
|
public static void AddProject_HJGLData_Defect(Model.Project_HJGLData_Defect newtable)
|
||||||
{
|
{
|
||||||
|
using (var db = new SGGLDB(Funs.ConnString))
|
||||||
Model.Project_HJGLData_Defect table = new Model.Project_HJGLData_Defect
|
|
||||||
{
|
{
|
||||||
Id = newtable.Id,
|
Model.Project_HJGLData_Defect table = new Model.Project_HJGLData_Defect
|
||||||
ProjectId = newtable.ProjectId,
|
{
|
||||||
UnitId = newtable.UnitId,
|
Id = newtable.Id,
|
||||||
CollCropCode = newtable.CollCropCode,
|
ProjectId = newtable.ProjectId,
|
||||||
UnitName = newtable.UnitName,
|
UnitId = newtable.UnitId,
|
||||||
ReportDate = newtable.ReportDate,
|
CollCropCode = newtable.CollCropCode,
|
||||||
DefectName = newtable.DefectName,
|
UnitName = newtable.UnitName,
|
||||||
DefectNum = newtable.DefectNum,
|
ReportDate = newtable.ReportDate,
|
||||||
};
|
DefectName = newtable.DefectName,
|
||||||
db.Project_HJGLData_Defect.InsertOnSubmit(table);
|
DefectNum = newtable.DefectNum,
|
||||||
db.SubmitChanges();
|
};
|
||||||
|
db.Project_HJGLData_Defect.InsertOnSubmit(table);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void UpdateProject_HJGLData_Defect(Model.Project_HJGLData_Defect newtable)
|
public static void UpdateProject_HJGLData_Defect(Model.Project_HJGLData_Defect newtable)
|
||||||
{
|
{
|
||||||
|
using (var db = new SGGLDB(Funs.ConnString))
|
||||||
Model.Project_HJGLData_Defect table = db.Project_HJGLData_Defect.FirstOrDefault(x => x.Id == newtable.Id);
|
|
||||||
if (table != null)
|
|
||||||
{
|
{
|
||||||
table.Id = newtable.Id;
|
Model.Project_HJGLData_Defect table = db.Project_HJGLData_Defect.FirstOrDefault(x => x.Id == newtable.Id);
|
||||||
table.ProjectId = newtable.ProjectId;
|
if (table != null)
|
||||||
table.UnitId = newtable.UnitId;
|
{
|
||||||
table.CollCropCode = newtable.CollCropCode;
|
table.Id = newtable.Id;
|
||||||
table.UnitName = newtable.UnitName;
|
table.ProjectId = newtable.ProjectId;
|
||||||
table.ReportDate = newtable.ReportDate;
|
table.UnitId = newtable.UnitId;
|
||||||
table.DefectName = newtable.DefectName;
|
table.CollCropCode = newtable.CollCropCode;
|
||||||
table.DefectNum = newtable.DefectNum;
|
table.UnitName = newtable.UnitName;
|
||||||
db.SubmitChanges();
|
table.ReportDate = newtable.ReportDate;
|
||||||
}
|
table.DefectName = newtable.DefectName;
|
||||||
|
table.DefectNum = newtable.DefectNum;
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void DeleteProject_HJGLData_DefectById(string Id)
|
public static void DeleteProject_HJGLData_DefectById(string Id)
|
||||||
{
|
{
|
||||||
|
using (var db = new SGGLDB(Funs.ConnString))
|
||||||
Model.Project_HJGLData_Defect table = db.Project_HJGLData_Defect.FirstOrDefault(x => x.Id == Id);
|
|
||||||
if (table != null)
|
|
||||||
{
|
{
|
||||||
db.Project_HJGLData_Defect.DeleteOnSubmit(table);
|
Model.Project_HJGLData_Defect table = db.Project_HJGLData_Defect.FirstOrDefault(x => x.Id == Id);
|
||||||
db.SubmitChanges();
|
if (table != null)
|
||||||
|
{
|
||||||
|
db.Project_HJGLData_Defect.DeleteOnSubmit(table);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public static void DeleteProject_HJGLData_DefectByDate(DateTime? reportDate, string projectid)
|
public static void DeleteProject_HJGLData_DefectByDate(DateTime? reportDate, string projectid)
|
||||||
{
|
{
|
||||||
|
using (var db = new SGGLDB(Funs.ConnString))
|
||||||
var table = db.Project_HJGLData_Defect.Where(x => x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0 && x.ProjectId == projectid);
|
|
||||||
if (table != null)
|
|
||||||
{
|
{
|
||||||
db.Project_HJGLData_Defect.DeleteAllOnSubmit(table);
|
var table = db.Project_HJGLData_Defect.Where(x => x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0 && x.ProjectId == projectid);
|
||||||
db.SubmitChanges();
|
if (table != null)
|
||||||
|
{
|
||||||
|
db.Project_HJGLData_Defect.DeleteAllOnSubmit(table);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 判断当天是否已统计数据
|
/// 判断当天是否已统计数据
|
||||||
|
|||||||
@@ -114,55 +114,63 @@ namespace BLL
|
|||||||
}
|
}
|
||||||
public static void AddProject_HJGLData_HJGL(Model.Project_HJGLData_HJGL newtable)
|
public static void AddProject_HJGLData_HJGL(Model.Project_HJGLData_HJGL newtable)
|
||||||
{
|
{
|
||||||
|
using (var db = new SGGLDB(Funs.ConnString))
|
||||||
Model.Project_HJGLData_HJGL table = new Model.Project_HJGLData_HJGL
|
|
||||||
{
|
{
|
||||||
Id = newtable.Id,
|
Model.Project_HJGLData_HJGL table = new Model.Project_HJGLData_HJGL
|
||||||
ProjectId = newtable.ProjectId,
|
{
|
||||||
UnitId = newtable.UnitId,
|
Id = newtable.Id,
|
||||||
CollCropCode = newtable.CollCropCode,
|
ProjectId = newtable.ProjectId,
|
||||||
UnitName = newtable.UnitName,
|
UnitId = newtable.UnitId,
|
||||||
ReportDate = newtable.ReportDate,
|
CollCropCode = newtable.CollCropCode,
|
||||||
WelderNum = newtable.WelderNum,
|
UnitName = newtable.UnitName,
|
||||||
TotalDineNum = newtable.TotalDineNum,
|
ReportDate = newtable.ReportDate,
|
||||||
CompleteDineNum = newtable.CompleteDineNum,
|
WelderNum = newtable.WelderNum,
|
||||||
TotalFilmNum = newtable.TotalFilmNum,
|
TotalDineNum = newtable.TotalDineNum,
|
||||||
OKFilmNum = newtable.OKFilmNum,
|
CompleteDineNum = newtable.CompleteDineNum,
|
||||||
};
|
TotalFilmNum = newtable.TotalFilmNum,
|
||||||
db.Project_HJGLData_HJGL.InsertOnSubmit(table);
|
OKFilmNum = newtable.OKFilmNum,
|
||||||
db.SubmitChanges();
|
};
|
||||||
|
db.Project_HJGLData_HJGL.InsertOnSubmit(table);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
public static void UpdateProject_HJGLData_HJGL(Model.Project_HJGLData_HJGL newtable)
|
public static void UpdateProject_HJGLData_HJGL(Model.Project_HJGLData_HJGL newtable)
|
||||||
{
|
{
|
||||||
|
using (var db = new SGGLDB(Funs.ConnString))
|
||||||
Model.Project_HJGLData_HJGL table = db.Project_HJGLData_HJGL.FirstOrDefault(x => x.Id == newtable.Id);
|
|
||||||
if (table != null)
|
|
||||||
{
|
{
|
||||||
table.Id = newtable.Id;
|
Model.Project_HJGLData_HJGL table = db.Project_HJGLData_HJGL.FirstOrDefault(x => x.Id == newtable.Id);
|
||||||
table.ProjectId = newtable.ProjectId;
|
if (table != null)
|
||||||
table.UnitId = newtable.UnitId;
|
{
|
||||||
table.CollCropCode = newtable.CollCropCode;
|
table.Id = newtable.Id;
|
||||||
table.UnitName = newtable.UnitName;
|
table.ProjectId = newtable.ProjectId;
|
||||||
table.ReportDate = newtable.ReportDate;
|
table.UnitId = newtable.UnitId;
|
||||||
table.WelderNum = newtable.WelderNum;
|
table.CollCropCode = newtable.CollCropCode;
|
||||||
table.TotalDineNum = newtable.TotalDineNum;
|
table.UnitName = newtable.UnitName;
|
||||||
table.CompleteDineNum = newtable.CompleteDineNum;
|
table.ReportDate = newtable.ReportDate;
|
||||||
table.TotalFilmNum = newtable.TotalFilmNum;
|
table.WelderNum = newtable.WelderNum;
|
||||||
table.OKFilmNum = newtable.OKFilmNum;
|
table.TotalDineNum = newtable.TotalDineNum;
|
||||||
db.SubmitChanges();
|
table.CompleteDineNum = newtable.CompleteDineNum;
|
||||||
|
table.TotalFilmNum = newtable.TotalFilmNum;
|
||||||
|
table.OKFilmNum = newtable.OKFilmNum;
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
public static void DeleteProject_HJGLData_HJGLById(string Id)
|
public static void DeleteProject_HJGLData_HJGLById(string Id)
|
||||||
{
|
{
|
||||||
|
using (var db = new SGGLDB(Funs.ConnString))
|
||||||
Model.Project_HJGLData_HJGL table = db.Project_HJGLData_HJGL.FirstOrDefault(x => x.Id == Id);
|
|
||||||
if (table != null)
|
|
||||||
{
|
{
|
||||||
db.Project_HJGLData_HJGL.DeleteOnSubmit(table);
|
Model.Project_HJGLData_HJGL table = db.Project_HJGLData_HJGL.FirstOrDefault(x => x.Id == Id);
|
||||||
db.SubmitChanges();
|
if (table != null)
|
||||||
|
{
|
||||||
|
db.Project_HJGLData_HJGL.DeleteOnSubmit(table);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 判断该项目的该日期是否统计数据
|
/// 判断该项目的该日期是否统计数据
|
||||||
|
|||||||
+5
-3
@@ -114,9 +114,11 @@ namespace BLL
|
|||||||
}
|
}
|
||||||
public static void AddBulkProject_HSSEData_HiddenDangerDetails(List<Model.Project_HSSEData_HiddenDangerDetail> newtables)
|
public static void AddBulkProject_HSSEData_HiddenDangerDetails(List<Model.Project_HSSEData_HiddenDangerDetail> newtables)
|
||||||
{
|
{
|
||||||
|
using (var db = new SGGLDB(Funs.ConnString))
|
||||||
db.Project_HSSEData_HiddenDangerDetail.InsertAllOnSubmit(newtables);
|
{
|
||||||
db.SubmitChanges();
|
db.Project_HSSEData_HiddenDangerDetail.InsertAllOnSubmit(newtables);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public static void UpdateProject_HSSEData_HiddenDangerDetail(Model.Project_HSSEData_HiddenDangerDetail newtable)
|
public static void UpdateProject_HSSEData_HiddenDangerDetail(Model.Project_HSSEData_HiddenDangerDetail newtable)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user