You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
2.5 KiB
103 lines
2.5 KiB
using NFine.Application.OMAY;
|
|
using NFine.Code;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace NFine.Web.Areas.OMAY.Controllers
|
|
{
|
|
public class OMAYMoOutboundController : ControllerBase
|
|
{
|
|
OMAYMoOutboundApp App = new OMAYMoOutboundApp();
|
|
// GET: OMAY/OMAYMoOutbound
|
|
public ActionResult OMAYMoOutbound()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult SeachMoInfo()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet]
|
|
public ActionResult GetMoInfo(string Code, Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetMoInfo( Code, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetMosByCode(Pagination pagination, string queryJson)
|
|
{
|
|
DataTable ListData = App.GetMosByCode(queryJson, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetMoPicksByCode(Pagination pagination, string queryJson)
|
|
{
|
|
DataTable ListData = App.GetMoPicksByCode(queryJson, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
|
|
public ActionResult GetLotNotInfo(string keyValue)
|
|
|
|
{
|
|
var ListData = App.GetLotNotInfo(keyValue);
|
|
|
|
return Content(ListData.ToJson());
|
|
}
|
|
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult OutboundShipments(string ICSASN)
|
|
{
|
|
|
|
string msg = App.OutboundShipments(ICSASN);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("添加成功!");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|