瀏覽代碼

成本excel ++

yuanrf 2 月之前
父節點
當前提交
9f625ce754
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      OASystem/OASystem.Api/Controllers/GroupsController.cs

+ 4 - 1
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -17923,7 +17923,10 @@ FROM
 
             foreach (var item in dataSourceKeys)
             {
-                var find = dto.titleModel.FirstOrDefault(x => x.label.Replace(" ", "").Replace("/", "") == item);
+                Func<TitleModel, bool> expr = x => x.label.Replace(" ", "").Replace("/", "") == item 
+                || x.label.Replace(" ", "").Replace("/", "").ToUpper() == item.ToUpper();
+                
+                var find = dto.titleModel.FirstOrDefault(expr);
                 if (find != null)
                 {
                     designer.SetDataSource(item, find.text);