This commit is contained in:
李云虎 2024-05-12 17:34:09 +08:00
parent 8ecf0eeab9
commit 8e6eedf614
1 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,9 @@
using BLL;
using FineUIPro.Web.common.BaseInfo;
using Model;
using Newtonsoft.Json.Linq;
using NPOI.SS.Formula.Functions;
using NPOI.SS.Formula.PTG;
using System;
using System.Collections.Generic;
using System.Data;
@ -168,7 +171,10 @@ namespace FineUIPro.Web.WeldingProcess.PMI
var workAreaCode = Funs.DB.Project_WorkArea.AsQueryable().Where(t => workdAreaIdList.Contains(t.WorkAreaId)).Distinct().FirstOrDefault()?.WorkAreaCode;
this.txtDelegationNo.Text = $"PMI-{unitCode}-{workAreaCode}-PI-";
string perfix = string.Empty;
perfix = $"PMI-{unitCode}-{workAreaCode}-PI-";
this.txtDelegationNo.Text = BLL.SQLHelper.RunProcNewId("SpGetNewCode", "dbo.PMI_Delegation", "DelegationNo", this.CurrUser.LoginProjectId, perfix);
}
}
#endregion