using MadRunFabric.Common;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace MadRunFabric.Model
{
    /// <summary>
    /// 洗涤工单管理
    /// </summary>
    public class Wo_Wash: IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string wocode { get; set; } = "";
        /// <summary>
        /// 渠道来源 1表示PC 2表示安卓 3表示IOS 4表示微信
        /// </summary>
        public int channel { get; set; } = 1;
        /// <summary>
        /// 项目id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string projectid { get; set; } = "";
        /// <summary>
        /// 项目所在省
        /// </summary>
        public string provincecode { get; set; }
        /// <summary>
        /// 项目所在市
        /// </summary>
        public string citycode { get; set; }
        /// <summary>
        /// 科室名称id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string departmentsid { get; set; }
        /// <summary>
        /// 楼层名称id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string floorid { get; set; }
        /// <summary>
        /// 负责人id code
        /// </summary>
        public string personid { get; set; }
        /// <summary>
        /// 任务状态id(0实收，1实发)
        /// </summary>
        public int tasktype { get; set; } = 0;
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime
        {
            get
            {
                return _createtime.ToLocalTime();
            }
            set
            {
                _createtime = value.ToLocalTime();
            }
        }

        private DateTime _createtime = DateTime.Now.ToLocalTime();

        /// <summary>
        /// 任务时间
        /// </summary>
        public DateTime tasktime
        {
            get
            {
                return _tasktime.ToLocalTime();
            }
            set
            {
                _tasktime = value.ToLocalTime();
            }
        }

        private DateTime _tasktime;


        /// <summary>
        /// 关联批次(编号)
        /// </summary>
        public string batchesnumber { get; set; }
        /// <summary>
        /// 大单
        /// </summary>
        public int bigsheetnum { get; set; } = 0;
        /// <summary>
        /// 被罩
        /// </summary>
        public int quiltcovernum { get; set; } = 0;
        /// <summary>
        /// 枕套
        /// </summary>
        public int pillowcasenum { get; set; } = 0;
        /// <summary>
        /// 枕芯
        /// </summary>
        public int pillownum { get; set; } = 0;
        /// <summary>
        /// 条衣
        /// </summary>
        public int clothesnum { get; set; } = 0;
        /// <summary>
        /// 条裤
        /// </summary>
        public int pantsnum { get; set; } = 0;
        /// <summary>
        /// 白病人衣
        /// </summary>
        public int whitepatientclothesnum { get; set; } = 0;
        /// <summary>
        /// 白病人裤
        /// </summary>
        public int whitepatientpantsnum { get; set; } = 0;
        /// <summary>
        /// 单层中单
        /// </summary>
        public int singlelayer { get; set; } = 0;
        /// <summary>
        /// 双层中单
        /// </summary>
        public int doublelayer { get; set; } = 0;
        /// <summary>
        /// 被子
        /// </summary>
        public int quiltnum { get; set; } = 0;
        /// <summary>
        /// 褥子
        /// </summary>
        public int matnum { get; set; } = 0;
        /// <summary>
        /// 凉被子
        /// </summary>
        public int coolquiltnum { get; set; } = 0;
        /// <summary>
        /// 床罩
        /// </summary>
        public int bedspreadnum { get; set; } = 0;
        /// <summary>
        /// 窗帘
        /// </summary>
        public int blindsnum { get; set; } = 0;
        /// <summary>
        /// 工作衣
        /// </summary>
        public int workclothesnum { get; set; } = 0;
        /// <summary>
        /// 护士衣
        /// </summary>
        public int nurseclothesnum { get; set; } = 0;
        /// <summary>
        /// 护士裤
        /// </summary>
        public int nursepantnum { get; set; } = 0;
        /// <summary>
        /// 约束带
        /// </summary>
        public int constraintsnum { get; set; } = 0;
        /// <summary>
        /// 帽子
        /// </summary>
        public int hatsnum { get; set; } = 0;
        /// <summary>
        /// 提交人
        /// </summary>
        public string createby { get; set; } = "";
        /// <summary>
        /// 是否删除(0正常，-1删除)
        /// </summary>
        public int isdelete { get; set; } = 0;

        /// <summary>
        /// 渠道来源 1表示PC 2表示安卓 3表示IOS 4表示微信
        /// </summary>
        public enum Enumchannel
        {
            PC = 1,
            安卓 = 2,
            IOS = 3,
            微信 = 4
        }
    }
}
