Преглед на файлове

导出去掉协办单位

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

+ 7 - 7
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

411
                 //日期,工单号,诉求标题,诉求内容,承办单位,办理结果,是否满意,备注
411
                 //日期,工单号,诉求标题,诉求内容,承办单位,办理结果,是否满意,备注
412
                 var dtdc = DbHelperSQL.Query(" select  F_CreateTime 日期, F_WorkOrderId 工单号,F_ComTitle 诉求标题,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
412
                 var dtdc = DbHelperSQL.Query(" select  F_CreateTime 日期, F_WorkOrderId 工单号,F_ComTitle 诉求标题,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
413
                     + "  dbo.GetDeptNames(F_MainDeptId ) 主办单位, "
413
                     + "  dbo.GetDeptNames(F_MainDeptId ) 主办单位, "
414
-                    + "  dbo.GetDeptNames(F_OtherDeptIds ) 协办单位, "
414
+                  
415
                     + " (select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and  F_WorkOrderId =a.F_WorkOrderId order by F_Id desc) 办理结果, "
415
                     + " (select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and  F_WorkOrderId =a.F_WorkOrderId order by F_Id desc) 办理结果, "
416
                     + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = a.F_WorkOrderId order by F_Id desc) 是否满意 "
416
                     + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = a.F_WorkOrderId order by F_Id desc) 是否满意 "
417
                     + " from T_Bus_WorkOrder a WITH(NOLOCK)"+ value + " where 1=1 " + sql+ orderby).Tables[0];
417
                     + " from T_Bus_WorkOrder a WITH(NOLOCK)"+ value + " where 1=1 " + sql+ orderby).Tables[0];
909
                 //日期,工单号,诉求标题,诉求内容,承办单位,办理结果,是否满意,备注
909
                 //日期,工单号,诉求标题,诉求内容,承办单位,办理结果,是否满意,备注
910
                 var dtdc = DbHelperSQL.Query(" select  F_CreateTime 日期, F_WorkOrderId 工单号,F_ComTitle 诉求标题,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
910
                 var dtdc = DbHelperSQL.Query(" select  F_CreateTime 日期, F_WorkOrderId 工单号,F_ComTitle 诉求标题,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
911
                       + "  dbo.GetDeptNames(F_MainDeptId ) 主办单位, "
911
                       + "  dbo.GetDeptNames(F_MainDeptId ) 主办单位, "
912
-                    + "  dbo.GetDeptNames(F_OtherDeptIds ) 协办单位, "
912
+                   
913
                     + " (select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and  F_WorkOrderId =wo.F_WorkOrderId order by F_Id desc) 办理结果, "
913
                     + " (select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and  F_WorkOrderId =wo.F_WorkOrderId order by F_Id desc) 办理结果, "
914
                     + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 是否满意 "
914
                     + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 是否满意 "
915
                     + " from T_Bus_WorkOrder wo WITH(NOLOCK)"+value  +" where 1=1 " + sql + orderby).Tables[0];
915
                     + " from T_Bus_WorkOrder wo WITH(NOLOCK)"+value  +" where 1=1 " + sql + orderby).Tables[0];
1639
                 //日期,工单号,诉求标题,诉求内容,承办单位,办理结果,是否满意,备注
1639
                 //日期,工单号,诉求标题,诉求内容,承办单位,办理结果,是否满意,备注
1640
                 var dtdc = DbHelperSQL.Query(" select " + top + " F_CreateTime 日期, F_WorkOrderId 工单号,F_ComTitle 诉求标题,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
1640
                 var dtdc = DbHelperSQL.Query(" select " + top + " F_CreateTime 日期, F_WorkOrderId 工单号,F_ComTitle 诉求标题,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
1641
                      + "  dbo.GetDeptNames(F_MainDeptId ) 主办单位, "
1641
                      + "  dbo.GetDeptNames(F_MainDeptId ) 主办单位, "
1642
-                    + "  dbo.GetDeptNames(F_OtherDeptIds ) 协办单位, "
1642
+                   
1643
                     + " (select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and  F_WorkOrderId =wo.F_WorkOrderId order by F_Id desc) 办理结果, "
1643
                     + " (select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and  F_WorkOrderId =wo.F_WorkOrderId order by F_Id desc) 办理结果, "
1644
                     + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 是否满意 "
1644
                     + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 是否满意 "
1645
                     + " from T_Bus_WorkOrder wo WITH(NOLOCK)"+value  +" where 1=1 " + sql + orderby).Tables[0];
1645
                     + " from T_Bus_WorkOrder wo WITH(NOLOCK)"+value  +" where 1=1 " + sql + orderby).Tables[0];
2376
                 //日期,工单号,诉求标题,诉求内容,承办单位,办理结果,是否满意,备注
2376
                 //日期,工单号,诉求标题,诉求内容,承办单位,办理结果,是否满意,备注
2377
                 var dtdc = DbHelperSQL.Query(" select  F_CreateTime 日期, F_WorkOrderId 工单号,F_ComTitle 诉求标题,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
2377
                 var dtdc = DbHelperSQL.Query(" select  F_CreateTime 日期, F_WorkOrderId 工单号,F_ComTitle 诉求标题,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
2378
                     + "  dbo.GetDeptNames(F_MainDeptId ) 主办单位, "
2378
                     + "  dbo.GetDeptNames(F_MainDeptId ) 主办单位, "
2379
-                    + "  dbo.GetDeptNames(F_OtherDeptIds ) 协办单位, "
2379
+                  
2380
                     + " (select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and  F_WorkOrderId =wo.F_WorkOrderId order by F_Id desc) 办理结果, "
2380
                     + " (select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and  F_WorkOrderId =wo.F_WorkOrderId order by F_Id desc) 办理结果, "
2381
                     + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 是否满意 "
2381
                     + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 是否满意 "
2382
                     + " from T_Bus_WorkOrder wo WITH(NOLOCK)"+value  +" where 1=1 " + sql + orderby).Tables[0];
2382
                     + " from T_Bus_WorkOrder wo WITH(NOLOCK)"+value  +" where 1=1 " + sql + orderby).Tables[0];
4483
                 //日期,工单号,诉求标题,诉求内容,承办单位,办理结果,是否满意,备注
4483
                 //日期,工单号,诉求标题,诉求内容,承办单位,办理结果,是否满意,备注
4484
                 var dtdc = DbHelperSQL.Query(" select " + top + " F_CreateTime 日期, F_WorkOrderId 工单号,F_ComTitle 诉求标题,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
4484
                 var dtdc = DbHelperSQL.Query(" select " + top + " F_CreateTime 日期, F_WorkOrderId 工单号,F_ComTitle 诉求标题,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
4485
                  + "  dbo.GetDeptNames(F_MainDeptId ) 主办单位, "
4485
                  + "  dbo.GetDeptNames(F_MainDeptId ) 主办单位, "
4486
-                    + "  dbo.GetDeptNames(F_OtherDeptIds ) 协办单位, "
4486
+                   
4487
                     + " (select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and  F_WorkOrderId =wo.F_WorkOrderId order by F_Id desc) 办理结果, "
4487
                     + " (select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and  F_WorkOrderId =wo.F_WorkOrderId order by F_Id desc) 办理结果, "
4488
                     + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 是否满意 "
4488
                     + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 是否满意 "
4489
                     + " from T_Bus_WorkOrder wo WITH(NOLOCK) where 1=1 " + sql + orderby).Tables[0];
4489
                     + " from T_Bus_WorkOrder wo WITH(NOLOCK) where 1=1 " + sql + orderby).Tables[0];
4906
                 }
4906
                 }
4907
                 var dtdc = DbHelperSQL.Query(" select  F_CreateTime 日期, F_WorkOrderId 工单号,F_ComTitle 诉求标题,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
4907
                 var dtdc = DbHelperSQL.Query(" select  F_CreateTime 日期, F_WorkOrderId 工单号,F_ComTitle 诉求标题,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
4908
    + "  dbo.GetDeptNames(F_MainDeptId ) 主办单位, "
4908
    + "  dbo.GetDeptNames(F_MainDeptId ) 主办单位, "
4909
-                    + "  dbo.GetDeptNames(F_OtherDeptIds ) 协办单位, " + " (select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and  F_WorkOrderId =wo.F_WorkOrderId order by F_Id desc) 办理结果, "
4909
+                   + " (select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and  F_WorkOrderId =wo.F_WorkOrderId order by F_Id desc) 办理结果, "
4910
                    + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 是否满意 "
4910
                    + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 是否满意 "
4911
                    + " from T_Bus_WorkOrder wo WITH(NOLOCK)"+value  +" where 1=1 " + sql + orderby).Tables[0];
4911
                    + " from T_Bus_WorkOrder wo WITH(NOLOCK)"+value  +" where 1=1 " + sql + orderby).Tables[0];
4912
 
4912
 
6151
                 }
6151
                 }
6152
                 var dtdc = DbHelperSQL.Query(" select " + top + " F_CreateTime 日期, F_WorkOrderId 工单号,F_ComTitle 诉求标题,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
6152
                 var dtdc = DbHelperSQL.Query(" select " + top + " F_CreateTime 日期, F_WorkOrderId 工单号,F_ComTitle 诉求标题,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
6153
                    + "  dbo.GetDeptNames(F_MainDeptId ) 主办单位, "
6153
                    + "  dbo.GetDeptNames(F_MainDeptId ) 主办单位, "
6154
-                    + "  dbo.GetDeptNames(F_OtherDeptIds ) 协办单位, "
6154
+                 
6155
                    + " (select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and  F_WorkOrderId =wo.F_WorkOrderId order by F_Id desc) 办理结果, "
6155
                    + " (select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and  F_WorkOrderId =wo.F_WorkOrderId order by F_Id desc) 办理结果, "
6156
                    + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 是否满意 "
6156
                    + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 是否满意 "
6157
                    + " from T_Bus_WorkOrder wo WITH(NOLOCK)"+ value + " where 1=1 " + sql + orderby).Tables[0];
6157
                    + " from T_Bus_WorkOrder wo WITH(NOLOCK)"+ value + " where 1=1 " + sql + orderby).Tables[0];

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

31
               WordApp.Selection.ParagraphFormat.Alignment = Microsoft.Office.Interop.Word.WdParagraphAlignment.wdAlignParagraphCenter;
31
               WordApp.Selection.ParagraphFormat.Alignment = Microsoft.Office.Interop.Word.WdParagraphAlignment.wdAlignParagraphCenter;
32
               WordApp.Selection.TypeParagraph();//插入段落 
32
               WordApp.Selection.TypeParagraph();//插入段落 
33
               WordApp.Selection.ParagraphFormat.Alignment = Microsoft.Office.Interop.Word.WdParagraphAlignment.wdAlignParagraphLeft;
33
               WordApp.Selection.ParagraphFormat.Alignment = Microsoft.Office.Interop.Word.WdParagraphAlignment.wdAlignParagraphLeft;
34
-              WordApp.Selection.Font.Name = "小四";
35
               WordApp.Selection.Font.Size = 18f;
34
               WordApp.Selection.Font.Size = 18f;
36
               object missing = System.Reflection.Missing.Value;
35
               object missing = System.Reflection.Missing.Value;
37
               object WdLine2 = Microsoft.Office.Interop.Word.WdUnits.wdLine;//换一行;   
36
               object WdLine2 = Microsoft.Office.Interop.Word.WdUnits.wdLine;//换一行;