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.
59 lines
1.6 KiB
59 lines
1.6 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 ExpressageController : ControllerBase
|
|
{
|
|
ExpressageApp App = new ExpressageApp();
|
|
|
|
public ActionResult ExpressageForm()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult ExpressageList()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult InsertExpressage(string Code, string Expressage, string ExpressageCode)
|
|
{
|
|
string msg = App.InsertExpressage(Code, Expressage, ExpressageCode);
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
return Error(msg);
|
|
}
|
|
else
|
|
{
|
|
return Success("添加成功!");
|
|
}
|
|
}
|
|
//获取快递公司列表
|
|
public ActionResult GetExpressageList()
|
|
{
|
|
DataTable dt = App.GetExpressageList();
|
|
return Content(dt.ToJson());
|
|
}
|
|
|
|
|
|
[HttpGet]
|
|
public ActionResult GetExpressage(Pagination pagination, string queryJson)
|
|
{
|
|
DataTable ListData = App.GetExpressage(ref pagination, queryJson);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
}
|
|
}
|