private void btndetalle_Click(object sender, EventArgs e) { int id = int.Parse(gvlistadopendientes.GetFocusedRowCellValue("id_venta_enc").ToString()); Ventas.Reportes.VistaEnvioCompleto vistaEnvioCompleto = new Ventas.Reportes.VistaEnvioCompleto(1, id); vistaEnvioCompleto.ShowDialog(); }
private void xrLabel4_PreviewClick(object sender, PreviewMouseEventArgs e) { //ViewGuate502.Reportes.Ventas.FormImprimirReporteEnvio modal = new ViewGuate502.Reportes.Ventas.FormImprimirReporteEnvio(); //modal.id_tienda = Configuraciones.Configuraciones.idtienda; //modal.id_venta_enc = Convert.ToInt32(e.Brick.Text); //modal.ShowDialog(); id_venta_enc = (from a in db.tbl_ventas_enc where a.id_serie == id_serie && a.correlativo == Convert.ToInt32(e.Brick.Text) select a.id_venta_enc).FirstOrDefault(); Ventas.Reportes.VistaEnvioCompleto vistaEnvioCompleto = new Ventas.Reportes.VistaEnvioCompleto(Configuraciones.Configuraciones.idtienda, id_venta_enc); vistaEnvioCompleto.ShowDialog(); }