Пример #1
0
        public static int CompareByField(DepTaxParcel e1, DepTaxParcel e2, string sortBy)
        {
            int result = 0;

            switch (sortBy)
            {
            case "PrintKey":
                result = SortExtensions.Compare(e1.PrintKey, e2.PrintKey);
                break;

            case "SBL":
                result = SortExtensions.Compare(e1.SBL, e2.SBL);
                break;

            case "SWIS":
                result = SortExtensions.Compare(e1.SWIS, e2.SWIS);
                break;

            case "County":
                result = SortExtensions.Compare(e1.County, e2.County);
                break;

            default:
                break;
            }
            return(result);
        }
Пример #2
0
        public static int CompareByField(TaxParcelOwner e1, TaxParcelOwner e2, string sortBy)
        {
            int result = 0;

            switch (sortBy)
            {
            case "active":
                result = SortExtensions.Compare(e1.active, e2.active);
                break;

            default:
                break;
            }
            return(result);
        }
Пример #3
0
        public static int CompareByField(TaxParcel e1, TaxParcel e2, string sortBy)
        {
            int result = 0;

            switch (sortBy)
            {
            case "taxParcelID":
                result = SortExtensions.Compare(e1.taxParcelID, e2.taxParcelID);
                break;

            case "SBL":
                result = SortExtensions.Compare(e1.SBL, e2.SBL);
                break;

            case "Swis":
                result = SortExtensions.Compare(e1.Swis.pk_list_swis, e2.Swis.pk_list_swis);
                break;

            case "County":
                result = SortExtensions.Compare(e1.Swis.county, e2.Swis.county);
                break;

            case "Jurisdiction":
                result = SortExtensions.Compare(e1.Swis.jurisdiction, e2.Swis.jurisdiction);
                break;

            case "ownerStr_dnd":
                result = SortExtensions.Compare(e1.ownerStr_dnd, e2.ownerStr_dnd);
                break;

            case "retired":
                result = SortExtensions.Compare(e1.retired, e2.retired);
                break;

            default:
                break;
            }
            return(result);
        }
Пример #4
0
        public static int CompareByField(TaxParcelOwnerView e1, TaxParcelOwnerView e2, string sortBy)
        {
            int result = 0;

            switch (sortBy)
            {
            case "taxParcelID":
                result = SortExtensions.Compare(e1.taxParcelID, e2.taxParcelID);
                break;

            case "SBL":
                result = SortExtensions.Compare(e1.SBL, e2.SBL);
                break;

            case "fullname_LF_dnd":
                result = SortExtensions.Compare(e1.fullname_LF_dnd, e2.fullname_LF_dnd);
                break;

            default:
                break;
            }
            return(result);
        }