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