feat: 支持单位工程排序并统一委托单号生成与编辑

支持按业务序号展示单位工程,并使页面与 API 使用一致的委托单编号规则;允许有修改权限的用户调整委托单号。附带序号字段及修改按钮权限的数据库升级脚本。
This commit is contained in:
2026-10-14 15:13:10 +08:00
parent e00a3ddcf0
commit 0c7bf3c292
69 changed files with 252 additions and 105 deletions
@@ -240,7 +240,7 @@ namespace WebAPI.Controllers
string perfix = string.Empty;
newBatchTrust.TrustBatchCode = batch.PointBatchCode.Replace("-DK-", "-WT-");
newBatchTrust.TrustBatchCode = BLL.Batch_BatchTrustService.BuildTrustBatchCode(project.ProjectCode, area.UnitWorkCode, ndt.DetectionTypeCode, batch.PointBatchCode);
string trustBatchId = SQLHelper.GetNewID(typeof(Model.HJGL_Batch_BatchTrust));
newBatchTrust.TrustBatchId = trustBatchId;