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.

109 lines
3.6 KiB
C#

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.MsOpBill;
using DSWeb.MvcShipping.Models.MsOpHistry;
using DSWeb.Areas.MvcShipping.DAL;
using HcUtility.Comm;
using HcUtility.Core;
namespace DSWeb.MvcShipping.Controllers
{
/// <summary>
/// 业务综合台账信息
/// </summary>
[JsonRequestBehavior]
public class MsOpBillController : Controller
{
public ActionResult MsFeeHistoryView()
{
return View();
}
public ActionResult MsOpHistoryView()
{
return View();
}
public ActionResult MsOpFeeView()
{
return View();
}
public ActionResult MsOpQQCTBILLView()
{
return View();
}
public ContentResult GetBLListData(int start, int limit, string sort, string condition)
{
var dataList = MsOpBillDAL.GetDataList(condition, Convert.ToString(Session["USERID"]), CookieConfig.GetCookie_UserCode(Request), CookieConfig.GetCookie_OrgCode(Request));
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)
{
MsOpBill head = MsOpBillDAL.GetData(condition);
var json = JsonConvert.Serialize(
new { Success = true, Message = "查询成功", data = head });
return new ContentResult() { Content = json };
}
public ContentResult GetHistryListData(int start, int limit, string sort, string condition)
{
var dataList = MsOpBillDAL.GetHistryDataList(condition, Convert.ToString(Session["USERID"]), CookieConfig.GetCookie_UserCode(Request), CookieConfig.GetCookie_OrgCode(Request));
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 GetHistryData(string condition)
{
MsOpHistry head = MsOpBillDAL.GetHistryData(condition);
return new ContentResult() { Content = head.BSTEXT};
}
public ContentResult GetHistryDetailData(string condition)
{
MsOpHistry head = MsOpBillDAL.GetHistryDetailData(condition);
return new ContentResult() { Content = head.BSTEXT };
}
public ContentResult GetFeeDoList(string condition, string dotype)
{
var dataList = MsOpBillDAL.GetFeeDoList(condition, dotype);
var json = JsonConvert.Serialize(
new { Success = true, Message = "查询成功", totalCount = dataList.Count, data = dataList.ToList() });
return new ContentResult() { Content = json };
}
public ContentResult GetInvHXFeeDoList(string condition)
{
var dataList = MsOpBillDAL.GetInvHXFeeDoList(condition);
var json = JsonConvert.Serialize(
new { Success = true, Message = "查询成功", totalCount = dataList.Count, data = dataList.ToList() });
return new ContentResult() { Content = json };
}
}
}