//public static string GetGetLoadingChannelsUrl() //{ // return PageUtils.GetAjaxUrl(nameof(AjaxOtherService), new NameValueCollection // { // {"type", TypeGetLoadingChannels } // }); //} //public static string GetGetLoadingChannelsParameters(int siteId, ELoadingType loadingType, NameValueCollection additional) //{ // return TranslateUtils.NameValueCollectionToString(new NameValueCollection // { // {"siteId", siteId.ToString() }, // {"loadingType", ELoadingTypeUtils.GetValue(loadingType)}, // {"additional", TranslateUtils.EncryptStringBySecretKey(TranslateUtils.NameValueCollectionToString(additional))} // }); //} public string GetLoadingGovPublicCategories(int siteId, string classCode, int parentId, string loadingType) { var list = new List <string>(); var eLoadingType = ECategoryLoadingTypeUtils.GetEnumType(loadingType); var categoryIdList = Main.CategoryRepository.GetCategoryIdListByParentId(siteId, classCode, parentId); foreach (var categoryId in categoryIdList) { var categoryInfo = Main.CategoryRepository.GetCategoryInfo(categoryId); list.Add(PageCategory.GetCategoryRowHtml(siteId, categoryInfo, true, eLoadingType)); } //arraylist.Reverse(); var builder = new StringBuilder(); foreach (var html in list) { builder.Append(html); } return(builder.ToString()); }