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; using DSWeb.SoftMng.Filter; namespace DSWeb.Areas.RptMng.Controllers { [JsonRequestBehavior] public class MsRptTruckMaterialController : Controller { // // GET: /RptMng/MsRptTruckMaterial public ActionResult Index() { return View(); } // // GET:/RptMng/MsRptTruckMaterial/QryData 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 paramps_TruckNo = new CustomDbParamter(); paramps_TruckNo.ParameterName = "@PS_TRUCKNO"; paramps_TruckNo.DbType = DbType.String; paramps_TruckNo.Direction = ParameterDirection.Input; paramps_TruckNo.Value = RptHelper.JsonGetValue(condition, "PS_TRUCKNO").ToString(); dbparams.Add(paramps_TruckNo); var paramps_Month = new CustomDbParamter(); paramps_Month.ParameterName = "@PS_MONTH"; paramps_Month.DbType = DbType.String; paramps_Month.Direction = ParameterDirection.Input; paramps_Month.Value = RptHelper.JsonGetValue(condition, "PS_MONTH").ToString(); dbparams.Add(paramps_Month); var dbRptResult = PubSysDAL.GetMsSqlPrcDataSet("sMsRptTruckMaterial", dbparams, "Result_Set"); var json = RptHelper.GetRptJsonResult(start, limit, dbRptResult, "Result_Set", false); return new ContentResult() { Content = json }; } #region 参照部分 #endregion } }