XAF禁止字段不可编辑:[ModelDefault("AllowEdit", "False")]
private int _FPlannedInventoryData;
[XafDisplayName("计划盘点数量"), Size(50)]
[ModelDefault("AllowEdit", "False")]
public int FPlannedInventoryData
{
get { return _FPlannedInventoryData; }
set { SetPropertyValue<int>(nameof(FPlannedInventoryData), ref _FPlannedInventoryData, value); }
}
原文:https://www.cnblogs.com/qy1234/p/12805786.html