/
softailor
/
gridient
Обзор
Документация
Войти
/
softailor
/
gridient
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
backend/Gridient.Core/Excel/ExcelColumn.cs
64 строки
2 KB
Jenkins
Auto add
18 фев 2026, 10:19
18 фев 2026, 10:19
1e6c4f8
Код
Авторство
О чём код?
namespace Gridient.Core.Excel { public class ExcelColumn { public int Id { get; set; } public string Title { get; set; } = null!; public bool IsNumber { get; set; } public bool IsText { get; set; } public bool IsDate { get; set; } public bool? IsDecimal { get; set; } public bool? IsDateTime { get; set; } public string? DateFormatMask { get; set; } public string? NumberFormatMask { get; set; } public ExcelColumn() { Title = null!; } public ExcelColumn(int id, string title) { Id = id; Title = title; IsNumber = false; IsDate = false; IsText = false; } public static ExcelColumn CreateNumberColumn(int id, string title, bool? isDecimal, string? numberFormatMask = null) { return new ExcelColumn { Id = id, Title = title, IsNumber = true, IsDecimal = isDecimal, NumberFormatMask = numberFormatMask }; } public static ExcelColumn CreateDateColumn(int id, string title, bool? isDateTime = false, string? dateFormatMask = null) { return new ExcelColumn { Id = id, Title = title, IsDate = true, IsDateTime = isDateTime, DateFormatMask = dateFormatMask }; } public static ExcelColumn CreateTextColumn(int id, string title) { return new ExcelColumn { Id = id, Title = title, IsText = true }; } } }