CRM_EasyUI_2016/Areas/TestManager/Controllers/TestController.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microsoft.Practices.Unity;
using GroupThink.CRM.IBLL;
using GroupThink.CRM.Common;
using GroupThink.CRM.Model.Sys;
using CRM_EasyUI_2016.Core;
using System.Transactions;
using System.Threading;
using System.IO;
using System.Text;
namespace CRM_EasyUI_2016.Areas.TestManager.Controllers
{
public class TestController : BaseController
{
#region 接口
ValidationErrors errors = new ValidationErrors();
#endregion
#region 查找
//[SupportFilter]
public ActionResult Index()
{
return View();
}
[HttpPost]
public JsonResult Test(string PageNum
, string randcode)
{
int pn = 0;
if (!string.IsNullOrEmpty(PageNum))
{
if (PageNum.ToString().Trim() != string.Empty)
{
if (int.TryParse(PageNum.ToString().Trim(), out pn))
{
pn = int.Parse(PageNum.ToString().Trim());
}
}
}
List<NewsInfo> ListQuery = NewsInfo.GetListByPn(pn);
//string ResultJson = "[{\"Num\":-1,\"Ntitle\":\"暂无数据\"}]";
//if (ListQuery.Count > 1)
//{
// ResultJson = Obj2Json<List<NewsInfo>>(ListQuery);
//}
var json = new
{
total = 10,
rows = ListQuery
};
Thread.Sleep(5000);//因为数据量比较少,这里线程暂停5秒,让页面出现数据加载等待的效果
后面还有 7 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
