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.
180 lines
4.8 KiB
180 lines
4.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 ICSOutsourcingOrderController : ControllerBase
|
|
{
|
|
ICSOutsourcingOrderApp App = new ICSOutsourcingOrderApp();
|
|
// GET: WMS/ProductionIssue
|
|
public ActionResult ICSOutsourcingOrderApplyNeg()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
|
|
public ActionResult ICSOutsourcingOrderApplyNegAdd()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
public ActionResult SeachICSOutsourcingOrder()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult SeachInventory()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
public ActionResult ICSOutsourcingOrderApplyNegUpdate()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult DeleteMopick(string json)
|
|
{
|
|
|
|
return Content(App.DeleteMopick(json));
|
|
|
|
}
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult DeleteOutsourcingOrderApplyNeg(string keyValue)
|
|
{
|
|
string msg = App.DeleteOutsourcingOrderApplyNeg(keyValue);
|
|
if (string.IsNullOrEmpty(msg))
|
|
{
|
|
return Success("删除成功!");
|
|
}
|
|
else
|
|
{
|
|
return Error(msg);
|
|
}
|
|
}
|
|
|
|
public void ClearTemp()
|
|
{
|
|
App.ClearTemp();
|
|
}
|
|
|
|
[HttpGet]
|
|
public ActionResult GetOutsourcingOrderApplyNeg(Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetOutsourcingOrderApplyNeg(ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetOutsourcingOrderApplyNegDetail(string ApplyNegCode, Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetOutsourcingOrderApplyNegDetail(ApplyNegCode, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult SaveICSOutsourcingOrderApplyNeg(string ICSASN)
|
|
{
|
|
|
|
string msg = App.SaveICSOutsourcingOrderApplyNeg(ICSASN);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("添加成功!");
|
|
}
|
|
}
|
|
//部门
|
|
[HttpGet]
|
|
public ActionResult GetSelectICSDepCode()
|
|
{
|
|
var data = App.GetSelectICSDepCode();
|
|
return Content(data.ToJson());
|
|
}
|
|
//供应商
|
|
[HttpGet]
|
|
public ActionResult GetSelectICSVenCode()
|
|
{
|
|
var data = App.GetSelectICSVenCode();
|
|
return Content(data.ToJson());
|
|
}
|
|
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult UpdateICSOutsourcingOrderApplyNeg(string ICSASN)
|
|
{
|
|
|
|
string msg = App.UpdateICSOutsourcingOrderApplyNeg(ICSASN);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("修改成功!");
|
|
}
|
|
}
|
|
public ActionResult GetICSOutsourcingOrderReturnTemporary(string rfqno, Pagination pagination)
|
|
{
|
|
DataTable table = App.GetICSOutsourcingOrderReturnTemporary(rfqno);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = table
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
|
|
}
|
|
public ActionResult GetOOCode(string WorkPoint)
|
|
{
|
|
try
|
|
{
|
|
string Code = App.GetOOCode(WorkPoint);
|
|
var JsonData = new
|
|
{
|
|
Code = Code,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Error(ex.Message);
|
|
}
|
|
}
|
|
public void UpdateMOApplyNegTemp(string json)
|
|
{
|
|
App.UpdateOutsourcingOrderApplyNegTemp(json);
|
|
}
|
|
}
|
|
}
|