public void selByIdEntrada()
 {
     try
     {
         this.comm = GenericDataAccess.CreateCommandSP("sp_Entrada_transporte");
         addParameters(5);
         this.dt   = GenericDataAccess.ExecuteSelectCommand(comm);
         this._lst = new List <Entrada_transporte>();
         foreach (DataRow dr in dt.Rows)
         {
             Entrada_transporte o = new Entrada_transporte();
             int.TryParse(dr["id"].ToString(), out entero);
             o.Id   = entero;
             entero = 0;
             if (dr["id_entrada"] != DBNull.Value)
             {
                 int.TryParse(dr["id_entrada"].ToString(), out entero);
                 o.Id_entrada = entero;
                 entero       = 0;
             }
             o.Transporte_linea = dr["transporte_linea"].ToString();
             if (dr["id_transporte_tipo"] != DBNull.Value)
             {
                 int.TryParse(dr["id_transporte_tipo"].ToString(), out entero);
                 o.Id_transporte_tipo = entero;
                 entero = 0;
             }
             o.Placa           = dr["placa"].ToString();
             o.Caja            = dr["caja"].ToString();
             o.Caja1           = dr["caja1"].ToString();
             o.Caja2           = dr["caja2"].ToString();
             o.Transporte_tipo = dr["nombre"].ToString();
             this._lst.Add(o);
         }
     }
     catch
     {
         throw;
     }
 }
 public Entrada_transporteMng()
 {
     this._oEntrada_transporte = new Entrada_transporte();
 }