using MadRunFabric.Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace DistributionApi.Model.Dto
{
    public class Distri_Workorder_TaskDto
    {
        /// <summary>
        /// 自增id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 计划工单状态:0创建计划任务，1开始，2已完成
        /// </summary>
        public int planwostate { get; set; } = 0;
        /// <summary>
        /// 项目名称id
        /// </summary>
        public string projectid { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string projectname { get; set; }
        /// <summary>
        /// 计划ID -----------------------------
        /// </summary>
        public string planid { get; set; }

        /// <summary>
        /// 计划工单编号 -------------------------------------------
        /// </summary>
        public string wocode { get; set; }
        /// <summary>
        /// 计划工单名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 计划工单参与人
        /// </summary>
        public List<string> joinuserlist { get; set; } = new List<string>();

        /// <summary>
        /// 配送物品 ------------------------------------------- 物品种类、物品数量（非必填）、收货地址（非必填）
        /// </summary>
        public List<DistributionGoodsListByTask> goodslist { get; set; } = new List<DistributionGoodsListByTask>();
        /// <summary>
        /// 收件（地址，科室，联系） ------------------------------------------- 把收/发地址信息保存起来，保证地址的独立性
        /// </summary>
        public List<DistributionDddressModel> receiverlist { get; set; } = new List<DistributionDddressModel>();
        /// <summary>
        /// 发货（地址，科室，联系）
        /// </summary>
        public List<DistributionDddressModel> deliverylist { get; set; } = new List<DistributionDddressModel>();

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? statetime { get; set; }
        ///// <summary>
        ///// 处理人 -------------------------------------------------
        ///// </summary>
        //public string dealby { get; set; }
        /// <summary>
        /// 处理时间
        /// </summary>
        public DateTime dealtime { get; set; }
        /// <summary>
        /// 添加人工号 --------------------------------------------------
        /// </summary>
        public string createtby { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime { get; set; }

        /// <summary>
        /// 是否删除(0正常 1删除)
        /// </summary>
        public int isdelete { get; set; } = 0;
    }
}
