public class Class1 : AbstractSysReportPlugIn
{
public override void BarItemClick(BarItemClickEventArgs e)
{
base.BarItemClick(e);
if (e.BarItemKey.EqualsIgnoreCase("TENU_tbButton"))
{
DataTable table = this.SysReportModel.DataSource;
DataTable table2 = this.SysReportModel.GetData(1,60000);
foreach (DataRow row in table2.Rows) // 遍历每一行
{
foreach (DataColumn column in table2.Columns) // 遍历每一列
{
var cellValue = row[column]; // 获取单元格的值
Console.WriteLine(cellValue); // 打印或处理单元格的值
}
}
推荐阅读