瀏覽代碼

通话记录列表增加 是否创建工单

MicroWin10-1604\Administrator 8 年之前
父節點
當前提交
1331252f52

+ 9 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallrecordsController.cs

@@ -128,6 +128,8 @@ namespace CallCenterApi.Interface.Controllers.tel
128 128
 
129 129
             var config = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
130 130
             var users = new BLL.T_Sys_UserAccount().GetModelList("");
131
+
132
+            dt.Columns.Add("HasWorkOrder");
131 133
             foreach (DataRow dr in dt.Rows)
132 134
             {
133 135
                 string path = dr["FilePath"] != null ? dr["FilePath"].ToString() : "";
@@ -151,6 +153,13 @@ namespace CallCenterApi.Interface.Controllers.tel
151 153
                             dr["UserName"] = uu.F_UserName;
152 154
                     }
153 155
                 }
156
+                //增加一列  用于显示是否创建工单
157
+                var callid = dr["CallId"].ToString();
158
+                var count = new BLL.T_Wo_WorkOrder().GetModelList("CallID='" + callid + "'").Count();
159
+                string hasworkorder = "1";
160
+                if (count <= 0)
161
+                    hasworkorder = "0";
162
+                dr["HasWorkOrder"] = hasworkorder;
154 163
             }
155 164
 
156 165
             var obj = new