void ucGe_Menu_Mantenimiento_x_usuario_event_btnModificar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { // var Info = (vwRo_Prestamo_Info)this.gridViewCons.GetFocusedRow(); try { Info = (ro_prestamo_Info)this.gridViewCons.GetFocusedRow(); if (Info == null) { MessageBox.Show("Seleccione un registro", "Sistemas", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { if (Info.Estado == "I") { MessageBox.Show("No se Puede modificar El Registro Esta Anulado", "Sistemas", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { frmMant = new frmRo_Prestamos(Cl_Enumeradores.eTipo_action.actualizar); frmMant.event_frmRo_Prestamos_FormClosing += frmMant_event_frmRo_Prestamos_FormClosing; frmMant.Text = frmMant.Text + " ***ACTUALIZAR REGISTRO***"; frmMant.SETINFO_ = Info; frmMant.ShowDialog(); } } } catch (Exception ex) { MessageBox.Show(ex.ToString()); Log_Error_bus.Log_Error(ex.ToString()); } }
private void pu_AbrirPrestamos() { try { ro_prestamo_Info cab = new ro_prestamo_Info(); ro_periodo_Info period = new ro_periodo_Info(); if (period != null) { cab.IdEmpleado = Info.IdEmpleado; } cab.IdNomina_Tipo = _idNominaTipo; frmRo_Prestamos frmPrestamo = new frmRo_Prestamos(); frmPrestamo = new frmRo_Prestamos(Cl_Enumeradores.eTipo_action.grabar); frmPrestamo.setCabPrestamo(cab); frmPrestamo.ShowDialog(); //btnRefresh_Click(sender, e); //setInfo(); //this.CargaEmpSalNeg(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); Log_Error_bus.Log_Error(ex.ToString()); } }
void ucGe_Menu_Mantenimiento_x_usuario_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { frmMant = new frmRo_Prestamos(Cl_Enumeradores.eTipo_action.grabar); frmMant.event_frmRo_Prestamos_FormClosing += frmMant_event_frmRo_Prestamos_FormClosing; frmMant.Text = frmMant.Text + " ***NUEVO REGISTRO***"; frmMant.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); Log_Error_bus.Log_Error(ex.ToString()); } }