纽威
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.
 
 
 
 
 

123 lines
3.1 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 BlitemController : ControllerBase
{
BlitemApp App = new BlitemApp();
// GET: WMS/Blitem
public ActionResult BlitemList()
{
return View();
}
public ActionResult ICSCheckAdd()
{
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 CheckCode, string Sequence, Pagination pagination)
{
DataTable ListData = App.GetSubGridJson(CheckCode, Sequence, ref pagination);
var JsonData = new
{
total = pagination.total,
page = pagination.page,
records = pagination.records,
rows = ListData,
};
return Content(JsonData.ToJson());
}
public ActionResult DeleteICSCheckDetail(string ID)
{
//keyValue = keyValue.Substring(1, keyValue.Length - 2);
//WorkPoint = WorkPoint.Substring(1, WorkPoint.Length - 2);
string msg = App.DeleteICSCheckDetail(ID);
if (string.IsNullOrWhiteSpace(msg))
{
return Success("删除成功!");
}
else
{
return Error(msg);
}
}
//获取仓库
public ActionResult GetWHCode()
{
DataTable dt = App.GetWHCode();
return Content(dt.ToJson());
}
[HttpPost]
[HandlerAjaxOnly]
public ActionResult AddICSCheck(string Parameter)
{
string msg = App.AddICSCheck(Parameter);
if (!string.IsNullOrEmpty(msg))
{
return Error(msg);
}
else
{
return Success("添加成功!");
}
}
[HttpPost]
[HandlerAjaxOnly]
[ValidateAntiForgeryToken]
public ActionResult DeleteICSCheck(string keyValue)
{
string msg = App.DeleteICSCheck(keyValue);
if (string.IsNullOrEmpty(msg))
{
return Success("删除成功!");
}
else
{
return Error(msg);
}
}
}
}