using MadRunFabric.Common;
using MongoDB.Bson.Serialization.Attributes;
using System.ComponentModel.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Text;
namespace MadRunFabric.Model
{
///
/// 保养计划表
///
[BsonIgnoreExtraElements]
public class Wo_Maintain_Plan : IBaseModel
{
///
/// id
///
[Key]
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string id { get; set; }
///
/// 项目名称
///
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string projectid { get; set; } = "";
///
/// 检查事项
///
public string[] matterids { get; set; }
/////
///// 系统名称
/////
//[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
//public string systemid { get; set; } = "";
/////
///// 设备名称
/////
//public string[] equipmentid { get; set; }
///
/// 保养计划名称
///
public string planname { get; set; } = "";
///
/// 保养计划内容
///
public string plancontent { get; set; } = "";
///
/// 保养计划要求
///
public string planclaim { get; set; } = "";
///
/// 计划状态:0开始,1结束
///
public int planstate { get; set; } = 0;
///
/// 保养类别
///
public List maintaintype { get; set; } = null;
///
/// 扩展字段 - 自定义
///
public List extensionlist { get; set; } = null;
///
/// 附件
///
public List maintainfile { get; set; } = null;
///
/// 计划类型 0临时 1定时
///
public int plantype { get; set; }
///
/// 计划ID
///
public string hangfireid { get; set; } = "";
///
/// 开始日期
///
public DateTime startdate { get; set; }
///
/// 结束日期
///
public DateTime enddate { get; set; }
///
/// 提交时间
///
public DateTime createtime { get; set; }
///
/// 提交人
///
public string createby { get; set; } = "";
///
/// 是否删除
///
public bool isdelete { get; set; } = false;
///
/// 删除人
///
public string deleteby { get; set; } = "";
///
/// 删除时间
///
public DateTime deletetime { get; set; }
#region
/////
///// 项目名称
/////
//[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
//public string proname { get; set; } = "";
/////
///// 系统名称
/////
//[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
//public string sysname { get; set; } = "";
/////
///// 设备名称
/////
//public string[] equipname { get; set; }
/////
///// 保养计划名称
/////
//public string planname { get; set; } = "";
/////
///// 保养计划内容
/////
//public string plancontent { get; set; } = "";
/////
///// 保养类别
/////
//public List maintaintype { get; set; } = null;
/////
///// 附件
/////
//public List maintainfile { get; set; } = null;
/////
///// 到期时间
///// 计算超时需要使用
/////
//public DateTime expirytime { get; set; }
/////
///// 提前展示时长(分钟)
/////
//public int advancelong { get; set; } = 0;
/////
///// 计划ID
/////
//public string planid { get; set; } = "";
//#region 计划任务
/////
///// 计划类型:1定时任务,2临时任务
/////
//public int plantype { get; set; } = 0;
/////
///// 定时周期:1每天,2每周,3每月
/////
//public int plancycle { get; set; } = 0;
/////
///// 执行计划日:如每周第几天,每月第几天
/////
//public int plandate { get; set; } = 0;
/////
///// 执行计划时间:几点执行
///// 0-23
/////
//public int planhour { get; set; } = 0;
/////
///// 执行间隔
///// 小时:0-23
///// 分钟:0-59
/////
//public int planinterval { get; set; } = 0;
/////
///// 计划状态 0开始 1结束 2挂起
/////
//public int planstate { get; set; } = 0;
///////
/////// 开始执行时间
///////
////public DateTime planstart { get; set; }
///////
/////// 计划结束时间
///////
////public DateTime planend { get; set; }
//#endregion
/////
///// 提交时间
/////
//public DateTime createtime { get; set; }
/////
///// 提交人
/////
//public string createby { get; set; } = "";
/////
///// 是否删除
/////
//public bool isdelete { get; set; } = false;
#endregion
}
///
/// 保养计划类型 0临时 1定时
///
public enum enummainplantype
{
///
/// 临时
///
temporary = 0,
///
/// 定时
///
timing = 1
}
}