目录
1、简单帐表/动态表单几个主要事件
//初始化 public override void Initialize() //构建动态列 public override BOS.Core.Report.ReportHeader GetReportHeaders(BOS.Core.Report.IRptParams filter) //构建报表标题 public override BOS.Core.Report.ReportTitles GetReportTitles(BOS.Core.Report.IRptParams filter) //创建报表临时表和SQL(将查询的数据插入到平台提供的临时表) public override void BuilderReportSqlAndTempTable(BOS.Core.Report.IRptParams filter, string tableName) //设置汇总信息 public override List<SummaryField> GetSummaryColumnInfo(IRptParams filter) //关闭报表 public override void CloseReport() //表体数据填充前 protected override void FillBomChildData() //简单帐表的表单插件 过滤条件参数--this.SysReportModel.FilterParameter
2.单据插件事件
//单据关闭前 public override void BeforeClosed(BeforeClosedEventArgs e) //保存后 public override void AfterSave(AfterSaveEventArgs e) //表体菜单单击 public override void EntryBarItemClick(BarItemClickEventArgs e) //表头菜单单击 public override void BarItemClick(BarItemClickEventArgs e) //下推/选单,自动填充目标字段值完毕 public override void OnAfterCreateLink(CreateLinkEventArgs e) //字段数据更新时 public override void DataChanged(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.DataChangedEventArgs e) { base.DataChanged(e); if (e.Key.Equals("字段名") || e.Key.Equals("字段名") || e.Key.Equals("字段名")) //检测对应字段名的值是否发生变化 { //执行逻辑代码 } //表头按钮点击事件 public override void AfterBarItemClick(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.AfterBarItemClickEventArgs e) { base.AfterBarItemClick(e); if(e.BarItemKey.EqualsIgnoreCase("tbGZHS") { //执行逻辑代码 } } //表体按钮点击事件 public override void AfterEntryBarItemClick(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.AfterBarItemClickEventArgs e) { base.AfterEntryBarItemClick(e); if (e.BarItemKey.EqualsIgnoreCase("填入按键标识"))//判断是否点击到对应的按键 }
3.列表插件事件
//列表双击 public override void ListRowDoubleClick(ListRowDoubleClickArgs e)