123
This commit is contained in:
parent
8ecf0eeab9
commit
8e6eedf614
|
@ -1,6 +1,9 @@
|
||||||
using BLL;
|
using BLL;
|
||||||
|
using FineUIPro.Web.common.BaseInfo;
|
||||||
using Model;
|
using Model;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
|
using NPOI.SS.Formula.Functions;
|
||||||
|
using NPOI.SS.Formula.PTG;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
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;
|
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
|
#endregion
|
||||||
|
|
Loading…
Reference in New Issue