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(CancelledDetail other)
        {
            const StringComparison ordinalIgnoreCase = StringComparison.OrdinalIgnoreCase;

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

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

            if (codeDetailComparison != 0)
            {
                return(codeDetailComparison);
            }
            var nameDetailComparison = string.Compare(NameDetail, other.NameDetail, ordinalIgnoreCase);

            if (nameDetailComparison != 0)
            {
                return(nameDetailComparison);
            }
            var oboznDetailComparison = string.Compare(OboznDetail, other.OboznDetail, ordinalIgnoreCase);

            if (oboznDetailComparison != 0)
            {
                return(oboznDetailComparison);
            }
            var operacComparison = Operac.CompareTo(other.Operac);

            if (operacComparison != 0)
            {
                return(operacComparison);
            }
            var workGuildIdComparison = WorkGuildId.CompareTo(other.WorkGuildId);

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

            if (areaIdComparison != 0)
            {
                return(areaIdComparison);
            }
            var tehnoperIdComparison = TehnoperId.CompareTo(other.TehnoperId);

            if (tehnoperIdComparison != 0)
            {
                return(tehnoperIdComparison);
            }
            var nameTehnoperComparison = string.Compare(NameTehnoper, other.NameTehnoper, ordinalIgnoreCase);

            if (nameTehnoperComparison != 0)
            {
                return(nameTehnoperComparison);
            }
            var koefvrComparison = Koefvr.CompareTo(other.Koefvr);

            if (koefvrComparison != 0)
            {
                return(koefvrComparison);
            }
            var profIdComparison = ProfId.CompareTo(other.ProfId);

            if (profIdComparison != 0)
            {
                return(profIdComparison);
            }
            var nameProfComparison = string.Compare(NameProf, other.NameProf, ordinalIgnoreCase);

            if (nameProfComparison != 0)
            {
                return(nameProfComparison);
            }
            var kolrabComparison = Kolrab.CompareTo(other.Kolrab);

            if (kolrabComparison != 0)
            {
                return(kolrabComparison);
            }
            var razrComparison = Razr.CompareTo(other.Razr);

            if (razrComparison != 0)
            {
                return(razrComparison);
            }
            var koldetComparison = Koldet.CompareTo(other.Koldet);

            if (koldetComparison != 0)
            {
                return(koldetComparison);
            }
            var ednormComparison = Ednorm.CompareTo(other.Ednorm);

            if (ednormComparison != 0)
            {
                return(ednormComparison);
            }
            var tarsetComparison = Tarset.CompareTo(other.Tarset);

            if (tarsetComparison != 0)
            {
                return(tarsetComparison);
            }
            var vidnormComparison = Vidnorm.CompareTo(other.Vidnorm);

            if (vidnormComparison != 0)
            {
                return(vidnormComparison);
            }
            var razmpartComparison = Razmpart.CompareTo(other.Razmpart);

            if (razmpartComparison != 0)
            {
                return(razmpartComparison);
            }
            var tpzComparison = Tpz.CompareTo(other.Tpz);

            if (tpzComparison != 0)
            {
                return(tpzComparison);
            }
            var vstComparison = Vst.CompareTo(other.Vst);

            if (vstComparison != 0)
            {
                return(vstComparison);
            }
            var koefneosComparison = Koefneos.CompareTo(other.Koefneos);

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

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

            if (rstkComparison != 0)
            {
                return(rstkComparison);
            }
            var nomizvComparison = string.Compare(Nomizv, other.Nomizv, ordinalIgnoreCase);

            if (nomizvComparison != 0)
            {
                return(nomizvComparison);
            }
            return(DateIzv.CompareTo(other.DateIzv));
        }
Пример #4
0
        public int CompareTo(PrintingOfProsuctInContextOfDetalOperations 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 detalIdComparison = DetalId.CompareTo(other.DetalId);

            if (detalIdComparison != 0)
            {
                return(detalIdComparison);
            }
            var detalNameComparison = string.Compare(DetalName, other.DetalName, ordinalIgnoreCase);

            if (detalNameComparison != 0)
            {
                return(detalNameComparison);
            }
            var detalMarkComparison = string.Compare(DetalMark, other.DetalMark, ordinalIgnoreCase);

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

            if (kcComparison != 0)
            {
                return(kcComparison);
            }
            var kolComparison = Kol.CompareTo(other.Kol);

            if (kolComparison != 0)
            {
                return(kolComparison);
            }
            var operacComparison = Operac.CompareTo(other.Operac);

            if (operacComparison != 0)
            {
                return(operacComparison);
            }
            var tehoperComparison = Tehoper.CompareTo(other.Tehoper);

            if (tehoperComparison != 0)
            {
                return(tehoperComparison);
            }
            var operationNameComparison = string.Compare(OperationName, other.OperationName, ordinalIgnoreCase);

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

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

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