using System.Collections.Generic;
using System.Windows;

namespace MWS.Domain.Dto
{
    public class PrintTableDto<T>
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 左副标题
        /// </summary>
        public string LeftSubtitle { get; set; }

        /// <summary>
        /// 右副标题
        /// </summary>
        public string RightSubtitle { get; set; }

        /// <summary>
        /// 底部文字
        /// </summary>
        public string Footer { get; set; }

        public List<HeaderColumnDto> Columns { get; set; }

        /// <summary>
        /// 数据源
        /// </summary>
        public List<T> Data { get; set; }

    }
    public class HeaderColumnDto
    {
        public string DisplayName { get; set; }
        public string FiledName { get; set; }
        public string FormatString { get; set; }
        public GridLength Width { get; set; } = new GridLength(1, GridUnitType.Star);
    }
}
