|
|
@@ -158,7 +158,7 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
158
|
158
|
dt = BLL.PagerBLL.GetListPager(
|
|
159
|
159
|
"T_Call_CallRecords WITH(NOLOCK)",
|
|
160
|
160
|
"CallRecordsId",
|
|
161
|
|
- "*,dbo.GetUserName(UserCode) as UserName",
|
|
|
161
|
+ "*,dbo.GetUserName(UserCode) as UserName,dbo.GetWorkOrderIdByCallRecordId(CallRecordsId) as WorkOrderId,dbo.GetDictionaryName(F_CallInType) as TypeName",
|
|
162
|
162
|
sql,
|
|
163
|
163
|
"ORDER BY CallRecordsId desc",
|
|
164
|
164
|
pagesize,
|
|
|
@@ -167,10 +167,7 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
167
|
167
|
out recordCount);
|
|
168
|
168
|
|
|
169
|
169
|
var config = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
|
|
170
|
|
- // var usercodes= (from r in dt.AsEnumerable() select r.Field<string>("UserCode")).ToList<string>().Distinct();
|
|
171
|
|
- // var users = new BLL.T_Sys_UserAccount().GetModelList(" F_UserCode in ('" + string.Join("','", usercodes) + "')");
|
|
172
|
|
- dt.Columns.Add("TypeName", typeof(string));
|
|
173
|
|
- dt.Columns.Add("WorkOrderId", typeof(string));
|
|
|
170
|
+
|
|
174
|
171
|
foreach (DataRow dr in dt.Rows)
|
|
175
|
172
|
{
|
|
176
|
173
|
string path = dr["FilePath"] != null ? dr["FilePath"].ToString() : "";
|
|
|
@@ -185,25 +182,8 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
185
|
182
|
string lujing = path.Substring(path.IndexOf(':') + 1).Replace('\\', '/');
|
|
186
|
183
|
string wlpath = ym + lujing;
|
|
187
|
184
|
|
|
188
|
|
- //if (!CommonHelper.FileIsExist(wlpath))
|
|
189
|
|
- //{
|
|
190
|
|
- // wlpath = lujing;
|
|
191
|
|
- //}
|
|
192
|
185
|
dr["FilePath"] = wlpath;
|
|
193
|
186
|
}
|
|
194
|
|
-
|
|
195
|
|
-
|
|
196
|
|
- if (dr["F_CallInType"] != null && dr["F_CallInType"].ToString() != "")
|
|
197
|
|
- {
|
|
198
|
|
- int tid = Int32.Parse(dr["F_CallInType"].ToString());
|
|
199
|
|
- var tn = new BLL.T_Sys_DictionaryValue().GetModel(tid);
|
|
200
|
|
- if (tn != null)
|
|
201
|
|
- {
|
|
202
|
|
- dr["TypeName"] = tn.F_Value;
|
|
203
|
|
- }
|
|
204
|
|
- }
|
|
205
|
|
-
|
|
206
|
|
- dr["WorkOrderId"] = DB.DbHelperSQL.GetSingle(" select top 1 F_WorkOrderId from T_Bus_WorkOrder WITH(NOLOCK) where F_CallRecordId='" + dr["CallRecordsId"].ToString() + "' and F_IsDelete=0 ");
|
|
207
|
187
|
}
|
|
208
|
188
|
|
|
209
|
189
|
var obj = new
|