|
|
@@ -145,6 +145,26 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
145
|
145
|
string[] AgentArr = GetAgent().TrimStart('[').TrimEnd(']').Split(',');
|
|
146
|
146
|
string[] AverageTime = GetCallAverageTime(stime, endtime).TrimStart('[').TrimEnd(']').Split(',');
|
|
147
|
147
|
|
|
|
148
|
+
|
|
|
149
|
+
|
|
|
150
|
+ //string sqlCallIn = "";
|
|
|
151
|
+
|
|
|
152
|
+ //if (stime != "")
|
|
|
153
|
+ //{
|
|
|
154
|
+ // sqlCallIn += " and BeginTime>='" + endtime + "'";
|
|
|
155
|
+ //}
|
|
|
156
|
+ //if (endtime != "")
|
|
|
157
|
+ //{
|
|
|
158
|
+ // sqlCallIn += " and BeginTime<='" + endtime + "'";
|
|
|
159
|
+ //}
|
|
|
160
|
+ //var sqlCallOut = sqlCallIn.Replace("BeginTime", "TimeRingBack");
|
|
|
161
|
+
|
|
|
162
|
+ //var callInDt1 = DbHelperSQL.Query($"select userid,UserCode,CallState,CallType from T_Call_CallRecords where 1=1 and CallType=0 {sqlCallIn} ").Tables[0];
|
|
|
163
|
+ //var callInDt2 = DbHelperSQL.Query($"select userid,UserCode,CallState,CallType from T_Call_CallRecords where 1=1 and CallType=0 and CallState=0 {sqlCallIn} ").Tables[0];
|
|
|
164
|
+ //var callOutDt1 = DbHelperSQL.Query($"select CallerAgentID,count(CallID) as ct,SUM(PeriodTalking) as st from rep_ext_call_out where 1=1 {sqlCallOut} group by CallerAgentID ").Tables[0];
|
|
|
165
|
+ //var callOutDt2 = DbHelperSQL.Query($"select CallerAgentID,count(CallID) as ct,SUM(PeriodTalking) as st from rep_ext_call_out where 1=1 {sqlCallOut} group by CallerAgentID ").Tables[0];
|
|
|
166
|
+
|
|
|
167
|
+
|
|
148
|
168
|
for (int i = 0; i < AgentArr.Length; i++)
|
|
149
|
169
|
{
|
|
150
|
170
|
DataRow drNew = dtNew.NewRow();
|