public override int GetHashCode() { int hash = 1; if (debitAmount_ != null) { hash ^= DebitAmount.GetHashCode(); } if (creditAmount_ != null) { hash ^= CreditAmount.GetHashCode(); } if (Narration.Length != 0) { hash ^= Narration.GetHashCode(); } if (account_ != null) { hash ^= Account.GetHashCode(); } if (AccountName.Length != 0) { hash ^= AccountName.GetHashCode(); } if (AccountType != 0) { hash ^= AccountType.GetHashCode(); } if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (AccountId.Length != 0) { hash ^= AccountId.GetHashCode(); } if (AccountType != 0) { hash ^= AccountType.GetHashCode(); } if (AccountActivityType != 0) { hash ^= AccountActivityType.GetHashCode(); } if (Otherdata.Length != 0) { hash ^= Otherdata.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(type.GetHashCode()); }
public JsonResult SearchAccount(string field, string search, SubAccountType subType, AccountType accountType, bool?isHeader, bool?isActive, int?pageCount = null) { if (string.IsNullOrEmpty(search) && !isHeader.HasValue && !isActive.HasValue && subType == SubAccountType.Unknown && accountType == AccountType.Unknown) { return(Json(GetPageItem(null, LogicalOperator.and, DefaultSorting(), pageCount))); } var searchCriteria = new List <SearchCriteria>(); if (!string.IsNullOrEmpty(search)) { searchCriteria.Add(new SearchCriteria { Field = field, SearchText = search, FieldType = field.Contains("Balance")? typeof(decimal): typeof(string) }); } if (subType != SubAccountType.Unknown) { searchCriteria.Add(new SearchCriteria { Field = "Type", SearchText = subType.GetHashCode().ToString(), FieldType = typeof(string) }); } if (accountType != AccountType.Unknown) { searchCriteria.Add(new SearchCriteria { Field = "Classification", SearchText = accountType.GetHashCode().ToString(), FieldType = typeof(string) }); } if (isHeader.HasValue) { searchCriteria.Add(new SearchCriteria { Field = "IsHeader", SearchText = isHeader.Value.ToString().ToLower(), FieldType = typeof(bool) }); } if (isActive.HasValue) { searchCriteria.Add(new SearchCriteria { Field = "IsActive", SearchText = (!isActive.Value).ToString().ToLower(), FieldType = typeof(bool) }); } return(Json(GetPageItem(searchCriteria, LogicalOperator.and, DefaultSorting(), pageCount))); }
/// <summary> /// Gets a hash code for the current book /// </summary> /// <returns>A hash code for the current book</returns> public override int GetHashCode() { return(Id.GetHashCode() + FirstName.GetHashCode() + LastName.GetHashCode() + Balance.GetHashCode() + BonusPoints.GetHashCode() + AccountType.GetHashCode() + BonusPointsCalculator.GetHashCode()); }
public override int GetHashCode() { int hashCode = 424336074; if (Id != null) { hashCode += Id.GetHashCode(); } if (AccountNumberSuffix != null) { hashCode += AccountNumberSuffix.GetHashCode(); } if (Country != null) { hashCode += Country.GetHashCode(); } if (Currency != null) { hashCode += Currency.GetHashCode(); } if (AccountType != null) { hashCode += AccountType.GetHashCode(); } if (HolderName != null) { hashCode += HolderName.GetHashCode(); } if (PrimaryBankIdentificationNumber != null) { hashCode += PrimaryBankIdentificationNumber.GetHashCode(); } if (SecondaryBankIdentificationNumber != null) { hashCode += SecondaryBankIdentificationNumber.GetHashCode(); } if (DebitMandateReferenceId != null) { hashCode += DebitMandateReferenceId.GetHashCode(); } if (ReferenceId != null) { hashCode += ReferenceId.GetHashCode(); } if (LocationId != null) { hashCode += LocationId.GetHashCode(); } if (Status != null) { hashCode += Status.GetHashCode(); } hashCode += Creditable.GetHashCode(); hashCode += Debitable.GetHashCode(); if (Fingerprint != null) { hashCode += Fingerprint.GetHashCode(); } if (Version != null) { hashCode += Version.GetHashCode(); } if (BankName != null) { hashCode += BankName.GetHashCode(); } return(hashCode); }