修改焊接模块WBS树显示权限问题
This commit is contained in:
parent
690a06fa47
commit
d6ea8320fa
|
|
@ -72,21 +72,21 @@ namespace FineUIPro.Web.HJGL.DataImport
|
|||
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();
|
||||
}
|
||||
//}
|
||||
//var dbpipeLineMat = from x in Funs.DB.HJGL_PipeLineMat select x;
|
||||
//var DBpipeline = from x in Funs.DB.HJGL_Pipeline where x.ProjectId == this.CurrUser.LoginProjectId select x;
|
||||
if (unitWork1.Count() > 0)
|
||||
|
|
|
|||
|
|
@ -78,21 +78,21 @@ namespace FineUIPro.Web.HJGL.HotProcessHard
|
|||
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();
|
||||
}
|
||||
//}
|
||||
var TrustItemList = (from x in Funs.DB.HJGL_Hard_TrustItem
|
||||
join y in Funs.DB.HJGL_Hard_Trust on x.HardTrustID equals y.HardTrustID
|
||||
where y.ProjectId == this.CurrUser.LoginProjectId
|
||||
|
|
|
|||
|
|
@ -111,21 +111,21 @@ namespace FineUIPro.Web.HJGL.HotProcessHard
|
|||
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();
|
||||
}
|
||||
//}
|
||||
var ReportList = (from x in Funs.DB.HJGL_HotProess_Report
|
||||
join y in Funs.DB.HJGL_HotProess_TrustItem on x.HotProessTrustItemId equals y.HotProessTrustItemId
|
||||
join z in Funs.DB.HJGL_HotProess_Trust on y.HotProessTrustId equals z.HotProessTrustId
|
||||
|
|
|
|||
|
|
@ -80,21 +80,21 @@ namespace FineUIPro.Web.HJGL.HotProcessHard
|
|||
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();
|
||||
}
|
||||
//}
|
||||
var TrustItemList = (from x in Funs.DB.HJGL_HotProess_TrustItem
|
||||
join y in Funs.DB.HJGL_HotProess_Trust on x.HotProessTrustId equals y.HotProessTrustId
|
||||
where y.ProjectId == this.CurrUser.LoginProjectId
|
||||
|
|
|
|||
|
|
@ -113,21 +113,21 @@ namespace FineUIPro.Web.HJGL.HotProcessHard
|
|||
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();
|
||||
}
|
||||
//}
|
||||
var WeldJointList = (from x in Funs.DB.HJGL_WeldJoint
|
||||
join y in Funs.DB.HJGL_Pipeline on x.PipelineId equals y.PipelineId
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.WeldingDailyId != null && x.IsHotProess == true
|
||||
|
|
|
|||
|
|
@ -134,21 +134,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)
|
||||
{
|
||||
foreach (var q in unitWork1)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -79,21 +79,21 @@ namespace FineUIPro.Web.HJGL.LeakVacuum
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -136,21 +136,21 @@ namespace FineUIPro.Web.HJGL.NDT
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -80,21 +80,21 @@ namespace FineUIPro.Web.HJGL.PointTrust
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -57,21 +57,21 @@ namespace FineUIPro.Web.HJGL.PointTrust
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -403,7 +403,10 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
|||
materialCheck.ProjectId = this.CurrUser.LoginProjectId;
|
||||
materialCheck.ContractNo = pds.Rows[i][0].ToString().Trim();
|
||||
materialCheck.UnitId = units.First(e => e.UnitName == pds.Rows[i][1].ToString().Trim()).UnitId;
|
||||
materialCheck.MainItemId = mainItems.First(e => e.MainItemName == pds.Rows[i][2].ToString().Trim()).MainItemId;
|
||||
if (mainItems.FirstOrDefault(e => e.MainItemName == pds.Rows[i][2].ToString().Trim()) != null)
|
||||
{
|
||||
materialCheck.MainItemId = mainItems.First(e => e.MainItemName == pds.Rows[i][2].ToString().Trim()).MainItemId;
|
||||
}
|
||||
materialCheck.MaterialName = pds.Rows[i][3].ToString().Trim();
|
||||
materialCheck.SpecificationAndModel = pds.Rows[i][4].ToString().Trim();
|
||||
materialCheck.MaterialCode = pds.Rows[i][5].ToString().Trim();
|
||||
|
|
|
|||
|
|
@ -98,21 +98,21 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -65,21 +65,21 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -99,21 +99,21 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -80,21 +80,21 @@ namespace FineUIPro.Web.HJGL.PurgingCleaning
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -180,21 +180,21 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -55,21 +55,21 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -99,21 +99,21 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -92,21 +92,21 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -142,21 +142,21 @@
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -100,21 +100,21 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -63,21 +63,21 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -100,20 +100,20 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -80,21 +80,21 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -59,21 +59,21 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
|||
|
||||
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)
|
||||
{
|
||||
foreach (var q in unitWork1)
|
||||
|
|
|
|||
|
|
@ -101,21 +101,21 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
|||
|
||||
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)
|
||||
{
|
||||
foreach (var q in unitWork1)
|
||||
|
|
|
|||
|
|
@ -56,21 +56,21 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -63,21 +63,21 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue