工程量基础表只显示有工作项的专业信息

This commit is contained in:
高飞 2025-04-07 16:42:46 +08:00
parent f065307fc7
commit f408a72934
1 changed files with 2 additions and 1 deletions

View File

@ -58,8 +58,9 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
Model.SGGLDB db = Funs.DB;
if (parentId == "0") //工程量基础表节点
{
var cNProfessionals = from x in db.Base_CNProfessional where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId orderby x.SortIndex select x;
var bases = from x in db.View_QuantityManagement_Base where x.ProjectId == this.CurrUser.LoginProjectId select x;
var cnNames = bases.Select(x => x.Major).Distinct().ToList();
var cNProfessionals = from x in db.Base_CNProfessional where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId && cnNames.Contains(x.ProfessionalName) orderby x.SortIndex select x;
foreach (var q in cNProfessionals)
{
TreeNode newNode = new TreeNode();