|
|
@@ -89,13 +89,15 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
89
|
89
|
true,
|
|
90
|
90
|
out recordCount);
|
|
91
|
91
|
|
|
92
|
|
- dt.Columns.Add("CusName");
|
|
|
92
|
+ //dt.Columns.Add("CusName");
|
|
|
93
|
+ dt.Columns.Add("MYDs");
|
|
93
|
94
|
|
|
94
|
95
|
var config = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
|
|
95
|
96
|
var users = new BLL.T_Sys_UserAccount().GetModelList("");
|
|
96
|
97
|
|
|
97
|
98
|
foreach (DataRow dr in dt.Rows)
|
|
98
|
99
|
{
|
|
|
100
|
+ #region 录音路径
|
|
99
|
101
|
string path = dr["FilePath"] != null ? dr["FilePath"].ToString() : "";
|
|
100
|
102
|
if (path != "" && config != null && !string.IsNullOrEmpty(config.F_ParamValue))
|
|
101
|
103
|
{
|
|
|
@@ -106,6 +108,8 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
106
|
108
|
}
|
|
107
|
109
|
dr["FilePath"] = ym + path.Substring(path.IndexOf(':') + 1).Replace('\\', '/');
|
|
108
|
110
|
}
|
|
|
111
|
+ #endregion
|
|
|
112
|
+ #region 坐席姓名
|
|
109
|
113
|
string ucode = dr["UserCode"] != null ? dr["UserCode"].ToString() : "";
|
|
110
|
114
|
string uname = dr["UserName"] != null ? dr["UserName"].ToString() : "";
|
|
111
|
115
|
if (ucode != "")
|
|
|
@@ -118,7 +122,33 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
118
|
122
|
}
|
|
119
|
123
|
}
|
|
120
|
124
|
|
|
121
|
|
- dr["CusName"] = new BLL.T_Cus_CustomerBase().GetModelList("F_Telephone='" + dr["CallNumber"] + "' and F_DeleteFlag=0").FirstOrDefault() == null ? "" : new BLL.T_Cus_CustomerBase().GetModelList("F_Telephone='" + dr["CallNumber"] + "'").FirstOrDefault().F_CustomerName;
|
|
|
125
|
+ //dr["CusName"] = new BLL.T_Cus_CustomerBase().GetModelList("F_Telephone='" + dr["CallNumber"] + "' and F_DeleteFlag=0").FirstOrDefault() == null ? "" : new BLL.T_Cus_CustomerBase().GetModelList("F_Telephone='" + dr["CallNumber"] + "'").FirstOrDefault().F_CustomerName;
|
|
|
126
|
+ #endregion
|
|
|
127
|
+ #region 满意度评价
|
|
|
128
|
+ if (dr["CallState"].ToString() == "1")
|
|
|
129
|
+ {
|
|
|
130
|
+ if (dr["MYD"] != null)
|
|
|
131
|
+ {
|
|
|
132
|
+ switch (dr["MYD"].ToString())
|
|
|
133
|
+ {
|
|
|
134
|
+ case "1":
|
|
|
135
|
+ dr["MYDs"] = "非常满意";
|
|
|
136
|
+ break;
|
|
|
137
|
+ case "2":
|
|
|
138
|
+ dr["MYDs"] = "满意";
|
|
|
139
|
+ break;
|
|
|
140
|
+ case "3":
|
|
|
141
|
+ dr["MYDs"] = "不满意";
|
|
|
142
|
+ break;
|
|
|
143
|
+ default:
|
|
|
144
|
+ dr["MYDs"] = "未评价";
|
|
|
145
|
+ break;
|
|
|
146
|
+ }
|
|
|
147
|
+ }
|
|
|
148
|
+ else
|
|
|
149
|
+ dr["MYDs"] = "未评价";
|
|
|
150
|
+ }
|
|
|
151
|
+ #endregion
|
|
122
|
152
|
}
|
|
123
|
153
|
|
|
124
|
154
|
var obj = new
|
|
|
@@ -205,7 +235,7 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
205
|
235
|
private string[] col()
|
|
206
|
236
|
{
|
|
207
|
237
|
string[] ccc = {
|
|
208
|
|
- "电话号码","呼叫方式","接通状态","呼叫开始时间","接通时间","挂机时间","坐席工号","坐席姓名"
|
|
|
238
|
+ "电话号码","呼叫方式","接通状态","呼叫开始时间","接通时间","挂机时间","坐席工号","坐席姓名","满意度"
|
|
209
|
239
|
// "客户姓名","电话号码","录音","呼叫方向","处理方式","部门","呼叫状态","坐席工号","坐席姓名",
|
|
210
|
240
|
//"开始时间","通话开始时间","通话结束时间","通话时长"
|
|
211
|
241
|
};
|