Exemple #1
0
        public int CompareTo(SummeryOfProductsInContextOfWorkGuild 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 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 vstk2Comparison = Vstk2.CompareTo(other.Vstk2);

            if (vstk2Comparison != 0)
            {
                return(vstk2Comparison);
            }
            var rstk2Comparison = Rstk2.CompareTo(other.Rstk2);

            if (rstk2Comparison != 0)
            {
                return(rstk2Comparison);
            }
            var prtnorm2Comparison = Prtnorm2.CompareTo(other.Prtnorm2);

            if (prtnorm2Comparison != 0)
            {
                return(prtnorm2Comparison);
            }
            var nadb2Comparison = Nadb2.CompareTo(other.Nadb2);

            if (nadb2Comparison != 0)
            {
                return(nadb2Comparison);
            }
            var vstk3Comparison = Vstk3.CompareTo(other.Vstk3);

            if (vstk3Comparison != 0)
            {
                return(vstk3Comparison);
            }
            var rstk3Comparison = Rstk3.CompareTo(other.Rstk3);

            if (rstk3Comparison != 0)
            {
                return(rstk3Comparison);
            }
            var prtnorm3Comparison = Prtnorm3.CompareTo(other.Prtnorm3);

            if (prtnorm3Comparison != 0)
            {
                return(prtnorm3Comparison);
            }
            var nadb3Comparison = Nadb3.CompareTo(other.Nadb3);

            if (nadb3Comparison != 0)
            {
                return(nadb3Comparison);
            }
            var vstk4Comparison = Vstk4.CompareTo(other.Vstk4);

            if (vstk4Comparison != 0)
            {
                return(vstk4Comparison);
            }
            var rstk4Comparison = Rstk4.CompareTo(other.Rstk4);

            if (rstk4Comparison != 0)
            {
                return(rstk4Comparison);
            }
            var prtnorm4Comparison = Prtnorm4.CompareTo(other.Prtnorm4);

            if (prtnorm4Comparison != 0)
            {
                return(prtnorm4Comparison);
            }
            var nadb4Comparison = Nadb4.CompareTo(other.Nadb4);

            if (nadb4Comparison != 0)
            {
                return(nadb4Comparison);
            }
            var vstk5Comparison = Vstk5.CompareTo(other.Vstk5);

            if (vstk5Comparison != 0)
            {
                return(vstk5Comparison);
            }
            var rstk5Comparison = Rstk5.CompareTo(other.Rstk5);

            if (rstk5Comparison != 0)
            {
                return(rstk5Comparison);
            }
            var prtnorm5Comparison = Prtnorm5.CompareTo(other.Prtnorm5);

            if (prtnorm5Comparison != 0)
            {
                return(prtnorm5Comparison);
            }
            var nadb5Comparison = Nadb5.CompareTo(other.Nadb5);

            if (nadb5Comparison != 0)
            {
                return(nadb5Comparison);
            }
            var vstk21Comparison = Vstk21.CompareTo(other.Vstk21);

            if (vstk21Comparison != 0)
            {
                return(vstk21Comparison);
            }
            var rstk21Comparison = Rstk21.CompareTo(other.Rstk21);

            if (rstk21Comparison != 0)
            {
                return(rstk21Comparison);
            }
            var prtnorm21Comparison = Prtnorm21.CompareTo(other.Prtnorm21);

            if (prtnorm21Comparison != 0)
            {
                return(prtnorm21Comparison);
            }
            var nadb21Comparison = Nadb21.CompareTo(other.Nadb21);

            if (nadb21Comparison != 0)
            {
                return(nadb21Comparison);
            }
            var vstkZavodComparison = VstkZavod.CompareTo(other.VstkZavod);

            if (vstkZavodComparison != 0)
            {
                return(vstkZavodComparison);
            }
            var rstkZavodComparison = RstkZavod.CompareTo(other.RstkZavod);

            if (rstkZavodComparison != 0)
            {
                return(rstkZavodComparison);
            }
            var prtnormZavodComparison = PrtnormZavod.CompareTo(other.PrtnormZavod);

            if (prtnormZavodComparison != 0)
            {
                return(prtnormZavodComparison);
            }
            return(NadbZavod.CompareTo(other.NadbZavod));
        }
        public int CompareTo(SummeryOfProductInContextOfWorkGuildAndOfDischarge other)
        {
            var 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 kcComparison = Kc.CompareTo(other.Kc);

            if (kcComparison != 0)
            {
                return(kcComparison);
            }
            var vstk1Comparison = Vstk1.CompareTo(other.Vstk1);

            if (vstk1Comparison != 0)
            {
                return(vstk1Comparison);
            }
            var vstk2Comparison = Vstk2.CompareTo(other.Vstk2);

            if (vstk2Comparison != 0)
            {
                return(vstk2Comparison);
            }
            var vstk3Comparison = Vstk3.CompareTo(other.Vstk3);

            if (vstk3Comparison != 0)
            {
                return(vstk3Comparison);
            }
            var vstk4Comparison = Vstk4.CompareTo(other.Vstk4);

            if (vstk4Comparison != 0)
            {
                return(vstk4Comparison);
            }
            var vstk5Comparison = Vstk5.CompareTo(other.Vstk5);

            if (vstk5Comparison != 0)
            {
                return(vstk5Comparison);
            }
            var vstk6Comparison = Vstk6.CompareTo(other.Vstk6);

            if (vstk6Comparison != 0)
            {
                return(vstk6Comparison);
            }
            var rstk1Comparison = Rstk1.CompareTo(other.Rstk1);

            if (rstk1Comparison != 0)
            {
                return(rstk1Comparison);
            }
            var rstk2Comparison = Rstk2.CompareTo(other.Rstk2);

            if (rstk2Comparison != 0)
            {
                return(rstk2Comparison);
            }
            var rstk3Comparison = Rstk3.CompareTo(other.Rstk3);

            if (rstk3Comparison != 0)
            {
                return(rstk3Comparison);
            }
            var rstk4Comparison = Rstk4.CompareTo(other.Rstk4);

            if (rstk4Comparison != 0)
            {
                return(rstk4Comparison);
            }
            var rstk5Comparison = Rstk5.CompareTo(other.Rstk5);

            if (rstk5Comparison != 0)
            {
                return(rstk5Comparison);
            }
            var rstk6Comparison = Rstk6.CompareTo(other.Rstk6);

            if (rstk6Comparison != 0)
            {
                return(rstk6Comparison);
            }
            var prtnorm1Comparison = Prtnorm1.CompareTo(other.Prtnorm1);

            if (prtnorm1Comparison != 0)
            {
                return(prtnorm1Comparison);
            }
            var prtnorm2Comparison = Prtnorm2.CompareTo(other.Prtnorm2);

            if (prtnorm2Comparison != 0)
            {
                return(prtnorm2Comparison);
            }
            var prtnorm3Comparison = Prtnorm3.CompareTo(other.Prtnorm3);

            if (prtnorm3Comparison != 0)
            {
                return(prtnorm3Comparison);
            }
            var prtnorm4Comparison = Prtnorm4.CompareTo(other.Prtnorm4);

            if (prtnorm4Comparison != 0)
            {
                return(prtnorm4Comparison);
            }
            var prtnorm5Comparison = Prtnorm5.CompareTo(other.Prtnorm5);

            if (prtnorm5Comparison != 0)
            {
                return(prtnorm5Comparison);
            }
            var prtnorm6Comparison = Prtnorm6.CompareTo(other.Prtnorm6);

            if (prtnorm6Comparison != 0)
            {
                return(prtnorm6Comparison);
            }
            var nadb1Comparison = Nadb1.CompareTo(other.Nadb1);

            if (nadb1Comparison != 0)
            {
                return(nadb1Comparison);
            }
            var nadb2Comparison = Nadb2.CompareTo(other.Nadb2);

            if (nadb2Comparison != 0)
            {
                return(nadb2Comparison);
            }
            var nadb3Comparison = Nadb3.CompareTo(other.Nadb3);

            if (nadb3Comparison != 0)
            {
                return(nadb3Comparison);
            }
            var nadb4Comparison = Nadb4.CompareTo(other.Nadb4);

            if (nadb4Comparison != 0)
            {
                return(nadb4Comparison);
            }
            var nadb5Comparison = Nadb5.CompareTo(other.Nadb5);

            if (nadb5Comparison != 0)
            {
                return(nadb5Comparison);
            }
            return(Nadb6.CompareTo(other.Nadb6));
        }