|
|
@@ -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
|
|