【二开案例】移动BOS九宫格控件插件赋值及设置角标
//九宫格控件插件赋值及设置角标,示例: public override void AfterBindData(EventArgs e) { base.AfterBindData(e); //this.SetMobileList(); //this.SetMobileProxy(); //this.SetListView(); //this.SetGridList(); this.SetMetroView(); } private void SetMetroView() { var control = this.View.LayoutInfo.GetAppearance("FMetroView1"); if (control == null) return; List<GridItem> list = new List<GridItem>(); list.Add(new GridItem() { FKey = "yingwu", FIcon = "bas_CloudReport.webp", FCaption = new LocaleValue("鹦鹉"), ShowBadge = true, BadgeDefaultText = new LocaleValue("8"), BadgeBackColor = "134,186,235", BadgeType = 3 }); list.Add(new GridItem() { FKey = "xique", FIcon = "bas_ProcessReport.webp", FCaption = new LocaleValue("喜鹊") }); list.Add(new GridItem() { FKey = "wuya", FIcon = "bas_PeriodServcie.webp", FCaption = new LocaleValue("乌鸦") }); list.Add(new GridItem() { FKey = "yuanyang", FIcon = "bas_Set.webp", FCaption = new LocaleValue("鸳鸯") }); list.Add(new GridItem() { FKey = "yingwu2", FIcon = "bas_CloudReport.webp", FCaption = new LocaleValue("鹦鹉2") }); list.Add(new GridItem() { FKey = "xique2", FIcon = "bas_ProcessReport.webp", FCaption = new LocaleValue("喜鹊2") }); list.Add(new GridItem() { FKey = "wuya2", FIcon = "bas_PeriodServcie.webp", FCaption = new LocaleValue("乌鸦2") }); list.Add(new GridItem() { FKey = "yuanyang2", FIcon = "bas_Set.webp", FCaption = new LocaleValue("鸳鸯2") }); MetroView listView = this.View.GetControl<MetroView>("FMetroView1"); listView.SetItems(list); }
运行效果图:
【二开案例】移动BOS九宫格控件插件赋值及设置角标
//九宫格控件插件赋值及设置角标,示例:public override void AfterBindData(EventArgs e) { base.AfterBindData(e); ...
点击下载文档
本文2024-09-23 04:15:19发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-164125.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章