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.
110 lines
3.1 KiB
110 lines
3.1 KiB
using NFine.Code;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
using NFine.Application.HGWMS;
|
|
|
|
namespace NFine.Web.Areas.HGWMS.Controllers
|
|
{
|
|
public class ICSTransferController : ControllerBase
|
|
{
|
|
ICSTransferApp App = new ICSTransferApp();
|
|
public ActionResult ICSTransfer()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult ICSTransferAdd()
|
|
{
|
|
return View();
|
|
}
|
|
/// <summary>
|
|
/// 获取仓库库位信息
|
|
/// </summary>
|
|
/// <param name="pagination"></param>
|
|
/// <param name="queryJson"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetLocationCode(Pagination pagination, string queryJson)
|
|
{
|
|
DataTable ListData = App.GetLocationCode(queryJson, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
/// <summary>
|
|
/// 详情
|
|
/// </summary>
|
|
/// <param name="RCVCode"></param>
|
|
/// <param name="pagination"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetMOIssueApplyNegDetail(string RCVCode, Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetMOIssueApplyNegDetail(RCVCode, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
public void ClearTemp()
|
|
{
|
|
App.ClearTemp();
|
|
}
|
|
/// <summary>
|
|
/// 生成调拨单
|
|
/// </summary>
|
|
/// <param name="keyValue"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult AddICSTransfer(string keyValue)
|
|
{
|
|
|
|
string msg = App.AddICSTransfer(keyValue);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("操作成功!");
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 多个产成品退库单 弃核
|
|
/// </summary>
|
|
/// <param name="keyValue"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult ICSMOIssueSendBackAuditRollback(string keyValue)
|
|
{
|
|
|
|
string msg = App.ICSMOIssueSendBackAuditRollback(keyValue);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("弃审成功!");
|
|
}
|
|
}
|
|
}
|
|
}
|