|
|
|
@ -312,14 +312,17 @@ namespace FactorySystemBll
|
|
|
|
string taskDesc = basicCode.F1;
|
|
|
|
string taskDesc = basicCode.F1;
|
|
|
|
|
|
|
|
|
|
|
|
List<string> funcVal = new List<string>();
|
|
|
|
List<string> funcVal = new List<string>();
|
|
|
|
|
|
|
|
string funcTypes = "4, 5";
|
|
|
|
switch (temp0)
|
|
|
|
switch (temp0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case (int)Constant.BasicCode.事项权限:
|
|
|
|
case (int)Constant.BasicCode.事项权限:
|
|
|
|
funcType = (int)Constant.RoleType.事项权限;
|
|
|
|
funcType = (int)Constant.RoleType.事项权限;
|
|
|
|
|
|
|
|
funcTypes = "2";
|
|
|
|
funcVal.Add(temps[1]);
|
|
|
|
funcVal.Add(temps[1]);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case (int)Constant.BasicCode.物料视图编辑:
|
|
|
|
case (int)Constant.BasicCode.物料视图编辑:
|
|
|
|
funcType = (int)Constant.RoleType.物料视图编辑;
|
|
|
|
funcType = (int)Constant.RoleType.物料视图编辑;
|
|
|
|
|
|
|
|
funcTypes = "4, 5";
|
|
|
|
string tType = temps[1];
|
|
|
|
string tType = temps[1];
|
|
|
|
funcVal = db.Queryable<TBasicCode>().Where(s => s.FType == (int)Constant.BasicCode.物料视图编辑 &&
|
|
|
|
funcVal = db.Queryable<TBasicCode>().Where(s => s.FType == (int)Constant.BasicCode.物料视图编辑 &&
|
|
|
|
s.F1 == tType && s.FState == 1).Select(s => s.FValue).ToList();
|
|
|
|
s.F1 == tType && s.FState == 1).Select(s => s.FValue).ToList();
|
|
|
|
@ -339,7 +342,8 @@ namespace FactorySystemBll
|
|
|
|
))
|
|
|
|
))
|
|
|
|
.Where((a, b, c) => factoryId.Contains(a.FFactoryID))
|
|
|
|
.Where((a, b, c) => factoryId.Contains(a.FFactoryID))
|
|
|
|
.Where((a, b, c) => b.FState == 1 && b.FDeleted != 1)
|
|
|
|
.Where((a, b, c) => b.FState == 1 && b.FDeleted != 1)
|
|
|
|
.Where((a, b, c) => c.FType == funcType && funcVal.Contains(c.FFunctionID.ToString()))
|
|
|
|
//.Where((a, b, c) => c.FType == funcType && funcVal.Contains(c.FFunctionID.ToString()))
|
|
|
|
|
|
|
|
.Where((a, b, c) => funcTypes.Contains(c.FType.ToString()) && funcVal.Contains(c.FFunctionID.ToString()))
|
|
|
|
.GroupBy("b.FID, a.FFactoryID, b.FName, b.FUser")
|
|
|
|
.GroupBy("b.FID, a.FFactoryID, b.FName, b.FUser")
|
|
|
|
.Select<TUser>("b.FID, cast(a.FFactoryID as int), b.FName, b.FUser")
|
|
|
|
.Select<TUser>("b.FID, cast(a.FFactoryID as int), b.FName, b.FUser")
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
|