예제 #1
0
        private FilterOrderViewModel GetFilterFromForm()
        {
            FilterOrderViewModel filter = new FilterOrderViewModel();

            if (this.ValueFrom.Value > 0)
            {
                filter.ValueFrom = this.ValueFrom.Value;
            }
            if (this.ValueTo.Value > 0)
            {
                filter.ValueTo = this.ValueTo.Value;
            }
            if (this.DateFrom.DateTime != DateTime.MinValue)
            {
                filter.DateFrom = this.DateFrom.DateTime;
            }
            if (this.DateTo.DateTime != DateTime.MinValue)
            {
                filter.DateTo = this.DateTo.DateTime;
            }
            filter.Text = this.TextFind.Text;
            return(filter);
        }
예제 #2
0
 public List <Order> GetOrderFilter(FilterOrderViewModel filter) => OrderManager.GetFilterBatch(filter.Adapt <FilterOrderDTO>()).Adapt <List <Order> >();