提交代码

This commit is contained in:
2024-09-02 16:26:13 +08:00
parent 256c67cf52
commit 3a3a9a66f5
24 changed files with 2378 additions and 31 deletions
+1
View File
@@ -320,6 +320,7 @@
<Compile Include="CQMS\Plan\CQMS_MainPlanService.cs" />
<Compile Include="CQMS\Plan\CQMS_SubPlanApproveService.cs" />
<Compile Include="CQMS\Plan\CQMS_SubPlanService.cs" />
<Compile Include="CQMS\Plan\CQMS_TechnicalProposalReviewService.cs" />
<Compile Include="CQMS\RewardAndPunish\RewardAndPunishApproveService.cs" />
<Compile Include="CQMS\RewardAndPunish\RewardAndPunishService.cs" />
<Compile Include="CQMS\Solution\CQMSConstructSolutionApproveService.cs" />
@@ -0,0 +1,68 @@
using System.Collections.Generic;
using System.Linq;
using System.Web.UI.WebControls;
namespace BLL
{
public class CQMS_TechnicalProposalReviewService
{
/// <summary>
/// 获取项目技术方案评审信息
/// </summary>
/// <param name="UnitWorkId"></param>
/// <returns></returns>
public static Model.Plan_TechnicalProposalReview GetTechnicalProposalReviewByTechnicalProposalReviewId(string TechnicalProposalReviewId)
{
return Funs.DB.Plan_TechnicalProposalReview.FirstOrDefault(e => e.TechnicalProposalReviewId == TechnicalProposalReviewId);
}
/// <summary>
/// 添加项目技术方案评审信息
/// </summary>
/// <param name="WPQ"></param>
public static void AddTechnicalProposalReview(Model.Plan_TechnicalProposalReview TechnicalProposalReview)
{
Model.SGGLDB db = Funs.DB;
Model.Plan_TechnicalProposalReview newTechnicalProposalReview = new Model.Plan_TechnicalProposalReview();
newTechnicalProposalReview.TechnicalProposalReviewId = TechnicalProposalReview.TechnicalProposalReviewId;
newTechnicalProposalReview.ProjectId = TechnicalProposalReview.ProjectId;
newTechnicalProposalReview.Code = TechnicalProposalReview.Code;
newTechnicalProposalReview.Name = TechnicalProposalReview.Name;
newTechnicalProposalReview.CompileMan = TechnicalProposalReview.CompileMan;
newTechnicalProposalReview.CompileDate = TechnicalProposalReview.CompileDate;
db.Plan_TechnicalProposalReview.InsertOnSubmit(newTechnicalProposalReview);
db.SubmitChanges();
}
/// <summary>
/// 修改项目技术方案评审信息
/// </summary>
/// <param name="WPQ"></param>
public static void UpdateTechnicalProposalReview(Model.Plan_TechnicalProposalReview TechnicalProposalReview)
{
Model.SGGLDB db = Funs.DB;
Model.Plan_TechnicalProposalReview newTechnicalProposalReview = db.Plan_TechnicalProposalReview.FirstOrDefault(e => e.TechnicalProposalReviewId == TechnicalProposalReview.TechnicalProposalReviewId);
if (newTechnicalProposalReview != null)
{
newTechnicalProposalReview.Code = TechnicalProposalReview.Code;
newTechnicalProposalReview.Name = TechnicalProposalReview.Name;
newTechnicalProposalReview.CompileMan = TechnicalProposalReview.CompileMan;
newTechnicalProposalReview.CompileDate = TechnicalProposalReview.CompileDate;
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除项目技术方案评审信息
/// </summary>
/// <param name="checkerId"></param>
public static void DeleteTechnicalProposalReviewById(string TechnicalProposalReviewId)
{
Model.SGGLDB db = Funs.DB;
Model.Plan_TechnicalProposalReview TechnicalProposalReview = db.Plan_TechnicalProposalReview.FirstOrDefault(e => e.TechnicalProposalReviewId == TechnicalProposalReviewId);
if (TechnicalProposalReview != null)
{
db.Plan_TechnicalProposalReview.DeleteOnSubmit(TechnicalProposalReview);
db.SubmitChanges();
}
}
}
}
+5
View File
@@ -3818,6 +3818,11 @@ namespace BLL
/// 分包施工质量计划
/// </summary>
public const string SubPlanMenuId = "68DA6E87-1016-4225-AA80-117E788EEE9B";
/// <summary>
/// 项目技术方案评审
/// </summary>
public const string TechnicalProposalReviewMenuId = "D438ADBD-5A1C-44F5-A6D7-E4270469DE0F";
#endregion
#region
+33 -31
View File
@@ -567,37 +567,39 @@ namespace BLL
/// <param name="pipeline"></param>
public static void AddPipeline(Model.HJGL_Pipeline pipeline)
{
Model.SGGLDB db = Funs.DB;
Model.HJGL_Pipeline newPipeline = new Model.HJGL_Pipeline();
newPipeline.PipelineId = pipeline.PipelineId;
newPipeline.ProjectId = pipeline.ProjectId;
//newPipeline.InstallationId = pipeline.InstallationId;
newPipeline.UnitId = pipeline.UnitId;
newPipeline.UnitWorkId = pipeline.UnitWorkId;
newPipeline.PipelineCode = pipeline.PipelineCode;
newPipeline.SingleName = pipeline.SingleName;
newPipeline.SingleNumber = pipeline.SingleNumber;
newPipeline.PipingClassId = pipeline.PipingClassId;
newPipeline.MediumId = pipeline.MediumId;
newPipeline.DetectionRateId = pipeline.DetectionRateId;
newPipeline.DetectionType = pipeline.DetectionType;
newPipeline.DesignPress = pipeline.DesignPress;
newPipeline.DesignTemperature = pipeline.DesignTemperature;
newPipeline.TestPressure = pipeline.TestPressure;
newPipeline.TestMedium = pipeline.TestMedium;
newPipeline.PipeLenth = pipeline.PipeLenth;
newPipeline.PressurePipingClassId = pipeline.PressurePipingClassId;
newPipeline.Remark = pipeline.Remark;
newPipeline.LeakPressure = pipeline.LeakPressure;
newPipeline.LeakMedium = pipeline.LeakMedium;
newPipeline.VacuumPressure = pipeline.VacuumPressure;
newPipeline.PCMedium = pipeline.PCMedium;
newPipeline.PCtype = pipeline.PCtype;
newPipeline.MaterialId = pipeline.MaterialId;
newPipeline.State = pipeline.State;
newPipeline.FlowingSection = pipeline.FlowingSection;
db.HJGL_Pipeline.InsertOnSubmit(newPipeline);
db.SubmitChanges();
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.HJGL_Pipeline newPipeline = new Model.HJGL_Pipeline();
newPipeline.PipelineId = pipeline.PipelineId;
newPipeline.ProjectId = pipeline.ProjectId;
//newPipeline.InstallationId = pipeline.InstallationId;
newPipeline.UnitId = pipeline.UnitId;
newPipeline.UnitWorkId = pipeline.UnitWorkId;
newPipeline.PipelineCode = pipeline.PipelineCode;
newPipeline.SingleName = pipeline.SingleName;
newPipeline.SingleNumber = pipeline.SingleNumber;
newPipeline.PipingClassId = pipeline.PipingClassId;
newPipeline.MediumId = pipeline.MediumId;
newPipeline.DetectionRateId = pipeline.DetectionRateId;
newPipeline.DetectionType = pipeline.DetectionType;
newPipeline.DesignPress = pipeline.DesignPress;
newPipeline.DesignTemperature = pipeline.DesignTemperature;
newPipeline.TestPressure = pipeline.TestPressure;
newPipeline.TestMedium = pipeline.TestMedium;
newPipeline.PipeLenth = pipeline.PipeLenth;
newPipeline.PressurePipingClassId = pipeline.PressurePipingClassId;
newPipeline.Remark = pipeline.Remark;
newPipeline.LeakPressure = pipeline.LeakPressure;
newPipeline.LeakMedium = pipeline.LeakMedium;
newPipeline.VacuumPressure = pipeline.VacuumPressure;
newPipeline.PCMedium = pipeline.PCMedium;
newPipeline.PCtype = pipeline.PCtype;
newPipeline.MaterialId = pipeline.MaterialId;
newPipeline.State = pipeline.State;
newPipeline.FlowingSection = pipeline.FlowingSection;
db.HJGL_Pipeline.InsertOnSubmit(newPipeline);
db.SubmitChanges();
}
}
/// <summary>