|
|
@@ -161,15 +161,35 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
161
|
161
|
}
|
|
162
|
162
|
if (isdc > 0)
|
|
163
|
163
|
{
|
|
164
|
|
- NPOIHelper npoi = new NPOIHelper();
|
|
165
|
|
- if (npoi.TotalTel ("话务报表", dataTable) == "")
|
|
|
164
|
+ if (isdc==2)
|
|
166
|
165
|
{
|
|
167
|
|
- return Success("导出成功");
|
|
|
166
|
+ NPOIHelper npoi = new NPOIHelper();
|
|
|
167
|
+ dataTable = dataTable.DefaultView.ToTable(false, new string[] { "时间", "转坐席总量", "呼入接通量",
|
|
|
168
|
+ "接通率"
|
|
|
169
|
+ });
|
|
|
170
|
+ string[] cols = { "时间", "呼入总量", "接听量", "接通率" };
|
|
|
171
|
+ if (npoi.ExportToExcel("话务报表", dataTable, cols) == "")
|
|
|
172
|
+ {
|
|
|
173
|
+ return Success("导出成功");
|
|
|
174
|
+ }
|
|
|
175
|
+ else
|
|
|
176
|
+ {
|
|
|
177
|
+ return Error("导出失败");
|
|
|
178
|
+ }
|
|
168
|
179
|
}
|
|
169
|
180
|
else
|
|
170
|
181
|
{
|
|
171
|
|
- return Error("导出失败");
|
|
|
182
|
+ NPOIHelper npoi = new NPOIHelper();
|
|
|
183
|
+ if (npoi.TotalTel("话务报表", dataTable) == "")
|
|
|
184
|
+ {
|
|
|
185
|
+ return Success("导出成功");
|
|
|
186
|
+ }
|
|
|
187
|
+ else
|
|
|
188
|
+ {
|
|
|
189
|
+ return Error("导出失败");
|
|
|
190
|
+ }
|
|
172
|
191
|
}
|
|
|
192
|
+
|
|
173
|
193
|
}
|
|
174
|
194
|
else
|
|
175
|
195
|
return Success("获取成功", dataTable);
|