using System; using System.Collections.Generic; using System.Data; using System.Data.OleDb; using System.IO; using System.Linq; using System.Text; using System.Web.Mvc; using DSWeb.MvcShipping.Comm.Cookie; using DSWeb.MvcShipping.Helper; using DSWeb.MvcShipping.Helper.Repository; using DSWeb.MvcShipping.Models.MsSeaiFee; using DSWeb.Areas.MvcShipping.DAL; using HcUtility.Comm; using HcUtility.Core; namespace DSWeb.MvcShipping.Controllers { /// /// 海运进口费用信息 /// [JsonRequestBehavior] public class MsSeaiFeeController : Controller { public ActionResult Edit() { return View(); } public ActionResult AmendEdit() { return View(); } public ActionResult HistryIndex() { return View(); } public ContentResult GetBLListData(int start, int limit, string sort, string condition) { var dataList = MsSeaiFeeDAL.GetDataList(condition, Convert.ToString(Session["USERID"]), CookieConfig.GetCookie_UserCode(Request), CookieConfig.GetCookie_OrgCode(Request),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 }; } public ContentResult GetBLData(string condition) { MsOpSeai head = null; var list = MsSeaiFeeDAL.GetDataList(condition, Convert.ToString(Session["USERID"]), CookieConfig.GetCookie_UserCode(Request), CookieConfig.GetCookie_OrgCode(Request)); if (list.Count > 0) head = list[0]; var json = JsonConvert.Serialize( new { Success = true, Message = "查询成功", data = head }); return new ContentResult() { Content = json }; } public ContentResult GetCtnUnitList(string condition) { MsFeeUnit head = null; var list = MsSeaiFeeDAL.GetCtnUnitList(condition); if (list.Count > 0) head = list[0]; var json = JsonConvert.Serialize( new { Success = true, Message = "查询成功", data = head }); return new ContentResult() { Content = json }; } } }