动态加页签
public class dt_demo: AbstractDynamicFormPlugIn
{
public override void AfterBindData(EventArgs e)
{
base.AfterBindData(e);
TabControlAppearance tcAppe = this.View.LayoutInfo.Appearances.First(p => p.Key == "F_BDI_Tab") as TabControlAppearance;//F_BDI_Tab页签控件标识
TabPageAppearance tpItem = new TabPageAppearance();
tpItem.Key = "tabItemKey";
tpItem.Container = "F_BDI_Tab";
tcAppe.Add(tpItem);
this.View.UpdateView("F_BDI_Tab");
//var ctl = this.View.GetControl("tabItemKey");
var tabControl = this.View.GetControl<TabControl>("F_BDI_Tab");// F_BDI_Tab是页签控件的标识
//// 【注意】控件名要大写!控件名要大写!控件名要大写!
tabControl.AftInvokeControlMethod("SetTitle", "tabItemKey".ToUpper(), "明细信息-666", "明细信息-888");// tabItemKey是页签的标识
}
}
配合增加字段完整实例比较好
动态加页签
本文2024-09-16 18:32:22发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-22801.html