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.
 
 
 
 
 

86 lines
2.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 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());
}
[HttpPost]
[HandlerAjaxOnly]
public ActionResult Freeze(string LotNOList, string Memo)
{
string msg = App.Freeze(LotNOList.TrimEnd(','), Memo);
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());
}
}
}