Пример #1
0
        private Entity GetTemplate(HttpRequest request)
        {
            string       templateName = request.Params["templateName"];
            string       templateType = request.Params["templateType"];
            IPageInfoDAO pageDAO      = (IPageInfoDAO)FactoryUtils.GetDAO(ConfigurationManager.AppSettings["IPageInfoDAO"]);

            EPE.Common.Entities.Page.Page pageLetter = pageDAO.GetPageConfig("", "Templates");

            Entity entityLetter = EntityUtils.CreateEntity(pageLetter);

            entityLetter.SetProperty("TemplateName", templateName);
            entityLetter.SetProperty("TemplateTypeText", templateType);

            IList <Entity> templates = DAOFactory.Instance.GetCatalogDAO().FindEntities(entityLetter, FilterInfo.SearchType.AND);

            return(templates[0]);
        }
Пример #2
0
 private static Page GetPage(IPageInfoDAO pageDAO, string pageName)
 {
     return(pageDAO.GetPageConfig("", pageName));
 }
Пример #3
0
 /// <summary>
 /// Returns an instance of the PageInfoServiceDAO using the specified connString
 /// </summary>
 /// <param name="connString">the connection string</param>
 public PageInfoServiceDAO(string connString)
 {
     client = GetServiceClient();
     sqlDAO = GetPageSqlDAO(connString);
     SetExpirationPolicy();
 }