|
|
@@ -1467,6 +1467,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1467
|
1467
|
string strworkid = HttpUtility.UrlDecode(RequestString.GetQueryString("workid"));
|
|
1468
|
1468
|
string strusercode = HttpUtility.UrlDecode(RequestString.GetQueryString("usercode"));
|
|
1469
|
1469
|
string strddusercode = HttpUtility.UrlDecode(RequestString.GetQueryString("ddusercode"));//调度员
|
|
|
1470
|
+ string visituser= HttpUtility.UrlDecode(RequestString.GetQueryString("visituser"));//回访人
|
|
1470
|
1471
|
string order = "ORDER BY F_CreateTime DESC";
|
|
1471
|
1472
|
|
|
1472
|
1473
|
int source = RequestString.GetInt("source", 0);
|
|
|
@@ -1616,6 +1617,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1616
|
1617
|
{
|
|
1617
|
1618
|
sql += " and F_CreateTime<='" + visitstrendtime + "' ";
|
|
1618
|
1619
|
}
|
|
|
1620
|
+ if (visituser.Trim() != "" && visituser != "undefined")
|
|
|
1621
|
+ {
|
|
|
1622
|
+ sql += " and F_CreateUser='" + visituser + "'";
|
|
|
1623
|
+ }
|
|
1619
|
1624
|
if (User.F_RoleCode != "GLY" && User.F_RoleCode != "DDZG" && User.F_RoleCode != "DBZY" && User.F_RoleCode != "SPZ" && User.F_RoleCode != "SPZJZ")
|
|
1620
|
1625
|
{
|
|
1621
|
1626
|
sql += " and F_CreateUser='" + User.F_UserCode + "')";
|
|
|
@@ -8638,11 +8643,32 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
8638
|
8643
|
string hfsql = "select *,dbo.GetUserName(F_CreateUser) as UserName from T_Bus_VisitResult WITH(NOLOCK) where F_IsDelete=0 and F_WorkOrderId ='" + strworkorderid + "' order by F_CreateTime ";
|
|
8639
|
8644
|
var hfdt = DbHelperSQL.Query(hfsql).Tables[0];
|
|
8640
|
8645
|
hfdt.Columns.Add("FilePath", typeof(string));
|
|
|
8646
|
+ hfdt.Columns.Add("F_Phone", typeof(string));
|
|
8641
|
8647
|
foreach (DataRow bldr in hfdt.Rows)
|
|
8642
|
8648
|
{
|
|
8643
|
8649
|
if (bldr["F_CallRecordId"] != null && config != null)
|
|
8644
|
8650
|
{
|
|
8645
|
|
- bldr["FilePath"] = GetCallPath(bldr["F_CallRecordId"].ToString(), config.F_ParamValue);
|
|
|
8651
|
+ try
|
|
|
8652
|
+ {
|
|
|
8653
|
+ var luyin = new BLL.T_Call_CallRecords().GetModel(int.Parse(bldr["F_CallRecordId"].ToString()));
|
|
|
8654
|
+ if (luyin != null)
|
|
|
8655
|
+ {
|
|
|
8656
|
+ if (!string.IsNullOrEmpty(luyin.FilePath))
|
|
|
8657
|
+ {
|
|
|
8658
|
+ var ym = config.F_ParamValue;
|
|
|
8659
|
+ ym = ym.Substring(0, ym.Length - 1);
|
|
|
8660
|
+ string lujing = luyin.FilePath.Substring(luyin.FilePath.IndexOf(':') + 1).Replace('\\', '/');
|
|
|
8661
|
+ bldr["FilePath"] = ym + lujing;
|
|
|
8662
|
+ }
|
|
|
8663
|
+ bldr["F_Phone"] = luyin.CallNumber;
|
|
|
8664
|
+ }
|
|
|
8665
|
+ }
|
|
|
8666
|
+ catch
|
|
|
8667
|
+ {
|
|
|
8668
|
+
|
|
|
8669
|
+ }
|
|
|
8670
|
+
|
|
|
8671
|
+
|
|
8646
|
8672
|
}
|
|
8647
|
8673
|
}
|
|
8648
|
8674
|
return Success("获取成功", hfdt);
|
|
|
@@ -20665,6 +20691,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
20665
|
20691
|
|
|
20666
|
20692
|
return path;
|
|
20667
|
20693
|
}
|
|
|
20694
|
+
|
|
20668
|
20695
|
|
|
20669
|
20696
|
public ActionResult Uploads(string ids)
|
|
20670
|
20697
|
{
|