private void ucGe_Menu_event_btnModificar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { info = new Aca_Pre_Facturacion_Info(); info = (Aca_Pre_Facturacion_Info)gridView_pre_fac.GetFocusedRow(); if (info == null) { MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Seleccione_un_registro), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (info.Estado_Pre_factutacion_Cat == "PEN") { frm = new FrmAca_Pre_Facturacion_Mant(); frm.accion = Cl_Enumeradores.eTipo_action.consultar; frm.MdiParent = this.MdiParent; frm.Set(info); frm.Show(); } if (info.Estado_Pre_factutacion_Cat == "FAC") { MessageBox.Show("No se puede Modificar el Proceso de Facturacion \n El Proceso de Facturacion ya esta Facturado", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } } catch (Exception ex) { MessageBox.Show(ex.Message); Log_Error_bus.Log_Error(ex.Message); } }
private void ucGe_Menu_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { frm = new FrmAca_Pre_Facturacion_Mant(); frm.accion = Cl_Enumeradores.eTipo_action.consultar; frm.MdiParent = this.MdiParent; frm.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); Log_Error_bus.Log_Error(ex.Message); } }