MaintenanceController
目录
1、 MaintenanceController
1.1、 维修项目设置
1.2、 /// 查询修理大类
1.3、 /// 修改
using QXQPS.Models;
using QXQPS.Vo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace QXQPS.Areas.BasicdataManagment.Controllers
{
public class MaintenanceController : Controller
{
// GET: BasicdataManagment/Maintenance
QXQPEntities myModels = new Models.QXQPEntities();
public ActionResult Projects()//维修项目设置
{
return View();
}
/// <summary>
-
- /// 查询修理大类
/// </summary>
/// <returns></returns>
public ActionResult SelectRepairClass()
{
var listRepairClass = from tbRepairClass in myModels.SYS_RepairClass
select tbRepairClass;
return Json(listRepairClass, JsonRequestBehavior.AllowGet);
}
/// <summary>
-
- /// 修改
/// </summary>
/// <param name="RepairClass"></param>
/// <returns></returns>
public ActionResult SelectRepairClassByID(int RepairClassID)
{
var academe = myModels.SYS_RepairClass.Where(m => m.RepairClassID == RepairClassID).ToList();
return Json(academe, JsonRequestBehavior.AllowGet);
}