修改焊接模块WBS树显示权限问题
This commit is contained in:
@@ -81,21 +81,21 @@ namespace FineUIPro.Web.HJGL.InfoQuery
|
||||
List<Model.WBS_UnitWork> unitWork1 = null;
|
||||
List<Model.WBS_UnitWork> unitWork2 = null;
|
||||
|
||||
// 当前为施工单位,只能操作本单位的数据
|
||||
if (currUnit != null && currUnit.UnitType == Const.ProjectUnitType_2)
|
||||
{
|
||||
unitWork1 = (from x in unitWorkList
|
||||
where x.UnitId == this.CurrUser.UnitId && x.ProjectType == "1"
|
||||
select x).ToList();
|
||||
unitWork2 = (from x in unitWorkList
|
||||
where x.UnitId == this.CurrUser.UnitId && x.ProjectType == "2"
|
||||
select x).ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
//// 当前为施工单位,只能操作本单位的数据
|
||||
//if (currUnit != null && currUnit.UnitType == Const.ProjectUnitType_2)
|
||||
//{
|
||||
// unitWork1 = (from x in unitWorkList
|
||||
// where x.UnitId == this.CurrUser.UnitId && x.ProjectType == "1"
|
||||
// select x).ToList();
|
||||
// unitWork2 = (from x in unitWorkList
|
||||
// where x.UnitId == this.CurrUser.UnitId && x.ProjectType == "2"
|
||||
// select x).ToList();
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
unitWork1 = (from x in unitWorkList where x.ProjectType == "1" select x).ToList();
|
||||
unitWork2 = (from x in unitWorkList where x.ProjectType == "2" select x).ToList();
|
||||
}
|
||||
//}
|
||||
|
||||
if (unitWork1.Count() > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user