You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.5 KiB
C#
55 lines
1.5 KiB
C#
using System;
|
|
using System.Linq;
|
|
using System.Web.Mvc;
|
|
using DSWeb.MvcShipping.Models.CodeAll;
|
|
using DSWeb.MvcShipping.DAL.MsCodeAll;
|
|
using DSWeb.MvcShipping.Helper;
|
|
using DSWeb.MvcShipping.Comm.Cookie;
|
|
using System.Collections.Generic;
|
|
using HcUtility.Comm;
|
|
using HcUtility.Core;
|
|
using DSWeb.MvcShipping.Helper.Repository;
|
|
|
|
namespace DSWeb.MvcShipping.Controllers
|
|
{
|
|
[JsonRequestBehavior]
|
|
public class MsCodeAllController : Controller
|
|
{
|
|
public ActionResult Lanes()
|
|
{//
|
|
return View();
|
|
}
|
|
|
|
|
|
#region 查询
|
|
public ContentResult GetLanesList ( string condition, string sort )
|
|
{
|
|
var dataList = MsCodeAllDAL.GetLanesList(condition, sort);
|
|
|
|
var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = dataList.Count, data = dataList.ToList() });
|
|
return new ContentResult() { Content = json };
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
#region 保存
|
|
|
|
|
|
#endregion
|
|
|
|
#region 删除
|
|
public ContentResult DeleteLanes(string data)
|
|
{
|
|
var headData = JsonConvert.Deserialize<Code_lanesmb>(data);
|
|
var modb = new ModelObjectDB();
|
|
DBResult result = modb.Delete(headData);
|
|
var jsonRespose = new JsonResponse { Success = result.Success, Message = result.Message };
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|
|
|