private void CargaListado() { if (!string.IsNullOrEmpty(_nombreInforme) && (_listado == null || _nombreInforme != (string)_listado.Tag)) { _listado = AyudaLocal.RecargaFormato(_nombreInforme, _localizacion); } }
protected override void CargaListado() { if (!string.IsNullOrEmpty(_nombreInforme) && (Listado == null || _nombreInforme != (string)Listado.Tag)) { Listado = AyudaLocal.RecargaFormato(_nombreInforme, _localizacion); } }
public Consultas_frm() { InitializeComponent(); bgWk = new BackgroundWorker(); bgWk.WorkerSupportsCancellation = true; bgWk.DoWork += new DoWorkEventHandler(bgwCargaDatos_DoWork); bgWk.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bgwCargaDatos_RunWorkerCompleted); AyudaLocal.CargaRejilla(_rejillaMuni, gvVentasM); AyudaLocal.CargaRejilla(_rejillaRuta, gvVentasR); chRepartos.Visible = Properties.Settings.Default.Repartos; chRutasPrev.Visible = Properties.Settings.Default.Previstos; tpRepartos.PageVisible = Properties.Settings.Default.Repartos; }
protected override void InicializaListados() { CargaListado(); if (TCDatos.SelectedTabPage == tpRepartos) { Listado.DataSource = AyudaLocal.CargaDatosRejilla <PInfVentasClientes>(gvRepartos); } else { if (TCVentas.SelectedTabPage == xtpVentasxRuta) { Listado.DataSource = AyudaLocal.CargaDatosRejilla <PInfVentasClientes>(gvVentasR); // _datosVentas.VentasRutas; } else if (TCVentas.SelectedTabPage == xtpVentasxMuni) { Listado.DataSource = AyudaLocal.CargaDatosRejilla <PInfVentasClientes>(gvVentasM); //_datosVentas.VentasMuni; } else if (TCVentas.SelectedTabPage == xtpVentasxVend) { Listado.DataSource = AyudaLocal.CargaDatosRejilla <PInfVentasClientes>(gvVentasVend); } else if (TCVentas.SelectedTabPage == xtpVentasDia) { Listado.DataSource = AyudaLocal.CargaDatosRejilla <PInfVentasClientesD>(gvVentasD); } } foreach (var param in Listado.Parameters) { switch (param.Name) { case "pmEmpresa": param.Value = Parametros.NombreEmpresa; param.Visible = false; break; case "pmFecIni": param.Value = edFecIni.Text; param.Visible = false; break; case "pmFecFin": param.Value = edFecFin.Text; param.Visible = false; break; } } }
protected override void ExportarExcel() { try { if (TCIncVR.SelectedTabPage == tpIncVenta) { AyudaLocal.ExportarAExcel("IncidenciasVentas", gvLineas); } else if (TCIncVR.SelectedTabPage == tpIncReparto) { AyudaLocal.ExportarAExcel("IncidenciasRepartos", gvLinRep); } } catch (Exception ex) { MessageBox.Show("No es posible realizar la exportación" + Environment.NewLine + ex.Message); } }
protected override void ExportarExcel() { //try //{ // if (TCIncVR.SelectedTabPage == tpIncVenta) // AyudaLocal.ExportarAExcel("IncidenciasVentas", gvLineas); // else if (TCIncVR.SelectedTabPage == tpIncReparto) // AyudaLocal.ExportarAExcel("IncidenciasRepartos", gvLinRep); //} //catch(Exception ex) //{ // MessageBox.Show("No es posible realizar la exportación" + Environment.NewLine + ex.Message); //} var ctrls = TCDatos.SelectedTabPage.Controls.OfType <GridArticulos_ctrl>(); if (ctrls != null && ctrls.Count() > 0) { var gc = ctrls.FirstOrDefault() as GridArticulos_ctrl; if (gc != null) { AyudaLocal.ExportarAExcel("VentasArticulos", gc.Vista); } } }
private static List <Categoria> MetodoCargaCategorias() { return(AyudaLocal.CargaListaParaCombo <Categoria> ("Categoria", "IdCategoria", new ListaCamposBusqueda(), true, Parametros.IdEmpresa)); }
private static List <SegmentoMercado> MetodoCargaSegmentosMercado() { return(AyudaLocal.CargaListaParaCombo <SegmentoMercado>("SegmentoMercado", "Descripcion", new ListaCamposBusqueda(), false, -1)); }
private static List <GrupoClientes> MetodoCargaGruposClientes() { return(AyudaLocal.CargaListaParaCombo <GrupoClientes>("GrupoClientes", "Descripcion", new ListaCamposBusqueda(), false, Parametros.IdEmpresa)); }
private static List <TipoCliente> MetodoCargaTiposCliente() { return(AyudaLocal.CargaListaParaCombo <TipoCliente>("TipoCliente", "Descripcion", new ListaCamposBusqueda(), true, Parametros.IdEmpresa)); }
public static List <Ruta> MetodoCargaRutas() { return(AyudaLocal.CargaListaParaCombo <Ruta>("Ruta", "Codigo", new ListaCamposBusqueda(), true, Parametros.IdEmpresa)); }
public static List <Empleado> MetodoCargaEmpleados() { return(AyudaLocal.CargaListaParaCombo <Empleado>("Empleado", "Nombre", new ListaCamposBusqueda(), true, Parametros.IdEmpresa)); }
private static List <Informe> MetodoCargaInformes() { return(AyudaLocal.CargaListaParaCombo <Informe>("InformeD", "Titulo", new ListaCamposBusqueda(), false, -1)); }
private static List <Generico> MetodoCargaGenericos() { return(AyudaLocal.CargaListaParaCombo <Generico> ("Generico", "CodigoGenerico", new ListaCamposBusqueda(), true, Parametros.IdEmpresaArticulos ?? Parametros.IdEmpresa)); }
private static List <Familia> MetodoCargaFamilias() { return(AyudaLocal.CargaListaParaCombo <Familia> ("Familia", "CodigoFamilia", new ListaCamposBusqueda(), true, Parametros.IdEmpresaArticulos ?? Parametros.IdEmpresa)); }
private static List <Seccion> MetodoCargaSecciones() { return(AyudaLocal.CargaListaParaCombo <Seccion> ("Seccion", "CodigoSeccion", new ListaCamposBusqueda(), true, Parametros.IdEmpresaArticulos ?? Parametros.IdEmpresa)); }
public static List <EmpleadoVentas> MetodoCargaVendedores() { return(AyudaLocal.CargaListaParaCombo <EmpleadoVentas> ("Vendedor", "Nombre", new ListaCamposBusqueda(), true, Parametros.IdEmpresa)); }
public static List <Delegacion> MetodoCargaDelegaciones() { return(AyudaLocal.CargaListaParaCombo <Delegacion> ("Delegacion", "NombreDelegacion", new ListaCamposBusqueda(), false, -1)); }