private void list_Result_SelectionChanged(object sender, SelectionChangedEventArgs e) { SearchUnit s = this.list_Result.SelectedItem as SearchUnit; this.list_Result.SelectedItem = null; if (s != null) { Tool.ProcessAppLink(s.url); } }
public Result <List <Deal> > ListDeal(SearchUnit model) { if (model.unit_id <= 0) { return(Result <List <Deal> >(ApiResultEnum.Parameter_Error, null)); } IEnumerable <Deal> lst = new List <Deal>(); if (model.from_dt.Date < DateTime.Now.Date) { lst = lst.Union(DealDA.List(model)); } if (model.from_dt.Date <= DateTime.Now.Date && model.to_dt.Date >= DateTime.Now.Date) { lst = lst.Union(DealRA.List4Unit(model.unit_id)); } return(Result(lst.OrderBy(o => o.time_dt).ToList())); }
public Result <List <Order> > ListOrder(SearchUnit model) { if (model.unit_id <= 0) { return(Result <List <Order> >(ApiResultEnum.Parameter_Error, null)); } IEnumerable <Order> lst = new List <Order>(); if (model.from_dt.Date < DateTime.Now.Date) { lst = lst.Union(OrderDA.List(model)); } if (model.from_dt.Date <= DateTime.Now.Date && model.to_dt.Date >= DateTime.Now.Date) { lst = lst.Union(OrderRA.List4Unit(model.unit_id)); } DataBiz.OrderMerge(ref lst); return(Result(lst.ToList())); }