This commit is contained in:
parent
bf9f9c44b5
commit
d10d6843cb
|
@ -2236,7 +2236,7 @@ namespace WebAPI.Controllers._7HJ
|
|||
new Model.Environmental_ArchitectureReport
|
||||
{
|
||||
Year = newItem.Year,
|
||||
Quarters = newItem.Quarters,
|
||||
Month = newItem.Month,
|
||||
UnitId = newItem.UnitId,
|
||||
FillingDate = date,
|
||||
DutyPerson = newItem.DutyPerson,
|
||||
|
@ -2244,8 +2244,8 @@ namespace WebAPI.Controllers._7HJ
|
|||
};
|
||||
var chemicalReportId = newItem.ArchitectureReportId ?? "";
|
||||
var oldArchitectureReport = db.Environmental_ArchitectureReport.FirstOrDefault(x =>
|
||||
x.UnitId == chemicalReport.UnitId && x.Year == chemicalReport.Year &&
|
||||
x.Quarters == chemicalReport.Quarters);
|
||||
x.UnitId == chemicalReport.UnitId && x.Year == chemicalReport.Year && x.Month == chemicalReport.Month
|
||||
);
|
||||
if (oldArchitectureReport == null)
|
||||
{
|
||||
chemicalReport.ArchitectureReportId = SQLHelper.GetNewID();
|
||||
|
@ -2371,7 +2371,7 @@ namespace WebAPI.Controllers._7HJ
|
|||
new Model.Environmental_ArchitectureReport
|
||||
{
|
||||
Year = newItem.Year,
|
||||
Quarters = newItem.Quarters,
|
||||
Month = newItem.Month,
|
||||
UnitId = newItem.UnitId,
|
||||
FillingDate = date,
|
||||
DutyPerson = newItem.DutyPerson,
|
||||
|
@ -2379,8 +2379,8 @@ namespace WebAPI.Controllers._7HJ
|
|||
};
|
||||
var chemicalReportId = newItem.ArchitectureReportId ?? "";
|
||||
var oldArchitectureReport = db.Environmental_ArchitectureReport.FirstOrDefault(x =>
|
||||
x.UnitId == chemicalReport.UnitId && x.Year == chemicalReport.Year &&
|
||||
x.Quarters == chemicalReport.Quarters);
|
||||
x.UnitId == chemicalReport.UnitId && x.Year == chemicalReport.Year && x.Month == chemicalReport.Month
|
||||
);
|
||||
if (oldArchitectureReport == null)
|
||||
{
|
||||
chemicalReport.ArchitectureReportId = SQLHelper.GetNewID();
|
||||
|
|
Loading…
Reference in New Issue