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.
98 lines
2.8 KiB
C#
98 lines
2.8 KiB
C#
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;
|
|
using DSWeb.SoftMng.Filter;
|
|
|
|
namespace DSWeb.MvcShipping.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 路单查询
|
|
/// </summary>
|
|
[JsonRequestBehavior]
|
|
public class WMSDetailController : Controller
|
|
{
|
|
//
|
|
// GET: /RptMng/MsRptPcHeadQry
|
|
public ActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult IndexNew()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult IndexXPW()
|
|
{
|
|
return View();
|
|
}
|
|
[SqlKeyWordsFilter(Type = "Action")]//sql 防注入过滤器
|
|
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 };
|
|
}
|
|
|
|
[SqlKeyWordsFilter(Type = "Action")]//sql 防注入过滤器
|
|
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 };
|
|
}
|
|
|
|
[SqlKeyWordsFilter(Type = "Action")]//sql 防注入过滤器
|
|
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
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|