Example #1
0
 void ucGe_Menu_Mantenimiento_x_usuario_event_btnModificar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         InfoObra = (prd_Obra_Info)gridViewObras.GetFocusedRow();
         if (InfoObra == null)
         {
             MessageBox.Show("Selecciones una fila", "sistemas", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         }
         else
         {
             FrmPrd_ObraMantemiento frm = new FrmPrd_ObraMantemiento();
             frm.set_Acccion(Cl_Enumeradores.eTipo_action.actualizar);
             frm.set_Info(InfoObra);
             frm.Text = frm.Text + " ***MODIFICAR REGISTRO***"; frm.MdiParent = this.MdiParent;
             frm.Show();
             frm.event_FrmPrd_ObraMantemiento_FormClosing += frm_event_FrmPrd_ObraMantemiento_FormClosing;
         }
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.InnerException.ToString());
     }
 }
Example #2
0
 void ucGe_Menu_Mantenimiento_x_usuario_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         FrmPrd_ObraMantemiento frm = new FrmPrd_ObraMantemiento();
         frm.set_Acccion(Cl_Enumeradores.eTipo_action.grabar);
         frm.Text = frm.Text + " ***NUEVO REGISTRO***"; frm.MdiParent = this.MdiParent;
         frm.Show();
         frm.event_FrmPrd_ObraMantemiento_FormClosing += frm_event_FrmPrd_ObraMantemiento_FormClosing;
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.InnerException.ToString());
     }
 }