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.
107 lines
3.1 KiB
107 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.MFWMS;
|
|
|
|
namespace NFine.Web.Areas.MFWMS.Controllers
|
|
{
|
|
public class ICSMOIssueSendBackController : ControllerBase
|
|
{
|
|
ICSMOIssueSendBackApp App = new ICSMOIssueSendBackApp();
|
|
public ActionResult ICSMOIssueSendBackQuery()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 产成品退库 汇总
|
|
/// </summary>
|
|
/// <param name="pagination"></param>
|
|
/// <param name="queryJson"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetMOIssueSendBackApplyNeg(Pagination pagination, string queryJson)
|
|
{
|
|
DataTable ListData = App.GetMOIssueSendBackApplyNeg(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 ICSMOIssueSendBackAndReduceStocks(string keyValue)
|
|
{
|
|
|
|
string msg = App.ICSMOIssueSendBackAndReduceStocks(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("弃审成功!");
|
|
}
|
|
}
|
|
}
|
|
}
|