20250715 试压包资料
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using Model;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using NPOI.SS.UserModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -435,7 +437,7 @@ namespace BLL
|
||||
{
|
||||
foreach (var pipeline in oldPipeline)
|
||||
{
|
||||
DeletePipelineListByPTP_ID(pipeline.PTP_ID);
|
||||
DeletePipelineListByPTP_ID(pipeline.PTP_ID);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -464,5 +466,19 @@ namespace BLL
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改试压包打印状态
|
||||
/// </summary>
|
||||
/// <param name="testPackage"></param>
|
||||
public static void UpdateTestPackagePrintState(Model.PTP_TestPackage testPackage)
|
||||
{
|
||||
Model.PTP_TestPackage newTestPackage = Funs.DB.PTP_TestPackage.FirstOrDefault(e => e.PTP_ID == testPackage.PTP_ID);
|
||||
if (newTestPackage != null)
|
||||
{
|
||||
newTestPackage.PrintState = testPackage.PrintState;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user