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 void MergeFrom(AccountingTransactionLine other)
 {
     if (other == null)
     {
         return;
     }
     if (other.debitAmount_ != null)
     {
         if (debitAmount_ == null)
         {
             debitAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         DebitAmount.MergeFrom(other.DebitAmount);
     }
     if (other.creditAmount_ != null)
     {
         if (creditAmount_ == null)
         {
             creditAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         CreditAmount.MergeFrom(other.CreditAmount);
     }
     if (other.Narration.Length != 0)
     {
         Narration = other.Narration;
     }
     if (other.account_ != null)
     {
         if (account_ == null)
         {
             account_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator();
         }
         Account.MergeFrom(other.Account);
     }
     if (other.AccountName.Length != 0)
     {
         AccountName = other.AccountName;
     }
     if (other.AccountType != 0)
     {
         AccountType = other.AccountType;
     }
     if (other.Designation != 0)
     {
         Designation = other.Designation;
     }
     if (other.TransferIndication != 0)
     {
         TransferIndication = other.TransferIndication;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Money.Accounting.AccountingTransactionLineIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = BatchNo;
         hashCode = (hashCode * 397) ^ TranDate.GetHashCode();
         hashCode = (hashCode * 397) ^ DebitAmount.GetHashCode();
         hashCode = (hashCode * 397) ^ CreditAmount.GetHashCode();
         hashCode = (hashCode * 397) ^ ReceiptNo;
         hashCode = (hashCode * 397) ^ CheckNo;
         hashCode = (hashCode * 397) ^ SocSecNo;
         return(hashCode);
     }
 }