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.
203 lines
5.6 KiB
203 lines
5.6 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 ICSDeliveryNoticeController : ControllerBase
|
|
{
|
|
ICSDeliveryNoticeApp App = new ICSDeliveryNoticeApp();
|
|
// GET: WMS/ProductionIssue
|
|
public ActionResult ICSDeliveryNoticeApplyNeg()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult ICSDeliveryNoticeApplyNegAdd()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
public ActionResult SeachICSDeliveryNotice()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult SeachInventory()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult ICSDeliveryNoticeApplyNegUpdate()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult SeachPurOrder()
|
|
{
|
|
return View();
|
|
}
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult DeleteICSDeliveryNotice(string keyValue)
|
|
{
|
|
string msg = App.DeleteICSDeliveryNotice(keyValue);
|
|
if (string.IsNullOrEmpty(msg))
|
|
{
|
|
return Success("删除成功!");
|
|
}
|
|
else
|
|
{
|
|
return Error(msg);
|
|
}
|
|
}
|
|
|
|
[HttpGet]
|
|
public ActionResult GetDeliveryNoticeApplyNeg(Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetDeliveryNoticeApplyNeg(ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
/// <summary>
|
|
/// 无源头到货
|
|
/// </summary>
|
|
/// <param name="pagination"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public ActionResult GetEDeliveryNoticeApplyNeg(Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetEDeliveryNoticeApplyNeg(ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
//供应商
|
|
[HttpGet]
|
|
public ActionResult GetSelectICSVenCode()
|
|
{
|
|
var data = App.GetSelectICSVenCode();
|
|
return Content(data.ToJson());
|
|
}
|
|
[HttpGet]
|
|
public ActionResult GetPurOrder(string POCode, Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetPurOrder(POCode, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
public ActionResult GetICSDeliveryNoticeReturnTemporary(string ID, Pagination pagination)
|
|
{
|
|
DataTable table = App.GetICSDeliveryNoticeReturnTemporary(ID);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = table
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult DeleteICSDeliveryNoticeApplyNeg(string keyValue)
|
|
{
|
|
string msg = App.DeleteDeliveryNoticeApplyNeg(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 SaveICSDeliveryNoticeApplyNeg(string ICSASN)
|
|
{
|
|
|
|
string msg = App.SaveICSDeliveryNoticeAppApplyNeg(ICSASN);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("添加成功!");
|
|
}
|
|
}
|
|
|
|
public ActionResult GetDNCode(string WorkPoint)
|
|
{
|
|
try
|
|
{
|
|
string Code = App.GetDNCode(WorkPoint);
|
|
var JsonData = new
|
|
{
|
|
Code = Code,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Error(ex.Message);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 修改
|
|
/// </summary>
|
|
/// <param name="ICSASN"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult UpdateICSDeliveryNoticeApplyNeg(string ICSASN)
|
|
{
|
|
|
|
string msg = App.UpdateICSDeliveryNoticeApplyNeg(ICSASN);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("修改成功!");
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|