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.
160 lines
3.8 KiB
160 lines
3.8 KiB
using NFine.Application.WMS;
|
|
using System.Data;
|
|
using System.Web.Mvc;
|
|
using NFine.Code;
|
|
|
|
namespace NFine.Web.Areas.WMS.Controllers
|
|
{
|
|
public class ICSOperationController : ControllerBase
|
|
{
|
|
|
|
ICSOperationApp App = new ICSOperationApp();
|
|
// GET: WMS/ICSOperation
|
|
public ActionResult ICSOperation()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult ICSOperationAdd()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult ICSOperationUpdate()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult SeachICSApplyDetail()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
[HttpGet]
|
|
public ActionResult SearchICSOperation(Pagination pagination, string queryJson)
|
|
{
|
|
DataTable ListData = App.SearchICSOperation(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 SearchICSOperationDetail(string Code, Pagination pagination)
|
|
{
|
|
DataTable ListData = App.SearchICSOperationDetail(Code, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
|
|
|
|
[HttpGet]
|
|
public ActionResult GetIcsApplyDetail(string invcode, string Code, string Invstd ,Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetIcsApplyDetail(invcode, Code, Invstd ,ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
|
|
public ActionResult GetICSOperationDetail(string OperationCode, Pagination pagination)
|
|
{
|
|
DataTable table = App.GetICSOperationDetail(OperationCode, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = table
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult SaveICSOperation(string ICSASN)
|
|
{
|
|
|
|
string msg = App.SaveICSOperation(ICSASN);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("添加成功!");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult UpdateICSOperation(string ICSASN)
|
|
{
|
|
|
|
string msg = App.UpdateICSOperation(ICSASN);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("修改成功!");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult AuditICSOperation(string keyValue)
|
|
{
|
|
|
|
string msg = App.AuditICSOperation(keyValue);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("操作成功!");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|