Files
Joseph Doherty 26ff8d9b4f Initial commit: JDE Scoping Tool migration project
Set up repository with legacy .NET Framework 4.8 source (OLD/),
new .NET 10 Blazor solution (NEW/), OpenSpec specifications,
documentation, and project configuration.
2026-01-02 07:43:29 -05:00

61 lines
1.7 KiB
C#
Executable File

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