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>
    [BsonIgnoreExtraElements]
    public class Distri_Goods : IBaseModel<string>
    {
        /// <summary>
        /// 自增id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }
        /// <summary>
        /// 项目名称id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string projectid { get; set; }
        /// <summary>
        /// 物品种类 - 物品种类包含：即时标本、普通标本、核磁申请单、功能申请单、会诊单、转诊单、取结果、片子、打腕带、送病历、取药
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string kindid { get; set; }
        /// <summary>
        /// 紧急程度 - 1一般 2紧急
        /// </summary>
        public int typeid { get; set; }
        /// <summary>
        /// 物品名称
        /// </summary>
        public string goodsname { get; set; }
        /// <summary>
        /// 是否提醒 - 提醒（关联工单，即将提醒内填写的内容展示在该物品下单成功后的物品种类后面）
        /// </summary>
        public bool isremind { get; set; }
        /// <summary>
        /// 提醒备注
        /// </summary>
        public string remark { get; set; } = "";

        /// <summary>
        /// 楼宇名称id ---------------------------------------------关联科室
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string buildingid { get; set; }
        /// <summary>
        /// 层数id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string floorid { get; set; }

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