예제 #1
0
        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);
            }
        }
예제 #2
0
파일: Trade.svc.cs 프로젝트: wshPrt/trading
        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()));
        }
예제 #3
0
파일: Trade.svc.cs 프로젝트: wshPrt/trading
        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()));
        }