duhongyu преди 4 години
родител
ревизия
6761160a06

+ 11 - 15
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -1250,15 +1250,16 @@ namespace CallCenterApi.Interface.Controllers.workorder
1250 1250
                     {
1251 1251
                        int[] sts = new int[] { (int)EnumWorkState.submit, (int)EnumWorkState.resubmit };
1252 1252
                         sql += "and F_WorkOrderID not in(select F_WorkOrderId   from T_Bus_Feedback b where F_Id in (select MAX(F_Id) from T_Bus_Feedback where F_WorkOrderId in (select F_WorkOrderId from T_Bus_Feedback where F_WorkOrderId = b.F_WorkOrderId  group by F_WorkOrderId  ))  and F_State = 1 and F_IsDelete = 0 and F_Type = 3 and F_IsAudit = 1 ) ";
1253
-                        sql += " and (F_WorkState in(1,11) or ( F_WorkState in (" + string.Join(",", sts.Select(p => p.ToString())) + ") and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo WITH(NOLOCK) where F_State=1 and F_IsDelete=0 ";
1254
-                        if (userModel.F_RoleCode != "GLY" && userModel.F_RoleCode != "ZXLDGLY" && userModel.F_RoleCode != "ZXLDGLYGLY" && userModel.F_RoleCode != "DDZG"&&userModel .F_RoleCode !="ZXLD"&& userModel.F_RoleCode != "MTDD")
1255
-                        {
1256
-                            sql += " and F_CreateUser='" + userModel.F_UserCode + "')))";
1257
-                        }
1258
-                        else
1259
-                        {
1260
-                            sql += ")))";
1261
-                        }
1253
+                        sql += "and F_WorkState in(1,11) ";
1254
+                        //sql += " and (F_WorkState in(1,11) or ( F_WorkState in (1,11) and F_WorkOrderID in (select v.F_WorkOrderID from T_Bus_AssignedInfo v WITH(NOLOCK) INNER JOIN T_Bus_WorkOrder b  on v.F_WorkOrderID = b.F_WorkOrderID and b.F_WorkState in(1, 11) where v.F_State = 1 and v.F_IsDelete = 0 ";
1255
+                        //if (userModel.F_RoleCode != "GLY" && userModel.F_RoleCode != "ZXLDGLY" && userModel.F_RoleCode != "ZXLDGLYGLY" && userModel.F_RoleCode != "DDZG"&&userModel .F_RoleCode !="ZXLD"&& userModel.F_RoleCode != "MTDD")
1256
+                        //{
1257
+                        //    sql += " and F_CreateUser='" + userModel.F_UserCode + "')))";
1258
+                        //}
1259
+                        //else
1260
+                        //{
1261
+                        //    sql += ")))";
1262
+                        //}
1262 1263
                     }
1263 1264
                     break;
1264 1265
                 case "1"://已交办的工单
@@ -1458,12 +1459,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1458 1459
                     sql += " and (F_IsRelease !='" + 3 + "' or " +
1459 1460
                        "F_IsRelease is null) ";
1460 1461
                     sql += " and F_WorkState=" + (int)EnumWorkState.submit;
1461
-                    sql += "and F_WorkOrderID in(select F_WorkOrderID from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_IsDelete=0 and F_Type = 3 and F_IsAudit=1 ) ";
1462
-
1463
-                   
1464
-
1465
-
1466
-
1462
+                    sql += "and F_WorkOrderID in(select F_WorkOrderID from T_Bus_Feedback b WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_Type = 3 and F_IsAudit = 1 and F_Id  in (select  MAX(F_Id) from T_Bus_Feedback where F_WorkOrderId in (select F_WorkOrderId from T_Bus_Feedback where F_WorkOrderId = b.F_WorkOrderId  group by F_WorkOrderId  ) ) ) ";
1467 1463
                     if (userModel.F_RoleCode != "GLY" && userModel.F_RoleCode != "ZXLD"&& userModel.F_RoleCode != "MTDD")
1468 1464
                     {
1469 1465
                         sql += " and F_CreateUser='" + userModel.F_UserCode + "'";

+ 0 - 17
CallCenterCommon/CallCenter.Utility/word/ExportWord.cs

@@ -10,23 +10,6 @@ using MSWord = Microsoft.Office.Interop.Word;
10 10
 /// </summary>
11 11
 public class ExportWord
12 12
   {
13
-      public ExportWord()
14
-      {
15
-          //
16
-          //TODO: 在此处添加构造函数逻辑
17
-         //
18
-     }
19
-  
20
-     // public DataTable dat = null;
21
-      public void ProcessRequest(HttpContext context, string id, string name)
22
-      {
23
-          context.Response.ContentType = "text/plain";
24
-        //  GetDataTable(id);
25
-       //   CreateWord(name);  
26
-          //此处为了批量操作,把下面这个注掉
27
-          //context.Response.End();
28
-  
29
-      }
30 13
       public string CreateWord(string name)
31 14
       {
32 15
             string message = "";