SourceCode/jiouosdp/Areas/Logistics/Controllers/TemplateController.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using jiouosdp.Areas.Logistics.Models;
using RFrameGenerate.BLL;
using RFrameGenerate.BLL.Logistics;
using RFrameGenerate.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace jiouosdp.Areas.Logistics.Controllers
{
public class TemplateController : Controller
{
// GET: /Logistics/Template/
#region 页面Action
[PF(PCode.LogisticsManage.LogisticsTemplate)]
public ActionResult Index()
{
return View();
}
public ActionResult Save(Guid? templatesGuid)
{
if (templatesGuid == null || templatesGuid.Value == Guid.Empty) return View(new LogisticsModel());
var template = TemplatesManage.GetEntity(templatesGuid.Value);
if (template == null) return View(new LogisticsModel());
LogisticsModel model = new LogisticsModel();
model.Templates = template;
return View(model);
}
#endregion
#region 逻辑处理
//加载模板列表
public JsonResult LoadTemplatesList(GridModel gridModel)
{
var list = TemplatesManage.GetPageList(gridModel);
Dictionary<string, T_BAS_Areas> cache = new Dictionary<string, T_BAS_Areas>();
gridModel.datarows = (list.Select(c => new
{
id = c.TemplatesGuid,
cell = new object[]
{
c.TemplateName,
c.DeliveryTime,
c.IsPinkage,
c.ValuationWay,
c.IsActive,
c.Sort
}
后面还有 55 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。