示例#1
0
        /// <summary>
        /// Obtener Plantilla Notificacion Response
        /// </summary>
        /// <param name="plantillaNotificacionLogic">plantilla Notificacion Logic</param>
        /// <returns>Lista con el resultado de la operación</returns>
        public static PlantillaNotificacionResponse ObtenerPlantillaNotificacionResponse(PlantillaNotificacionLogic plantillaNotificacionLogic)
        {
            int tamanioMaximo = 50;
            PlantillaNotificacionResponse plantillaNotificacionResponse = new PlantillaNotificacionResponse();

            plantillaNotificacionResponse.CodigoPlantillaNotificacion = plantillaNotificacionLogic.CodigoPlantillaNotificacion;
            plantillaNotificacionResponse.CodigoSistema          = plantillaNotificacionLogic.CodigoSistema;
            plantillaNotificacionResponse.CodigoTipoNotificacion = plantillaNotificacionLogic.CodigoTipoNotificacion;
            plantillaNotificacionResponse.Asunto          = plantillaNotificacionLogic.Asunto;
            plantillaNotificacionResponse.IndicadorActiva = plantillaNotificacionLogic.IndicadorActiva;
            plantillaNotificacionResponse.Contenido       = plantillaNotificacionLogic.Contenido;
            if (plantillaNotificacionLogic.Contenido.Length > tamanioMaximo)
            {
                plantillaNotificacionResponse.ContenidoReCortado = plantillaNotificacionLogic.Contenido.Substring(0, tamanioMaximo) + "...";
            }
            else
            {
                plantillaNotificacionResponse.ContenidoReCortado = plantillaNotificacionLogic.Contenido;
            }
            plantillaNotificacionResponse.CodigoTipoDestinatario = plantillaNotificacionLogic.CodigoTipoDestinatario;
            plantillaNotificacionResponse.Destinatario           = plantillaNotificacionLogic.Destinatario;
            plantillaNotificacionResponse.DestinatarioCopia      = plantillaNotificacionLogic.DestinatarioCopia;

            return(plantillaNotificacionResponse);
        }
 /// <summary>
 /// Constructor de Plantilla Notificacion Response
 /// </summary>
 /// <param name="plantillaNotificacionResponse">Plantilla notificación response</param>
 public PlantillaNotificacionFormulario(PlantillaNotificacionResponse plantillaNotificacionResponse)
 {
     this.plantillaNotificacionResponse = plantillaNotificacionResponse;
 }