Example #1
0
        public static string MessageEvento(HelpEventos.Process p_Evento)
        {
            string MESSAGE = string.Empty;

            switch (p_Evento)
            {
            case HelpEventos.Process.NEW:
                MESSAGE = HelpMessages.Evento_NEW;
                break;

            case HelpEventos.Process.EDIT:
                MESSAGE = HelpMessages.Evento_EDIT;
                break;

            case HelpEventos.Process.DELETE:
                MESSAGE = HelpMessages.Evento_DELETE;
                break;

            case HelpEventos.Process.DEPENDENCIA:
                MESSAGE = HelpMessages.Evento_DEPEND;
                break;

            case HelpEventos.Process.GC_DOCUM_ANULAR:
                MESSAGE = HelpMessages.gc_DOCUM_YA_ANULADO;
                break;

            case HelpEventos.Process.FIND:
                MESSAGE = WebConstants.MensajesServicios.FirstOrDefault(x => x.Key == 114).Value;
                break;
            }
            return(MESSAGE);
        }
Example #2
0
        public static string MessagePregunta(HelpEventos.Process p_Evento)
        {
            string MESSAGE = string.Empty;

            switch (p_Evento)
            {
            case HelpEventos.Process.NEW:
                MESSAGE = "¿ Confirma AGREGAR el NUEVO Registro ?";
                break;

            case HelpEventos.Process.EDIT:
                MESSAGE = "¿ Confirma ACTUALIZAR el Registro ?";
                break;

            case HelpEventos.Process.DELETE:
                MESSAGE = "¿ Confirma ELIMINAR el Registro Seleccionado?";
                break;
            }
            return(MESSAGE);
        }