123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- using OASystem.Domain.Enums;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.Serialization.Formatters.Binary;
- using System.Runtime.Serialization;
- using System.Text;
- using System.Threading.Tasks;
- namespace OASystem.Domain.Entities.Groups
- {
- /// <summary>
- /// 团组流程管控
- /// </summary>
- [SugarTable("Grp_Schedule")]
- public class Grp_ScheduleInfo : EntityBase
- {
- /// <summary>
- /// 团组Id
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "int")]
- public int DiId { get; set; }
- /// <summary>
- /// 当前主流程
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "int")]
- public GrpSchedulePrimaryStepEnum PrimaryStep { get; set; }
- /// <summary>
- /// 当前子流程
- /// </summary>
- //[SugarColumn(IsNullable = true, ColumnDataType = "int")]
- //public int DetailStep { get; set; }
- /// <summary>
- /// 预计开始时间
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
- public DateTime ExpectBeginDt { get; set; }
- /// <summary>
- /// 预计结束时间
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
- public DateTime ExpectEndDt { get; set; }
- /// <summary>
- /// 实际开始时间
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
- public DateTime RealBeginDt { get; set; }
- /// <summary>
- /// 实际结束时间
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
- public DateTime RealEndDt { get; set; }
- /// <summary>
- /// 总负责人(SysUser.Id)
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "int")]
- public int Leader { get; set; }
- /// <summary>
- /// 异常状态0:正常,1:异常
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "int")]
- public int Exception { get; set; }
- }
- /// <summary>
- /// 团组流程管控详细进度
- /// 因为要实现DeepClone 字段必须在同一类下所以不能继承EntityBase
- /// </summary>
- [SugarTable("Grp_ScheduleDetail")]
- [Serializable]
- public class Grp_ScheduleDetailInfo : ICloneable
- {
- /// <summary>
- /// 编号
- /// </summary>
- [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, IsNullable = false)]
- public int Id { get; set; }
- /// <summary>
- /// 创建者Id
- /// </summary>
- [SugarColumn(ColumnDescription = "创建者Id", IsNullable = true, ColumnDataType = "int")]
- public int CreateUserId { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [SugarColumn(ColumnDescription = "创建时间", IsNullable = true, ColumnDataType = "DateTime")]
- public DateTime CreateTime { get; set; } = DateTime.Now;
- /// <summary>
- /// 删除者Id
- /// </summary>
- [SugarColumn(ColumnDescription = "删除者Id", IsNullable = true, ColumnDataType = "int")]
- public int? DeleteUserId { get; set; }
- /// <summary>
- /// 删除时间
- /// </summary>
- [SugarColumn(ColumnDescription = "删除时间", IsNullable = true, ColumnDataType = "varchar(30)")]
- public string DeleteTime { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "varchar(500)")]
- public string Remark { get; set; }
- /// <summary>
- /// 是否删除
- /// </summary>
- [SugarColumn(ColumnDescription = "是否删除", IsNullable = true, ColumnDataType = "int")]
- public int IsDel { get; set; }
- /// <summary>
- /// 团组流程Id
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "int")]
- public int ScheduleId { get; set; }
- /// <summary>
- /// 等级
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "int")]
- public int SLevel { get; set; }
- /// <summary>
- /// 流程
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "int")]
- public int Step { get; set; }
- /// <summary>
- /// 父级流程
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "int")]
- public int ParentStep { get; set; }
- /// <summary>
- /// 流程状态
- /// <list type="table">
- /// <item><para>0:待分配(未开始)</para></item>
- /// <item><para>1:进行中</para></item>
- /// <item><para>2:已完成</para></item>
- /// </list>
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "int")]
- public int StepStatus { get; set; }
- /// <summary>
- /// 负责人员(SysUser.Id)
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "int")]
- public int Duty { get; set; }
- /// <summary>
- /// 工作内容
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
- public string JobContent { get; set; }
- /// <summary>
- /// 预计开始时间
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
- public DateTime ExpectBeginDt { get; set; }
- /// <summary>
- /// 预计结束时间
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
- public DateTime ExpectEndDt { get; set; }
- /// <summary>
- /// 实际开始时间
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
- public DateTime RealBeginDt { get; set; }
- /// <summary>
- /// 实际结束时间
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
- public DateTime RealEndDt { get; set; }
- /// <summary>
- /// 异常状态0:正常,1:异常
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "int")]
- public int Exception { get; set; }
-
- public object Clone()
- {
- return this.MemberwiseClone();
- }
- public Grp_ScheduleDetailInfo DeepClone()
- {
- using (Stream objectStream = new MemoryStream())
- {
- IFormatter formatter = new BinaryFormatter();
- formatter.Serialize(objectStream, this);
- objectStream.Seek(0, SeekOrigin.Begin);
- return formatter.Deserialize(objectStream) as Grp_ScheduleDetailInfo;
- }
- }
- }
- /// <summary>
- /// 团组流程管控人员配置
- /// </summary>
- [SugarTable("Grp_SchedulePerson")]
- public class Grp_SchedulePersonInfo : EntityBase
- {
- /// <summary>
- /// 流程Id
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "int")]
- public int ScheduleId { get; set; }
- /// <summary>
- /// 人员编号(SysUser.Id)
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "int")]
- public int SysUserId { get; set; }
- /// <summary>
- /// 人员姓名
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
- public string SysUserName { get; set; }
- /// <summary>
- /// 负责工作
- /// </summary>
- [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
- public string JobStr { get; set; }
- }
- }
|