ソースを参照

下载页,坐席满意度,工单

duhongyu 6 年 前
コミット
cde376e94a

+ 20 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/ApplicationsVersionController.cs

@@ -100,7 +100,26 @@ namespace CallCenterApi.Interface.Controllers
100 100
             }
101 101
             return NoToken("未知错误,请重新登录");
102 102
         }
103
-
103
+        public ActionResult GetAndroid()
104
+        {
105
+            var configfj = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
106
+            var model = new BLL.T_Sys_ApplicationsVersion().GetModelList("F_IsDelete=0 and F_Type=0 order by F_ID DESC ").FirstOrDefault();
107
+            if (model != null)
108
+            {
109
+                ApplicationsVersion app = new ApplicationsVersion();
110
+                app.F_ID = model.F_ID;
111
+                app.F_Type = (int)model.F_Type;
112
+                app.F_VersionName = model.F_VersionName;
113
+                app.F_VersionCode = model.F_VersionCode;
114
+                app.F_Files = model.F_Files;
115
+                app.F_Url = model.F_Url;
116
+                app.F_Sort = (int)model.F_Sort;
117
+                app.F_Remarks = model.F_Remarks;
118
+                app.FileUrl = GetFileData(model.F_Files, configfj.F_ParamValue);
119
+                return Success("成功", app);
120
+            }
121
+            return Error("获取失败");
122
+        }
104 123
         /// <summary>
105 124
         /// 列表
106 125
         /// </summary>

+ 42 - 17
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/ZuoXiManYiDuController.cs

@@ -31,7 +31,7 @@ namespace CallCenterApi.Interface.Controllers.report
31 31
                 Model.T_Sys_UserAccount userModel = new BLL.T_Sys_UserAccount().GetModel(userId);
32 32
 
33 33
                 DataTable dtNew = new DataTable();
34
-                dtNew = getData(stime, endtime, userModel.F_SeartGroupID.Value);
34
+                dtNew = getData(stime, endtime, userModel.F_SeartGroupID.Value,0);
35 35
                 return Success("获取坐席满意度评价情况报表数据成功", dtNew);
36 36
             }
37 37
             return NoToken("未知错误,请重新登录");
@@ -45,7 +45,7 @@ namespace CallCenterApi.Interface.Controllers.report
45 45
                 int userId = CurrentUser.UserData.F_UserId;
46 46
                 Model.T_Sys_UserAccount userModel = new BLL.T_Sys_UserAccount().GetModel(userId);
47 47
                 NPOIHelper npoi = new NPOIHelper();
48
-                DataTable dt = getData(stime, endtime, userModel.F_SeartGroupID.Value);
48
+                DataTable dt = getData(stime, endtime, userModel.F_SeartGroupID.Value,1);
49 49
                 if (npoi.ExportToExcel("坐席满意度评价情况", dt) == "")
50 50
                 {
51 51
                     return Success("导出成功");
@@ -58,7 +58,7 @@ namespace CallCenterApi.Interface.Controllers.report
58 58
             return NoToken("未知错误,请重新登录");
59 59
         }
60 60
 
61
-        private DataTable getData(string stime, string endtime, int dpt)
61
+        private DataTable getData(string stime, string endtime, int dpt,int isdc)
62 62
         {
63 63
             DataTable dtNew = new DataTable();
64 64
             #region
@@ -130,24 +130,49 @@ namespace CallCenterApi.Interface.Controllers.report
130 130
                     body.Add(UNDN[1], bodylist);
131 131
                 }
132 132
             }
133
-            foreach (string key in body.Keys)
133
+            if (isdc ==0)
134 134
             {
135
-                DataRow dr = dtNew.NewRow();
136
-                int count = body[key].Count;
137
-                foreach (List<string> listiteam in body[key])
135
+                foreach (string key in body.Keys)
138 136
                 {
139
-                    dr["坐席姓名"] = listiteam[0].ToString();
140
-                    dr["非常满意"] = listiteam[1].ToString();
141
-                    dr["非常满意占比"] = listiteam[2].ToString();
142
-                    dr["基本满意"] = listiteam[3].ToString();
143
-                    dr["基本满意占比"] = listiteam[4].ToString();
144
-                    dr["不满意"] = listiteam[5].ToString();
145
-                    dr["不满意占比"] = listiteam[6].ToString();
146
-                    dr["未评价"] = listiteam[7].ToString();
147
-                    dr["未评价占比"] = listiteam[8].ToString();
137
+                    DataRow dr = dtNew.NewRow();
138
+                    int count = body[key].Count;
139
+                    foreach (List<string> listiteam in body[key])
140
+                    {
141
+                        dr["坐席姓名"] = listiteam[0].ToString();
142
+                        dr["非常满意"] = listiteam[1].ToString();
143
+                        dr["非常满意占比"] = listiteam[2].ToString();
144
+                        dr["基本满意"] = listiteam[3].ToString();
145
+                        dr["基本满意占比"] = listiteam[4].ToString();
146
+                        dr["不满意"] = listiteam[5].ToString();
147
+                        dr["不满意占比"] = listiteam[6].ToString();
148
+                        dr["未评价"] = listiteam[7].ToString();
149
+                        dr["未评价占比"] = listiteam[8].ToString();
150
+                    }
151
+                    dtNew.Rows.Add(dr);
148 152
                 }
149
-                dtNew.Rows.Add(dr);
150 153
             }
154
+            else
155
+            {
156
+                foreach (string key in body.Keys)
157
+                {
158
+                    DataRow dr = dtNew.NewRow();
159
+                    int count = body[key].Count;
160
+                    foreach (List<string> listiteam in body[key])
161
+                    {
162
+                        dr["坐席姓名"] = listiteam[0].ToString();
163
+                        dr["非常满意"] = listiteam[1].ToString();
164
+                        dr["非常满意占比"] = listiteam[2].ToString()+"%";
165
+                        dr["基本满意"] = listiteam[3].ToString();
166
+                        dr["基本满意占比"] = listiteam[4].ToString() + "%";
167
+                        dr["不满意"] = listiteam[5].ToString();
168
+                        dr["不满意占比"] = listiteam[6].ToString() + "%";
169
+                        dr["未评价"] = listiteam[7].ToString();
170
+                        dr["未评价占比"] = listiteam[8].ToString() + "%";
171
+                    }
172
+                    dtNew.Rows.Add(dr);
173
+                }
174
+            }
175
+            
151 176
             return dtNew;
152 177
         }
153 178
 

+ 12 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -846,7 +846,12 @@ namespace CallCenterApi.Interface.Controllers.workorder
846 846
                     return Error("请输入来电人姓名!");
847 847
                 if (string.IsNullOrEmpty(input.F_CusPhone))
848 848
                     return Error("请输入来电人电话!");
849
-                if (!string.IsNullOrEmpty(input.F_ProductDate))
849
+                if (IsAssign > 0)
850
+                {
851
+                    if (clid == 0)
852
+                        return Error("请选择提交人!");
853
+                }
854
+                    if (!string.IsNullOrEmpty(input.F_ProductDate))
850 855
                 {
851 856
                     try
852 857
                     {
@@ -865,6 +870,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
865 870
                 }
866 871
                 var model = new Model.T_Bus_WorkOrder();
867 872
                 model = inputtoobj(model, input, 0);
873
+            
868 874
                 int n = workorderBLL.Add(model);
869 875
                 if (n > 0)
870 876
                 {
@@ -1384,8 +1390,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1384 1390
             }
1385 1391
             #region 基本字段
1386 1392
             model.F_Type = input.F_Type;//工单类型1咨询2投诉
1387
-            model.F_Area = input.F_Area;//大区
1388
-            model.F_Office = input.F_Office;//办事处
1393
+           
1389 1394
             if (!string.IsNullOrEmpty(input.F_DealTimely))
1390 1395
                 model.F_DealTimely = input.F_DealTimely;// 重要级别1红色2绿色3普通工单
1391 1396
             else
@@ -1408,6 +1413,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
1408 1413
             #endregion
1409 1414
             if (type == 1)
1410 1415
             {
1416
+                model.F_Area = model.F_Area;//大区
1417
+                model.F_Office = model.F_Office;//办事处
1411 1418
                 model.F_State = model.F_State;//工单状态
1412 1419
                 model.F_CreateTime = model.F_CreateTime;//添加时间
1413 1420
                 model.F_CreateUser = model.F_CreateUser;//添加人
@@ -1418,7 +1425,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
1418 1425
             }
1419 1426
             else
1420 1427
             {
1421
-
1428
+                model.F_Area = input.F_Area;//大区
1429
+                model.F_Office = input.F_Office;//办事处
1422 1430
                 model.F_ReceivingPerson = usercode;//接听人
1423 1431
                 model.F_State = 0;//0
1424 1432
                 model.F_CreateUser = usercode;

+ 4 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkorderAppController.cs

@@ -1312,6 +1312,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
1312 1312
             #endregion
1313 1313
             if (type == 1)
1314 1314
             {
1315
+                model.F_Area = model.F_Area;//大区
1316
+                model.F_Office = model.F_Office;//办事处
1315 1317
                 model.F_State = model.F_State;//工单状态
1316 1318
                 model.F_CreateTime = model.F_CreateTime;//添加时间
1317 1319
                 model.F_CreateUser = model.F_CreateUser;//添加人
@@ -1322,7 +1324,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
1322 1324
             }
1323 1325
             else
1324 1326
             {
1325
-                
1327
+                model.F_Area = input.F_Area;//大区
1328
+                model.F_Office = input.F_Office;//办事处
1326 1329
                 model.F_ReceivingPerson = usercode;//接听人
1327 1330
                 model.F_State = 0;//0
1328 1331
                 model.F_CreateUser = usercode;