【二开案例】移动BOS移动列表赋值及行格式化
bos设计器:
插件代码:
public override void AfterBindData(EventArgs e) { base.AfterBindData(e); this.SetMobileList(); //this.SetMobileProxy(); //this.SetListView(); ////this.SetGridList(); //this.SetMetroView(); } private void SetMobileList() { var control = this.View.LayoutInfo.GetAppearance("FMobileList"); if (control == null) return; this.Model.DeleteEntryData("FMobileList"); for (int i = 0; i < 4; i++) { int rowIndex = this.Model.GetEntryRowCount("FMobileList"); this.Model.CreateNewEntryRow("FMobileList"); this.Model.SetValue("FName", "Name" + rowIndex, rowIndex); } List<MobileFormatCondition> format = new List<MobileFormatCondition>(); format.Add(new MobileFormatCondition() { Key = "FNumber", Value = "db11", ForeColor = "red", Row = 1 }); this.View.GetControl<MobileListViewControl>("FMobileList").setFormat(format); //单据体支持按行设置控件的自定义属性 //this.View.GetControl<MobileListViewControl>("FMobileList").SetCustomPropertyValue("FNumber", "value", "db1", 1); //this.View.GetControl<MobileListViewControl>("FMobileList").SetCustomPropertyValue("FNumber", "value", "db2", 2); this.View.UpdateView("FMobileList"); }
运行效果图:
【二开案例】移动BOS移动列表赋值及行格式化
bos设计器:插件代码:public override void AfterBindData(EventArgs e) { base.AfterBindData(e); this.Se...
点击下载文档
本文2024-09-23 04:15:19发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-164124.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章