1
duan
2024-08-21 f71a02229c1ba00fbecaead19256593ffb052753
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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);
        }
 
    }
}