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.
DS7/DSWeb/Areas/RptMng/Controllers/MsRptTruckMaterialControlle...

63 lines
2.1 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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 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<CustomDbParamter>();
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
}
}