protected void BindByDataRow(DataRow dr, Personal_archivo_tipo o)
 {
     try {
         int.TryParse(dr["id"].ToString(), out entero);
         o.Id   = entero;
         entero = 0;
         o.Tipo = dr["tipo"].ToString();
     } catch  {
         throw;
     }
 }
 public override void fillLst()
 {
     try {
         this.comm = GenericDataAccess.CreateCommandSP("sp_Personal_archivo_tipo");
         addParameters(0);
         this.dt   = GenericDataAccess.ExecuteSelectCommand(comm);
         this._lst = new List <Personal_archivo_tipo>();
         foreach (DataRow dr in dt.Rows)
         {
             Personal_archivo_tipo o = new Personal_archivo_tipo();
             BindByDataRow(dr, o);
             this._lst.Add(o);
         }
     } catch  {
         throw;
     }
 }
 public Personal_archivo_tipoMng()
 {
     this._oPersonal_archivo_tipo = new Personal_archivo_tipo();
     this._lst = new List <Personal_archivo_tipo>();
 }