Controllers/I2/I0205cController.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using OPMS.Models;
using OPMS.Common;
namespace OPMS.Controllers
{
public class I0205cController : BaseController
{
private DBHelp db = new DBHelp();
//
// GET: /I0205c/
public ActionResult Index(string PBugType = "", string queryStr = null)
{
GetBugTypeDrp(0);
IQueryable<I0205c> list = db.I0205c;
if (PBugType == "0")
list = list.Where(p => p.PBugType == null);
else if (PBugType != "0" && PBugType != "")
list = list.Where(p => p.PBugType == PBugType || p.BugType ==PBugType);
if (!string.IsNullOrEmpty(queryStr))
{
//关键字查询
list = list.Where(p => p.Mc.Contains(queryStr) || p.BugType.Contains(queryStr));
}
ViewBag.queryStr = queryStr;
ViewBag.sum = list.ToList().Count;//查询数据个数
return View(list.OrderBy(t => t.BugType));
}
//
// GET: /I0205c/Details/5
public ActionResult Details(string id = null)
{
I0205c i0205c = db.I0205c.Find(id);
if (i0205c == null)
{
return HttpNotFound();
}
return View(i0205c);
}
//
// GET: /I0205c/Create
public ActionResult Create(string id,string sum)
{
I0205c i0205c = new I0205c();
if (id == "0" || id == "")
{
i0205c.BugType = "P" + GetBugTypeDrp(1);
}
后面还有 147 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
