提交试车代码
This commit is contained in:
@@ -285,23 +285,20 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
int index = list.Count + 1;
|
||||
foreach (var item in defaultDatas)
|
||||
{
|
||||
if (list.Count(x => x.WorkInspectName == item.WorkInspectName) == 0)
|
||||
{
|
||||
var model = new PreRun_SubInspectTermItem();
|
||||
model.TermItemId = Guid.NewGuid().ToString();
|
||||
model.SubItemId = Guid.NewGuid().ToString();
|
||||
model.ProjectId = this.CurrUser.LoginProjectId;
|
||||
model.WorkPackId = item.WorkPackId;
|
||||
model.WorkInspectId = item.WorkInspectId;
|
||||
model.WorkInspectName = item.WorkInspectName;
|
||||
model.InstallationId = subSysModel.InstallationId;
|
||||
model.ProcessesId = subSysModel.ProcessesId;
|
||||
model.SystemId = subSysModel.SystemId;
|
||||
model.SubSystemId = subSysModel.PreRunId;
|
||||
model.Sort = index + 1;
|
||||
result.Add(model);
|
||||
index++;
|
||||
}
|
||||
var model = new PreRun_SubInspectTermItem();
|
||||
model.TermItemId = Guid.NewGuid().ToString();
|
||||
model.SubItemId = Guid.NewGuid().ToString();
|
||||
model.ProjectId = this.CurrUser.LoginProjectId;
|
||||
model.WorkPackId = item.WorkPackId;
|
||||
model.WorkInspectId = item.WorkInspectId;
|
||||
model.WorkInspectName = item.WorkInspectName;
|
||||
model.InstallationId = subSysModel.InstallationId;
|
||||
model.ProcessesId = subSysModel.ProcessesId;
|
||||
model.SystemId = subSysModel.SystemId;
|
||||
model.SubSystemId = subSysModel.PreRunId;
|
||||
model.Sort = index + 1;
|
||||
result.Add(model);
|
||||
index++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user