param = new Kingdee.BOS.Core.Bill.
BillShowParameter();
param.FormId = "
BD_MATERIAL";//【物料】基础资料 业务对象标识,此处基础资料、单据类型都可以
param.OpenStyle.ShowType = Kingdee.BOS.Core.DynamicForm.ShowType.MainNewTabPage;//打开方式,到主界面一个新的页签
param.ParentPageId = this.View.PageId;//指定ParentPageId,可以实现打开的界面直接拿到父界面的数据 如this.View.ParentFormView.Model.DataObject
this.View.ShowForm(param);
}
else if (e.Key.EndsWith("List", StringComparison.OrdinalIgnoreCase))
{
Kingdee.BOS.Core.List.
ListShowParameter param = new Kingdee.BOS.Core.List.
ListShowParameter();
param.FormId = "
BD_MATERIAL";// 【物料】基础资料 业务对象标识,此处基础资料、单据类型都可以
this.View.ShowForm(param);
}
else if (e.Key.EndsWith("DynamicForm", StringComparison.OrdinalIgnoreCase))
{
Kingdee.BOS.Core.DynamicForm.DynamicFormShowParameter param = new Kingdee.BOS.Core.DynamicForm.
DynamicFormShowParameter();
param.FormId = "
BD_QUERYAUXMATERIAL";//【查询辅助属性启用的物料】动态表单 业务对象标识,此处动态表单、基础资料、单据类型的都可以
this.View.ShowForm(param);
}
else if (e.Key.EndsWith("SysReport", StringComparison.OrdinalIgnoreCase))
{
Kingdee.BOS.Core.Report.
SysReportShowParameter param = new Kingdee.BOS.Core.Report.
SysReportShowParameter();
param.FormId = "
GL_RPT_GeneralLedger";//简单账表 总分类账 此处简单账表、树形账表、分页账表、透视表类型的该都是可以的
this.View.ShowForm(param);
}
else if (e.Key.EndsWith("SQLReport", StringComparison.OrdinalIgnoreCase))
{
Kingdee.BOS.Core.Report.
SQLReportShowParameter param = new Kingdee.BOS.Core.Report.
SQLReportShowParameter();
param.FormId = "
BOS_SQLReport";
this.View.ShowForm(param);
}
}
}
}
K3/Cloud点按钮打开单据,列表,动态表单,简单账表和直接Sql报表示例
标签:简单 bpa formview lists 指定 分享图片 nes std open