【二开插件】移动bos底部菜单属性设置代码示例

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-23浏览:1

【二开插件】移动bos底部菜单属性设置代码示例

```csharp 1、设置底部菜单背景色 1)移动单据列表底部菜单样式设置插件代码: JSON.JSONObject style = new JSON.JSONObject(); style["FApproval"] = "background-color:#EF0000;"; this.View.GetControl("FList").SetCustomPropertyValue("bottomMenuStyle", style); 2)移动表单底部菜单控件样式设置插件代码: JSON.JSONObject style = new JSON.JSONObject(); style["FB"] = "background-color:#EF0000;"; style["FB_a"] = "background-color:#00EF00;width:150px;"; //子菜单 this.View.GetControl("FTabMenuField").SetCustomPropertyValue("tabMenuStyle", style); 2、插件设置列表底部菜单 List tabMenuList = new List(); BaseTabMenu tabMenuApproval1 = new BaseTabMenu(); tabMenuApproval1.Id = "FApproval"; tabMenuApproval1.Key = "FApproval"; tabMenuApproval1.Value = "批量审批"; tabMenuApproval1.Type = "click"; //按钮类型,view = 菜单,click = 按钮 string value = BaseMenuManager.ParseToString(tabMenuList); this.View.GetControl("FList").SetCustomPropertyValue("bottomMenuValue", value); 3、插件设置底部菜单控件 List tabMenuList = new List(); BaseTabMenu tabMenuApproval = new BaseTabMenu(); tabMenuApproval.Id = "FApproval"; tabMenuApproval.Key = "FApproval"; tabMenuApproval.Value = "任务处理"; tabMenuApproval.Type = "view"; //按钮类型,view = 菜单,click = 按钮 tabMenuApproval.sub_button = new List(); BaseTabMenu tabMenuForward = new BaseTabMenu(); tabMenuForward.Id = "FForward"; tabMenuForward.Key = "FForward"; tabMenuForward.Value = "转发"; tabMenuForward.Type = "click"; //按钮类型,view = 菜单,click = 按钮 tabMenuApproval.sub_button.Add(tabMenuForward); tabMenuList.Add(tabMenuApproval); string value = BaseMenuManager.ParseToString(tabMenuList); this.View.GetControl("FTabMenuField").SetCustomPropertyValue("value", value); ```

【二开插件】移动bos底部菜单属性设置代码示例

```csharp1、设置底部菜单背景色1)移动单据列表底部菜单样式设置插件代码:JSON.JSONObject style = new JSON.JSONObject();style["FA...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息