控制字段是否显示原创
金蝶云社区-小问号和他的朋友们
小问号和他的朋友们
83人赞赏了该文章 980次浏览 未经作者许可,禁止转载编辑于2020年12月14日 08:21:11

//控件正常显示,但是控件的内容不再改变

Field field = this.View.Model.BusinessInfo.GetField("FBranchNote");

this.View.StyleManager.SetEnabled(field, "FBranchNote", false);

this.View.UpdateView("FBranchNote");

横向对比

//点击按钮,备注字段锁定,变成灰色

this.View.GetControl("FNote").Enabled = false;

赞 83