using MadRunFabric.Common;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace MadRunFabric.Model
{
///
/// 排班管理 - 省三院
///
[BsonIgnoreExtraElements]
public class Sys_ClassGroup_User_Map : IBaseModel
{
///
/// id
///
[Key]
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string id { get; set; }
///
/// 项目id
///
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string projectid { get; set; }
///
/// 用户账号
///
public string usercode { get; set; }
/////
///// 班别代码
/////
//public string groupcode { get; set; }
///
/// 时间
///
public string date { get; set; }
///
/// 出勤状态(1正常 2休息 3请假)
///
public int isstatus { get; set; } = 2;
///
/// 绑定班别
///
public List classgroupList { get; set; }
///
/// 是否参与计划
///
public bool isjoin { get; set; } = false;
///
/// 计划名称
///
public List distri_planList { get; set; }
///
/// 备注
///
public string remark { get; set; }
///
/// 添加人工号 ------------------------------------------------
///
public string createby { get; set; }
///
/// 添加人名字
///
public string createbyname { 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; }
}
#region 绑定班别 - 字段 model
///
/// 绑定班别
///
public class ClassGroupList
{
///
/// 班别代码
///
public string code { get; set; }
///
/// 班别名称
///
public string name { get; set; }
///
/// 绑定角色(岗位)
///
public List roleList { get; set; }
}
///
/// 计划list
///
public class DistriPlanList
{
///
/// 计划名称
///
//[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string planid { get; set; }
///
/// 计划名称
///
public string planname { get; set; }
}
#endregion
///
/// 出勤状态(1正常 2休息 3请假)
///
public enum EnumClassGroupUserIsStatus
{
[Description("正常")]
正常 = 1,
[Description("休息")]
休息 = 2,
[Description("请假")]
请假 = 3
}
}