Exemplo n.º 1
0
 protected void BindByDataRow(DataRow dr, Personal_rol o)
 {
     try {
         int.TryParse(dr["id"].ToString(), out entero);
         o.Id     = entero;
         entero   = 0;
         o.Nombre = dr["nombre"].ToString();
     } catch  {
         throw;
     }
 }
Exemplo n.º 2
0
 public override void fillLst()
 {
     try {
         this.comm = GenericDataAccess.CreateCommandSP("sp_Personal_rol");
         addParameters(0);
         this.dt   = GenericDataAccess.ExecuteSelectCommand(comm);
         this._lst = new List <Personal_rol>();
         foreach (DataRow dr in dt.Rows)
         {
             Personal_rol o = new Personal_rol();
             BindByDataRow(dr, o);
             this._lst.Add(o);
         }
     } catch  {
         throw;
     }
 }
Exemplo n.º 3
0
 public Personal_rolMng()
 {
     this._oPersonal_rol = new Personal_rol();
     this._lst           = new List <Personal_rol>();
 }