using System;
namespace WorkerService.Models.Reporting
{
///
/// Excel output column specification
///
public class OutputColumnAttribute : Attribute
{
///
/// Order to display column
///
public int Order { get; set; }
///
/// Override text to display for column
///
public string HeaderText { get; set; }
///
/// Column format (Excel formatting string)
///
public string Format { get; set; } = STD_FORMAT;
///
/// Standard format
///
public const string STD_FORMAT = "@";
///
/// Standard date format
///
public const string DATE_FORMAT = "[$-409]MM/dd/yyyy;@";
///
/// Standard timestamp format
///
public const string TIMESTAMP_FORMAT = "[$-409]m/d/yy h:mm AM/PM;@";
///
/// Whether or not width should be set automatically
///
public bool AutoWidth { get; set; } = true;
///
/// Manually set width (only used if AutoWidth = FALSE)
///
public double Width { get;set; }
///
/// Wrapped text column default width
///
public const double WRAPPED_COLUMN_WIDTH = 65;
///
/// Whether or not text should be wrapped
///
public bool WrapText { get; set; }
}
}