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.
185 lines
4.8 KiB
185 lines
4.8 KiB
using NFine.Application.WMS;
|
|
using System.Data;
|
|
using System.Web.Mvc;
|
|
using NFine.Code;
|
|
|
|
namespace NFine.Web.Areas.WMS.Controllers
|
|
{
|
|
public class WWProductionRAFMRController : ControllerBase
|
|
{
|
|
WWProductionRAFMRApp App = new WWProductionRAFMRApp();
|
|
public ActionResult WWICSMOApplyNegPRAFMR()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult SeachWWPRMaterial()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult WWICSMOApplyNegPRAFMRAdd()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult WWICSMOApplyNegPRAFMRUpdate()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
[HttpGet]
|
|
public ActionResult GetICSOApplyNeg(Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetICSOApplyNeg(ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetICSOApplyNegDetail(string OApplyNegCode, Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetICSOApplyNegDetail(OApplyNegCode, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult DeleteICSMOApplyNeg(string keyValue)
|
|
{
|
|
string msg = App.DeleteICSMOApplyNeg(keyValue);
|
|
if (string.IsNullOrEmpty(msg))
|
|
{
|
|
return Success("删除成功!");
|
|
}
|
|
else
|
|
{
|
|
return Error(msg);
|
|
}
|
|
}
|
|
|
|
|
|
public ActionResult GetICSReturnTemporary(string rfqno, Pagination pagination)
|
|
{
|
|
DataTable table = App.GetICSReturnTemporary(rfqno);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = table
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
|
|
}
|
|
|
|
|
|
[HttpGet]
|
|
public ActionResult GetINV(string invcode, Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetINV(invcode, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
public void AddMOApplyNegTemp(string json)
|
|
{
|
|
App.AddMOApplyNegTemp(json);
|
|
}
|
|
|
|
public void ClearTemp()
|
|
{
|
|
App.ClearTemp();
|
|
}
|
|
|
|
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult SaveICSMOApplyNeg(string ICSASN)
|
|
{
|
|
|
|
string msg = App.SaveICSMOApplyNeg(ICSASN);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("添加成功!");
|
|
}
|
|
}
|
|
|
|
|
|
public ActionResult GetICSMOApplyNegDetailTemp(string OApplyNegCode, Pagination pagination)
|
|
{
|
|
DataTable table = App.GetICSMOApplyNegDetailTemp(OApplyNegCode);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = table
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
|
|
}
|
|
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult UpdateICSMOApplyNeg(string ICSASN)
|
|
{
|
|
|
|
string msg = App.UpdateICSMOApplyNeg(ICSASN);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("添加成功!");
|
|
}
|
|
}
|
|
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult AuditICSMOApplyNeg(string ICSASN)
|
|
{
|
|
|
|
string msg = App.AuditICSMOApplyNeg(ICSASN);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("审核成功!");
|
|
}
|
|
|
|
}
|
|
|
|
|
|
public void UpdateMOApplyNegTemp(string json)
|
|
{
|
|
App.UpdateMOApplyNegTemp(json);
|
|
}
|
|
}
|
|
}
|