protected void BindByDataRow(DataRow dr, Personal_tipo o) { try { int.TryParse(dr["id"].ToString(), out entero); o.Id = entero; entero = 0; o.Nombre = dr["nombre"].ToString(); } catch { throw; } }
public override void fillLst() { try { this.comm = GenericDataAccess.CreateCommandSP("sp_Personal_tipo"); addParameters(0); this.dt = GenericDataAccess.ExecuteSelectCommand(comm); this._lst = new List <Personal_tipo>(); foreach (DataRow dr in dt.Rows) { Personal_tipo o = new Personal_tipo(); BindByDataRow(dr, o); this._lst.Add(o); } } catch { throw; } }
public Personal_tipoMng() { this._oPersonal_tipo = new Personal_tipo(); this._lst = new List <Personal_tipo>(); }