[UI.Client]

加载Recipe编辑器时自动隐藏StepUid列。
This commit is contained in:
Liang Su 2023-05-30 17:05:19 +08:00
parent 23ca02d107
commit cdd98f4b14
1 changed files with 7 additions and 1 deletions

View File

@ -321,6 +321,7 @@ namespace MECF.Framework.UI.Client.RecipeEditorLib.RecipeModel
StringHeaderTemplate = "ParamTemplate", StringHeaderTemplate = "ParamTemplate",
IsReadOnly = true, IsReadOnly = true,
IsEnable = defaultCellEnable, IsEnable = defaultCellEnable,
Visibility = Visibility.Collapsed
}; };
} }
else else
@ -636,9 +637,14 @@ namespace MECF.Framework.UI.Client.RecipeEditorLib.RecipeModel
// 单元格是否可编辑? // 单元格是否可编辑?
var isCellEditable = step.Attributes["IsColumnEditable"]?.Value; var isCellEditable = step.Attributes["IsColumnEditable"]?.Value;
if (string.IsNullOrEmpty(isCellEditable) == false && isCellEditable.ToLower() == "false") if (string.IsNullOrEmpty(isCellEditable) == false && isCellEditable.ToLower() == "false")
{
col.IsEditable = false;
col.StringCellEditingTemplate = ""; col.StringCellEditingTemplate = "";
}
if(col.ControlName != "StepUid")
SetPermission(col, menuPermission); // 设置本列权限
SetPermission(col, menuPermission); // 设置本列权限
colExpander.ChildColumns.Add(col); // 将本列追加到Expander中 colExpander.ChildColumns.Add(col); // 将本列追加到Expander中
columns.Add(col); columns.Add(col);
} }