Exemplo n.º 1
0
 public void fillAllLst()
 {
     try
     {
         this.comm = GenericDataAccess.CreateCommandSP("sp_Cuenta_tipo");
         addParameters(-1);
         this.dt   = GenericDataAccess.ExecuteSelectCommand(comm);
         this._lst = new List <Cuenta_tipo>();
         foreach (DataRow dr in dt.Rows)
         {
             Cuenta_tipo o = new Cuenta_tipo();
             int.TryParse(dr["id"].ToString(), out entero);
             o.Id     = entero;
             entero   = 0;
             o.Nombre = dr["nombre"].ToString();
             if (dr["IsActive"] != null)
             {
                 bool.TryParse(dr["IsActive"].ToString(), out logica);
                 o.IsActive = logica;
             }
             this._lst.Add(o);
         }
     }
     catch
     {
         throw;
     }
 }
Exemplo n.º 2
0
 public Cuenta_tipoMng()
 {
     this._oCuenta_tipo = new Cuenta_tipo();
 }