修正RecipeFormatBuilder中未将只读列标记为ReadOnly的问题。

This commit is contained in:
Liang Su 2023-05-26 17:27:31 +08:00
parent 809f69f2f3
commit ce1a295aa3
1 changed files with 3 additions and 0 deletions

View File

@ -621,7 +621,10 @@ namespace MECF.Framework.UI.Client.CenterViews.Editors.Recipe
// 单元格是否可编辑?
var isCellEditable = step.Attributes["IsColumnEditable"]?.Value;
if (string.IsNullOrEmpty(isCellEditable) == false && isCellEditable.ToLower() == "false")
{
col.StringCellEditingTemplate = "";
col.IsReadOnly = true;
}
SetPermission(col, menuPermission); // 设置本列权限
colExpander.ChildColumns.Add(col); // 将本列追加到Expander中