Ejemplo n.º 1
0
        protected override SortingProperties[] DefaultSort()
        {
            SortingProperties paymDateSort = new SortingProperties("PaymentDate");
            SortingProperties accSort      = new SortingProperties("AccountNum");

            return(new SortingProperties[] { paymDateSort, accSort });
        }
Ejemplo n.º 2
0
        protected override SortingProperties[] DefaultSort()
        {
            SortingProperties duedateSort = new SortingProperties("DueDate");
            SortingProperties dateSort    = new SortingProperties("Date");

            return(new SortingProperties[] { duedateSort, dateSort });
        }
Ejemplo n.º 3
0
        protected override SortingProperties[] DefaultSort()
        {
            SortingProperties orderNoSort = new SortingProperties("OrderNumber");

            orderNoSort.Ascending = false;
            return(new SortingProperties[] { orderNoSort });
        }
        protected override SortingProperties[] DefaultSort()
        {
            SortingProperties dateSort = new SortingProperties("Date");
            var syncMaster             = dgFamTransGrid.masterRecord;

            dateSort.Ascending = (syncMaster is GLDailyJournalPosted || syncMaster is GLDailyJournalLine);
            return(new SortingProperties[] { dateSort, new SortingProperties("Voucher"), new SortingProperties("VoucherLine") });
        }
        protected override SortingProperties[] DefaultSort()
        {
            SortingProperties createdDateSort = new SortingProperties("Created");

            createdDateSort.Ascending = false;

            return(new SortingProperties[] { createdDateSort });
        }
Ejemplo n.º 6
0
 protected override SortingProperties[] DefaultSort()
 {
     if (AddFilterAndSort)
     {
         SortingProperties dateSort = new SortingProperties("Date");
         dateSort.Ascending = false;
         return(new SortingProperties[] { dateSort });
     }
     return(base.DefaultSort());
 }
Ejemplo n.º 7
0
        protected override SortingProperties[] DefaultSort()
        {
            SortingProperties dateSort = new SortingProperties("Date")
            {
                Ascending = false
            };
            SortingProperties VoucherSort = new SortingProperties("Voucher");

            return(new SortingProperties[] { dateSort, VoucherSort });
        }
Ejemplo n.º 8
0
        public bool SortingRule(SortingProperties sorting)
        {
            if (sorting == 0 ||
                sorting == SortingProperties.ByName ||
                sorting == SortingProperties.DescentByName ||
                sorting == SortingProperties.ByPriority)
            {
                return(true);
            }

            return(false);
        }
 protected override SortingProperties[] DefaultSort()
 {
     if (AddFilterAndSort)
     {
         SortingProperties dateSort = new SortingProperties("Date")
         {
             Ascending = false
         };
         SortingProperties lineSort = new SortingProperties("LineNumber")
         {
             Ascending = false
         };
         return(new SortingProperties[] { dateSort, lineSort });
     }
     return(base.DefaultSort());
 }
        private void itemsList_Loaded(object sender, RoutedEventArgs e)
        {
            ICollectionView defaultView = CollectionViewSource.GetDefaultView(itemsList.ItemsSource);

            if ((defaultView != null) && (!String.IsNullOrWhiteSpace(SortingProperties)))
            {
                defaultView.SortDescriptions.Clear();
                var sortingDirections = SortingDirections.Split(new char[] { '-' });
                int i = 0;
                foreach (var sort in SortingProperties.Split(new char[] { '-' }))
                {
                    var sortDirection = ListSortDirection.Ascending;
                    if (sortingDirections.Length > i)
                    {
                        var sdValue = sortingDirections[i++];
                        if ((sdValue.ToUpper() == "D") || (sdValue == "1"))
                        {
                            sortDirection = ListSortDirection.Descending;
                        }
                    }
                    defaultView.SortDescriptions.Add(new SortDescription(sort, sortDirection));
                }
            }
        }
Ejemplo n.º 11
0
        public List <FilterSortingProps> GetBookSortingProps()
        {
            SortingProperties sortingProperties = new SortingProperties();

            return(sortingProperties.GetBooksSortingProps());
        }
Ejemplo n.º 12
0
        public List <FilterSortingProps> GetCategorySortingProps()
        {
            SortingProperties sortingProperties = new SortingProperties();

            return(sortingProperties.GetCategorySortingProps());
        }