parent
23ca02d107
commit
cdd98f4b14
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue