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.
96 lines
2.2 KiB
96 lines
2.2 KiB
using NFine.Application.WMSKBS;
|
|
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.KBSWMS.Controllers
|
|
{
|
|
public class ICSLotFreezeDHController : ControllerBase
|
|
{
|
|
|
|
ICSLotFreezeDHApp App = new ICSLotFreezeDHApp();
|
|
// GET: WMS/Deciliter
|
|
public ActionResult ICSLotFreezeDH()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult From()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetNewLotNo(string LotNO)
|
|
{
|
|
string ListData = App.GetNewLotNo(LotNO);
|
|
var data = new
|
|
{
|
|
rows = ListData,
|
|
};
|
|
return Content(data.ToJson());
|
|
}
|
|
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetBathCode(string BatchCode)
|
|
{
|
|
string ListData = App.GetBathCode(BatchCode);
|
|
|
|
return Success(ListData);
|
|
}
|
|
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult Freeze(string LotNOList, string Memo,string BatchCode)
|
|
{
|
|
|
|
string msg = App.Freeze(LotNOList.TrimEnd(','), Memo, BatchCode);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("冻结成功!");
|
|
}
|
|
}
|
|
|
|
[HttpPost]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult UnFreeze(string LotNOList, string Memo)
|
|
{
|
|
|
|
string msg = App.UnFreeze(LotNOList.TrimEnd(','), Memo);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("解除冻结成功!");
|
|
}
|
|
}
|
|
|
|
//根据ID获取条码
|
|
public ActionResult GetLotNoByID(string ID)
|
|
{
|
|
DataTable dt = App.GetLotNoByID(ID);
|
|
return Content(dt.ToJson());
|
|
}
|
|
|
|
}
|
|
}
|