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

namespace MessageApi.Model
{

    public class WoWorkOrderListDto
    {
        /// <summary>
        /// id编号
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string wocode { get; set; } = "";
        /// <summary>
        /// 工单状态:0创建工单，1已转派（转派或者抢单），2已处理，3已评价，7挂起，8已取消，9已完成
        /// </summary>
        public int wostate { get; set; } = 0;
        /// <summary>
        /// 项目名称
        /// </summary>
        public string proname { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string content { get; set; }
        /// <summary>
        /// 创建人id
        /// </summary>
        public string createby { get; set; }
        public DateTime createtime
        {
            get
            {
                return _createtime.ToLocalTime();
            }
            set
            {
                _createtime = value.ToLocalTime();
            }
        }
        private DateTime _createtime = DateTime.Now.ToLocalTime();
        /// <summary>
        /// 是否已读
        /// </summary>
        public int isread { get; set; }
        /// <summary>
        /// 阅读人
        /// </summary>
        public string readby { get; set; }
        /// <summary>
        /// 设备id
        /// </summary>
        public string equipmentid { get; set; }

    }
}
