Browse Source

工单类型仪器和试剂 第二列有重名时bug修改

machenyang 8 years ago
parent
commit
e1347c32ec

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/GDLXSJController.cs

@@ -177,7 +177,7 @@ namespace CallCenterApi.Interface.Controllers.report
177 177
             {
178 178
                 string colname = modelList[i].F_CategoryName;
179 179
                 if (dtNew.Columns.Contains(colname))
180
-                    colname += "_1";
180
+                    colname += "_" + i;
181 181
                 dtNew.Columns.Add(new DataColumn(colname));
182 182
                 cateid[i] = modelList[i].F_CategoryId;
183 183
             }

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/GDLXYQController.cs

@@ -180,7 +180,7 @@ namespace CallCenterApi.Interface.Controllers.report
180 180
             {
181 181
                 string colname = modelList[i].F_CategoryName;
182 182
                 if (dtNew.Columns.Contains(colname))
183
-                    colname += "_1";
183
+                    colname += "_" + i;
184 184
                 dtNew.Columns.Add(new DataColumn(colname));
185 185
                 cateid[i] = modelList[i].F_CategoryId;
186 186
             }