using DIXWeb.Business.GlobalM;
|
using DIXWeb.Entity.Workflow;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Web;
|
using System.Web.Mvc;
|
|
namespace DIXWeb.Web
|
{
|
public class StatementController : BaseMvcController
|
{
|
InspectObjectTypeBusiness _inspectObjectTypeBusiness = new InspectObjectTypeBusiness();
|
InspectAreaBusiness _inspectAreaBusiness = new InspectAreaBusiness();
|
StatementBusiness _statementBusiness = new StatementBusiness();
|
|
// GET: GlobalM/Statement
|
public ActionResult Index()
|
{
|
return View();
|
}
|
|
|
public ActionResult InspectCheckedSelect()
|
{
|
return View();
|
}
|
|
public ActionResult TransitionDiagram()
|
{
|
return View();
|
}
|
|
public ActionResult ObjectInspectDetail()
|
{
|
return View();
|
}
|
|
public ActionResult GetInspectObjectType()
|
{
|
object obj = this._inspectObjectTypeBusiness.GetInspectObjectType();
|
return Json(obj);
|
}
|
|
public ActionResult GetInspectType()
|
{
|
object obj = this._inspectObjectTypeBusiness.GetInspectType();
|
return Json(obj);
|
}
|
public ActionResult GetInspectArea()
|
{
|
object obj = this._inspectAreaBusiness.GetInspectArea();
|
return Json(obj);
|
}
|
|
public ActionResult GetInspectObjectByAreaId(int InspectAreaId)
|
{
|
object obj = this._inspectObjectTypeBusiness.GetInspectObjectByAreaId(InspectAreaId);
|
return Json(obj);
|
}
|
|
|
/// <summary>
|
/// 报表查询
|
/// </summary>
|
/// <param name="IspectObjectTypeId">设备类别【空调类、供气类、供电类、消防类】</param>
|
/// <param name="InspectTypeId">点检周期类别【日点检、周点检、月点检、季点检、年点检】</param>
|
/// <param name="TimeBegin">开始时间yyyy-MM-dd</param>
|
/// <param name="TimeEnd">结束时间yyyy-MM-dd</param>
|
/// <param name="page"></param>
|
/// <param name="rows"></param>
|
/// <returns></returns>
|
public ActionResult GetICS(int OrgId,int InspectObjectTypeId, int InspectTypeId, DateTime TimeBegin, DateTime TimeEnd, int page = 1, int rows = 200)
|
{
|
Receive receive = this._statementBusiness.GetICS(OrgId,InspectObjectTypeId, InspectTypeId, TimeBegin, TimeEnd, page, rows);
|
return Json(receive);
|
}
|
|
|
public ActionResult GetTD(int InspectObjectId, DateTime TimeBegin, DateTime TimeEnd, int page = 1, int rows = 200)
|
{
|
Receive receive = this._statementBusiness.GetTD(InspectObjectId, TimeBegin, TimeEnd, page, rows);
|
return Json(receive);
|
}
|
|
public ActionResult GetNeedCheckDetail(int InspectTypeId, int InspectObjectTypeId, string Attention, int page = 1, int rows = 10)
|
{
|
Receive receive = this._statementBusiness.GetNeedCheckDetail(InspectTypeId, InspectObjectTypeId, Attention, page, rows);
|
return Json(receive);
|
}
|
|
public ActionResult GetItemNameByObjectCode(string InspectObjectCode)
|
{
|
Receive receive = this._statementBusiness.GetItemNameByObjectCode(InspectObjectCode);
|
return Json(receive);
|
}
|
|
public ActionResult GetObjectInspectDetail(string InspectObjectCode,DateTime TimeBegin, DateTime TimeEnd, int page = 1, int rows = 200)
|
{
|
Receive receive = this._statementBusiness.GetObjectInspectDetail(InspectObjectCode, TimeBegin, TimeEnd, page, rows);
|
return Json(receive);
|
}
|
|
}
|
}
|