Beispiel #1
0
        public int CompareTo(SummeryOfProductOfProfessionInContextOfWorkGuildAndOfArea other)
        {
            const StringComparison ordinalIgnoreCase = StringComparison.OrdinalIgnoreCase;

            if (ReferenceEquals(this, other))
            {
                return(0);
            }

            if (ReferenceEquals(null, other))
            {
                return(1);
            }
            var productIdComparison = ProductId.CompareTo(other.ProductId);

            if (productIdComparison != 0)
            {
                return(productIdComparison);
            }
            var productNameComparison = string.Compare(ProductName, other.ProductName, ordinalIgnoreCase);

            if (productNameComparison != 0)
            {
                return(productNameComparison);
            }
            var productMarkComparison = string.Compare(ProductMark, other.ProductMark, ordinalIgnoreCase);

            if (productMarkComparison != 0)
            {
                return(productMarkComparison);
            }
            var professionIdComparison = ProfessionId.CompareTo(other.ProfessionId);

            if (professionIdComparison != 0)
            {
                return(professionIdComparison);
            }
            var professionNameComparison = string.Compare(ProfessionName, other.ProfessionName, ordinalIgnoreCase);

            if (professionNameComparison != 0)
            {
                return(professionNameComparison);
            }
            var kcComparison = Kc.CompareTo(other.Kc);

            if (kcComparison != 0)
            {
                return(kcComparison);
            }
            var uchComparison = Uch.CompareTo(other.Uch);

            if (uchComparison != 0)
            {
                return(uchComparison);
            }
            var vstkComparison = Vstk.CompareTo(other.Vstk);

            if (vstkComparison != 0)
            {
                return(vstkComparison);
            }
            var rstkComparison = Rstk.CompareTo(other.Rstk);

            if (rstkComparison != 0)
            {
                return(rstkComparison);
            }
            var prtnormComparison = Prtnorm.CompareTo(other.Prtnorm);

            if (prtnormComparison != 0)
            {
                return(prtnormComparison);
            }
            return(Nadb.CompareTo(other.Nadb));
        }
        public int CompareTo(CalculationNumberWorkguildWorkersRealase other)
        {
            const StringComparison ordinalIgnoreCase = StringComparison.OrdinalIgnoreCase;

            if (ReferenceEquals(this, other))
            {
                return(0);
            }

            if (ReferenceEquals(null, other))
            {
                return(1);
            }
            var professionIdComparison = ProfessionId.CompareTo(other.ProfessionId);

            if (professionIdComparison != 0)
            {
                return(professionIdComparison);
            }
            var professionNameComparison = string.Compare(ProfessionName, other.ProfessionName, ordinalIgnoreCase);

            if (professionNameComparison != 0)
            {
                return(professionNameComparison);
            }
            var productIdComparison = ProductId.CompareTo(other.ProductId);

            if (productIdComparison != 0)
            {
                return(productIdComparison);
            }
            var productMarkComparison = string.Compare(ProductMark, other.ProductMark, ordinalIgnoreCase);

            if (productMarkComparison != 0)
            {
                return(productMarkComparison);
            }
            var productNameComparison = string.Compare(ProductName, other.ProductName, ordinalIgnoreCase);

            if (productNameComparison != 0)
            {
                return(productNameComparison);
            }
            var kcComparison = Kc.CompareTo(other.Kc);

            if (kcComparison != 0)
            {
                return(kcComparison);
            }
            var uchComparison = Uch.CompareTo(other.Uch);

            if (uchComparison != 0)
            {
                return(uchComparison);
            }
            var vstkComparison = Vstk.CompareTo(other.Vstk);

            if (vstkComparison != 0)
            {
                return(vstkComparison);
            }
            var rstkComparison = Rstk.CompareTo(other.Rstk);

            if (rstkComparison != 0)
            {
                return(rstkComparison);
            }
            var prtnormComparison = Prtnorm.CompareTo(other.Prtnorm);

            if (prtnormComparison != 0)
            {
                return(prtnormComparison);
            }
            var nadbComparison = Nadb.CompareTo(other.Nadb);

            if (nadbComparison != 0)
            {
                return(nadbComparison);
            }
            return(Vypusk.CompareTo(other.Vypusk));
        }