using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Web; using System.Web.Mvc; using DSWeb.Areas.CommMng.DAL; using DSWeb.Areas.TruckMng.DAL; using DSWeb.MvcShipping.DAL.WMS; using DSWeb.MvcShipping.Models.WMS; using DSWeb.TruckMng.Helper; using HcUtility.Comm; using HcUtility.Core; using DSWeb.Areas.CommMng.Models; using Microsoft.Practices.EnterpriseLibrary.Data; using DSWeb.TruckMng.Comm.Cookie; using DSWeb.EntityDA; using DSWeb.TruckMng.Helper.Repository; using DSWeb.MvcShipping.DAL.MsSysBillNoSet; using DSWeb.MvcShipping.DAL.MsBaseInfoDAL; namespace DSWeb.MvcShipping.Controllers { /// /// 路单查询 /// [JsonRequestBehavior] public class WMSDetailController : Controller { // // GET: /RptMng/MsRptPcHeadQry public ActionResult Index() { return View(); } public ActionResult IndexNew() { return View(); } public ActionResult IndexXPW() { return View(); } public ContentResult GetDataList ( int start, int limit, string sort, string condition ) { var _count = 0; var dataList = WMSDAL.GetDetailList( start, limit,condition, sort,out _count); var list = dataList; var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = _count, data = list.ToList() }); return new ContentResult() { Content = json }; } public ContentResult GetDataListNew(int start, int limit, string sort, string condition, string detail) { var dataList = WMSDAL.GetDetailListNew( start, limit,condition, detail, sort); //var list = dataList.Skip(start).Take(limit); var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = dataList.Count, data = dataList.ToList() }); return new ContentResult() { Content = json }; } public ContentResult GetDataListXPW(int start, int limit, string sort, string condition) { var dataList = WMSDAL.GetDetailListXPW(condition, sort); var list = dataList.Skip(start).Take(limit); var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = dataList.Count, data = list.ToList() }); return new ContentResult() { Content = json }; } #region 参照部分 #endregion } }