修改生态环保报表
This commit is contained in:
@@ -605,5 +605,16 @@ namespace BLL
|
||||
if (now.Month < birthDate.Month || (now.Month == birthDate.Month && now.Day < birthDate.Day)) age--;
|
||||
return age;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到本单位Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string GetThisUnitId()
|
||||
{
|
||||
string unitId = Const.UnitId_CWCEC;
|
||||
|
||||
return unitId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ namespace BLL
|
||||
ProjectId = ePSummaryReport.ProjectId,
|
||||
UnitId = ePSummaryReport.UnitId,
|
||||
YearId = ePSummaryReport.YearId,
|
||||
Quarter= ePSummaryReport.Quarter,
|
||||
ResponsiblePerson = ePSummaryReport.ResponsiblePerson,
|
||||
ResponsiblePersonTel = ePSummaryReport.ResponsiblePersonTel,
|
||||
ContactPerson = ePSummaryReport.ContactPerson,
|
||||
@@ -63,6 +64,7 @@ namespace BLL
|
||||
{
|
||||
newReport.UnitId = ePSummaryReport.UnitId;
|
||||
newReport.YearId = ePSummaryReport.YearId;
|
||||
newReport.Quarter = ePSummaryReport.Quarter;
|
||||
newReport.ResponsiblePerson = ePSummaryReport.ResponsiblePerson;
|
||||
newReport.ResponsiblePersonTel = ePSummaryReport.ResponsiblePersonTel;
|
||||
newReport.ContactPerson = ePSummaryReport.ContactPerson;
|
||||
|
||||
@@ -1775,6 +1775,7 @@
|
||||
EPSummaryReportId = x.EPSummaryReportId,
|
||||
UnitId = x.UnitId,
|
||||
YearId = x.YearId,
|
||||
Quarter = x.Quarter,
|
||||
ResponsiblePerson = x.ResponsiblePerson,
|
||||
ResponsiblePersonTel = x.ResponsiblePersonTel,
|
||||
ContactPerson = x.ContactPerson,
|
||||
@@ -3286,4 +3287,4 @@
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -27,9 +27,9 @@ namespace BLL
|
||||
/// <param name="unitId"></param>
|
||||
/// <param name="yearId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Information_EPSummaryReport GetEPSummaryReportByUnitIdAndYearId(string unitId, int yearId)
|
||||
public static Model.Information_EPSummaryReport GetEPSummaryReportByUnitIdAndYearIdAndQuarters(string unitId, int yearId, int quarters)
|
||||
{
|
||||
return Funs.DB.Information_EPSummaryReport.FirstOrDefault(e => e.UnitId == unitId && e.YearId == yearId);
|
||||
return Funs.DB.Information_EPSummaryReport.FirstOrDefault(e => e.UnitId == unitId && e.YearId == yearId && e.Quarter == quarters);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -43,6 +43,7 @@ namespace BLL
|
||||
EPSummaryReportId = ePSummaryReport.EPSummaryReportId,
|
||||
UnitId = ePSummaryReport.UnitId,
|
||||
YearId = ePSummaryReport.YearId,
|
||||
Quarter = ePSummaryReport.Quarter,
|
||||
ResponsiblePerson = ePSummaryReport.ResponsiblePerson,
|
||||
ResponsiblePersonTel = ePSummaryReport.ResponsiblePersonTel,
|
||||
ContactPerson = ePSummaryReport.ContactPerson,
|
||||
@@ -73,6 +74,7 @@ namespace BLL
|
||||
{
|
||||
newReport.UnitId = ePSummaryReport.UnitId;
|
||||
newReport.YearId = ePSummaryReport.YearId;
|
||||
newReport.Quarter = ePSummaryReport.Quarter;
|
||||
newReport.ResponsiblePerson = ePSummaryReport.ResponsiblePerson;
|
||||
newReport.ResponsiblePersonTel = ePSummaryReport.ResponsiblePersonTel;
|
||||
newReport.ContactPerson = ePSummaryReport.ContactPerson;
|
||||
|
||||
Reference in New Issue
Block a user