| | |
| | | ); |
| | | if (ld1 == true) |
| | | { |
| | | |
| | | btnEsc.Visibility = btnSave.Visibility = btnLoad.Visibility = BarItemVisibility.Always; |
| | | btnAdd.Visibility = BarItemVisibility.Always; |
| | | _enabledList.Add(item.Name); |
| | |
| | | continue; |
| | | } |
| | | } |
| | | ///具有联动关系的按钮(提交检验), |
| | | if (item.Caption == "提交检验") |
| | | { |
| | | bool ld1 = dt.AsEnumerable().Any(row => row.Field<string>("name") == "提交检验" |
| | | ); |
| | | if (ld1 == true) |
| | | { |
| | | btnJianYan.Visibility = btnFjianYan.Visibility = btnLoad.Visibility = BarItemVisibility.Always; |
| | | btnJianYan.Visibility = BarItemVisibility.Always; |
| | | _enabledList.Add(item.Name); |
| | | continue; |
| | | } |
| | | } |
| | | //按钮是否在权限表中 |
| | | bool exists = dt.AsEnumerable().Any(row => row.Field<string>("name") == item.Caption); |
| | | if (exists == true) |