using System;
using System.Collections.Generic;
using System.Text;

namespace AutoTurnOver.Models
{
    /// <summary>
    /// 文件下载任务
    /// </summary>
    public class dc_task_download
    {
        public int id { get; set; }
        public string task_name { get; set; }
        public string parameter { get; set; }
        public DateTime create_date { get; set; }
        public string parameter_show { get; set; }
        public string create_user { get; set; }
        public int status { get; set; }
        public DateTime start_date { get; set; }
        public DateTime end_date { get; set; }
        public string result_file_url { get; set; }
        public string error_message { get; set; }
        public string error_stack_trace { get; set; }
        public int rows { get; set; }
    }

    public class dc_task_download_dto : dc_task_download
    {
        public string status_str { get
            {
                return ((dc_task_download_status)status).ToString();
            } }
    }

    public enum dc_task_download_status
    {
        待执行 = 0, 执行中 = 1, 执行完成 = 2, 执行失败 = 3
    }
}
