Commit bc1b9cf2 by Neo Turing

优化

parent 464edd28
......@@ -49,6 +49,8 @@ namespace Kivii.Finances.Seeyon
public string loginName { get; set; }
public string Filter { get; set; }
public override object OnExecution(IRequest req, IResponse res)
{
if (loginName.IsNullOrEmpty())
......@@ -133,7 +135,15 @@ namespace Kivii.Finances.Seeyon
rtn.FirstPayTime = oaData.Field0070.showValue;
rtn.StampTime = oaData.Field0089.showValue;
rtn.Field0074 = oaData.Field0074.showValue;
rtns.Results.Add(rtn);
if (!Filter.IsNullOrEmpty())
{
if (rtn.DepartmentCode.IsNullOrEmpty()) continue;
if (Filter.Contains(rtn.DepartmentCode))
{
rtns.Results.Add(rtn);
}
}
else rtns.Results.Add(rtn);
}
rtns.Total = rtns.Results.Count;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment