MicroWin10-1604\Administrator лет назад: 7
Родитель
Сommit
3b929a0699

+ 8 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallOutScreenController.cs

@@ -72,9 +72,9 @@ namespace CallCenterApi.Interface.Controllers.tel
72 72
                         }
73 73
                         int recordCount = 0;
74 74
                         dt = BLL.PagerBLL.GetListPager(
75
-                            "T_Call_CallRecords left join T_Cus_CustomerBase on CallNumber=F_Telephone",
75
+                            "T_Call_CallRecords",
76 76
                             "CallRecordsId",
77
-                            "T_Call_CallRecords.*,T_Cus_CustomerBase.F_CustomerName",
77
+                            "*",
78 78
                             sql,
79 79
                             "ORDER BY CallRecordsId desc",
80 80
                             pagesize,
@@ -82,6 +82,12 @@ namespace CallCenterApi.Interface.Controllers.tel
82 82
                             true,
83 83
                             out recordCount);
84 84
 
85
+                        dt.Columns.Add("F_CustomerName");
86
+                        foreach (DataRow dr in dt.Rows)
87
+                        {
88
+                            dr["F_CustomerName"] = new BLL.T_Cus_CustomerBase().GetModel(dr["CallNumber"].ToString()) == null ? "" : new BLL.T_Cus_CustomerBase().GetModel(dr["CallNumber"].ToString()).F_CustomerName;
89
+                        }
90
+
85 91
                         var obj = new
86 92
                         {
87 93
                             state = "success",