private void Load(Entity.PlanFilter filter) { //this.IsShowTitleList = true; this.PlanList = PlanMGMT.BLL.PlanBLL.Instance.GetPlanList(filter.GenerateFilter(), "InCharge,Status,PlanStart"); if (this.PlanList == null) { return; } if (this.PlanList.Count >= 0) { this.PlanMsg = "共有 " + this.PlanList.Count + " 条记录,您可点的左侧按钮改变显示模式..."; if (PlanList.Count > 0) { List <string> uers = PlanList.Select(x => x.InCharge).Distinct().ToList <string>(); List <Model.PlanByName> incharges = new List <Model.PlanByName>(); foreach (var u in uers) { incharges.Add(new Model.PlanByName(u, LoginBLL.Instance.GetUserNameByCode(u))); } InChargeList = incharges; } else { InChargeList = null; } } }