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 Sys_ClassGroup : 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 name { get; set; }
///
/// 班别代码
///
public string code { get; set; }
///
/// 开始时间
///
public string starttime { get; set; }
///
/// 结束时间
///
public string endtime { get; set; }
///
/// 绑定角色(岗位)
///
public List roleList { get; set; }
///
/// 备注
///
public string remark { get; set; }
///
/// 是否值班时间段(是值班true)
///
public bool iswork { get; set; } = false;
///
/// 添加人工号 ------------------------------------------------
///
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 ClassGroupRoleList
{
///
/// 角色id
///
//[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string roleid { get; set; }
///
/// 角色code
///
public string rolecode { get; set; }
///
/// 劫色名称
///
public string rolename { get; set; }
///
/// 是否选中
///
public bool ischeck { get; set; }
}
#endregion
}