using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Web; using System.Web.Mvc; using DSWeb.Areas.CommMng.DAL; using DSWeb.Areas.RptMng.Comm; using DSWeb.TruckMng.Helper; using HcUtility.Comm; namespace DSWeb.Areas.RptMng.Controllers { [JsonRequestBehavior] public class DemoController : Controller { // // GET: /RptMng/Demo public ActionResult Index() { return View(); } // // GET:/RptMng/Demo/GetDataList public ContentResult QryData(int start, int limit, string condition) { var dbparams = new List(); var paramps_OrgCode = new CustomDbParamter(); paramps_OrgCode.ParameterName = "@PS_ORGCODE"; paramps_OrgCode.DbType = DbType.String; paramps_OrgCode.Direction = ParameterDirection.Input; paramps_OrgCode.Value = RptHelper.JsonGetValue(condition, "PS_ORGCODE").ToString(); dbparams.Add(paramps_OrgCode); var dbRptResult = PubSysDAL.GetMsSqlPrcDataSet("sp_Test", dbparams, "Result_Set"); var json = RptHelper.GetRptJsonResult(start, limit, dbRptResult, "Result_Set"); return new ContentResult() { Content = json }; } #region 参照部分 #endregion } }