Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public override bool Equals(Object obj)
 {
     if (obj.GetType() == typeof(KeyNamePair))
     {
         KeyNamePair pp = (KeyNamePair)obj;
         if (pp.GetKey() == _key &&
             pp.GetName() != null &&
             pp.GetName().Equals(GetName()))
         {
             return(true);
         }
         return(false);
     }
     return(false);
 }       //	equals
 /// <summary>
 ///
 /// </summary>
 /// <param name="client"></param>
 /// <param name="currency"></param>
 public MAcctSchema(MClient client, KeyNamePair currency)
     : this(client.GetCtx(), 0, client.Get_TrxName())
 {
     SetClientOrg(client);
     SetC_Currency_ID(currency.GetKey());
     SetName(client.GetName() + " " + GetGAAP() + "/" + Get_ColumnCount() + " " + currency.GetName());
 }       //	MAcctSchema