using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Web; using System.Web.Mvc; using DSWeb.MvcShipping.Helper; using DSWeb.MvcShipping.Comm.Cookie; using DSWeb.Areas.CommMng.DAL; using DSWeb.Areas.RptMng.Comm; using HcUtility.Comm; using HcUtility.Core; using Microsoft.Practices.EnterpriseLibrary.Data; using DSWeb.EntityDA; using DSWeb.Areas.CommMng.Models; using DSWeb.MvcShipping.Models.MonthDataSet; using DSWeb.Areas.MvcShipping.DAL.MsRptCwFundsDAL; using DSWeb.SoftMng.Filter; namespace DSWeb.MvcShipping.Controllers { /// /// 资金往来 /// [JsonRequestBehavior] public class MsRptCwFundsController : Controller { // // GET: /MvcShipping/MsRptOpProfit public ActionResult Index() { return View(); } // // GET:/RptMng/MsRptPcHeadQry/QryData [SqlKeyWordsFilter(Type = "Action")]//sql 防注入过滤器 public ContentResult ListData(string condition, string sort, string startdate, string account, string printstr) { var dataList = MsRptOpProfitZouDAL.ListData(condition, sort, startdate, account, Convert.ToString(Session["USERID"]), Convert.ToString(Session["SHOWNAME"]), Convert.ToString(Session["COMPANYID"])); var json = JsonConvert.Serialize( new { Success = true, Message = "查询成功", data = dataList.ToList() }); return new ContentResult() { Content = json }; } [SqlKeyWordsFilter(Type = "Action")]//sql 防注入过滤器 public ContentResult SumListData(string condition, string nocondition) { var dataList = MsRptOpProfitZouDAL.GetSumData(condition, nocondition); var json = JsonConvert.Serialize( new { Success = true, Message = "查询成功", data = dataList.ToList() }); return new ContentResult() { Content = json }; } #region 参照部分 #endregion } }