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.
116 lines
2.8 KiB
116 lines
2.8 KiB
using NFine.Application.WMS;
|
|
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.WMS.Controllers
|
|
{
|
|
public class ICSVendorController : ControllerBase
|
|
{
|
|
// GET: WMS/ICSVendor
|
|
ICSVendorApp App = new ICSVendorApp();
|
|
// GET: WMS/ProductionIssue
|
|
public ActionResult ICSVendorApplyNeg()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult ICSVendorNegAdd()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
public ActionResult SeachICSVendor()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult SeachInventory()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult ICSVendorNegUpdate()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult GetICSVendorReturnTemporary(string VenCode, Pagination pagination)
|
|
{
|
|
DataTable table = App.GetICSVendorReturnTemporary(VenCode);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = table
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult DeleteICSVendorApplyNeg(string keyValue)
|
|
{
|
|
string msg = App.DeleteVendorApplyNeg(keyValue);
|
|
if (string.IsNullOrEmpty(msg))
|
|
{
|
|
return Success("删除成功!");
|
|
}
|
|
else
|
|
{
|
|
return Error(msg);
|
|
}
|
|
}
|
|
public void ClearTemp()
|
|
{
|
|
App.ClearTemp();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 新增
|
|
/// </summary>
|
|
/// <param name="ICSASN"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult SaveICSVendorApplyNeg(string ICSASN)
|
|
{
|
|
|
|
string msg = App.SaveICSVendorApplyNeg(ICSASN);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("添加成功!");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 修改
|
|
/// </summary>
|
|
/// <param name="ICSASN"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult UpdateICSVendorApplyNeg(string ICSASN)
|
|
{
|
|
|
|
string msg = App.UpdateICSVendorApplyNeg(ICSASN);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("修改成功!");
|
|
}
|
|
}
|
|
}
|
|
}
|