|
|
@@ -85,7 +85,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
85
|
85
|
|
|
86
|
86
|
string sqltimeCallRecords = "";
|
|
87
|
87
|
string time = "";
|
|
88
|
|
- if (stime != null && endtime.Trim() != "")
|
|
|
88
|
+ if (stime != null && stime.Trim() != "")
|
|
89
|
89
|
{
|
|
90
|
90
|
time += " and CONVERT(varchar , BeginTime, 120)>=CONVERT(varchar , '" + stime.Trim() + " 00:00:01', 120) ";
|
|
91
|
91
|
}
|
|
|
@@ -103,7 +103,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
103
|
103
|
int userid = Convert.ToInt32(dtable.Rows[i]["F_UserId"].ToString());
|
|
104
|
104
|
List<string> bodyitem = new List<string>();
|
|
105
|
105
|
string[] UNDN = getRoleNameAndUserName(userid);
|
|
106
|
|
- bodyitem.Add(UNDN[1]);
|
|
|
106
|
+ bodyitem.Add(UNDN[2]);
|
|
107
|
107
|
DataTable dt = new BLL.T_Call_CallRecords().GetList("UserId='" + userid + "'" + time).Tables[0];
|
|
108
|
108
|
//1非常满意、2基本满意、3不满意、4未评价
|
|
109
|
109
|
for (int j = 1; j <= 4; j++)
|
|
|
@@ -111,15 +111,15 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
111
|
111
|
string[] cp = getMYDCountAndPercent(dt, j);
|
|
112
|
112
|
bodyitem.AddRange(cp);
|
|
113
|
113
|
}
|
|
114
|
|
- if (body.ContainsKey(UNDN[0]))
|
|
|
114
|
+ if (body.ContainsKey(UNDN[1]))
|
|
115
|
115
|
{
|
|
116
|
|
- body[UNDN[0]].Add(bodyitem);
|
|
|
116
|
+ body[UNDN[1]].Add(bodyitem);
|
|
117
|
117
|
}
|
|
118
|
118
|
else
|
|
119
|
119
|
{
|
|
120
|
120
|
List<List<string>> bodylist = new List<List<string>>();
|
|
121
|
121
|
bodylist.Add(bodyitem);
|
|
122
|
|
- body.Add(UNDN[0], bodylist);
|
|
|
122
|
+ body.Add(UNDN[1], bodylist);
|
|
123
|
123
|
}
|
|
124
|
124
|
}
|
|
125
|
125
|
foreach (string key in body.Keys)
|
|
|
@@ -151,7 +151,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
151
|
151
|
private string[] getRoleNameAndUserName(int userid)
|
|
152
|
152
|
{
|
|
153
|
153
|
var user = new BLL.T_Sys_UserAccount().GetModel(userid);
|
|
154
|
|
- string[] resarr = new string[2];
|
|
|
154
|
+ string[] resarr = new string[3];
|
|
155
|
155
|
if (user != null)
|
|
156
|
156
|
{
|
|
157
|
157
|
var role = new BLL.T_Sys_RoleInfo().GetModel(user.F_RoleId);
|
|
|
@@ -159,7 +159,9 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
159
|
159
|
{
|
|
160
|
160
|
resarr[0] = role.F_RoleName;
|
|
161
|
161
|
}
|
|
162
|
|
- resarr[1] = user.F_UserName;
|
|
|
162
|
+ resarr[1] = user.F_UserCode;
|
|
|
163
|
+ //姓名会重复 但后面要显示姓名
|
|
|
164
|
+ resarr[2] = user.F_UserName;
|
|
163
|
165
|
}
|
|
164
|
166
|
return resarr;
|
|
165
|
167
|
}
|