SourceCode/jiouosdp/Areas/Systems/Controllers/PayWaysController.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LitJson;
using RFrameGenerate.BLL;
using RFrameGenerate.Common;
using RFrameGenerate.Model;
namespace jiouosdp.Areas.Systems.Controllers
{
public class PayWaysController : Controller
{
//
// GET: /Systems/PayWays/
[PF(PCode.SystemStoreManage.PayWays)]
public ActionResult Index()
{
return View();
}
public JsonResult LoadPayWayListdata(GridModel gridModel)
{
var list = PayWaysManage.GetMerchantByPayWayList();
gridModel.datarows = (from s in list
select new
{
id = s.PayWayGuid,//定义当前行数据的一个传输识别名称,一般以主键为名称,可以省略()
cell = new object[]
{
s.Name,
s.Description,
s.IsEnable==true?1:s.IsEnable==null?-1:0,
HttpUtility.HtmlEncode( s.PayWayProp),
s.MerchantPayWayProp==null?string.Empty: HttpUtility.HtmlEncode( s.MerchantPayWayProp.Replace("\\","/")),
}
}).ToArray();
return Json(gridModel.PackagePageModel());
}
public JsonResult Save(Guid PayWayGuid, string jsondata, bool IsEnable)
{
var result = PayWaysManage.Save(PayWayGuid, jsondata, IsEnable);
if (result.State == true)
{
return Json(new { Result = "OK" });
}
else
{
return Json(new { Result = "NO", Msg = result.Msg });
}
}
[HttpPost]
后面还有 49 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。