人员列表搜索过滤
This commit is contained in:
parent
2c421b05d0
commit
0b88edff12
@ -276,6 +276,26 @@ namespace APT.FM.WebApi.Controllers.Api.FM
|
||||
else
|
||||
express = express.And(e => !e.PROJECT_ID.HasValue);
|
||||
}
|
||||
|
||||
List<Guid> listDepIDs = new List<Guid>();
|
||||
if (this.Request.Headers.ContainsKey("Datarule"))
|
||||
{
|
||||
string strDeps = this.Request.Headers["Datarule"].ToString();
|
||||
if (strDeps.Length > 0)
|
||||
{
|
||||
string[] arry = strDeps.Split(",");
|
||||
foreach (var item in arry)
|
||||
{
|
||||
try
|
||||
{
|
||||
listDepIDs.Add(new Guid(item));
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
express = express.And(e => e.DEPARTMENT_ID.HasValue && listDepIDs.Contains(e.DEPARTMENT_ID.Value));
|
||||
}
|
||||
|
||||
var result = this.WitOrderPaged(express, pageFilter);
|
||||
if (result.Data.Count() > 0)
|
||||
{
|
||||
@ -905,7 +925,7 @@ namespace APT.FM.WebApi.Controllers.Api.FM
|
||||
var enumValues = new List<string>();
|
||||
productionUnit.ForEach(t =>
|
||||
{
|
||||
t.USER_ID = entity.ID; t.Nav_Enums = null;t.Nav_Unit = null;
|
||||
t.USER_ID = entity.ID; t.Nav_Enums = null; t.Nav_Unit = null;
|
||||
var value = enumList.FirstOrDefault(m => m.ID == t.ENUMS_ID)?.VALUE.ToString();
|
||||
enumValues.Add(value);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user