private void CargarPrecapturaODC() { dtgPreCaptura.DataSource = null; CLS_PrecapturaODC Clase = new CLS_PrecapturaODC(); Clase.MtdSeleccionarPrecapturaODC(); if (Clase.Exito) { dtgPreCaptura.DataSource = Clase.Datos; } }
private void EliminarPrecapturaODC() { CLS_PrecapturaODC Clase = new CLS_PrecapturaODC(); Clase.Id_PrecapturaODC = textId.Text.Trim(); Clase.MtdEliminarPrecapturaODC(); if (Clase.Exito) { CargarPrecapturaODC(); XtraMessageBox.Show("Se ha Eliminado el registro con exito"); LimpiarCampos(); } else { XtraMessageBox.Show(Clase.Mensaje); } }
private void InsertarPrecapturaODC() { CLS_PrecapturaODC Clase = new CLS_PrecapturaODC(); Clase.Id_PrecapturaODC = textId.Text.Trim(); Clase.JefeCuadrilla = textJefeCuadrilla.Text.Trim(); Clase.Id_Huerta = textHuerta.Tag.ToString(); Clase.Transportista = textTransportista.Text.Trim(); Clase.Placas = textPlacas.Text.Trim(); Clase.Id_TipoCorte = textTipoCorte.Tag.ToString(); Clase.Id_Empaque = textEmpaque.Tag.ToString().Trim(); Clase.Id_Jefe_Area = textJefeArea.Tag.ToString().Trim(); Clase.ODC = textODC.Text.Trim(); Clase.Candado = textCandado.Text.Trim(); if (checkPSobreBanda.Checked) { Clase.PSobreBanda = "1"; Clase.Precio = 0; } else { Clase.PSobreBanda = "0"; Clase.Precio = Convert.ToDouble(textPrecio.Text.Trim()); } Clase.Id_Area = textArea.Tag.ToString().Trim(); Clase.Id_Duenio = textProductor.Tag.ToString().Trim(); Clase.Usuario = UsuariosLogin.Trim(); Clase.MtdInsertarPrecapturaODC(); if (Clase.Exito) { CargarPrecapturaODC(); XtraMessageBox.Show("Se ha Insertado el registro con exito"); LimpiarCampos(); } else { XtraMessageBox.Show(Clase.Mensaje); } }