using OASystem.Domain.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Domain.Entities.PersonnelModule
{
///
/// 人事 任务单
/// 任务分配
///
[SugarTable("Pm_TaskAllocation")]
public class Pm_TaskAllocation: EntityBase
{
///
/// 团组ID(没有团组为-1)
///
[SugarColumn(IsNullable = true, ColumnDataType = "int")]
public int DiId { get; set; }
///
/// 任务归属部门ID
/// CompanyId = 2 的部门Id 为任务部门Id
///
[SugarColumn(IsNullable = true, ColumnDataType = "int")]
public int DepId { get; set; }
///
/// 任务名称
///
[SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
public string? TaskName { get; set; }
///
/// 任务内容
///
[SugarColumn(IsNullable = true, ColumnDataType = "varchar(500)")]
public string? TaskContent { get; set; }
///
/// 任务优先级 1 2 3 4
///
[SugarColumn(IsNullable = true, ColumnDataType = "int")]
public int TaskPriority { get; set; }
///
/// 任务预计开始时间(由发布者设置开始时间)
///
[SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
public string? PredictBeginTime { get; set; }
///
/// 任务预计结束时间(由发布者设置结束时间)
///
[SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
public string? PredictEndTime { get; set; }
///
/// 任务状态
/// 0 未开始 1 进行中 2 待审核 3 未完成 4 已完成 5 任务终止
///
[SugarColumn(IsNullable = true, ColumnDataType = "int")]
public TaskEnum Status { get; set; } = TaskEnum.NotStarted;
///
/// 0 否 1 是
/// 发布者确认任务是否完成(员工任务完成时间小于或等于有效时间 默认完成)
///
[SugarColumn(IsNullable = true, ColumnDataType = "int")]
public int IsComplete { get; set; } = 0;
///
/// 0 否 1 是
/// 是否纳入绩效考核
///
[SugarColumn(IsNullable = true, ColumnDataType = "int")]
public int IsIntoPerformance { get; set; } = 0;
}
}