void ucGe_Menu_Mantenimiento_x_usuario_event_btnModificar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         if (Info_CabNovedad.IdNovedad == null)
         {
             MessageBox.Show("Selecciones una fila.", "sistemas", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         }
         else
         {
             if (Info_CabNovedad.Estado == "I")
             {
                 MessageBox.Show("El Registro esta anulado no se puede modificar.", "sistemas", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
             }
             else
             {
                 frm = new frmRo_Empleado_Novedad_Mant();
                 frm.Event_frmRo_Empleado_Novedad_Mant_FormClosing += new frmRo_Empleado_Novedad_Mant.delegate_frmRo_Empleado_Novedad_Mant_FormClosing(frm_Event_frmRo_Empleado_Novedad_Mant_FormClosing);
                 frm.set_Accion(Cl_Enumeradores.eTipo_action.actualizar);
                 frm.set_Info(Info_CabNovedad);
                 frm.ShowDialog();
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
         Log_Error_bus.Log_Error(ex.ToString());
     }
 }
 void ucGe_Menu_Mantenimiento_x_usuario_event_btnconsultar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         if (Info_CabNovedad.IdNovedad == 0)
         {
             MessageBox.Show("Seleccione un registro", "Sistemas", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         }
         else
         {
             frm = new frmRo_Empleado_Novedad_Mant();
             frm.Event_frmRo_Empleado_Novedad_Mant_FormClosing += new frmRo_Empleado_Novedad_Mant.delegate_frmRo_Empleado_Novedad_Mant_FormClosing(frm_Event_frmRo_Empleado_Novedad_Mant_FormClosing);
             frm.set_Accion(Cl_Enumeradores.eTipo_action.consultar);
             frm.set_Info(Info_CabNovedad);
             frm.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
         Log_Error_bus.Log_Error(ex.ToString());
     }
 }
        private void llama_frm(Cl_Enumeradores.eTipo_action Accion)
        {
            try
            {
                frm = new frmRo_Empleado_Novedad_Mant();


                switch (Accion)
                {
                case Cl_Enumeradores.eTipo_action.grabar:
                    break;

                case Cl_Enumeradores.eTipo_action.actualizar:

                    if (Info_IngEgrEmpleado.TipoRegistro == "OTR")
                    {
                        MessageBox.Show("El Rubro no es editable", "ATENCION", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                        return;
                    }

                    if (Info_IngEgrEmpleado.TipoRegistro == "NOV" && Info_IngEgrEmpleado.IdNovedad != 0)
                    {
                        // Consultando Novedades
                        ro_Empleado_Novedad_Info InfoNovedad = new ro_Empleado_Novedad_Info();
                        InfoNovedad = bus_Novedad.Get_Info_Empleado_Novedad_Cab_x_Rubro(param.IdEmpresa, Info_IngEgrEmpleado.IdNovedad, Info_IngEgrEmpleado.IdRubro, Info.IdEmpleado);

                        frmMant.Text = frmMant.Text + " ***ACTUALIZAR REGISTRO***";
                        frm.set_Accion(Accion);
                        frm.set_Info(InfoNovedad);
                        frm.ShowDialog();

                        return;
                    }
                    break;

                case Cl_Enumeradores.eTipo_action.Anular:

                    if (Info_IngEgrEmpleado.TipoRegistro == "OTR")
                    {
                        MessageBox.Show("El rubro no se puede anular", "ATENCION", MessageBoxButtons.OK, MessageBoxIcon.Error);
                        return;
                    }

                    if (Info_IngEgrEmpleado.TipoRegistro == "NOV" && Info_IngEgrEmpleado.IdNovedad != 0)
                    {
                        // Consultando Novedades
                        ro_Empleado_Novedad_Info InfoNovedad = new ro_Empleado_Novedad_Info();
                        InfoNovedad = bus_Novedad.Get_Info_Empleado_Novedad_Cab_x_Rubro(param.IdEmpresa, Info_IngEgrEmpleado.IdNovedad, Info_IngEgrEmpleado.IdRubro, Info.IdEmpleado);

                        frmMant.Text = frmMant.Text + " ***ACTUALIZAR REGISTRO***";
                        frm.set_Accion(Accion);
                        frm.set_Info(InfoNovedad);
                        frm.ShowDialog();

                        return;
                    }



                    break;

                case Cl_Enumeradores.eTipo_action.consultar:
                    break;

                case Cl_Enumeradores.eTipo_action.duplicar:
                    break;

                default:
                    break;
                }
            }


            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
                Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString());
            }
        }