using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using static TempTask.WebEntry.Tools.NumZjHelper;

namespace TempTask.WebEntry.ApiController.Dto
{
    /// <summary>
    /// 
    /// </summary>
    public class DtoInput
    {
    }
    /// <summary>
    /// 
    /// </summary>
    public class NumZjConfig
    {
        /// <summary>
        /// 
        /// </summary>
        public List<NumZjExcel> numZjExcels { get; set; }
    }
    /// <summary>
    /// 
    /// </summary>
    public class NumZjExcel
    {
        /// <summary>
        /// 是否采用Excel的新配置方式
        /// </summary>
        public bool is_excel_config { get; set; } = false;
        ///// <summary>
        ///// Excel新配置方式文件路径
        ///// </summary>
        //public string excel_config_path { get; set; }
        /// <summary>
        /// sheet编号 从1开始
        /// </summary>
        public ExcelType excel_no { get; set; }
        /// <summary>
        /// sheet名称
        /// </summary>
        public string excel_name { get; set; }
        /// <summary>
        /// sheet集合
        /// </summary>
        public List<NumZjConfigSheet> sheets { get; set; }
    }
    /// <summary>
    /// 
    /// </summary>
    public class NumZjConfigSheet
    {
        /// <summary>
        /// sheet编号，从1开始
        /// </summary>
        public int sheet_no { get; set; }
        /// <summary>
        /// shee名称
        /// </summary>
        public string sheet_name { get; set; }
        /// <summary>
        /// 开始行数 Excel中行号
        /// </summary>
        public int start_row { get; set; }
        /// <summary>
        /// 空行数
        /// </summary>
        public int null_row_count { get; set; }
        /// <summary>
        /// 开始列字母， A B C
        /// </summary>
        public string start_cell { get; set; }
        /// <summary>
        /// 空列数
        /// </summary>
        public int null_cell_count { get; set; }
        /// <summary>
        /// 接口地址
        /// </summary>
        public string url { get; set; }
        /// <summary>
        /// 跳过行 集合 行留空
        /// </summary>
        public List<int> skip_rows { get; set; }
        /// <summary>
        /// 跳过行 集合 行留空
        /// </summary>
        public List<string> skip_columns { get; set; }

    }
    /// <summary>
    /// 
    /// </summary>
    public class NumZjDownloadInput
    {
        /// <summary>
        /// Excel类型 1是总表，2是城市更新，3是房地产业
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// 年
        /// </summary>
        [Required]
        public int year { get; set; }
        /// <summary>
        /// 月
        /// </summary>
        [Required]
        public int month { get; set; }
        /// <summary>
        /// 周
        /// </summary>
        [Required]
        public int week { get; set; }
    }
}
