工程量基础表只显示有工作项的专业信息
This commit is contained in:
parent
f065307fc7
commit
f408a72934
|
@ -58,8 +58,9 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
|
||||||
Model.SGGLDB db = Funs.DB;
|
Model.SGGLDB db = Funs.DB;
|
||||||
if (parentId == "0") //工程量基础表节点
|
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 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)
|
foreach (var q in cNProfessionals)
|
||||||
{
|
{
|
||||||
TreeNode newNode = new TreeNode();
|
TreeNode newNode = new TreeNode();
|
||||||
|
|
Loading…
Reference in New Issue