20251209 交工资料
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user