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.
149 lines
4.0 KiB
149 lines
4.0 KiB
using NFine.Application.WMS;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
using NFine.Code;
|
|
using System.Data.SqlClient;
|
|
using NFine.Data.Extensions;
|
|
using System.Data.OleDb;
|
|
using System.Configuration;
|
|
using ICS.Application.Entity;
|
|
|
|
namespace NFine.Web.Areas.WMS.Controllers
|
|
{
|
|
public class ICSMTDOCController : ControllerBase
|
|
{
|
|
ICSMTDOCApp App = new ICSMTDOCApp();
|
|
// GET: WMS/ICSMTDOC
|
|
public ActionResult Metamorphosis()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult ICSMTDOCAdd()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult GetICSInventory()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult GetBatchCode()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetGridJson(Pagination pagination, string queryJson)
|
|
{
|
|
DataTable ListData = App.GetGridJson(queryJson, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetSubGridJson(string MTDOCCode)
|
|
{
|
|
DataTable ListData = App.GetSubGridJson(MTDOCCode);
|
|
var JsonData = new
|
|
{
|
|
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
//在库条码
|
|
public ActionResult GetRepertory(string LotNo ,Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetRepertory(LotNo, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
|
|
public ActionResult GetInvcode(string Invcode, Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetInvcode(Invcode, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
|
|
|
|
public ActionResult GetCode(string BatchCode, Pagination pagination)
|
|
{
|
|
DataTable ListData = App.GetCode(BatchCode, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// 创建形态转换
|
|
/// </summary>
|
|
/// <param name="keyValue"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult CreateICSMTDOC(string ICSMTDOC, string InvCode, string ExtensionID, string Memo)
|
|
{
|
|
string msg = App.CreateICSMTDOC(ICSMTDOC, InvCode, ExtensionID, Memo);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("添加成功!");
|
|
}
|
|
}
|
|
|
|
//审核
|
|
public ActionResult ICSMTDOCAudit(string MTDOCCode)
|
|
{
|
|
string msg = App.ICSMTDOCAudit(MTDOCCode);
|
|
if (string.IsNullOrEmpty(msg))
|
|
{
|
|
return Success("操作成功!");
|
|
}
|
|
else
|
|
{
|
|
return Error("" + msg + "");
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|