using MadRunFabric.Common; using MongoDB.Bson.Serialization.Attributes; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace MadRunFabric.Model { /// /// 配送地址(发货/收货) /// [BsonIgnoreExtraElements] public class Distri_Address : IBaseModel { /// /// 自增id /// [Key] [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string id { get; set; } /// /// 地址类型:0发货/1收货 /// public int addresstype { get; set; } = 0; /// /// 项目名称id /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string projectid { get; set; } /// /// 楼宇名称id /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string buildingid { get; set; } /// /// 层数id /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string floorid { get; set; } ///// ///// 科室id - 不用了 ///// //[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] //public string departmentid { get; set; } /// /// 姓名 /// public string fullname { get; set; } /// /// 电话 /// public string mobile { get; set; } /// /// 是否默认 /// public bool isdefault { get; set; } = false; /// /// 备注 /// public string remark { get; set; } /// /// 排序 /// public int sortnum { get; set; } = 0; /// /// 添加人工号 /// public string createtby { get; set; } /// /// 添加时间 /// public DateTime createtime { get; set; } = DateTime.Now; /// /// 是否删除(0正常 1删除) /// public int isdelete { get; set; } = 0; /// /// 删除人 /// public string deleteby { get; set; } /// /// 删除时间 /// public DateTime deletetime { get; set; } } }