using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNetCore.Mvc;using WMS.BZWeb;
using WMS.Core;
using WMS.Core.ServiceCore;
using WMS.Info;
namespace WMS.BZWeb
{
[Area("OrderManager")]
public class InventoryReportController : MvcControllerBase
{
private FxInventoryReportCore bll = new FxInventoryReportCore();
#region 视图功能
///
/// 订单管理页面
///
///
[HttpGet]
public ActionResult Index()
{
return View();
}
///
/// 新增页面
///
///
[HttpGet]
public ActionResult FormMatItem()
{
return View();
}
#endregion
#region 获取数据
///
/// 查询单据明细
///
/// 分页参数
/// 查询条件函数
///
[HttpGet]
//[AjaxOnly]
public ActionResult GetInventoryReportPageList(string pagination, string queryJson)
{
Pagination paginationobj = InitPagination(pagination);
return ToPageDataResult(paginationobj, bll.GetInventoryReportPageList(paginationobj, queryJson));
}
///
/// 分页查询
///
/// 分页参数
/// 查询条件函数
///
[HttpGet]
//[AjaxOnly]
public ActionResult GetInventoryReportItem(string OrderNo)
{
var data = bll.GeInventoryReportItem(OrderNo);
return Success("", data);
}
/// 查询单据明细
///
/// 分页参数
/// 查询条件函数
///
[HttpGet]
//[AjaxOnly]
public ActionResult GetCheckInventoryPageList(string queryJson)
{
//Pagination paginationobj = InitPagination(pagination);
return Success("", bll.GetCheckTask(queryJson)); ;
}
#endregion
///
/// 新增抽盘
///
///
///
//[AjaxOnly]
public ActionResult SaveForm(string postData,string formJson)
{
LoginUserInfo LoginUser = LoginBLLCore.GetLoginUser();
bll.Create(postData, formJson, LoginUser);
return Success("新增成功");
}
///
/// 新增全盘
///
///
///
//[AjaxOnly]
public ActionResult CheckAll()
{
LoginUserInfo LoginUser = LoginBLLCore.GetLoginUser();
bll.CreateAll(LoginUser);
return Success("新增成功");
}
}
}