Пример #1
0
    private void GetLatestItemSetting()
    {
        AspxCommonInfo aspxCommonObj = new AspxCommonInfo();

        aspxCommonObj.StoreID     = GetStoreID;
        aspxCommonObj.PortalID    = GetPortalID;
        aspxCommonObj.CultureName = GetCurrentCultureName;
        JavaScriptSerializer      json_serializer      = new JavaScriptSerializer();
        AspxLatestItemsController objLatestItem        = new AspxLatestItemsController();
        LatestItemSettingInfo     objLatestSettingInfo = objLatestItem.GetLatestItemSetting(aspxCommonObj);

        if (objLatestSettingInfo != null)
        {
            object obj = new
            {
                IsEnableLatestItem = objLatestSettingInfo.IsEnableLatestItem,
                LatestItemCount    = objLatestSettingInfo.LatestItemCount,
                IsEnableLatestRss  = objLatestSettingInfo.IsEnableLatestRss,
                LatestItemRssCount = objLatestSettingInfo.LatestItemRssCount,
                LatestItemInARow   = objLatestSettingInfo.LatestItemInARow,
                LatestItemRssPage  = objLatestSettingInfo.LatestItemRssPage,
                ModuleServicePath  = ModuleServicePath
            };
            Settings = json_serializer.Serialize(obj);
        }
    }
Пример #2
0
    public void GetLatestSetting(AspxCommonInfo aspxCommonObj)
    {
        AspxLatestItemsController objLatest     = new AspxLatestItemsController();
        LatestItemSettingInfo     latestSetting = objLatest.GetLatestItemSetting(aspxCommonObj);

        if (latestSetting != null)
        {
            LatestItemRssCount = latestSetting.LatestItemRssCount;
        }
    }
Пример #3
0
 public LatestItemSettingInfo GetLatestItemSetting(AspxCommonInfo aspxCommonObj)
 {
     try
     {
         AspxLatestItemsController objLatestItems   = new AspxLatestItemsController();
         LatestItemSettingInfo     objLatestSetting = new LatestItemSettingInfo();
         objLatestSetting = objLatestItems.GetLatestItemSetting(aspxCommonObj);
         return(objLatestSetting);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Пример #4
0
    public void GetLatestSetting()
    {
        AspxCommonInfo aspxCommonObj = new AspxCommonInfo();

        aspxCommonObj.StoreID     = StoreID;
        aspxCommonObj.PortalID    = PortalID;
        aspxCommonObj.CultureName = CultureName;
        AspxLatestItemsController objLatest     = new AspxLatestItemsController();
        LatestItemSettingInfo     latestSetting = objLatest.GetLatestItemSetting(aspxCommonObj);

        if (latestSetting != null)
        {
            LatestItemRssCount = latestSetting.LatestItemRssCount;
        }
    }
Пример #5
0
    private void GetLatestItemSetting()
    {
        AspxCommonInfo aspxCommonObj = new AspxCommonInfo();

        aspxCommonObj.StoreID     = GetStoreID;
        aspxCommonObj.PortalID    = GetPortalID;
        aspxCommonObj.CultureName = GetCurrentCultureName;
        LatestItemSettingInfo     objLatestSetting = new LatestItemSettingInfo();
        AspxLatestItemsController objLatestItem    = new AspxLatestItemsController();

        objLatestSetting = objLatestItem.GetLatestItemSetting(aspxCommonObj);
        if (objLatestSetting != null)
        {
            EnableLatestItems     = objLatestSetting.IsEnableLatestItem;
            NoOfLatestItems       = objLatestSetting.LatestItemCount;
            EnableLatestItemRss   = objLatestSetting.IsEnableLatestRss;
            NoOfLatestItemsInARow = objLatestSetting.LatestItemInARow;
            RssFeedUrl            = objLatestSetting.LatestItemRssPage;
        }
    }