Master.CanYinWu.Web/Controllers/StaffController.cs
(开头部分) 4KB这里只显示每个文件的开头 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 StaffController : BaseController
{
StaffBLL staffBLL = new StaffBLL();
AdminBLL adminBLL = new AdminBLL();
// GET: Staff
public ActionResult StaffList()
{
return View();
}
public async Task<ActionResult> GetStaffList(int page, int limit, string key)
{
var storeId = OperatorProvider<OperatorModel>.Provider.GetCurrentModel().StoreId;
var data = await staffBLL.GetList(page, limit, key, storeId);
return Json(new { data = data.Item1.ToList(), count = data.Item2, code = 0 }, JsonRequestBehavior.AllowGet);
}
[HttpGet]
public async Task<ActionResult> EditStaff(int staffId = 0)
{
if (staffId == 0)
{
ViewData.Model = new Admin();
}
else
{
var model = await adminBLL.GetModel(staffId);
model.Password = DESEncrypt.Decrypt(model.Password);
if (model != null)
{
ViewData.Model = model;
}
else
{
return HttpNotFound();
}
}
return View();
}
后面还有 66 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
