SourceCode/jiouosdp/Areas/ProductCrowd/Controllers/SlideController.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using LitJson;
using RFrameGenerate.BLL;
using RFrameGenerate.Common;
using RFrameGenerate.Model;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace jiouosdp.Areas.ProductCrowd.Controllers
{
[MerchantFilter()]
public class SlideController : Controller
{
[PF(PCode.MarketingManage.CrowdfundingManage.ProductCrowdSlide)]
public ActionResult Index()
{
return View();
}
public JsonResult LoadSlideList(GridModel gridModel)
{
var list = ShopSlideManage.GetPageList(gridModel);
Dictionary<Guid, T_BAS_Merchants> cache = new Dictionary<Guid, T_BAS_Merchants>();
gridModel.datarows = (from s in list
select new
{
id = s.ShopSlideGuid,
cell = new object[]
{
s.MerchantGuid,
GetMerchants(s.MerchantGuid,cache).StoreTitle,
s.SlideImg,
s.SlideUrl
}
}).ToArray();
return Json(gridModel.PackagePageModel());
}
public JsonResult SaveOrUpdate(T_BAS_ShopSlide entity)
{
var result = ShopSlideManage.SaveOrUpdate(entity);
if (!result.State) return Json(new { Result = "NO", Msg = result.Msg });
return Json(new { Result = "OK" });
}
public JsonResult Delete(Guid shopSlideGuid)
{
var result = ShopSlideManage.Delete(shopSlideGuid);
if (!result.State) return Json(new { Result = "NO", Msg = result.Msg });
return Json(new { Result = "OK" });
}
后面还有 69 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。