|
@@ -20,6 +20,7 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
{
|
|
{
|
|
|
public delegate void CustomizeColumnsCollectionEventHandler(object source, ColumnsCreationEventArgs e);
|
|
public delegate void CustomizeColumnsCollectionEventHandler(object source, ColumnsCreationEventArgs e);
|
|
|
public delegate void CustomizeColumnEventHandler(object source, ControlCustomizationEventArgs e);
|
|
public delegate void CustomizeColumnEventHandler(object source, ControlCustomizationEventArgs e);
|
|
|
|
|
+ public delegate void CustomizeFormattingRulesEventHandler(object source, CustomFormattingRulesEventArgs e);
|
|
|
public delegate void CustomizeColumnTotalSummaryEventHandler(object source, ColumnSummaryCreationEventArgs e);
|
|
public delegate void CustomizeColumnTotalSummaryEventHandler(object source, ColumnSummaryCreationEventArgs e);
|
|
|
public delegate void CustomizeColumnGroupSummaryEventHandler(object source, ColumnSummaryCreationEventArgs e);
|
|
public delegate void CustomizeColumnGroupSummaryEventHandler(object source, ColumnSummaryCreationEventArgs e);
|
|
|
|
|
|
|
@@ -37,6 +38,7 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
|
|
|
|
|
public event CustomizeColumnsCollectionEventHandler CustomizeColumnsCollection;
|
|
public event CustomizeColumnsCollectionEventHandler CustomizeColumnsCollection;
|
|
|
public event CustomizeColumnEventHandler CustomizeColumn;
|
|
public event CustomizeColumnEventHandler CustomizeColumn;
|
|
|
|
|
+ public event CustomizeFormattingRulesEventHandler CustomizeFormattingRules;
|
|
|
public event CustomizeColumnTotalSummaryEventHandler CustomizeTotalColumnSummary;
|
|
public event CustomizeColumnTotalSummaryEventHandler CustomizeTotalColumnSummary;
|
|
|
public event CustomizeColumnGroupSummaryEventHandler CustomizeGroupColumnSummary;
|
|
public event CustomizeColumnGroupSummaryEventHandler CustomizeGroupColumnSummary;
|
|
|
|
|
|
|
@@ -242,6 +244,13 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
detailsWidth.Add(columns[i].GridViewColumn, cell2.WidthF);
|
|
detailsWidth.Add(columns[i].GridViewColumn, cell2.WidthF);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if (CustomizeFormattingRules != null)
|
|
|
|
|
+ CustomizeFormattingRules(report, new CustomFormattingRulesEventArgs { Rules = report.FormattingRuleSheet });
|
|
|
|
|
+
|
|
|
|
|
+ foreach (var rule in report.FormattingRuleSheet)
|
|
|
|
|
+ detailTable.FormattingRules.Add(rule);
|
|
|
|
|
+
|
|
|
headerTable.Rows.Add(row);
|
|
headerTable.Rows.Add(row);
|
|
|
headerTable.Width = pagewidth;
|
|
headerTable.Width = pagewidth;
|
|
|
headerTable.LocationF = new PointF(groupedColumns.Count * subGroupOffset, 0);
|
|
headerTable.LocationF = new PointF(groupedColumns.Count * subGroupOffset, 0);
|
|
@@ -602,6 +611,17 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public class CustomFormattingRulesEventArgs : EventArgs
|
|
|
|
|
+ {
|
|
|
|
|
+ private FormattingRuleSheet rules;
|
|
|
|
|
+
|
|
|
|
|
+ public FormattingRuleSheet Rules
|
|
|
|
|
+ {
|
|
|
|
|
+ get { return rules; }
|
|
|
|
|
+ set { rules = value; }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public class ControlCustomizationEventArgs : EventArgs
|
|
public class ControlCustomizationEventArgs : EventArgs
|
|
|
{
|
|
{
|
|
|
XRControl owner;
|
|
XRControl owner;
|