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(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)); }
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)); }