コード例 #1
0
 public void fillAllLst()
 {
     try
     {
         this.comm = GenericDataAccess.CreateCommandSP("sp_Custodia");
         addParameters(-1);
         this.dt   = GenericDataAccess.ExecuteSelectCommand(comm);
         this._lst = new List <Custodia>();
         foreach (DataRow dr in dt.Rows)
         {
             Custodia o = new Custodia();
             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;
     }
 }
コード例 #2
0
 public CustodiaMng()
 {
     this._oCustodia = new Custodia();
 }