20240813 单位工程修改

This commit is contained in:
毕文静 2024-08-13 16:09:47 +08:00
parent 80e4a4097b
commit 1c756418a2
2 changed files with 10 additions and 2 deletions

View File

@ -87,7 +87,11 @@ namespace FineUIPro.Web.CQMS.WBS
this.trWBS.AutoScroll = true;
this.trWBS.EnableSingleClickExpand = true;
var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId orderby x.UnitWorkCode select x;
var unitWorks = from x in Funs.DB.WBS_UnitWork
where x.ProjectId == this.CurrUser.LoginProjectId
&& (x.SuperUnitWork == null || x.SuperUnitWork == "0")
orderby x.UnitWorkCode
select x;
foreach (var q in unitWorks)
{
TreeNode newNode = new TreeNode();

View File

@ -79,7 +79,11 @@ namespace FineUIPro.Web.CQMS.WBS
this.trWBS.EnableIcons = true;
this.trWBS.AutoScroll = true;
this.trWBS.EnableSingleClickExpand = true;
var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId orderby x.UnitWorkCode select x;
var unitWorks = from x in Funs.DB.WBS_UnitWork
where x.ProjectId == this.CurrUser.LoginProjectId
&& (x.SuperUnitWork == null || x.SuperUnitWork == "0")
orderby x.UnitWorkCode
select x;
foreach (var q in unitWorks)
{
TreeNode newNode = new TreeNode();