增加焊接数据录入页面
This commit is contained in:
@@ -321,6 +321,7 @@
|
||||
<Compile Include="HJGL\BaseInfo\Base_WeldingLocationServie.cs" />
|
||||
<Compile Include="HJGL\BaseInfo\Base_WeldingMethodService.cs" />
|
||||
<Compile Include="HJGL\BaseInfo\Base_WeldTypeService.cs" />
|
||||
<Compile Include="HJGL\FL\FLDataService.cs" />
|
||||
<Compile Include="HJGL\HotProcessHard\Hard_ReportService.cs" />
|
||||
<Compile Include="HJGL\HotProcessHard\Hard_TrustItemService.cs" />
|
||||
<Compile Include="HJGL\HotProcessHard\Hard_TrustService.cs" />
|
||||
|
||||
@@ -3731,6 +3731,10 @@ namespace BLL
|
||||
/// </summary>
|
||||
public const string ForeignControlPointMenuId = "FCD749CB-C52A-4C88-BB9D-02B511A2CC24";
|
||||
|
||||
/// <summary>
|
||||
/// 焊接数据
|
||||
/// </summary>
|
||||
public const string FLDataMenuId = "90267927-3469-48E9-BF02-C4987A6660F7";
|
||||
|
||||
/// <summary>
|
||||
/// 项目资料库
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Collections;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public static class FLDataService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取资料发放登记
|
||||
/// </summary>
|
||||
/// <param name="specialDataId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.HJGL_FL_Data GetDataById(string Id)
|
||||
{
|
||||
return Funs.DB.HJGL_FL_Data.FirstOrDefault(e => e.Id == Id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加资料发放登记
|
||||
/// </summary>
|
||||
/// <param name="Data"></param>
|
||||
public static void AddData(Model.HJGL_FL_Data Data)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FL_Data newData = new Model.HJGL_FL_Data();
|
||||
newData.Id = Data.Id;
|
||||
newData.ProjectId = Data.ProjectId;
|
||||
newData.TotalWeldQuantity = Data.TotalWeldQuantity;
|
||||
newData.TotalCompleted = Data.TotalCompleted;
|
||||
newData.OneTimeFilmAmount = Data.OneTimeFilmAmount;
|
||||
newData.OneTimeFilmQualifiedAmount = Data.OneTimeFilmQualifiedAmount;
|
||||
newData.CompileMan = Data.CompileMan;
|
||||
newData.CompileDate = Data.CompileDate;
|
||||
db.HJGL_FL_Data.InsertOnSubmit(newData);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改资料发放登记
|
||||
/// </summary>
|
||||
/// <param name="Data"></param>
|
||||
public static void UpdateData(Model.HJGL_FL_Data Data)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FL_Data newData = db.HJGL_FL_Data.FirstOrDefault(e => e.Id == Data.Id);
|
||||
if (newData != null)
|
||||
{
|
||||
newData.ProjectId = Data.ProjectId;
|
||||
newData.TotalWeldQuantity = Data.TotalWeldQuantity;
|
||||
newData.TotalCompleted = Data.TotalCompleted;
|
||||
newData.OneTimeFilmAmount = Data.OneTimeFilmAmount;
|
||||
newData.OneTimeFilmQualifiedAmount = Data.OneTimeFilmQualifiedAmount;
|
||||
newData.CompileMan = Data.CompileMan;
|
||||
newData.CompileDate = Data.CompileDate;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除资料发放登记
|
||||
/// </summary>
|
||||
/// <param name="specialDataId"></param>
|
||||
public static void DeleteData(string Id)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FL_Data Data = db.HJGL_FL_Data.FirstOrDefault(e => e.Id == Id);
|
||||
if (Data != null)
|
||||
{
|
||||
db.HJGL_FL_Data.DeleteOnSubmit(Data);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user