zhoufan vor 7 Jahren
Ursprung
Commit
b6a4f48986

+ 29 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -301,10 +301,38 @@ namespace CallCenterApi.Interface.Controllers.workorder
301 301
                     }
302 302
                     #endregion
303 303
 
304
+                    #region 办理过程
305
+                    string gcsql = "select *,dbo.GetUserName(F_CreateUser) as UserName "
306
+                                    + "from T_Bus_Operation where F_IsDelete=0 and F_WorkOrderId ='" + strworkorderid + "'";
307
+                    var gcdt = DbHelperSQL.Query(gcsql).Tables[0];
308
+                    gcdt.Columns.Add("File", typeof(object));
309
+                    gcdt.Columns.Add("FilePath", typeof(string));
310
+                    if (configfj != null || configly != null || config != null)
311
+                    {
312
+                        foreach (DataRow bldr in gcdt.Rows)
313
+                        {
314
+                            if (bldr["F_File"] != null && bldr["F_File"].ToString() != "" && configfj != null)
315
+                            {
316
+                                bldr["File"] = GetFileData(bldr["F_File"].ToString(), configfj.F_ParamValue);
317
+                            }
318
+
319
+                            if (bldr["F_LeaveRecordId"] != null && configly != null)
320
+                            {
321
+                                bldr["FilePath"] = GetLeavePath(bldr["F_LeaveRecordId"].ToString(), config.F_ParamValue);
322
+                            }
323
+                            else if (bldr["F_CallRecordId"] != null && config != null)
324
+                            {
325
+                                bldr["FilePath"] = GetCallPath(bldr["F_CallRecordId"].ToString(), config.F_ParamValue);
326
+                            }
327
+                        }
328
+                    }
329
+                    #endregion
330
+
304 331
                     var obj = new
305 332
                     {
306 333
                         data = dt,
307
-                        cbdata = cbdt
334
+                        cbdata = cbdt,
335
+                        gcdata = gcdt
308 336
                     };
309 337
                     return Success("获取成功", obj);
310 338
                 }