2023-03-31 报表升级

This commit is contained in:
2023-03-31 10:21:00 +08:00
parent 5acee68633
commit 5ee3b089b7
175 changed files with 68864 additions and 2056 deletions
+10 -5
View File
@@ -4,9 +4,11 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
namespace BLL
{
/// <summary>
///
/// </summary>
public static class UrgeReportService
{
/// <summary>
@@ -19,11 +21,11 @@ namespace BLL
public static void SetComplete(string unitId, string reportType, string year, string value)
{
Model.Information_UrgeReport urgeReport = new Model.Information_UrgeReport();
if (reportType == Const.ReportType_1 || reportType == Const.ReportType_2)
if (reportType == Const.ReportType_1 || reportType == Const.ReportType_2 || reportType == Const.ReportType_8)
{
urgeReport = Funs.DB.Information_UrgeReport.FirstOrDefault(x => x.UnitId == unitId && x.ReprotType == reportType && x.YearId == year && x.MonthId == value);
}
else if (reportType == Const.ReportType_3 || reportType == Const.ReportType_4)
else if (reportType == Const.ReportType_3 || reportType == Const.ReportType_4 || reportType == Const.ReportType_9)
{
urgeReport = Funs.DB.Information_UrgeReport.FirstOrDefault(x => x.UnitId == unitId && x.ReprotType == reportType && x.YearId == year && x.QuarterId == value);
}
@@ -31,6 +33,10 @@ namespace BLL
{
urgeReport = Funs.DB.Information_UrgeReport.FirstOrDefault(x => x.UnitId == unitId && x.ReprotType == reportType && x.YearId == year && x.HalfYearId == value);
}
else if (reportType == Const.ReportType_6 || reportType == Const.ReportType_7 || reportType == Const.ReportType_10)
{
urgeReport = Funs.DB.Information_UrgeReport.FirstOrDefault(x => x.UnitId == unitId && x.ReprotType == reportType && x.YearId == year);
}
if (urgeReport != null)
{
urgeReport.IsComplete = true;
@@ -38,5 +44,4 @@ namespace BLL
}
}
}
}