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.
117 lines
3.3 KiB
117 lines
3.3 KiB
using NFine.Application.MFWMS;
|
|
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.MFWMS.Controllers
|
|
{
|
|
/// <summary>
|
|
/// HUB仓销售出库、退货
|
|
/// </summary>
|
|
public class ICSSSDController : ControllerBase
|
|
{
|
|
ICSSSDApp App = new ICSSSDApp();
|
|
public ActionResult ICSSSDQuery()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult ICSWarehouseSelection()
|
|
{
|
|
return View();
|
|
}
|
|
/// <summary>
|
|
/// 审核
|
|
/// </summary>
|
|
/// <param name="keyValue"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult AuditSDN(string keyValue, string Type,string WhCode, string LotCode)
|
|
{
|
|
try
|
|
{
|
|
if (Type == "1")
|
|
{
|
|
//1出库
|
|
string msg = App.AuditDelSDN(keyValue);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("审核成功!");
|
|
}
|
|
}
|
|
else
|
|
{
|
|
//2退货
|
|
string msg = App.AuditSalesReturnSDN(keyValue, WhCode, LotCode);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("审核成功!");
|
|
}
|
|
}
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Error(ex.Message);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 产成品退库 汇总
|
|
/// </summary>
|
|
/// <param name="pagination"></param>
|
|
/// <param name="queryJson"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetSDNBackApplyNeg(Pagination pagination, string Type, string queryJson)
|
|
{
|
|
DataTable ListData = App.GetSDNBackApplyNeg(queryJson,Type, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
/// <summary>
|
|
/// 详情
|
|
/// </summary>
|
|
/// <param name="IssueCode"></param>
|
|
/// <param name="pagination"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetSDNApplyNegDetail(string SDNCode, Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetSDNApplyNegDetail(SDNCode, 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();
|
|
}
|
|
}
|
|
}
|