private void btn_modificar_Click_1(object sender, EventArgs e) { try { if (liquidacion_gasto_info == null) { MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Seleccione_un_registro), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } frmfa_liquidacion_gastos_Mant frm = new frmfa_liquidacion_gastos_Mant(); frm.MdiParent = this.MdiParent; frm.Set_Accion(Cl_Enumeradores.eTipo_action.actualizar); frm.Set_Info(liquidacion_gasto_info); frm.MdiParent = this.MdiParent; frm.Show(); buscar_liquidaciones(); } catch (Exception ex) { string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name; MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Error_comunicarse_con_sistemas) + ex.Message + " ", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString()); } }
private void Llamar_formulario(Cl_Enumeradores.eTipo_action Accion) { try { frm = new frmfa_liquidacion_gastos_Mant(); frm.event_delegate_frmfa_liquidacion_gastos_Mant_FormClosing += frm_event_delegate_frmfa_liquidacion_gastos_Mant_FormClosing; frm.Set_Accion(Accion); if (Accion != Cl_Enumeradores.eTipo_action.grabar) { if (Info_Liquidacion != null) { frm.Set_Info(Info_Liquidacion); frm.MdiParent = this.MdiParent; frm.Show(); } else { MessageBox.Show("Por Favor seleccione un registro para continuar", "Sistemas", MessageBoxButtons.OK, MessageBoxIcon.Information); } } else { frm.MdiParent = this.MdiParent; frm.Show(); } } catch (Exception ex) { string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name; MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Error_comunicarse_con_sistemas) + ex.Message + " ", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString()); } }
private void btn_nuevo_Click(object sender, EventArgs e) { try { frmfa_liquidacion_gastos_Mant frm = new frmfa_liquidacion_gastos_Mant(); frm.MdiParent = this.MdiParent; frm.Set_Accion(Cl_Enumeradores.eTipo_action.grabar); frm.MdiParent = this.MdiParent; frm.Show(); buscar_liquidaciones(); } catch (Exception ex) { string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name; MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Error_comunicarse_con_sistemas) + ex.Message + " ", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString()); } }