四、K3 Cloud 开发插件《K3 Cloud事件、方法、函数》
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(DataChangedEventArgs e)
3.列表插件事件
//列表双击
public override void ListRowDoubleClick(ListRowDoubleClickArgs e)