duhongyu лет назад: 5
Родитель
Сommit
92b1dd999d

+ 20 - 0
codegit/CallCenterApi/CallCenterApi.BLL/T_Bus_WorkOrder.cs

@@ -76,6 +76,8 @@ namespace CallCenterApi.BLL
76 76
         {
77 77
             return dal.GetList(strWhere);
78 78
         }
79
+      
80
+
79 81
         /// <summary>
80 82
         /// 获得前几行数据
81 83
         /// </summary>
@@ -92,6 +94,24 @@ namespace CallCenterApi.BLL
92 94
             return DataTableToList(ds.Tables[0]);
93 95
         }
94 96
         /// <summary>
97
+        ///工单导出
98
+        /// </summary>
99
+        /// <param name="strWhere"></param>
100
+        /// <returns></returns>
101
+        public DataSet GetListExpt(string strWhere)
102
+        {
103
+            return dal.GetListExpt(strWhere);
104
+        }
105
+        /// <summary>
106
+        ///工单导出
107
+        /// </summary>
108
+        /// <param name="strWhere"></param>
109
+        /// <returns></returns>
110
+        public DataSet GetListTSExpt(string strWhere)
111
+        {
112
+            return dal.GetListTSExpt(strWhere);
113
+        }
114
+        /// <summary>
95 115
         /// 获得数据列表
96 116
         /// </summary>
97 117
         public List<CallCenterApi.Model.T_Bus_WorkOrder> DataTableToList(DataTable dt)

Разница между файлами не показана из-за своего большого размера
+ 33 - 0
codegit/CallCenterApi/CallCenterApi.DAL/T_Bus_WorkOrder.cs


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

@@ -257,6 +257,7 @@ namespace CallCenterApi.Interface.Controllers
257 257
                 return Error("无操作权限!");
258 258
             }
259 259
         }
260
+        private BLL.T_Sys_UserAccount userBLL = new BLL.T_Sys_UserAccount();
260 261
         /// <summary>
261 262
         /// 上传附件
262 263
         /// </summary>
@@ -264,7 +265,7 @@ namespace CallCenterApi.Interface.Controllers
264 265
         public ActionResult UploadFile()
265 266
         {
266 267
             int userId = CurrentUser.UserData.F_UserId;
267
-            Model.T_Sys_UserAccount userModel = new BLL.T_Sys_UserAccount().GetModel(userId);
268
+            Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
268 269
 
269 270
             #region 多个上传
270 271
             HttpFileCollection files = RequestString.GetFiles();

+ 21 - 7
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/DepartmentController.cs

@@ -47,9 +47,9 @@ namespace CallCenterApi.Interface.Controllers
47 47
             {
48 48
                 DataTable dt = new DataTable();
49 49
                 string where = " ";
50
-                where = "isnull(F_ParentId, 1) = '" + pId + "' and F_State = 1 and F_Layer = " + F_Layer;
50
+                where = " isnull(F_DeptId,0) = '" + 1 + "' and F_State = 1" ;
51 51
                 dt = new BLL.T_Sys_Department().GetList(0, where, " F_Sort asc").Tables[0];
52
-                List<Model.TreeModel> modelList = BindAreaTree(dt, "0");
52
+               List<Model.TreeModel> modelList = BindAreaTree(dt, "0", 1);
53 53
                 return Success("加载成功", modelList);
54 54
             }
55 55
             return NoToken("未知错误,请重新登录");
@@ -201,7 +201,7 @@ namespace CallCenterApi.Interface.Controllers
201 201
         /// <param name="tab"></param>
202 202
         /// <param name="parentid"></param>
203 203
         /// <returns></returns>
204
-        private List<Model.TreeModel> BindAreaTree(DataTable tab, string parentid)
204
+        private List<Model.TreeModel> BindAreaTree(DataTable tab, string parentid,int pid=0)
205 205
         {
206 206
             DataTable tab2 = new DataTable();
207 207
 
@@ -216,10 +216,18 @@ namespace CallCenterApi.Interface.Controllers
216 216
                     model.id = currentID;
217 217
                     model.IconCls = "";//图标
218 218
                     model.text = categorylist[i].F_DeptName;
219
-                    tab2 = new BLL.T_Sys_Department().GetList("F_ParentId=" + currentID + " and F_State=1 order by f_sort").Tables[0];
219
+                    if (pid==1)
220
+                    {
221
+                              tab2 = new BLL.T_Sys_Department().GetList("F_ParentId=" + currentID + " and F_State=1    and F_Layer = 1 order by f_sort").Tables[0];
222
+                    }
223
+                    else
224
+                    {
225
+                        tab2 = new BLL.T_Sys_Department().GetList("F_ParentId=" + currentID + " and F_State=1 order by f_sort").Tables[0];
226
+                    }
227
+                  
220 228
                     if (tab2 != null && tab2.Rows.Count > 0)
221 229
                     {
222
-                        model.children = BindBreaTree(tab2, currentID);
230
+                        model.children = BindBreaTree(tab2, currentID, pid);
223 231
                     }
224 232
                     modelList.Add(model);
225 233
                 }
@@ -238,7 +246,7 @@ namespace CallCenterApi.Interface.Controllers
238 246
         /// <param name="tab"></param>
239 247
         /// <param name="parentid"></param>
240 248
         /// <returns></returns>
241
-        private List<Model.TreeModel> BindBreaTree(DataTable tab, string parentid)
249
+        private List<Model.TreeModel> BindBreaTree(DataTable tab, string parentid,int pid=0)
242 250
         {
243 251
             DataTable tab2 = new DataTable();
244 252
 
@@ -254,7 +262,13 @@ namespace CallCenterApi.Interface.Controllers
254 262
                     model.IconCls = "";//图标
255 263
                     model.text = categorylist[i].F_DeptName;
256 264
                     tab2 = new BLL.T_Sys_Department().GetList("F_ParentId=" + currentID + " and F_State=1 order by f_sort").Tables[0];
257
-                    
265
+                    if (pid >0)
266
+                    {
267
+                        if (tab2 != null && tab2.Rows.Count > 0)
268
+                        {
269
+                            model.children = BindBreaTree(tab2, currentID, 0);
270
+                        }
271
+                    }
258 272
                     modelList.Add(model);
259 273
                 }
260 274
                 return modelList;

Разница между файлами не показана из-за своего большого размера
+ 95 - 72
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/PushMessageController.cs


+ 2 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/UserAccountController.cs

@@ -226,7 +226,7 @@ namespace CallCenterApi.Interface.Controllers
226 226
                 if (userModel != null)
227 227
                 {
228 228
                     if (userModel.F_RoleId == 1 || userModel.F_RoleId == 4 || userModel.F_RoleId == 17
229
-                         || userModel.F_RoleId == 50 || userModel.F_RoleId == 67 || userModel.F_RoleId == 49)
229
+                         || userModel.F_RoleId == 50 || userModel.F_RoleId == 67 || userModel.F_RoleId == 49 || userModel.F_RoleId == 66)
230 230
                     {
231 231
                         if (filter.dptid == 0)
232 232
                         {
@@ -344,7 +344,7 @@ namespace CallCenterApi.Interface.Controllers
344 344
                 if (userModel != null)
345 345
                 {
346 346
                     if (userModel.F_RoleId == 1 || userModel.F_RoleId == 4 || userModel.F_RoleId == 17
347
-                          || userModel.F_RoleId == 50 || userModel.F_RoleId == 67 || userModel.F_RoleId == 49)
347
+                          || userModel.F_RoleId == 50 || userModel.F_RoleId == 67 || userModel.F_RoleId == 49 || userModel.F_RoleId == 66)
348 348
                     {
349 349
                             if (filter.dptid == 0)
350 350
                             {

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerController.cs

@@ -867,7 +867,7 @@ namespace CallCenterApi.Interface.Controllers.customer
867 867
         public ActionResult Import()
868 868
         {
869 869
             DataTable dt = new DataTable();
870
-            var depts = new BLL.T_Sys_UserAccount().GetModelList("F_DeptId in (select F_DeptId   FROM T_Sys_Department WHERE F_State=1 and ( F_DeptCode like '|0|1|16|%'or F_DeptCode like '|0|1|17|%' )) ");
870
+            var depts = new BLL.T_Sys_UserAccount().GetModelList("F_DeptId in (select F_DeptId   FROM T_Sys_Department WHERE F_State=1 and (F_DeptCode like '|0|1|21|%' or F_DeptCode like '|0|1|22|%' )) ");
871 871
            
872 872
             #region 
873 873
             dt.Columns.Add("工号");
@@ -915,7 +915,7 @@ namespace CallCenterApi.Interface.Controllers.customer
915 915
                 #endregion
916 916
             }
917 917
             NPOIHelper npoi = new NPOIHelper();
918
-            if (npoi.ExportToExcel("京津河北大区人员表", dt) == "")
918
+            if (npoi.ExportToExcel("华南大区人员表", dt) == "")
919 919
             {
920 920
                 return Success("导出成功");
921 921
             }

Разница между файлами не показана из-за своего большого размера
+ 110 - 259
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs


Разница между файлами не показана из-за своего большого размера
+ 106 - 181
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkorderAppController.cs