20251219 交工资料
This commit is contained in:
@@ -250,6 +250,7 @@
|
||||
<Compile Include="JGZL\ConDrawingVerificationService.cs" />
|
||||
<Compile Include="JGZL\ContactService.cs" />
|
||||
<Compile Include="JGZL\HandoverCertificateService.cs" />
|
||||
<Compile Include="JGZL\NDTPersonService.cs" />
|
||||
<Compile Include="JsonHelper.cs" />
|
||||
<Compile Include="libFace.cs" />
|
||||
<Compile Include="libOpenCV.cs" />
|
||||
|
||||
@@ -1776,6 +1776,11 @@ namespace BLL
|
||||
/// </summary>
|
||||
public const string JGZL_ContactMenuId = "05725865-4CC9-43A0-A525-F2730019F61C";
|
||||
|
||||
/// <summary>
|
||||
/// 无损检测人员登记表
|
||||
/// </summary>
|
||||
public const string JGZL_NDTPersonMenuId = "7CB55890-081C-49C7-905C-F711459A6C9E";
|
||||
|
||||
/// <summary>
|
||||
/// 施工图核查记录
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 无损检测人员登记表
|
||||
/// </summary>
|
||||
public class NDTPersonService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取无损检测人员登记表
|
||||
/// </summary>
|
||||
/// <param name="ndtPersonId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.JGZL_NDTPerson GetNDTPersonById(string ndtPersonId)
|
||||
{
|
||||
return Funs.DB.JGZL_NDTPerson.FirstOrDefault(e => e.NDTPersonId == ndtPersonId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加
|
||||
/// </summary>
|
||||
/// <param name="ndtPerson"></param>
|
||||
public static void AddNDTPerson(Model.JGZL_NDTPerson ndtPerson)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_NDTPerson newNDTPerson = new JGZL_NDTPerson();
|
||||
newNDTPerson.NDTPersonId = ndtPerson.NDTPersonId;
|
||||
newNDTPerson.ProjectId = ndtPerson.ProjectId;
|
||||
newNDTPerson.PersonName = ndtPerson.PersonName;
|
||||
newNDTPerson.CertificateNumber = ndtPerson.CertificateNumber;
|
||||
newNDTPerson.QualifiedProjectCode = ndtPerson.QualifiedProjectCode;
|
||||
newNDTPerson.Levels = ndtPerson.Levels;
|
||||
newNDTPerson.ValidityDate = ndtPerson.ValidityDate;
|
||||
newNDTPerson.CompileMan = ndtPerson.CompileMan;
|
||||
newNDTPerson.CompileDate = ndtPerson.CompileDate;
|
||||
db.JGZL_NDTPerson.InsertOnSubmit(newNDTPerson);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改
|
||||
/// </summary>
|
||||
/// <param name="ndtPerson"></param>
|
||||
public static void UpdateNDTPerson(Model.JGZL_NDTPerson ndtPerson)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_NDTPerson newNDTPerson = db.JGZL_NDTPerson.FirstOrDefault(e => e.NDTPersonId == ndtPerson.NDTPersonId);
|
||||
if (newNDTPerson != null)
|
||||
{
|
||||
newNDTPerson.PersonName = ndtPerson.PersonName;
|
||||
newNDTPerson.CertificateNumber = ndtPerson.CertificateNumber;
|
||||
newNDTPerson.QualifiedProjectCode = ndtPerson.QualifiedProjectCode;
|
||||
newNDTPerson.Levels = ndtPerson.Levels;
|
||||
newNDTPerson.ValidityDate = ndtPerson.ValidityDate;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除无损检测人员登记表
|
||||
/// </summary>
|
||||
/// <param name="ndtPersonId"></param>
|
||||
public static void DeleteNDTPersonByNDTPersonId(string ndtPersonId)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_NDTPerson ndtPerson = db.JGZL_NDTPerson.FirstOrDefault(e => e.NDTPersonId == ndtPersonId);
|
||||
if (ndtPerson != null)
|
||||
{
|
||||
db.JGZL_NDTPerson.DeleteOnSubmit(ndtPerson);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user