20251218 施工图核查记录
This commit is contained in:
@@ -247,6 +247,7 @@
|
||||
<Compile Include="HJGL\WeldingManage\WeldRecordInService.cs" />
|
||||
<Compile Include="JGZL\AcceptanceCertificateService.cs" />
|
||||
<Compile Include="JGZL\CommencementReportService.cs" />
|
||||
<Compile Include="JGZL\ConDrawingVerificationService.cs" />
|
||||
<Compile Include="JGZL\ContactService.cs" />
|
||||
<Compile Include="JGZL\HandoverCertificateService.cs" />
|
||||
<Compile Include="JsonHelper.cs" />
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing.Printing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
@@ -1774,6 +1775,11 @@ namespace BLL
|
||||
/// 工程联络单
|
||||
/// </summary>
|
||||
public const string JGZL_ContactMenuId = "05725865-4CC9-43A0-A525-F2730019F61C";
|
||||
|
||||
/// <summary>
|
||||
/// 施工图核查记录
|
||||
/// </summary>
|
||||
public const string JGZL_ConDrawingVerificationMenuId = "E6221F7D-9A68-44FB-974D-6857EC9CC5E8";
|
||||
#endregion
|
||||
|
||||
#region 报表对应ID
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 施工图核查记录
|
||||
/// </summary>
|
||||
public class ConDrawingVerificationService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取施工图核查记录
|
||||
/// </summary>
|
||||
/// <param name="conDrawingVerificationId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.JGZL_ConDrawingVerification GetConDrawingVerificationById(string conDrawingVerificationId)
|
||||
{
|
||||
return Funs.DB.JGZL_ConDrawingVerification.FirstOrDefault(e => e.ConDrawingVerificationId == conDrawingVerificationId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加
|
||||
/// </summary>
|
||||
/// <param name="con"></param>
|
||||
public static void AddConDrawingVerification(Model.JGZL_ConDrawingVerification con)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.JGZL_ConDrawingVerification newCon = new Model.JGZL_ConDrawingVerification();
|
||||
newCon.ConDrawingVerificationId = con.ConDrawingVerificationId;
|
||||
newCon.ProjectId = con.ProjectId;
|
||||
newCon.DesignUnit = con.DesignUnit;
|
||||
newCon.Professional = con.Professional;
|
||||
newCon.Host = con.Host;
|
||||
newCon.VerificationDate = con.VerificationDate;
|
||||
newCon.ConDrawingCode= con.ConDrawingCode;
|
||||
newCon.Personnel = con.Personnel;
|
||||
newCon.Contents = con.Contents;
|
||||
newCon.Problems = con.Problems;
|
||||
newCon.Recorder = con.Recorder;
|
||||
newCon.RecordDate = con.RecordDate;
|
||||
newCon.Reviewer = con.Reviewer;
|
||||
newCon.ReviewDate = con.ReviewDate;
|
||||
newCon.CompileMan = con.CompileMan;
|
||||
newCon.CompileDate = con.CompileDate;
|
||||
db.JGZL_ConDrawingVerification.InsertOnSubmit(newCon);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改
|
||||
/// </summary>
|
||||
/// <param name="con"></param>
|
||||
public static void UpdateConDrawingVerification(Model.JGZL_ConDrawingVerification con)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.JGZL_ConDrawingVerification newCon = db.JGZL_ConDrawingVerification.FirstOrDefault(e => e.ConDrawingVerificationId == con.ConDrawingVerificationId);
|
||||
if (newCon != null)
|
||||
{
|
||||
newCon.DesignUnit = con.DesignUnit;
|
||||
newCon.Professional = con.Professional;
|
||||
newCon.Host = con.Host;
|
||||
newCon.VerificationDate = con.VerificationDate;
|
||||
newCon.ConDrawingCode = con.ConDrawingCode;
|
||||
newCon.Personnel = con.Personnel;
|
||||
newCon.Contents = con.Contents;
|
||||
newCon.Problems = con.Problems;
|
||||
newCon.Recorder = con.Recorder;
|
||||
newCon.RecordDate = con.RecordDate;
|
||||
newCon.Reviewer = con.Reviewer;
|
||||
newCon.ReviewDate = con.ReviewDate;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除施工图核查记录
|
||||
/// </summary>
|
||||
/// <param name="conDrawingVerificationId"></param>
|
||||
public static void DeleteConDrawingVerificationById(string conDrawingVerificationId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.JGZL_ConDrawingVerification con = db.JGZL_ConDrawingVerification.FirstOrDefault(e => e.ConDrawingVerificationId == conDrawingVerificationId);
|
||||
if (con != null)
|
||||
{
|
||||
db.JGZL_ConDrawingVerification.DeleteOnSubmit(con);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user