1109-gaofei
This commit is contained in:
@@ -21,11 +21,16 @@ namespace BLL
|
||||
string message = string.Empty;
|
||||
if (list.Count > 0)
|
||||
{
|
||||
|
||||
var project = db.Base_Project.FirstOrDefault(x => x.HJProjectCode == list[0].ProjectId);
|
||||
if (project != null)
|
||||
{
|
||||
string projectId = project.ProjectId;
|
||||
var oldList = db.HJGL_FinishRate.Where(x => x.ProjectId == projectId);
|
||||
if (oldList.Count() > 0)
|
||||
{
|
||||
db.HJGL_FinishRate.DeleteAllOnSubmit(oldList);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
foreach (var item in list)
|
||||
{
|
||||
Model.HJGL_FinishRate newFinishRate = new Model.HJGL_FinishRate
|
||||
|
||||
Reference in New Issue
Block a user