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.
156 lines
4.1 KiB
156 lines
4.1 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 ICSSSDController : ControllerBase
|
|
{
|
|
ICSSSDApp App = new ICSSSDApp();
|
|
public ActionResult ICSSSDQuery()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
|
|
public ActionResult ICSSSDEdit()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
public ActionResult SeachMO()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult DeleteSSDApplyNeg(string keyValue)
|
|
{
|
|
string msg = App.DeleteSSDApplyNeg(keyValue);
|
|
if (string.IsNullOrEmpty(msg))
|
|
{
|
|
return Success("删除成功!");
|
|
}
|
|
else
|
|
{
|
|
return Error(msg);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 详情
|
|
/// </summary>
|
|
/// <param name="SSDCode"></param>
|
|
/// <param name="pagination"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetSSDApplyNegDetail(string SSDCode, Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetSSDApplyNegDetail(SSDCode, 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();
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 汇总
|
|
/// </summary>
|
|
/// <param name="pagination"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public ActionResult GetSSDApplyNeg(Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetSSDApplyNeg(ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
/// <summary>
|
|
/// 修改弹出框的数据来源
|
|
/// </summary>
|
|
/// <param name="ApplyCode"></param>
|
|
/// <param name="pagination"></param>
|
|
/// <returns></returns>
|
|
public ActionResult GetICSSSDReturnTemporary(string SSDCode, Pagination pagination)
|
|
{
|
|
DataTable table = App.GetICSSSDReturnTemporary(SSDCode);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = table
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
|
|
}
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetCusCode()
|
|
{
|
|
DataTable dt = App.GetCusCode();
|
|
return Content(dt.ToJson());
|
|
}
|
|
/// <summary>
|
|
/// 新增和修改
|
|
/// </summary>
|
|
/// <param name="ICSASN"></param>
|
|
/// <returns></returns>
|
|
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult SaveICSSSDApplyNeg(string keyValue, string deleteIDs)
|
|
{
|
|
|
|
string msg = App.SaveICSSSDApplyNeg(keyValue, deleteIDs);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("保存成功!");
|
|
}
|
|
}
|
|
}
|
|
}
|