Ver Código Fonte

直接用isexitworkorder判断是否存在工单

MicroWin10-1604\Administrator 8 anos atrás
pai
commit
0de508c32d

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

129
             var config = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
129
             var config = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
130
             var users = new BLL.T_Sys_UserAccount().GetModelList("");
130
             var users = new BLL.T_Sys_UserAccount().GetModelList("");
131
 
131
 
132
-            dt.Columns.Add("HasWorkOrder");
133
             foreach (DataRow dr in dt.Rows)
132
             foreach (DataRow dr in dt.Rows)
134
             {
133
             {
135
                 string path = dr["FilePath"] != null ? dr["FilePath"].ToString() : "";
134
                 string path = dr["FilePath"] != null ? dr["FilePath"].ToString() : "";
153
                             dr["UserName"] = uu.F_UserName;
152
                             dr["UserName"] = uu.F_UserName;
154
                     }
153
                     }
155
                 }
154
                 }
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;
163
             }
155
             }
164
 
156
 
165
             var obj = new
157
             var obj = new