Fix无损检测委托号前缀并统一录入明细显示

This commit is contained in:
2026-04-29 09:45:45 +08:00
parent a694ab1183
commit 4a7dec7a03
6 changed files with 120 additions and 55 deletions
+2 -2
View File
@@ -434,7 +434,7 @@ namespace BLL
Model.HJGL_Batch_BatchTrust newBatchTrust = new Model.HJGL_Batch_BatchTrust
{
TrustBatchId = trustBatchId,
TrustBatchCode = batch.PointBatchCode.Replace("-DK-", "-WT-"),
TrustBatchCode = BLL.Batch_BatchTrustService.BuildTrustBatchCode(batch.PointBatchCode, DateTime.Now),
TrustDate = DateTime.Now,
ProjectId = batch.ProjectId,
PointBatchId = pointBatchId,
@@ -534,7 +534,7 @@ namespace BLL
var rate = BLL.Base_DetectionRateService.GetDetectionRateByDetectionRateId(trust.DetectionRateId);
string perfix = string.Empty;
perfix = unit.UnitCode + "-" + ndt.DetectionTypeCode + "-" + rate.DetectionRateValue.ToString() + "%-";
perfix = BLL.Batch_BatchTrustService.BuildTrustBatchCodePrefix(unit.UnitCode, ndt.DetectionTypeCode, rate.DetectionRateValue.ToString(), DateTime.Now);
string trustBatchId = SQLHelper.GetNewID(typeof(Model.HJGL_Batch_BatchTrust));
// 生成委托条件对比