Exemplo n.º 1
0
 public override void fillLst()
 {
     try
     {
         this.comm = GenericDataAccess.CreateCommandSP("sp_Entrada_usuario");
         addParameters(0);
         this.dt   = GenericDataAccess.ExecuteSelectCommand(comm);
         this._lst = new List <Entrada_usuario>();
         foreach (DataRow dr in dt.Rows)
         {
             Entrada_usuario o = new Entrada_usuario();
             int.TryParse(dr["id"].ToString(), out entero);
             o.Id   = entero;
             entero = 0;
             if (dr["id_entrada"] != DBNull.Value)
             {
                 int.TryParse(dr["id_entrada"].ToString(), out entero);
                 o.Id_entrada = entero;
                 entero       = 0;
             }
             if (dr["id_usuario"] != DBNull.Value)
             {
                 int.TryParse(dr["id_usuario"].ToString(), out entero);
                 o.Id_usuario = entero;
                 entero       = 0;
             }
             o.Folio = dr["folio"].ToString();
             this._lst.Add(o);
         }
     }
     catch
     {
         throw;
     }
 }
Exemplo n.º 2
0
 public Entrada_usuarioMng()
 {
     this._oEntrada_usuario = new Entrada_usuario();
 }