20251209 交工资料

This commit is contained in:
2025-12-09 17:19:07 +08:00
parent 39b1c75359
commit 140f98a08b
15 changed files with 2225 additions and 3 deletions
+1
View File
@@ -244,6 +244,7 @@
<Compile Include="HJGL\WeldingManage\WelderOKRateService.cs" />
<Compile Include="HJGL\WeldingManage\WelderOKRateStatisticsService.cs" />
<Compile Include="HJGL\WeldingManage\WeldRecordInService.cs" />
<Compile Include="JGZL\CommencementReportService.cs" />
<Compile Include="JsonHelper.cs" />
<Compile Include="libFace.cs" />
<Compile Include="libOpenCV.cs" />
+7
View File
@@ -1749,6 +1749,13 @@ namespace BLL
#endregion
#region Id
/// <summary>
/// 工程施工开工报告
/// </summary>
public const string JGZL_CommencementReportMenuId = "A4B2E5A9-96A8-460F-885A-BE5FF9B5019E";
#endregion
#region ID
/// <summary>
@@ -0,0 +1,86 @@
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
/// <summary>
/// 工程施工开工报告
/// </summary>
public class CommencementReportService
{
/// <summary>
/// 根据主键获取工程施工开工报告
/// </summary>
/// <param name="commencementReportId"></param>
/// <returns></returns>
public static Model.JGZL_CommencementReport GetCommencementReportById(string commencementReportId)
{
return Funs.DB.JGZL_CommencementReport.FirstOrDefault(e => e.CommencementReportId == commencementReportId);
}
/// <summary>
/// 添加工程施工开工报告
/// </summary>
/// <param name="commencementReport"></param>
public static void AddCommencementReport(Model.JGZL_CommencementReport commencementReport)
{
SGGLDB db = Funs.DB;
Model.JGZL_CommencementReport newCommencementReport = new Model.JGZL_CommencementReport();
newCommencementReport.CommencementReportId = commencementReport.CommencementReportId;
newCommencementReport.ProjectId = commencementReport.ProjectId;
newCommencementReport.ContractNumber = commencementReport.ContractNumber;
newCommencementReport.DesignUnit = commencementReport.DesignUnit;
newCommencementReport.PlannedStartDate = commencementReport.PlannedStartDate;
newCommencementReport.PlannedEndDate = commencementReport.PlannedEndDate;
newCommencementReport.ProjectContent = commencementReport.ProjectContent;
newCommencementReport.Conditions = commencementReport.Conditions;
newCommencementReport.ReviewOpinion = commencementReport.ReviewOpinion;
newCommencementReport.QualitySupervisionOpinion = commencementReport.QualitySupervisionOpinion;
newCommencementReport.CompileMan = commencementReport.CompileMan;
newCommencementReport.CompileDate = commencementReport.CompileDate;
db.JGZL_CommencementReport.InsertOnSubmit(newCommencementReport);
db.SubmitChanges();
}
/// <summary>
/// 修改工程施工报告
/// </summary>
/// <param name="commencementReport"></param>
public static void UpdateCommencementReport(Model.JGZL_CommencementReport commencementReport)
{
SGGLDB db = Funs.DB;
Model.JGZL_CommencementReport newCommencementReport = db.JGZL_CommencementReport.FirstOrDefault(e => e.CommencementReportId == commencementReport.CommencementReportId);
if (newCommencementReport != null)
{
newCommencementReport.ContractNumber = commencementReport.ContractNumber;
newCommencementReport.DesignUnit = commencementReport.DesignUnit;
newCommencementReport.PlannedStartDate = commencementReport.PlannedStartDate;
newCommencementReport.PlannedEndDate = commencementReport.PlannedEndDate;
newCommencementReport.ProjectContent = commencementReport.ProjectContent;
newCommencementReport.Conditions = commencementReport.Conditions;
newCommencementReport.ReviewOpinion = commencementReport.ReviewOpinion;
newCommencementReport.QualitySupervisionOpinion = commencementReport.QualitySupervisionOpinion;
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除工程施工开工报告
/// </summary>
/// <param name="commencementReportId"></param>
public static void DeleteCommencementReportById(string commencementReportId)
{
SGGLDB db = Funs.DB;
Model.JGZL_CommencementReport commencementReport = db.JGZL_CommencementReport.FirstOrDefault(e => e.CommencementReportId == commencementReportId);
if (commencementReport != null)
{
db.JGZL_CommencementReport.DeleteOnSubmit(commencementReport);
db.SubmitChanges();
}
}
}
}