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.
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 ;
using DSWeb.SoftMng.Filter ;
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 < 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 dbRptResult = PubSysDAL . GetMsSqlPrcDataSet ( "sp_Test" , dbparams , "Result_Set" ) ;
var json = RptHelper . GetRptJsonResult ( start , limit , dbRptResult , "Result_Set" ) ;
return new ContentResult ( ) { Content = json } ;
}
#region 参照部分
# endregion
}
}