Master.CanYinWu.Web/Controllers/SupplierController.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Master.CanYinWu.BLL;
using Master.CanYinWu.Entity;
using Master.CanYinWu.Utility;
using Master.CanYinWu.Utility.Infrastructure;
using Master.CanYinWu.Web.App_Start.Filter;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
namespace Master.CanYinWu.Web.Controllers
{
/// <summary>
/// 供应商
/// </summary>
[LoginCheck]
public class SupplierController : BaseController
{
SupplierBLL bllSupplier = new SupplierBLL();
ProductBLL productBLL = new ProductBLL();
// GET: Supplier
public ActionResult SupplierList()
{
return View();
}
public async Task<ActionResult> GetSupplierList(int page, int limit, string key)
{
var admin = OperatorProvider<OperatorModel>.Provider.GetCurrentModel();
var data = await bllSupplier.GetList(page, limit, key, admin.StoreId);
return ResultJson(new { data = data.Item1.ToList(), count = data.Item2, code = 0 });
}
[HttpGet]
public async Task<ActionResult> EditSupplier(int supplierId = 0)
{
if (supplierId == 0)
{
ViewData.Model = new Supplier();
}
else
{
var model = await bllSupplier.GetModel(supplierId);
if (model != null)
{
ViewData.Model = model;
}
else
{
return HttpNotFound();
}
}
return View();
}
后面还有 56 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
