private void InsertarPuntoControl() { CLS_PuntoControl PuntoControl = new CLS_PuntoControl(); PuntoControl.Id_PuntoControl = textId.Text.Trim(); PuntoControl.Id_Bloque = cboBloque.EditValue.ToString(); PuntoControl.Nombre_PuntoControl = textNombre.Text.Trim(); PuntoControl.n_coordenadaX = txtX.Text; PuntoControl.n_coordenadaY = txtY.Text; PuntoControl.Id_Usuario = Id_Usuario; if (glue_Empresa.EditValue != null) { PuntoControl.c_codigo_eps = glue_Empresa.EditValue.ToString(); PuntoControl.MtdInsertarPuntoControl(); if (PuntoControl.Exito) { CargarPuntoControl(); XtraMessageBox.Show("Se ha Insertado el registro con exito"); LimpiarCampos(); } else { XtraMessageBox.Show(PuntoControl.Mensaje); } } }
private void CargarPuntoControl() { dtgPuntoControl.DataSource = null; CLS_PuntoControl Clase = new CLS_PuntoControl(); if (glue_Empresa.EditValue != null) { Clase.c_codigo_eps = glue_Empresa.EditValue.ToString(); Clase.MtdSeleccionarPuntoControl(); if (Clase.Exito) { dtgPuntoControl.DataSource = Clase.Datos; } } }
private void EliminarPuntoControl() { CLS_PuntoControl PuntoControl = new CLS_PuntoControl(); PuntoControl.Id_PuntoControl = textId.Text.Trim(); PuntoControl.MtdEliminarPuntoControl(); if (PuntoControl.Exito) { CargarPuntoControl(); XtraMessageBox.Show("Se ha Eliminado el registro con exito"); LimpiarCampos(); } else { XtraMessageBox.Show(PuntoControl.Mensaje); } }