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

namespace DistributionApi.Model
{
    public class Distri_WorkorderDto
    {
        /// <summary>
        /// 自增id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 紧急程度 - 1一般 2紧急
        /// </summary>
        public int emergencyid { get; set; }
        /// <summary>
        /// 计划Id
        /// </summary>
        public string planid { get; set; }
        /// <summary>
        /// 计划任务Id
        /// </summary>
        public string plantaskid { get; set; }
        /// <summary>
        /// 项目名称id
        /// </summary>
        public string projectid { get; set; }
        public string projectname { get; set; }
        /// <summary>
        /// 工单编号 -------------------------------------------
        /// </summary>
        public string wocode { get; set; } = "";
        /// <summary>
        /// 工单分类(1随机工单,2分送工单)
        /// </summary>
        public int wosorts { get; set; } = 1;
        /// <summary>
        /// 配送工单状态:0创建工单，1转派或者抢单（待取货）,2已取货（配送中）,3货物异常（异常），4已完结/待评价，5已取消，6挂起，7取货异常退单 ，9已评价 
        /// </summary>
        public int wostate { get; set; } = 0;
        /// <summary>
        /// 电梯岗 - 工单状态(0创建工单，1已接单（待取货），2已取货（待配送）) -------------------------------------------
        /// </summary>
        public int wostate_elevator { get; set; } = 0;
        /// <summary>
        /// 电梯岗 - 接单人 1个人
        /// </summary>
        public string touser_elevator { get; set; }


        /// <summary>
        /// 配送物品 -------------------------------------------
        /// </summary>
        public List<DistributionGoodsList> goodslist { get; set; } = new List<DistributionGoodsList>();

        /// <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 List<string> touser { get; set; } = new List<string>();
        ///// <summary>
        ///// 类型(1派单2抢单3强制分配)
        ///// </summary>
        //public int totype { get; set; } = 0;
        /// <summary>
        /// 接单时间 - 配送岗
        /// </summary>
        public DateTime assigtime { get; set; }
        /// <summary>
        /// 接单时间 - 电梯岗
        /// </summary>
        public DateTime assigtime_elevator { get; set; }

        /// <summary>
        /// 处理时间
        /// </summary>
        public DateTime dealtime { get; set; }
        /// <summary>
        /// 是否违规 0否 1是
        /// </summary>
        public int isoffence { get; set; } = 0;

        /// <summary>
        /// 是否异常完结（0否1是） - 主管异常完结
        /// </summary>
        public int isexceptions { get; set; }
        /// <summary>
        /// 是否送达（0否1是） - 异常上报 完结
        /// </summary>
        public int sended { get; set; }
        /// <summary>
        /// 异常说明
        /// </summary>
        public string exceptions { get; set; }

        /// <summary>
        /// 添加人工号 -------------------------------------------
        /// </summary>
        public string createtby { get; set; }
        /// <summary>
        /// 添加人姓名
        /// </summary>
        public string createname { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime { get; set; } = DateTime.Now;
        /// <summary>
        /// 是否删除(0正常 1删除)
        /// </summary>
        public int isdelete { get; set; }
    }
}
