督查大队台账上报

This commit is contained in:
geh
2026-01-13 20:23:03 +08:00
parent 1fd5831f29
commit 4ca3eeeb96
16 changed files with 5596 additions and 1 deletions
+1
View File
@@ -954,6 +954,7 @@
<Compile Include="ZHGL\Information\ActionWorkLedgerItemService.cs" />
<Compile Include="ZHGL\Information\ActionWorkLedgerService.cs" />
<Compile Include="ZHGL\Information\AnalyseResourceService.cs" />
<Compile Include="ZHGL\Information\DCGL_KeyProjectRectificationSituationLedgerService.cs" />
<Compile Include="ZHGL\Information\DrillConductedQuarterlyReportItemService.cs" />
<Compile Include="ZHGL\Information\DrillConductedQuarterlyReportService.cs" />
<Compile Include="ZHGL\Information\DrillPlanHalfYearReportItemService.cs" />
+6
View File
@@ -2000,6 +2000,12 @@ namespace BLL
#endregion
#region
/// <summary>
/// 重点工程项目质量专项整治行动开展情况台账
/// </summary>
public const string DCGLKeyProjectRectificationSituationLedgerMenuId = "35BA8E89-4575-4A3F-9C22-98B323E67DA1";
#region
/// <summary>
/// 企业安全数据统计月报
@@ -74,6 +74,76 @@
}
#region
#region
/// <summary>
/// 督查大队:重点工程项目质量专项整治行动开展情况台账上报
/// </summary>
/// <param name="Id"></param>
/// <param name="CurrUser"></param>
/// <returns></returns>
public static string UpKeyProjectRectificationSituationLedger(string Id, Model.Sys_User CurrUser)
{
string code = "0";
using (Model.SUBQHSEDB db = new Model.SUBQHSEDB(Funs.ConnString))
{
try
{
var upReport = from x in db.DCGL_Report_KeyProjectRectificationSituationLedger
where x.Id == Id
select x;
code = UpApiKeyProjectRectificationSituationLedger(upReport).ToString();
if (code == "1")
{
foreach (var item in upReport.Select(p => p.Id))
{
var report = db.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.Id == item);
if (report != null)
{
report.UpState = BLL.Const.UpState_3;
report.ReportDate = DateTime.Now;
db.SubmitChanges();
////更新 当前人要处理的意见
ProjectDataFlowSetService.CloseFlowOperate(Const.DCGLKeyProjectRectificationSituationLedgerMenuId, item, string.Empty);
// //更新催报信息
//UrgeReportService.SetComplete(report.UnitId, Const.ReportType_1, report.Year.ToString());
}
}
LogService.AddSys_Log(CurrUser, "【重点工程项目质量专项整治行动开展情况台账】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
else
{
LogService.AddSys_Log(CurrUser, "【重点工程项目质量专项整治行动开展情况台账】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
}
catch (Exception ex)
{
ErrLogInfo.WriteLog("【重点工程项目质量专项整治行动开展情况台账】上传到服务器", ex);
LogService.AddSys_Log(CurrUser, "【重点工程项目质量专项整治行动开展情况台账】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
return code;
}
}
/// <summary>
/// 重点工程项目质量专项整治行动开展情况台账
/// </summary>
/// <param name="upReport">主表</param>
/// <param name="upReportItem">明细表</param>
/// <returns></returns>
private static int UpApiKeyProjectRectificationSituationLedger(IQueryable<Model.DCGL_Report_KeyProjectRectificationSituationLedger> upReport)
{
string baseurl = "/api/InformationData/SaveKeyProjectRectificationSituationLedger";
var resultJsonReport = JsonConvert.SerializeObject(upReport.FirstOrDefault());
resultJsonReport = "{\"InformationDataItems\":[" + (resultJsonReport).Replace("}{", ",") + "]}";
var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
return responeData.code;
}
#endregion
#region
/// <summary>
/// 百万工时上报
@@ -0,0 +1,215 @@
using System.Collections.Generic;
using System.Linq;
namespace BLL
{
public static class DCGL_KeyProjectRectificationSituationLedgerService
{
/// <summary>
/// 重点工程项目质量专项整治行动开展情况台账
/// </summary>
/// <param name="Id">重点工程项目质量专项整治行动开展情况台账Id</param>
/// <returns>重点工程项目质量专项整治行动开展情况台账</returns>
public static Model.DCGL_Report_KeyProjectRectificationSituationLedger GetKeyProjectRectificationSituationLedgerById(string Id)
{
return Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.Id == Id);
}
///// <summary>
///// 重点工程项目质量专项整治行动开展情况台账
///// </summary>
///// <param name="unitId">单位Id</param>
///// <param name = "year" > 年度 </ param >
///// <param name="month">月份</param>
///// <returns>重点工程项目质量专项整治行动开展情况台账</returns>
//public static Model.DCGL_Report_KeyProjectRectificationSituationLedger GetKeyProjectRectificationSituationLedgerByUnitIdAndYearAndMonth(string unitId, int year, int month)
//{
// return Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.UnitId == unitId && e.Month == month && e.Year == year);
//}
/// <summary>
/// 根据单位Id获取重点工程项目质量专项整治行动开展情况台账集合
/// </summary>
/// <param name="UnitId">单位Id</param>
/// <returns>重点工程项目质量专项整治行动开展情况台账集合</returns>
public static List<Model.View_Information_MillionsMonthlyReport> GetMillionsMonthlyReportsByUnitId(string UnitId)
{
return (from x in Funs.DB.View_Information_MillionsMonthlyReport where x.UnitId == UnitId orderby x.FillingDate descending select x).ToList();
}
/// <summary>
/// 增加重点工程项目质量专项整治行动开展情况台账
/// </summary>
/// <param name="model">重点工程项目质量专项整治行动开展情况台账实体</param>
public static void AddKeyProjectRectificationSituationLedger(Model.DCGL_Report_KeyProjectRectificationSituationLedger model)
{
Model.DCGL_Report_KeyProjectRectificationSituationLedger newModel = new Model.DCGL_Report_KeyProjectRectificationSituationLedger
{
Id = model.Id,
UnitId = model.UnitId,
Year = model.Year,
UpState = model.UpState,
HandleState = model.HandleState,
HandleMan = model.HandleMan,
DutyPerson = model.DutyPerson,
CompileDate = model.CompileDate,
CompileMan = model.CompileMan,
CompileManName = model.CompileManName,
};
newModel.HasPlan = model.HasPlan;
newModel.PlanDate = model.PlanDate;
newModel.HasWorkTeam = model.HasWorkTeam;
newModel.TeamDate = model.TeamDate;
newModel.KeyProjectNum = model.KeyProjectNum;
newModel.Remark = model.Remark;
newModel.ReportDate = model.ReportDate;
newModel.StockCompanyKeyProjectCheckNum = model.StockCompanyKeyProjectCheckNum;
newModel.StockCompanyKeyProjectProblemNum = model.StockCompanyKeyProjectProblemNum;
newModel.StockCompanyKeyProjectProblemRectifiedNum = model.StockCompanyKeyProjectProblemRectifiedNum;
newModel.StockCompanyOtherProjectCheckNum = model.StockCompanyOtherProjectCheckNum;
newModel.StockCompanyOtherProjectProblemNum = model.StockCompanyOtherProjectProblemNum;
newModel.StockCompanyOtherProjectProblemRectifiedNum = model.StockCompanyOtherProjectProblemRectifiedNum;
newModel.BranchCompanyKeyProjectCheckNum = model.BranchCompanyKeyProjectCheckNum;
newModel.BranchCompanyKeyProjectProblemNum = model.BranchCompanyKeyProjectProblemNum;
newModel.BranchCompanyKeyProjectProblemRectifiedNum = model.BranchCompanyKeyProjectProblemRectifiedNum;
newModel.BranchCompanyOtherProjectCheckNum = model.BranchCompanyOtherProjectCheckNum;
newModel.BranchCompanyOtherProjectProblemNum = model.BranchCompanyOtherProjectProblemNum;
newModel.BranchCompanyOtherProjectProblemRectifiedNum = model.BranchCompanyOtherProjectProblemRectifiedNum;
newModel.ProjectSelfCheckNum = model.ProjectSelfCheckNum;
newModel.ProjectSelfCheckProblemNum = model.ProjectSelfCheckProblemNum;
newModel.ProjectSelfCheckProblemRectifiedNum = model.ProjectSelfCheckProblemRectifiedNum;
newModel.KeyProjectProblemNumType1 = model.KeyProjectProblemNumType1;
newModel.KeyProjectProblemRectifiedNumType1 = model.KeyProjectProblemRectifiedNumType1;
newModel.KeyProjectProblemNumType2 = model.KeyProjectProblemNumType2;
newModel.KeyProjectProblemRectifiedNumType2 = model.KeyProjectProblemRectifiedNumType2;
newModel.KeyProjectProblemNumType3 = model.KeyProjectProblemNumType3;
newModel.KeyProjectProblemRectifiedNumType3 = model.KeyProjectProblemRectifiedNumType3;
newModel.KeyProjectProblemNumType4 = model.KeyProjectProblemNumType4;
newModel.KeyProjectProblemRectifiedNumType4 = model.KeyProjectProblemRectifiedNumType4;
newModel.KeyProjectProblemNumType5 = model.KeyProjectProblemNumType5;
newModel.KeyProjectProblemRectifiedNumType5 = model.KeyProjectProblemRectifiedNumType5;
newModel.KeyProjectProblemNumType6 = model.KeyProjectProblemNumType6;
newModel.KeyProjectProblemRectifiedNumType6 = model.KeyProjectProblemRectifiedNumType6;
newModel.KeyProjectProblemNumType7 = model.KeyProjectProblemNumType7;
newModel.KeyProjectProblemRectifiedNumType7 = model.KeyProjectProblemRectifiedNumType7;
newModel.OtherProjectProblemNumType1 = model.OtherProjectProblemNumType1;
newModel.OtherProjectProblemRectifiedNumType1 = model.OtherProjectProblemRectifiedNumType1;
newModel.OtherProjectProblemNumType2 = model.OtherProjectProblemNumType2;
newModel.OtherProjectProblemRectifiedNumType2 = model.OtherProjectProblemRectifiedNumType2;
newModel.OtherProjectProblemNumType3 = model.OtherProjectProblemNumType3;
newModel.OtherProjectProblemRectifiedNumType3 = model.OtherProjectProblemRectifiedNumType3;
newModel.OtherProjectProblemNumType4 = model.OtherProjectProblemNumType4;
newModel.OtherProjectProblemRectifiedNumType4 = model.OtherProjectProblemRectifiedNumType4;
newModel.OtherProjectProblemNumType5 = model.OtherProjectProblemNumType5;
newModel.OtherProjectProblemRectifiedNumType5 = model.OtherProjectProblemRectifiedNumType5;
newModel.OtherProjectProblemNumType6 = model.OtherProjectProblemNumType6;
newModel.OtherProjectProblemRectifiedNumType6 = model.OtherProjectProblemRectifiedNumType6;
newModel.OtherProjectProblemNumType7 = model.OtherProjectProblemNumType7;
newModel.OtherProjectProblemRectifiedNumType7 = model.OtherProjectProblemRectifiedNumType7;
Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.InsertOnSubmit(newModel);
Funs.DB.SubmitChanges();
}
/// <summary>
/// 修改重点工程项目质量专项整治行动开展情况台账
/// </summary>
/// <param name="model">重点工程项目质量专项整治行动开展情况台账实体</param>
public static void UpdateKeyProjectRectificationSituationLedger(Model.DCGL_Report_KeyProjectRectificationSituationLedger model)
{
Model.DCGL_Report_KeyProjectRectificationSituationLedger newModel = Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.Id == model.Id);
if (newModel != null)
{
newModel.UnitId = model.UnitId;
newModel.Year = model.Year;
newModel.UpState = model.UpState;
newModel.HandleState = model.HandleState;
newModel.HandleMan = model.HandleMan;
newModel.DutyPerson = model.DutyPerson;
newModel.ReportDate = model.ReportDate;
newModel.CompileDate = model.CompileDate;
newModel.HasPlan = model.HasPlan;
newModel.PlanDate = model.PlanDate;
newModel.HasWorkTeam = model.HasWorkTeam;
newModel.TeamDate = model.TeamDate;
newModel.KeyProjectNum = model.KeyProjectNum;
newModel.Remark = model.Remark;
newModel.StockCompanyKeyProjectCheckNum = model.StockCompanyKeyProjectCheckNum;
newModel.StockCompanyKeyProjectProblemNum = model.StockCompanyKeyProjectProblemNum;
newModel.StockCompanyKeyProjectProblemRectifiedNum = model.StockCompanyKeyProjectProblemRectifiedNum;
newModel.StockCompanyOtherProjectCheckNum = model.StockCompanyOtherProjectCheckNum;
newModel.StockCompanyOtherProjectProblemNum = model.StockCompanyOtherProjectProblemNum;
newModel.StockCompanyOtherProjectProblemRectifiedNum = model.StockCompanyOtherProjectProblemRectifiedNum;
newModel.BranchCompanyKeyProjectCheckNum = model.BranchCompanyKeyProjectCheckNum;
newModel.BranchCompanyKeyProjectProblemNum = model.BranchCompanyKeyProjectProblemNum;
newModel.BranchCompanyKeyProjectProblemRectifiedNum = model.BranchCompanyKeyProjectProblemRectifiedNum;
newModel.BranchCompanyOtherProjectCheckNum = model.BranchCompanyOtherProjectCheckNum;
newModel.BranchCompanyOtherProjectProblemNum = model.BranchCompanyOtherProjectProblemNum;
newModel.BranchCompanyOtherProjectProblemRectifiedNum = model.BranchCompanyOtherProjectProblemRectifiedNum;
newModel.ProjectSelfCheckNum = model.ProjectSelfCheckNum;
newModel.ProjectSelfCheckProblemNum = model.ProjectSelfCheckProblemNum;
newModel.ProjectSelfCheckProblemRectifiedNum = model.ProjectSelfCheckProblemRectifiedNum;
newModel.KeyProjectProblemNumType1 = model.KeyProjectProblemNumType1;
newModel.KeyProjectProblemRectifiedNumType1 = model.KeyProjectProblemRectifiedNumType1;
newModel.KeyProjectProblemNumType2 = model.KeyProjectProblemNumType2;
newModel.KeyProjectProblemRectifiedNumType2 = model.KeyProjectProblemRectifiedNumType2;
newModel.KeyProjectProblemNumType3 = model.KeyProjectProblemNumType3;
newModel.KeyProjectProblemRectifiedNumType3 = model.KeyProjectProblemRectifiedNumType3;
newModel.KeyProjectProblemNumType4 = model.KeyProjectProblemNumType4;
newModel.KeyProjectProblemRectifiedNumType4 = model.KeyProjectProblemRectifiedNumType4;
newModel.KeyProjectProblemNumType5 = model.KeyProjectProblemNumType5;
newModel.KeyProjectProblemRectifiedNumType5 = model.KeyProjectProblemRectifiedNumType5;
newModel.KeyProjectProblemNumType6 = model.KeyProjectProblemNumType6;
newModel.KeyProjectProblemRectifiedNumType6 = model.KeyProjectProblemRectifiedNumType6;
newModel.KeyProjectProblemNumType7 = model.KeyProjectProblemNumType7;
newModel.KeyProjectProblemRectifiedNumType7 = model.KeyProjectProblemRectifiedNumType7;
newModel.OtherProjectProblemNumType1 = model.OtherProjectProblemNumType1;
newModel.OtherProjectProblemRectifiedNumType1 = model.OtherProjectProblemRectifiedNumType1;
newModel.OtherProjectProblemNumType2 = model.OtherProjectProblemNumType2;
newModel.OtherProjectProblemRectifiedNumType2 = model.OtherProjectProblemRectifiedNumType2;
newModel.OtherProjectProblemNumType3 = model.OtherProjectProblemNumType3;
newModel.OtherProjectProblemRectifiedNumType3 = model.OtherProjectProblemRectifiedNumType3;
newModel.OtherProjectProblemNumType4 = model.OtherProjectProblemNumType4;
newModel.OtherProjectProblemRectifiedNumType4 = model.OtherProjectProblemRectifiedNumType4;
newModel.OtherProjectProblemNumType5 = model.OtherProjectProblemNumType5;
newModel.OtherProjectProblemRectifiedNumType5 = model.OtherProjectProblemRectifiedNumType5;
newModel.OtherProjectProblemNumType6 = model.OtherProjectProblemNumType6;
newModel.OtherProjectProblemRectifiedNumType6 = model.OtherProjectProblemRectifiedNumType6;
newModel.OtherProjectProblemNumType7 = model.OtherProjectProblemNumType7;
newModel.OtherProjectProblemRectifiedNumType7 = model.OtherProjectProblemRectifiedNumType7;
Funs.DB.SubmitChanges();
}
}
/// <summary>
/// 根据Id获取数据
/// </summary>
/// <param name="Id"></param>
public static void DeleteKeyProjectRectificationSituationLedgerById(string Id)
{
Model.DCGL_Report_KeyProjectRectificationSituationLedger newModel = Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.Id == Id);
if (newModel != null)
{
Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.DeleteOnSubmit(newModel);
Funs.DB.SubmitChanges();
}
}
/// <summary>
/// 根据报表单位,报表时间判断是否存在
/// </summary>
/// <param name="Id">Id</param>
/// <returns></returns>
public static Model.DCGL_Report_KeyProjectRectificationSituationLedger GetKeyProjectRectificationSituationLedgerByUnitIdDate(string unitId, int year)
{
return Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.UnitId == unitId && e.Year == year);
}
}
}