金蝶单据二次开发手册: 在构造报表列头的方法中加入: m_Header.AddColumn("FSum", "FSumFlag", false, Enu_ReportHeader_ColType.ColTypeAmount); m_FormatConditions.Add("FSumFlag", FormatConditionEnum.Equal, 1, ColorLib.TotalRow, true); 需要在自己的报表取数中,加入FSumFlag字段,合计行值为1,其它值为0。 Q: 如何屏蔽报表上的过滤、选择报表按钮和菜单? A: 如以下代码,在Show里加入一个OnBarInitialize事件。在事件的处理函数中进行屏蔽处理。 public void Show(ReportViewInterface oReportViewInterface) { m_ReportViewInterface = oReportViewInterface; m_ReportViewInterface.OnBarInitialize += new EventHandler(m_ReportViewInterface_OnBarInitialize); return; } void m_ReportViewInterface_OnBarInitialize(object sender, EventArgs e) { m_ReportViewInterface.SetBarItemProperty("mnuViewFilter", Kingdee.K3.BOS.PlugInModel.Bar.Enu_BarItemProperty.Visible, false); m_ReportViewInterface.SetBarItemProperty("mnuViewSelectReport", Kingdee.K3.BOS.PlugInModel.Bar.Enu_BarItemProperty.Visible, false); }
2023-05-27 12:01:22 7.43MB 金蝶单据 二次开发手册
1