zhupei лет назад: 4
Родитель
Сommit
c3d837ef05

+ 21 - 1
RMYY_CallCenter_Api.DB/DbHelperSQL.cs

@@ -1162,7 +1162,7 @@ namespace RMYY_CallCenter_Api.DB
1162 1162
             }
1163 1163
         }
1164 1164
 
1165
-        public static DataSet RunProcedure(string storedProcName, Dictionary<String, String> paras, string tableName)
1165
+        public static DataSet RunProcedure1(string storedProcName, Dictionary<String, String> paras, string tableName)
1166 1166
         {
1167 1167
             List<SqlParameter> ps = new List<SqlParameter>();
1168 1168
             foreach (KeyValuePair<string, string> kvp in paras)
@@ -1182,6 +1182,26 @@ namespace RMYY_CallCenter_Api.DB
1182 1182
         }
1183 1183
 
1184 1184
 
1185
+        public static DataSet RunProcedure(string storedProcName, Dictionary<String, Object> paras, string tableName)
1186
+        {
1187
+            List<SqlParameter> ps = new List<SqlParameter>();
1188
+            foreach (KeyValuePair<string, Object> kvp in paras)
1189
+            {
1190
+                ps.Add(new SqlParameter(kvp.Key, kvp.Value));
1191
+            }
1192
+            using (SqlConnection connection = new SqlConnection(connectionString))
1193
+            {
1194
+                DataSet dataSet = new DataSet();
1195
+                connection.Open();
1196
+                SqlDataAdapter sqlDA = new SqlDataAdapter();
1197
+                sqlDA.SelectCommand = BuildQueryCommand(connection, storedProcName, ps.ToArray());
1198
+                sqlDA.Fill(dataSet, tableName);
1199
+                connection.Close();
1200
+                return dataSet;
1201
+            }
1202
+        }
1203
+
1204
+
1185 1205
         /// <summary>
1186 1206
         /// 构建 SqlCommand 对象(用来返回一个结果集,而不是一个整数值)
1187 1207
         /// </summary>

Разница между файлами не показана из-за своего большого размера
+ 35 - 9
RMYY_CallCenter_Api.Dal/T_Acc_WorkOrder.cs


+ 27 - 0
RMYY_CallCenter_Api.Model/T_Acc_WorkOrder.cs

@@ -51,6 +51,9 @@ namespace RMYY_CallCenter_Api.Model
51 51
         private string _f_deleteby;
52 52
         private DateTime? _f_deletetime;
53 53
         private DateTime? _f_finishtime;
54
+        private string _f_drivername;
55
+        private string _f_driverphon;
56
+        private string _f_carmessage;
54 57
         /// <summary>
55 58
         /// 
56 59
         /// </summary>
@@ -339,6 +342,30 @@ namespace RMYY_CallCenter_Api.Model
339 342
             set { _f_finishtime = value; }
340 343
             get { return _f_finishtime; }
341 344
         }
345
+        /// <summary>
346
+        /// 司机信息
347
+        /// </summary>
348
+        public string F_DriverName
349
+        {
350
+            set { _f_drivername = value; }
351
+            get { return _f_drivername; }
352
+        }
353
+        /// <summary>
354
+        /// 司机电话
355
+        /// </summary>
356
+        public string F_DriverPhon
357
+        {
358
+            set { _f_driverphon = value; }
359
+            get { return _f_driverphon; }
360
+        }
361
+        /// <summary>
362
+        /// 车辆信息
363
+        /// </summary>
364
+        public string F_CarMessage
365
+        {
366
+            set { _f_carmessage = value; }
367
+            get { return _f_carmessage; }
368
+        }
342 369
         #endregion Model
343 370
 
344 371
     }

+ 189 - 0
RMYY_CallCenter_Api.Utility/Helper/DataTableExtensions.cs

@@ -0,0 +1,189 @@
1
+using System;
2
+using System.Collections;
3
+using System.Collections.Generic;
4
+using System.Data;
5
+using System.Linq;
6
+using System.Reflection;
7
+using System.Text;
8
+using System.Threading.Tasks;
9
+
10
+namespace RMYY_CallCenter_Api.Utility
11
+{
12
+    public static class DataTableExtensions
13
+    {
14
+        /// <summary>    
15
+
16
+        /// 转化一个DataTable    
17
+
18
+        /// </summary>    
19
+
20
+        /// <typeparam name="T"></typeparam>    
21
+        /// <param name="list"></param>    
22
+        /// <returns></returns>    
23
+        public static DataTable ToDataTable<T>(this IEnumerable<T> list)
24
+        {
25
+
26
+            //创建属性的集合    
27
+            List<PropertyInfo> pList = new List<PropertyInfo>();
28
+            //获得反射的入口    
29
+
30
+            Type type = typeof(T);
31
+            DataTable dt = new DataTable();
32
+            //把所有的public属性加入到集合 并添加DataTable的列    
33
+            Array.ForEach<PropertyInfo>(type.GetProperties(), p => { pList.Add(p); dt.Columns.Add(p.Name, p.PropertyType); });
34
+            foreach (var item in list)
35
+            {
36
+                //创建一个DataRow实例    
37
+                DataRow row = dt.NewRow();
38
+                //给row 赋值    
39
+                pList.ForEach(p => row[p.Name] = p.GetValue(item, null));
40
+                //加入到DataTable    
41
+                dt.Rows.Add(row);
42
+            }
43
+            return dt;
44
+        }
45
+
46
+
47
+        /// <summary>    
48
+        /// DataTable 转换为List 集合    
49
+        /// </summary>    
50
+        /// <typeparam name="TResult">类型</typeparam>    
51
+        /// <param name="dt">DataTable</param>    
52
+        /// <returns></returns>    
53
+        public static List<T> ToList<T>(this DataTable dt) where T : class, new()
54
+        {
55
+            //创建一个属性的列表    
56
+            List<PropertyInfo> prlist = new List<PropertyInfo>();
57
+            //获取TResult的类型实例  反射的入口    
58
+
59
+            Type t = typeof(T);
60
+
61
+            //获得TResult 的所有的Public 属性 并找出TResult属性和DataTable的列名称相同的属性(PropertyInfo) 并加入到属性列表     
62
+            Array.ForEach<PropertyInfo>(t.GetProperties(), p => { if (dt.Columns.IndexOf(p.Name) != -1) prlist.Add(p); });
63
+
64
+            //创建返回的集合    
65
+
66
+            List<T> oblist = new List<T>();
67
+
68
+            foreach (DataRow row in dt.Rows)
69
+            {
70
+                //创建TResult的实例    
71
+                T ob = new T();
72
+                //找到对应的数据  并赋值    
73
+                prlist.ForEach(p => { if (row[p.Name] != DBNull.Value) p.SetValue(ob, row[p.Name], null); });
74
+                //放入到返回的集合中.    
75
+                oblist.Add(ob);
76
+            }
77
+            return oblist;
78
+        }
79
+
80
+
81
+
82
+
83
+        /// <summary>    
84
+        /// 将集合类转换成DataTable    
85
+        /// </summary>    
86
+        /// <param name="list">集合</param>    
87
+        /// <returns></returns>    
88
+        public static DataTable ToDataTableTow(this IList list)
89
+        {
90
+            DataTable result = new DataTable();
91
+            if (list.Count > 0)
92
+            {
93
+                PropertyInfo[] propertys = list[0].GetType().GetProperties();
94
+
95
+                foreach (PropertyInfo pi in propertys)
96
+                {
97
+                    result.Columns.Add(pi.Name, pi.PropertyType);
98
+                }
99
+                for (int i = 0; i < list.Count; i++)
100
+                {
101
+                    ArrayList tempList = new ArrayList();
102
+                    foreach (PropertyInfo pi in propertys)
103
+                    {
104
+                        object obj = pi.GetValue(list[i], null);
105
+                        tempList.Add(obj);
106
+                    }
107
+                    object[] array = tempList.ToArray();
108
+                    result.LoadDataRow(array, true);
109
+                }
110
+            }
111
+            return result;
112
+        }
113
+
114
+
115
+        /**/
116
+
117
+        /// <summary>    
118
+        /// 将泛型集合类转换成DataTable    
119
+
120
+        /// </summary>    
121
+        /// <typeparam name="T">集合项类型</typeparam>    
122
+
123
+        /// <param name="list">集合</param>    
124
+        /// <returns>数据集(表)</returns>    
125
+        public static DataTable ToDataTable<T>(this IList<T> list)
126
+        {
127
+            return ToDataTable<T>(list, null);
128
+
129
+        }
130
+
131
+
132
+        /**/
133
+
134
+        /// <summary>    
135
+        /// 将泛型集合类转换成DataTable    
136
+        /// </summary>    
137
+        /// <typeparam name="T">集合项类型</typeparam>    
138
+        /// <param name="list">集合</param>    
139
+        /// <param name="propertyName">需要返回的列的列名</param>    
140
+        /// <returns>数据集(表)</returns>    
141
+        public static DataTable ToDataTable<T>(this IList<T> list, params string[] propertyName)
142
+        {
143
+            List<string> propertyNameList = new List<string>();
144
+            if (propertyName != null)
145
+                propertyNameList.AddRange(propertyName);
146
+            DataTable result = new DataTable();
147
+            if (list.Count > 0)
148
+            {
149
+                PropertyInfo[] propertys = list[0].GetType().GetProperties();
150
+                foreach (PropertyInfo pi in propertys)
151
+                {
152
+                    if (propertyNameList.Count == 0)
153
+                    {
154
+                        result.Columns.Add(pi.Name, pi.PropertyType);
155
+                    }
156
+                    else
157
+                    {
158
+                        if (propertyNameList.Contains(pi.Name))
159
+                            result.Columns.Add(pi.Name, pi.PropertyType);
160
+                    }
161
+                }
162
+
163
+                for (int i = 0; i < list.Count; i++)
164
+                {
165
+                    ArrayList tempList = new ArrayList();
166
+                    foreach (PropertyInfo pi in propertys)
167
+                    {
168
+                        if (propertyNameList.Count == 0)
169
+                        {
170
+                            object obj = pi.GetValue(list[i], null);
171
+                            tempList.Add(obj);
172
+                        }
173
+                        else
174
+                        {
175
+                            if (propertyNameList.Contains(pi.Name))
176
+                            {
177
+                                object obj = pi.GetValue(list[i], null);
178
+                                tempList.Add(obj);
179
+                            }
180
+                        }
181
+                    }
182
+                    object[] array = tempList.ToArray();
183
+                    result.LoadDataRow(array, true);
184
+                }
185
+            }
186
+            return result;
187
+        }
188
+    }
189
+}

+ 1 - 0
RMYY_CallCenter_Api.Utility/RMYY_CallCenter_Api.Utility.csproj

@@ -68,6 +68,7 @@
68 68
     <Reference Include="System.Xml" />
69 69
   </ItemGroup>
70 70
   <ItemGroup>
71
+    <Compile Include="Helper\DataTableExtensions.cs" />
71 72
     <Compile Include="Extention\Object.cs" />
72 73
     <Compile Include="Extention\String.cs" />
73 74
     <Compile Include="Helper\CacheHelper.cs" />

+ 0 - 135
RMYY_CallCenter_Api/Controllers/CallOutOptController.cs

@@ -1,135 +0,0 @@
1
-using RMYY_CallCenter_Api.Utility;
2
-using RMYY_CallCenter_Api.Controllers;
3
-using System;
4
-using System.Collections.Generic;
5
-using System.Linq;
6
-using System.Web;
7
-using System.Web.Mvc;
8
-
9
-namespace RMYY_CallCenter_Api.Controllers
10
-{
11
-    public class CallOutOptController : BaseController
12
-    {
13
-        //外呼判断本地外地以及加前缀返回
14
-        public ActionResult GetCallOutprefix(string phone)
15
-        {
16
-            ActionResult res = NoToken("未知错误,请重新登录");
17
-            if (Request.IsAuthenticated)
18
-            {
19
-                //string phone1 = RequestString.ToDBC(RequestString.RemoveNotNumber(WebHelper.NoHtml(phone)));
20
-                string tophone = phone;
21
-                string zipcode = ""; string bfix = ""; string wfix = ""; string fix = "";
22
-                string userseatgroupid = User.F_SeatGroup.ToString();
23
-                if (userseatgroupid != "" && userseatgroupid != "0")
24
-                {
25
-                    Model.T_Sys_SeatGroup smodel = new Bll.T_Sys_SeatGroup().GetModel(int.Parse(userseatgroupid));
26
-                    if (smodel != null)
27
-                    {
28
-                        zipcode = smodel.F_ZXAtt.Trim();
29
-                        bfix = smodel.F_WHBDKey.Trim();
30
-                        wfix = smodel.F_WHWDKey.Trim();
31
-                    }
32
-                }
33
-                int zip = GetZipCodeByPhone(phone, zipcode);
34
-                #region 
35
-                if (zip == 1)
36
-                {//手机本地号码
37
-                    fix = bfix;
38
-                }
39
-                else if (zip == 2)
40
-                {//手机外地号码
41
-                    fix = wfix;
42
-                }
43
-                else {
44
-                    tophone = phone.TrimStart('0');
45
-                    if (zip == 3)
46
-                    {//本地固话去0加9 比如:988888517,937188888517
47
-                        fix = bfix;
48
-                    }
49
-                    else if (zip == 4)
50
-                    {//外地固话前加9 比如:9037188888517
51
-                        fix = wfix;
52
-                    }
53
-                }
54
-                #endregion
55
-                var obj = new
56
-                {
57
-                    phone = fix+tophone,
58
-                    fix = fix
59
-                };
60
-
61
-                res = Success("外呼号码加前缀", obj);
62
-            }
63
-            return res;
64
-        }
65
-
66
-        /// <summary>
67
-        /// 根据号码和区号判断号码是否为归属地号码
68
-        /// 返回0为分机号或特殊号码
69
-        /// 返回1为手机本地号码
70
-        /// 返回2为手机外地号码
71
-        /// 返回3为固定电话本地号码
72
-        /// 返回4为固定电话外地号码
73
-        /// </summary>
74
-        /// <param name="phone"></param>
75
-        /// <param name="zipcode"></param>
76
-        /// <returns></returns>
77
-        [NonAction]
78
-        public int GetZipCodeByPhone(string phone, string zipcode)
79
-        {
80
-            int res = 0;
81
-            if (phone.Trim().Length >= 7)
82
-            {
83
-                //7位及7位以上是固定电话或手机
84
-                //判断是否手机
85
-                if (phone.Trim().Length == 11 && phone[0] == '1')
86
-                {//号码为11位,首位是1,为手机号
87
-                    Bll.T_Sys_MobileData mobile_Bll = new Bll.T_Sys_MobileData();
88
-                    Model.T_Sys_MobileData mobileModel = mobile_Bll.GetModelList("F_MobileNum='"+ phone.Substring(0, 7) + "'").FirstOrDefault();
89
-                    if (mobileModel != null)
90
-                    {
91
-                        if (mobileModel.F_ZipCode.Equals(zipcode))
92
-                        {
93
-                            res = 1;
94
-                        }
95
-                        else
96
-                        {
97
-                            res = 2;
98
-                        }
99
-                    }
100
-                }
101
-                else
102
-                {
103
-                    if (phone.Trim().Length == 11 && phone.Substring(0, 3).Equals(zipcode))
104
-                    {//号码为11位
105
-                        //截取前三位区号判断是否本地
106
-                        bool resbd3 = phone.Substring(0, 3).Equals(zipcode);
107
-                        //截取前四位区号判断是否本地
108
-                        bool resbd4 = phone.Substring(0, 4).Equals(zipcode);
109
-                        if (resbd3 || resbd4)
110
-                        {
111
-                            res = 3;
112
-                        }
113
-                        else
114
-                        {
115
-                            res = 4;
116
-                        }
117
-                    }
118
-                    else if (phone.Trim().Length < 11)
119
-                    {//号码小于11位,为本地
120
-                        res = 3;
121
-                    }
122
-                    else if (phone.Trim().Length > 11 && phone.Substring(0, 4).Equals(zipcode))
123
-                    {//号码大于11位,截取前四位区号判断是否本地
124
-                        res = 3;
125
-                    }
126
-                    else
127
-                    {
128
-                        res = 4;
129
-                    }
130
-                }
131
-            }
132
-            return res;
133
-        }
134
-    }
135
-}

Разница между файлами не показана из-за своего большого размера
+ 980 - 48
RMYY_CallCenter_Api/Controllers/WorkOrder/T_Acc_WorkOrderController.cs


+ 1 - 1
RMYY_CallCenter_Api/Controllers/WorkOrder/T_Mat_WorkOrderController.cs

@@ -341,7 +341,7 @@ namespace RMYY_CallCenter_Api.Controllers.WorkOrder
341 341
             model.F_ProposerPhon = phon;
342 342
             model.F_SendDeptId = senddeptid;//送达科室
343 343
             model.F_SendDeptName = deptname;//科室姓名
344
-            model.F_ItemMessages = itemessage;//物转移内容
344
+            model.F_ItemMessages = itemessage;//物转移内容
345 345
             model.F_Remark = remark;
346 346
             model.F_CreateTime = DateTime.Now;
347 347
             model.F_CreateCode = User1.F_UserCode;

+ 87 - 0
RMYY_CallCenter_Api/Controllers/WorkOrder/WorkOrderReportController.cs

@@ -0,0 +1,87 @@
1
+using RMYY_CallCenter_Api.DB;
2
+using RMYY_CallCenter_Api.Models.Dto;
3
+using RMYY_CallCenter_Api.Models.Enum;
4
+using RMYY_CallCenter_Api.Utility;
5
+using System;
6
+using System.Collections.Generic;
7
+using System.Linq;
8
+using System.Web;
9
+using System.Web.Mvc;
10
+using System.Web.Mvc.Html;
11
+
12
+namespace RMYY_CallCenter_Api.Controllers.WorkOrder
13
+{
14
+    public class WorkOrderReportController : BaseController
15
+    {
16
+        public ActionResult GetList(string keyword="", string starttime = "", string endtime = "", int pageindex = 1, int pagesize = 10, int state = -1)
17
+        {
18
+            Dictionary<string, object> paras = new Dictionary<string, object>();
19
+            paras.Add("@keyword", keyword);
20
+            paras.Add("@sdate",starttime);
21
+            paras.Add("@edate", endtime);
22
+            paras.Add("@pageindex", pageindex);
23
+            paras.Add("@pagesize", pagesize);
24
+            var data = DbHelperSQL.RunProcedure("P_GetComWorkOrder", paras, "AllWokerOrder").Tables[0];
25
+            var workklist = DataTableExtensions.ToList<TotalWorkeOrderDto>(data).ToList();
26
+            var obj = new
27
+            {
28
+                state = "success",
29
+                message = "成功",
30
+                rows = workklist.Select(p => new
31
+                {
32
+                 WoName= Utility.EnumHelper.GetDescription((EnumWorkOrder)p.swotype),
33
+                 WoState=GetWoState(p.fwotype,p.swotype,p.wostate),
34
+                 modellist=p
35
+                })
36
+
37
+
38
+            };
39
+            return Content(obj.ToJson());
40
+        }
41
+
42
+        private string GetWoState(int ftype,int stype,int wstate)
43
+        {
44
+            string WstateName = "";
45
+            if (ftype == 1)
46
+            {
47
+
48
+            }
49
+            else if (ftype == 2)
50
+            {
51
+                switch (stype)
52
+                {
53
+                    case (int)EnumWorkOrder.Dev:
54
+                        WstateName= Utility.EnumHelper.GetDescription((EnumDevWorkOrderState)wstate);
55
+                        break;
56
+      
57
+                    case (int)EnumWorkOrder.Mat:
58
+                        WstateName= Utility.EnumHelper.GetDescription((EnumMatWorkOrderState)wstate);
59
+                        break; 
60
+                    case (int)EnumWorkOrder.Hos:
61
+                        WstateName= Utility.EnumHelper.GetDescription((EnumHosWorkOrderState)wstate);
62
+                        break;
63
+                    case (int)EnumWorkOrder.BloodDis:
64
+                    case (int)EnumWorkOrder.RedDis:
65
+                    case (int)EnumWorkOrder.OrtherDis:
66
+                    case (int)EnumWorkOrder.UrgDis:
67
+                        WstateName = Utility.EnumHelper.GetDescription((EnumDisWorkOrderState)wstate);
68
+                        break;
69
+                    case (int)EnumWorkOrder.Serve:
70
+                    case (int)EnumWorkOrder.TakeBlood:
71
+                        WstateName = Utility.EnumHelper.GetDescription((EnumAccWorkOrderState)wstate);
72
+                        break;
73
+                }
74
+            }
75
+            else if (ftype == 3)
76
+            {
77
+
78
+            }
79
+            else if (ftype == 4)
80
+            {
81
+
82
+            }
83
+
84
+            return WstateName;
85
+        }
86
+    }
87
+}

+ 85 - 0
RMYY_CallCenter_Api/Models/Dto/TotalWorkeOrderDto.cs

@@ -0,0 +1,85 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Web;
5
+
6
+namespace RMYY_CallCenter_Api.Models.Dto
7
+{
8
+    public class TotalWorkeOrderDto
9
+    {
10
+
11
+
12
+        /// <summary>
13
+        /// 主键id
14
+        /// </summary>
15
+        public int F_Id { get; set; }
16
+        /// <summary>
17
+        /// 工单编号
18
+        /// </summary>
19
+        public string WoCode { get; set; }
20
+        /// <summary>
21
+        /// 工单分类一级
22
+        /// </summary>
23
+        public int fwotype { get; set; }
24
+        /// <summary>
25
+        /// 工单类型二级
26
+        /// </summary>
27
+        public int swotype { get; set; }
28
+        /// <summary>
29
+        /// 工单分类三级
30
+        /// </summary>
31
+        public int twotype { get; set; }
32
+        /// <summary>
33
+        /// 工单状态
34
+        /// </summary>
35
+        public int wostate { get; set; }
36
+        /// <summary>
37
+        /// 工单来源
38
+        /// </summary>
39
+        public string wosource { get; set; }
40
+        /// <summary>
41
+        /// 内容
42
+        /// </summary>
43
+        public string wocontent { get; set; }
44
+        /// <summary>
45
+        /// 申请部门
46
+        /// </summary>
47
+        public string proserdept { get; set; }
48
+        /// <summary>
49
+        /// 申请人电话
50
+        /// </summary>
51
+        public string proserphone { get; set; }
52
+        /// <summary>
53
+        /// 申请人姓名
54
+        /// </summary>
55
+        public string prosername { get; set; }
56
+        /// <summary>
57
+        /// 位置
58
+        /// </summary>
59
+        public string position { get; set; }
60
+        /// <summary>
61
+        /// 创建时间
62
+        /// </summary>
63
+        public DateTime createtime { get; set; }
64
+        /// <summary>
65
+        /// 调度员
66
+        /// </summary>
67
+        public string controlman { get; set; }
68
+        /// <summary>
69
+        /// 转运人信息
70
+        /// </summary>
71
+        public string transperson { get; set; }
72
+        /// <summary>
73
+        /// 维修人信息
74
+        /// </summary>
75
+        public string repairman { get; set; }
76
+        /// <summary>
77
+        /// 检查项目
78
+        /// </summary>
79
+        public string checkitem { get; set; }
80
+        /// <summary>
81
+        /// 司机信息
82
+        /// </summary>
83
+        public string drivermessage { get; set; }
84
+    }
85
+}

+ 92 - 0
RMYY_CallCenter_Api/Models/Enum/EnumAccWorkOrderState.cs

@@ -0,0 +1,92 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Linq;
5
+using System.Web;
6
+
7
+namespace RMYY_CallCenter_Api.Models.Enum
8
+{
9
+    /// <summary>
10
+    /// 工单状态枚举
11
+    /// </summary>
12
+    public enum EnumAccWorkOrderState
13
+    {
14
+        [Description("新工单待指派")]
15
+        neworder,
16
+        [Description("已指派待查收")]
17
+        assign,
18
+        [Description("已查收待到达")]
19
+        receive,
20
+        [Description("已到达待陪检")]
21
+        arrive,
22
+        //[Description("已退回待处理")]
23
+        //reback,
24
+        //[Description("异常退回待接单")]
25
+        //abreback,
26
+        [Description("陪检中")]
27
+        keep,
28
+        [Description("处理中")]
29
+        dealing,
30
+        [Description("已完成")]
31
+        end,
32
+        [Description("已完结")]
33
+        finish = 10,
34
+        [Description("已评价")]
35
+        evaluate,
36
+        //[Description("已退回待指派")]
37
+        //reassign,
38
+    }
39
+
40
+    /// <summary>
41
+    /// 工单记录类型枚举
42
+    /// </summary>
43
+    public enum EnumAccItemType
44
+    {
45
+        [Description("办理")]
46
+        deal = 1,
47
+        [Description("催办")]
48
+        urge = 2,
49
+        [Description("评价")]
50
+        evaluate = 3,
51
+        [Description("修改")]
52
+        update = 4,
53
+        [Description("删除")]
54
+        delete = 5,
55
+        [Description("回访")]
56
+        visit = 6,
57
+        [Description("审批")]
58
+        audit = 7,
59
+        [Description("延期")]
60
+        Delay = 8,
61
+    }
62
+    /// <summary>
63
+    /// 工单记录操作
64
+    /// </summary>
65
+    public enum EnumAccItemOpt
66
+    {
67
+        [Description("添加")]
68
+        create,
69
+        [Description("指派")]
70
+        assign,
71
+        [Description("查收")]
72
+        receive,
73
+        [Description("到达")]
74
+        arrive,
75
+        [Description("陪检")]
76
+        keep,
77
+        [Description("处理")]
78
+        deal,
79
+        [Description("完成")]
80
+        end,
81
+        [Description("处理完结")]
82
+        over,
83
+        [Description("评价")]
84
+        evaluate,
85
+        [Description("修改")]
86
+        update,
87
+        [Description("删除")]
88
+        delete
89
+
90
+    }
91
+
92
+}

+ 4 - 0
RMYY_CallCenter_Api/RMYY_CallCenter_Api.csproj

@@ -149,11 +149,14 @@
149 149
     <Compile Include="Controllers\WorkOrder\T_Dis_WorkOrderController.cs" />
150 150
     <Compile Include="Controllers\WorkOrder\T_Hos_WorkOrderController.cs" />
151 151
     <Compile Include="Controllers\WorkOrder\T_Mat_WorkOrderController.cs" />
152
+    <Compile Include="Controllers\WorkOrder\WorkOrderReportController.cs" />
152 153
     <Compile Include="Filter\AuthorizeFilter.cs" />
153 154
     <Compile Include="Filter\ExceptionFilter.cs" />
154 155
     <Compile Include="Global.asax.cs">
155 156
       <DependentUpon>Global.asax</DependentUpon>
156 157
     </Compile>
158
+    <Compile Include="Models\Dto\TotalWorkeOrderDto.cs" />
159
+    <Compile Include="Models\Enum\EnumAccWorkOrderState.cs" />
157 160
     <Compile Include="Models\Enum\EnumDevWorkOrderState.cs" />
158 161
     <Compile Include="Models\Enum\EnumDisWorkOrderState.cs" />
159 162
     <Compile Include="Models\Enum\EnumHosWorkOrderState.cs" />
@@ -189,6 +192,7 @@
189 192
     <Folder Include="Views\T_Dis_WorkOrder\" />
190 193
     <Folder Include="Views\T_Hos_WorkOrder\" />
191 194
     <Folder Include="Views\WorkBase\" />
195
+    <Folder Include="Views\WorkOrderReport\" />
192 196
   </ItemGroup>
193 197
   <ItemGroup>
194 198
     <Content Include="Configs\log4net.config" />