using WMS.Core; using WMS.Util; using System.Data; using Microsoft.AspNetCore.Mvc;using WMS.BZWeb; using WMS.Info; using WMS.Core.ServiceCore.FeiXu; namespace WMS.BZWeb { /// /// 描 述:物料管理 /// [Area("BaseManager")] public class BaseItemController : MvcControllerBase { private FxBaseItemCore bll = new FxBaseItemCore(); /// /// 主页面 /// /// [HttpGet] public ActionResult Index() { return View(); } /// /// 表单页 /// /// [HttpGet] public ActionResult Form() { return View(); } /// /// 获取列表数据 /// /// [HttpGet] ////[AjaxOnly] public ActionResult GetList(string keyword) { var data = bll.GetList(keyword); return Success("", data); } /// /// 获取分页数据 /// /// 分页参数 /// 查询关键字 /// [HttpGet] ////[AjaxOnly] public ActionResult GetPageList(string pagination, string keyword) { Pagination paginationobj = InitPagination(pagination); return ToPageDataResult(paginationobj, bll.GetPageList(keyword, paginationobj)); } /// /// 启用 /// 主键 /// /// [HttpPost] ////[AjaxOnly] public ActionResult Enable(int no) { bll.IsEnable(no,false); return Success("启用成功。"); } /// /// 禁用 /// 主键 /// /// [HttpPost] ////[AjaxOnly] public ActionResult Disable(int no) { bll.IsEnable(no,true); return Success("禁用成功。"); } } }