protected void BindByDataRow(DataRow dr, Salida_destino o)
 {
     try
     {
         int.TryParse(dr["id"].ToString(), out entero);
         o.Id   = entero;
         entero = 0;
         if (dr["id_cliente_grupo"] != DBNull.Value)
         {
             int.TryParse(dr["id_cliente_grupo"].ToString(), out entero);
             o.Id_cliente_grupo = entero;
             entero             = 0;
         }
         o.Destino   = dr["destino"].ToString();
         o.Direccion = dr["direccion"].ToString();
         if (dr["IsActive"] != DBNull.Value)
         {
             bool.TryParse(dr["IsActive"].ToString(), out logica);
             o.IsActive = logica;
             logica     = false;
         }
     }
     catch
     {
         throw;
     }
 }
 public override void fillLst()
 {
     try
     {
         this.comm = GenericDataAccess.CreateCommandSP("sp_Salida_destino");
         addParameters(0);
         this.dt   = GenericDataAccess.ExecuteSelectCommand(comm);
         this._lst = new List <Salida_destino>();
         foreach (DataRow dr in dt.Rows)
         {
             Salida_destino o = new Salida_destino();
             BindByDataRow(dr, o);
             this._lst.Add(o);
         }
     }
     catch
     {
         throw;
     }
 }
 public Salida_destinoMng()
 {
     this._oSalida_destino = new Salida_destino();
     this._lst             = new List <Salida_destino>();
 }