private void Construye_ListaLibroOrdenes() { L_LibroOrdenes r_LibroOrdenes = new L_LibroOrdenes(); List <ListaRepLibroOrdenes> Lst_LibroOrdenes = new List <ListaRepLibroOrdenes>(); int vl_regact = BS_LLibroOrdenes.Position; int vl_Filtro = this.Opc_Filtro2.Checked ? 1 : this.Opc_Filtro3.Checked ? 2 : this.Opc_Filtro4.Checked ? 3 : this.Opc_Filtro5.Checked ? 4 : 5; BS_LLibroOrdenes.DataSource = NL_LibroOrdenes.ListarPorStatus(vl_Filtro, Dtp_FDesde.Value, Dtp_FHasta.Value); BS_LLibroOrdenes.MoveFirst(); foreach (object Registro in BS_LLibroOrdenes) { r_LibroOrdenes = BS_LLibroOrdenes.Current as L_LibroOrdenes; if (vl_Filtro == 5 | r_LibroOrdenes.Status == vl_Filtro) { Lst_LibroOrdenes.Add(new ListaRepLibroOrdenes() { Secuencia = r_LibroOrdenes.Secuencia.ToString(), Status = r_LibroOrdenes.Status != null ? Funciones._Mens_Idioma((int)r_LibroOrdenes.Status + 15020) : Funciones._Mens_Idioma(15020), Orden_Fecha = r_LibroOrdenes.Orden_Fecha != null ? (DateTime)r_LibroOrdenes.Orden_Fecha : DateTime.Now, Orden_Tipo = NM_TipoOrdenes.ListarPorCodigo(r_LibroOrdenes.Orden_Tipo).First().Descripcion, Orden_Validez = r_LibroOrdenes.Orden_Validez != null ? Funciones._Mens_Idioma(r_LibroOrdenes.Orden_Validez == 2 ? 15026 : 15025) : "???", Titulo_Cod = r_LibroOrdenes.Titulo_Cod, Titulo_Nme = NM_Titulos.ListarPorCodigo(r_LibroOrdenes.Titulo_Cod).First().Descripcion, Titulo_ISIN = NM_Titulos.ListarPorCodigo(r_LibroOrdenes.Titulo_Cod).First().ISIN, Orden_Nominal = (int)r_LibroOrdenes.Orden_Nominal, Orden_PrecMercado = r_LibroOrdenes.Orden_PrecMercado != null ? (bool)r_LibroOrdenes.Orden_PrecMercado : false, Orden_Precio = r_LibroOrdenes.Orden_Precio != null ? (decimal)r_LibroOrdenes.Orden_Precio : 0, Orden_ValorEfectivo = r_LibroOrdenes.Orden_ValorEfectivo != null ? (decimal)r_LibroOrdenes.Orden_ValorEfectivo : 0, Cuenta = r_LibroOrdenes.Cuenta, Cliente_Cod = r_LibroOrdenes.Cliente_Cod, Cliente_Nme = NC_Clientes.ListarPorCliente(r_LibroOrdenes.Cliente_Cod).First().Nombre, Cliente_Email = NC_Clientes.ListarPorCliente(r_LibroOrdenes.Cliente_Cod).First().IG_Email, Cliente_Ejecutivo = NC_Clientes.ListarPorCliente(r_LibroOrdenes.Cliente_Cod).First().Ejecutivo, Cliente_Status = Funciones._Mens_Idioma(NC_Clientes.ListarPorCliente(r_LibroOrdenes.Cliente_Cod).First().Activo == true ? 126 : 127), Aprobado_Por = r_LibroOrdenes.Aprob_Por, Aprobado_Fecha = r_LibroOrdenes.Aprob_Fecha != null ? (DateTime)r_LibroOrdenes.Aprob_Fecha : DateTime.Now, Pacto_Fecha = r_LibroOrdenes.Pacto_Fecha != null ? (DateTime)r_LibroOrdenes.Pacto_Fecha : DateTime.Now, Pacto_FecValor = r_LibroOrdenes.Pacto_FecValor != null ? (DateTime)r_LibroOrdenes.Pacto_FecValor : DateTime.Now, Pacto_Nominal = r_LibroOrdenes.Pacto_Nominal != null ? (int)r_LibroOrdenes.Pacto_Nominal : 0, Pacto_Precio = r_LibroOrdenes.Pacto_Precio != null ? (decimal)r_LibroOrdenes.Pacto_Precio.Value : 0, Pacto_Valor = r_LibroOrdenes.Pacto_Valor != null ? (decimal)r_LibroOrdenes.Pacto_Valor : 0, Ejecutada_Por = r_LibroOrdenes.Ejecutada_Por }); } BS_LLibroOrdenes.MoveNext(); } BS_LLibroOrdenes.DataSource = NL_LibroOrdenes.Listar(); BS_LLibroOrdenes.Position = vl_regact; Grd_LibroCompuesto.DataSource = Lst_LibroOrdenes; }
private void TSB_Siguiente_Click(object sender, EventArgs e) { BS_LLibroOrdenes.MoveNext(); TSB_ActualizaBotonesNavegacion(); }