duan
2024-08-21 22bd5bc1ce2b49284cc2f042c7f4f48619fcf85b
提交 | 用户 | age
091239 1 using DIXWeb.Business.GlobalM;
A 2 using DIXWeb.Entity.Workflow;
3 using System;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Web;
7 using System.Web.Mvc;
8
9 namespace DIXWeb.Web
10 {
11     public class StatementController : BaseMvcController
12     {
13         InspectObjectTypeBusiness _inspectObjectTypeBusiness = new InspectObjectTypeBusiness();
91f86c 14         InspectAreaBusiness _inspectAreaBusiness = new InspectAreaBusiness();
091239 15         StatementBusiness _statementBusiness = new StatementBusiness();
A 16
17         // GET: GlobalM/Statement
18         public ActionResult Index()
19         {
20             return View();
21         }
22
23
24         public ActionResult InspectCheckedSelect()
25         {
26             return View();
27         }
28
29         public ActionResult TransitionDiagram()
30         {
31             return View();
32         }
33
62e492 34         public ActionResult ObjectInspectDetail()
A 35         {
36             return View();
37         }
091239 38
A 39         public ActionResult GetInspectObjectType()
40         {
41             object obj = this._inspectObjectTypeBusiness.GetInspectObjectType();
42             return Json(obj);
43         }
44
45         public ActionResult GetInspectType()
46         {
47             object obj = this._inspectObjectTypeBusiness.GetInspectType();
48             return Json(obj);
49         }
91f86c 50         public ActionResult GetInspectArea()
c82ec1 51         {
91f86c 52             object obj = this._inspectAreaBusiness.GetInspectArea();
A 53             return Json(obj);
54         }
55
56         public ActionResult GetInspectObjectByAreaId(int InspectAreaId)
57         {
58             object obj = this._inspectObjectTypeBusiness.GetInspectObjectByAreaId(InspectAreaId);
c82ec1 59             return Json(obj);
A 60         }
61
091239 62
A 63         /// <summary>
64         /// 报表查询
65         /// </summary>
66         /// <param name="IspectObjectTypeId">设备类别【空调类、供气类、供电类、消防类】</param>
67         /// <param name="InspectTypeId">点检周期类别【日点检、周点检、月点检、季点检、年点检】</param>
68         /// <param name="TimeBegin">开始时间yyyy-MM-dd</param>
69         /// <param name="TimeEnd">结束时间yyyy-MM-dd</param>
70         /// <param name="page"></param>
71         /// <param name="rows"></param>
72         /// <returns></returns>
1bf8ef 73         public ActionResult GetICS(int OrgId,int InspectObjectTypeId, int InspectTypeId, DateTime TimeBegin, DateTime TimeEnd, int page = 1, int rows = 200)
091239 74         {
1bf8ef 75             Receive receive = this._statementBusiness.GetICS(OrgId,InspectObjectTypeId, InspectTypeId, TimeBegin, TimeEnd, page, rows);
091239 76             return Json(receive);
A 77         }
78
79
91f86c 80         public ActionResult GetTD(int InspectObjectId, DateTime TimeBegin, DateTime TimeEnd, int page = 1, int rows = 200)
091239 81         {
91f86c 82             Receive receive = this._statementBusiness.GetTD(InspectObjectId, TimeBegin, TimeEnd, page, rows);
c82ec1 83             return Json(receive);
A 84         }
85
9cbcff 86         public ActionResult GetNeedCheckDetail(int InspectTypeId, int InspectObjectTypeId, string Attention, int page = 1, int rows = 10)
c82ec1 87         {
91f86c 88             Receive receive = this._statementBusiness.GetNeedCheckDetail(InspectTypeId, InspectObjectTypeId, Attention, page, rows);
091239 89             return Json(receive);
A 90         }
62e492 91
A 92         public ActionResult GetItemNameByObjectCode(string InspectObjectCode)
93         {
94             Receive receive = this._statementBusiness.GetItemNameByObjectCode(InspectObjectCode);
95             return Json(receive);
96         }
97
98         public ActionResult GetObjectInspectDetail(string InspectObjectCode,DateTime TimeBegin, DateTime TimeEnd, int page = 1, int rows = 200)
99         {
100             Receive receive = this._statementBusiness.GetObjectInspectDetail(InspectObjectCode, TimeBegin, TimeEnd, page, rows);
101             return Json(receive);
102         }
103
091239 104     }
A 105 }