public int CompareTo(ComplexityAndSalaryOnUnitByWorkGuild other)
        {
            if (ReferenceEquals(this, other))
            {
                return(0);
            }

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

            if (workGuildIdComparison != 0)
            {
                return(workGuildIdComparison);
            }
            var areaIdComparison = AreaId.CompareTo(other.AreaId);

            if (areaIdComparison != 0)
            {
                return(areaIdComparison);
            }
            var detalIdComparison = DetailId.CompareTo(other.DetailId);

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

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

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

            if (nadbComparison != 0)
            {
                return(nadbComparison);
            }
            return(Prtnorm.CompareTo(other.Prtnorm));
        }
        public int CompareTo(SummeryOfProductInContextOfWorkGuildAndAreaForWorkGuild other)
        {
            const StringComparison ordinalIgnorCase = 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, ordinalIgnorCase);

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

            if (productMarkComparison != 0)
            {
                return(productMarkComparison);
            }
            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 premperComparison = Premper.CompareTo(other.Premper);

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

            if (nadbComparison != 0)
            {
                return(nadbComparison);
            }
            return(Prtnorm.CompareTo(other.Prtnorm));
        }
        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));
        }