/// <summary> /// 查询除PLPM之外的所有员工 /// </summary> /// <param name="PL">pl的id</param> /// <param name="PM">pm的id</param> /// <returns>除PLPM之外的所有员工集合</returns> public List <Employee> QueryAllExceptPLPM(string PL, string PM) { EmployeeBll empBll = new EmployeeBll(); List <Employee> all = new List <Employee>(); all.Clear(); all = empBll.QueryAll(); List <Employee> need = new List <Employee>(); need.Clear(); foreach (var item in all) { if (item.Id != PL && item.Id != PM) { need.Add(item); } } //if (need.Count!=0) //{ // return need; //} return(need); }