人员列表搜索过滤
This commit is contained in:
parent
2c421b05d0
commit
0b88edff12
@ -276,6 +276,26 @@ namespace APT.FM.WebApi.Controllers.Api.FM
|
|||||||
else
|
else
|
||||||
express = express.And(e => !e.PROJECT_ID.HasValue);
|
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);
|
var result = this.WitOrderPaged(express, pageFilter);
|
||||||
if (result.Data.Count() > 0)
|
if (result.Data.Count() > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user