public ActionResult ExtraRatioAdd() { var channellist = MobileUIService.GetMobileChannelList(); ViewData["Channellist"] = channellist.GetSelectList(); return(View()); }
public ActionResult PropertyList() { var propertylist = MobileUIService.GetMobilePropertyList(); ViewData["Propertylist"] = propertylist; ViewData["TotalCount"] = propertylist.Count; return(View()); }
public ActionResult ExtraRatioEdit(int extraRatioId) { var channellist = MobileUIService.GetMobileChannelList(); ViewData["Channellist"] = channellist.GetSelectList(); var extraRatio = dbContextService.Single <NewsExtraRatio>(extraRatioId); ViewData["IsUpdate"] = true; return(View("ExtraRatioAdd", extraRatio)); }
public ActionResult PropertyAdd() { var brandlist = MobileUIService.GetMobileBrandList(); var hardwarelist = MobileUIService.GetMobileHardwareList(); var resolutionlist = MobileUIService.GetMobileResolutionList(); ViewData["Brandlist"] = brandlist.GetSelectList(); ViewData["Hardwarelist"] = hardwarelist.GetSelectList(); ViewData["Resolutionlist"] = resolutionlist.GetSelectList(); return(View()); }
public ActionResult ExtraRatioList() { var channellist = MobileUIService.GetMobileChannelList(); ViewData["Channellist"] = channellist.ToList(); var extraratiolist = dbContextService.All <NewsExtraRatio>().ToList(); ViewData["extraratiolist"] = extraratiolist; ViewData["TotalCount"] = extraratiolist.Count; return(View()); }
public ActionResult WallPaperConfig(int wallpaperId) { var resourceFilePath = GetResourcePathThemeBase(); var wallpaper = dbContextService.Single <WallPaper>(wallpaperId); ViewData["WallPaper"] = wallpaper; var config = new WallPaperConfigView(); config.WallPaper = wallpaper; var similarRatio = WallPaperUIService.GetImageSimilarRatio(resourceFilePath, wallpaper); var originalWidth = WallPaperUIService.GetOriginalImagePixel(resourceFilePath, wallpaper).GetWidth(); var categorylist = WallPaperUIService.GetWallPaperCategoryList(); var subcategorylist = WallPaperUIService.GetWallPaperSubCategoryList(); var topiclist = WallPaperUIService.GetWallPaperTopicList(); var propertylist = MobileUIService.GetSimilarMobilePropertyList(originalWidth, similarRatio); ViewData["Categorylist"] = categorylist.GetSelectList(); ViewData["SubCategorylist"] = subcategorylist.GetSelectList(); ViewData["Topiclist"] = topiclist.GetSelectList(); ViewData["Propertylist"] = propertylist.GetSelectList(); var relatecategoryIds = WallPaperUIService.GetRelateCategoryIds(wallpaperId).ToList(); var relatesubcategoryIds = WallPaperUIService.GetRelateSubCategoryIds(wallpaperId).ToList(); var relatetopicIds = WallPaperUIService.GetRelateTopicIds(wallpaperId).ToList(); var relatepropertyIds = WallPaperUIService.GetRelateMobilePropertyIds(wallpaperId).ToList(); var thumbnailNamelist = WallPaperUIService.GetImageNameListByMobileProperty(Const.WALLPAPER_THUMBNAIL, wallpaper, relatepropertyIds).ToList(); var originalNamelist = WallPaperUIService.GetImageNameListByMobileProperty(Const.WALLPAPER_ORIGINAL, wallpaper, relatepropertyIds).ToList(); ViewData["ThumbnailNames"] = thumbnailNamelist; ViewData["OriginalNames"] = originalNamelist; ViewData["RelateCategoryIds"] = relatecategoryIds; ViewData["RelateSubCategoryIds"] = relatesubcategoryIds; ViewData["RelateTopicIds"] = relatetopicIds; ViewData["RelatePropertyIds"] = relatepropertyIds; config.RelateCategoryIds = relatecategoryIds; config.RelateSubCategoryIds = relatesubcategoryIds; config.RelateTopicIds = relatetopicIds; config.RelateMobilePropertyIds = relatepropertyIds; config.ThumbnailNames = thumbnailNamelist; config.OriginalNames = originalNamelist; return(View(config)); }
public ActionResult PropertyEdit(int propertyId) { var brandlist = MobileUIService.GetMobileBrandList(); var hardwarelist = MobileUIService.GetMobileHardwareList(); var resolutionlist = MobileUIService.GetMobileResolutionList(); ViewData["Brandlist"] = brandlist.GetSelectList(); ViewData["Hardwarelist"] = hardwarelist.GetSelectList(); ViewData["Resolutionlist"] = resolutionlist.GetSelectList(); var property = dbContextService.Single <MobileProperty>(propertyId); ViewData["IsUpdate"] = true; return(View("PropertyAdd", property)); }