Пример #1
0
 public override void fillLst()
 {
     try
     {
         this.comm = GenericDataAccess.CreateCommandSP("sp_Cliente_destino");
         addParameters(0);
         this.dt   = GenericDataAccess.ExecuteSelectCommand(comm);
         this._lst = new List <Cliente_destino>();
         foreach (DataRow dr in dt.Rows)
         {
             Cliente_destino o = new Cliente_destino();
             int.TryParse(dr["id"].ToString(), out entero);
             o.Id   = entero;
             entero = 0;
             if (dr["id_cliente"] != DBNull.Value)
             {
                 int.TryParse(dr["id_cliente"].ToString(), out entero);
                 o.Id_cliente = entero;
                 entero       = 0;
             }
             o.Destino = dr["destino"].ToString();
             this._lst.Add(o);
         }
     }
     catch
     {
         throw;
     }
 }
Пример #2
0
 public Cliente_destinoMng()
 {
     this._oCliente_destino = new Cliente_destino();
 }