HTNResp/Controllers/GrassRootsController.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using HTNResp.Codes;
using System.Text.RegularExpressions;
namespace HTNResp.Controllers
{
[Login,Authority]
public class GrassRootsController : BaseController
{
//
// GET: /GrassRoots/
BLL.GrassRootsOralMedicine bll = new BLL.GrassRootsOralMedicine();
public override ActionResult Index()
{
return View();
}
public override ActionResult Modify()
{
return View();
}
public override ActionResult Detail()
{
int start = 0;
int length = 0;
string sqlString = "";
string common = Request.Params["common"];
start = Convert.ToInt32(Request.Params["start"]);
length = Convert.ToInt32(Request.Params["length"]);
if (!String.IsNullOrEmpty(common))
sqlString += " CommonName LIKE ('%" + common + "%')";
List<Model.GrassRootsOralMedicine> list = bll.DataTableToList(bll.GetListByPage(sqlString, "ID ASC", start + 1, start + length).Tables[0]);
int filterTotal = bll.GetRecordCount(sqlString);
int total = bll.GetRecordCount("");
return this.Json(new
{
result = 1,
data = new
{
draw = Request.Params["draw"],
recordsTotal = total,
recordsFiltered = filterTotal,
data = list
}
});
}
public override ActionResult Info(int id)
{
后面还有 40 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。