Beispiel #1
0
        void ucGe_Menu_Mantenimiento_x_usuario_event_btnModificar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                if (_Info == null)
                {
                    MessageBox.Show("Seleccione un registro", "Sistemas", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
                else if (_Info.Estado == "I")
                {
                    MessageBox.Show("No se pueden modificar registros inactivos", "Sistemas", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
                else
                {
                    ofrm = new frmImp_Embarcador_Mant();
                    ofrm.Event_frmImp_Embarcador_Mant_FormClosing += new frmImp_Embarcador_Mant.Delegate_frmImp_Embarcador_Mant_FormClosing(ofrm_Event_frmImp_Embarcador_Mant_FormClosing);
                    ofrm.SetAccion(Info.General.Cl_Enumeradores.eTipo_action.actualizar);
                    ofrm._InfoSet  = _Info;
                    ofrm.MdiParent = this.MdiParent;
                    ofrm.Show();
                }
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());

                MessageBox.Show(ex.ToString());
            }
        }
Beispiel #2
0
        void ucGe_Menu_Mantenimiento_x_usuario_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                ofrm = new frmImp_Embarcador_Mant();
                ofrm.Event_frmImp_Embarcador_Mant_FormClosing += new frmImp_Embarcador_Mant.Delegate_frmImp_Embarcador_Mant_FormClosing(ofrm_Event_frmImp_Embarcador_Mant_FormClosing);
                ofrm.SetAccion(Info.General.Cl_Enumeradores.eTipo_action.grabar);
                ofrm.MdiParent = this.MdiParent;
                ofrm.Show();
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());

                MessageBox.Show(ex.ToString());
            }
        }