Esempio n. 1
0
 private void btnCargar_Click(object sender, EventArgs e)
 {
     if (Convert.ToInt32(DatosCabeceraCot.SelectedRowsCount) >= 1)
     {
         numero     = Convert.ToInt32(DatosCabeceraCot.GetFocusedRowCellValue(colNumero));
         id_empresa = Convert.ToInt32(DatosCabeceraCot.GetFocusedRowCellValue(colidEmpresa));
         estado     = Convert.ToInt32(DatosCabeceraCot.GetFocusedRowCellValue(colidEstado));
     }
     Dispose();
 }
Esempio n. 2
0
 private void dtgCabeceraCotizacion_Click(object sender, EventArgs e)
 {
     //PRIMERO DEBEMOS DE VERIFICAR SI EXISTEN ELEMENTOS EN NUESTRO DATAGRIDVIEW
     if (Convert.ToInt32(DatosCabeceraCot.SelectedRowsCount) >= 1)
     {
         datCotizaciones oDatCotizacion = new datCotizaciones();
         int             numero         = Convert.ToInt32(DatosCabeceraCot.GetFocusedRowCellValue(colNumero));
         int             id_empresa     = Convert.ToInt32(DatosCabeceraCot.GetFocusedRowCellValue(colidEmpresa));
         dtgDetalleCotizacion.DataSource = oDatCotizacion.DetalleCotizacionVista(numero, id_empresa);
     }
 }