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.
DS7/DSWeb/Areas/TruckMng/Controllers/MsWl_LK_RPTController.cs

88 lines
3.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using DSWeb.Areas.CommMng.DAL;
using DSWeb.Areas.TruckMng.DAL.MsWl_LKPC;
using DSWeb.Areas.TruckMng.Models.MsWlDjPc;
using DSWeb.Areas.TruckMng.Models.Comm;
using DSWeb.Areas.TruckMng.Models.MsWlPc;
using DSWeb.TruckMng.Comm.Cookie;
using DSWeb.TruckMng.Helper;
using DSWeb.TruckMng.Helper.Repository;
using HcUtility.Comm;
using HcUtility.Core;
using InvokeWebService;
using System.Text;
using System.Net;
using System.IO;
namespace DSWeb.Areas.TruckMng.Controllers
{
/// <summary>
/// 崂矿派车界面
/// </summary>
[JsonRequestBehavior]
public class MsWl_LK_RPTController : Controller
{
//
// GET: /TruckMng/MsWlDjPc/
public ActionResult Index()
{
return View();
}
public ContentResult GetPCDetailList ( int start, int limit, string sort, string condition )
{
List<MsWl_LK_CargoRPTmb> list = MsWl_LKPCDAL.GetCargoRPTList(condition);
var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = list.Count, data = list.ToList() });
return new ContentResult() { Content = json };
}
public ContentResult GetCargoDoList ( int start, int limit, string sort, string condition )
{
List<MsWl_LK_CargoDoRPTmb> list = MsWl_LKPCDAL.GetCargoDoRPTList(condition);
var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = list.Count, data = list.ToList() });
return new ContentResult() { Content = json };
}
public ContentResult GetCargoDoRPT_EXPDATE ( int start, int limit, string sort, string condition )
{
List<MsWl_LK_CargoDoRPT2mb> list = MsWl_LKPCDAL.GetCargoDoRPT_EXPDATE(condition);
var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = list.Count, data = list.ToList() });
return new ContentResult() { Content = json };
}
public ContentResult GetCargoDoRPT_POINT ( int start, int limit, string sort, string condition )
{
List<MsWl_LK_CargoDoRPT2mb> list = MsWl_LKPCDAL.GetCargoDoRPT_POINT(condition);
var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = list.Count, data = list.ToList() });
return new ContentResult() { Content = json };
}
public ContentResult GetCargoDoRPT_TRUCKNO ( int start, int limit, string sort, string condition )
{
List<MsWl_LK_CargoDoRPT2mb> list = MsWl_LKPCDAL.GetCargoDoRPT_TRUCKNO(condition);
var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = list.Count, data = list.ToList() });
return new ContentResult() { Content = json };
}
public ContentResult GetCargoDoRPT_DRVNAME ( int start, int limit, string sort, string condition )
{
List<MsWl_LK_CargoDoRPT2mb> list = MsWl_LKPCDAL.GetCargoDoRPT_DRVNAME(condition);
var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = list.Count, data = list.ToList() });
return new ContentResult() { Content = json };
}
}
}