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.
56 lines
1.6 KiB
C#
56 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data.Common;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
using DSWeb.Areas.CommMng.DAL;
|
|
using DSWeb.Areas.CommMng.Models;
|
|
using DSWeb.TruckMng.Helper;
|
|
using DSWeb.TruckMng.Comm.Cookie;
|
|
|
|
using System.Data;
|
|
using System.IO;
|
|
using System.Text;
|
|
using HcUtility.Comm;
|
|
using DSWeb.Areas.RptMng.Comm;
|
|
|
|
namespace DSWeb.Areas.CommMng.Controllers
|
|
{
|
|
[JsonRequestBehavior]
|
|
public class TruckBasicDataRefController : Controller
|
|
{
|
|
|
|
#region 良通捷运 目的地列表
|
|
public JsonResult GetDetiNation_LTJY(string condition)
|
|
{
|
|
var evList = TruckBasicDataRefDAL.GetDetiNation_LTJY(condition, Convert.ToString(Session["USERID"]));
|
|
if (evList.Count == 0)
|
|
{
|
|
return Json(new { success = false });
|
|
}
|
|
else
|
|
{
|
|
return Json(new { success = true, data = evList.ToList() });
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region 将带逗号的内容拆成单个,并将出现频率最高的放置在最前。参数为(表名 列名 查询条件)
|
|
public JsonResult GetCommaWord(string tablename ,string columnname, string condition)
|
|
{
|
|
var evList = TruckBasicDataRefDAL.GetCommaWord(tablename, columnname,condition, Convert.ToString(Session["USERID"]));
|
|
if (evList.Count == 0)
|
|
{
|
|
return Json(new { success = false });
|
|
}
|
|
else
|
|
{
|
|
return Json(new { success = true, data = evList.ToList() });
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
}
|