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
@@ -169,7 +169,7 @@ namespace FineUIPro.Web.HJGL.PointTrust
var rate = BLL.Base_DetectionRateService.GetDetectionRateByDetectionRateId(batch.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);
newBatchTrust.TrustBatchCode = BLL.SQLHelper.RunProcNewId("SpGetNewCode5ByProjectId", "dbo.HJGL_Batch_BatchTrust", "TrustBatchCode", project.ProjectId, perfix);
string trustBatchId = SQLHelper.GetNewID(typeof(Model.HJGL_Batch_BatchTrust));
@@ -239,4 +239,4 @@ namespace FineUIPro.Web.HJGL.PointTrust
#endregion
}
}
}
@@ -55,7 +55,7 @@ namespace FineUIPro.Web.HJGL.PointTrust
var unitWork = BLL.UnitWorkService.GetUnitWorkByUnitWorkId(batch.UnitWorkId);
var ndt = BLL.Base_DetectionTypeService.GetDetectionTypeByDetectionTypeId(batch.DetectionTypeId);
var rate = BLL.Base_DetectionRateService.GetDetectionRateByDetectionRateId(batch.DetectionRateId);
this.txtTrustBatchCode.Text = batch.PointBatchCode.Replace("-DK-", "-WT-");
this.txtTrustBatchCode.Text = BLL.Batch_BatchTrustService.BuildTrustBatchCode(batch.PointBatchCode, DateTime.Now);
if (unit != null)
{
this.txtUnit.Text = unit.UnitName;
@@ -240,4 +240,4 @@ namespace FineUIPro.Web.HJGL.PointTrust
}
#endregion
}
}
}