20250715 试压包资料

This commit is contained in:
2025-07-15 17:25:56 +08:00
parent 060acdf073
commit 05b03a2f4e
8 changed files with 2459 additions and 20 deletions
@@ -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();
}
}
}
}