Example #1
0
 public virtual void Limpiar()
 {
     this.id             = 0;
     this.codigo         = null;
     this.nombre         = null;
     this.definicion     = null;
     this.cuentaContable = null;
     this.valor          = 0;
     this.seFactura      = false;
     this.automatico     = false;
     this.activo         = false;
 }
Example #2
0
 public override int CompareTo(object obj)
 {
     if (obj is CuentaContable)
     {
         CuentaContable oVar = obj as CuentaContable;
         return(String.Compare(this.ToString(), oVar.ToString(), true));
     }
     else if (obj is string)
     {
         return(String.Compare(this.ToString(), obj as string));
     }
     else
     {
         return(-1);
     }
 }