using OASystem.Domain.Entities.PersonnelModule;
using OASystem.Domain.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Domain.ViewModels.PersonnelModule
{
///
/// 任务分配View
///
public class TaskAllocationView: Pm_TaskAllocation
{
}
///
/// 任务分配
/// 基础数据 View
///
public class InitView
{
///
/// 任务操作权限
///
public TaskOperationAudit TaskOperationAudit { get; set; }
///
/// 任务名称 Items
///
public List? TaskNameInfos { get; set; }
///
/// 执行任务人员信息 Items
///
public List? ExecuteTaskUserInfos { get; set; }
public List? GroupNameInfos { get; set; }
public ValueInfo? DepartmentNameInfo { get; set; }
}
///
/// 预览信息
///
public class ValueInfo
{
public int Id { get; set; }
public string Name { get; set; }
}
///
/// 执行任务人员信息
///
public class ExecuteTaskUserInfo
{
public int Id { get; set; }
///
/// 姓名
///
public string? Name { get; set; }
///
/// 公司名称
///
public string? CompanyName { get; set; }
///
/// 部门名称
///
public string? DepartmentName { get; set; }
///
/// 职位名称
///
public string? JobName { get; set; }
}
///
/// 任务操作权限
///
public class TaskOperationAudit
{
///
/// 任务添权限
/// 0 否 1 是
///
public int TaskAddAudit { get; set; } = 0;
///
/// 任务删除权限
/// 0 否 1 是
///
public int TaskDelAudit { get; set; } = 0;
///
/// 任务终止权限
/// 0 否 1 是
///
public int TasStopAudit { get; set; } = 0;
///
/// 任务确认权限
/// 0 否 1 是
///
public int TaskComfirmAudit { get; set; } = 0;
///
/// 任务评分权限
/// 0 否 1 是
///
public int TaskScoreAudit { get; set; } = 0;
}
///
/// 任务指派
/// Item View
///
public class TaskListView
{
public int RowNumber { get; set; }
public int Id { get; set; }
///
/// 任务名称
///
public string? TaskName { get; set; }
///
/// 任务等级
///
public int TaskPriority { get; set; }
///
/// 归属部门
///
public string? DepName { get; set; }
///
/// 归属团组
///
public string? TeamName { get; set; }
///
/// 任务状态
///
public int Status { get; set; }
///
/// 任务发布人
///
public string? CreateUserName { get; set; }
///
/// 任务发布时间
///
public DateTime? CreateTime { get; set; }
///
/// 预计开始时间
///
public string? PredictBeginTime { get; set; }
///
/// 预计开始时间
///
public string? PredictEndTime { get; set; }
///
/// 任务参与者
///
public string? Participant { get; set; }
///
/// 任务完成者
///
public string? Consummator { get; set; }
public List? TaskerDetails { get; set; }
}
///
/// 详情
///
public class TaskDetailsView
{
public int Id { get; set; }
public int DiId { get; set; }
//public string TeamName { get; set; }
///
/// 任务部门Id
///
public int DepId { get; set; }
//public string DepName { get; set; }
public int CreateUserId { get; set; }
//public string CreateUserName { get; set; }
public DateTime? CreateTime { get; set; }
///
/// 任务名称
///
public string? TaskName { get; set; }
///
/// 任务内容
///
public string? TaskContent { get; set; }
///
/// 优先级
/// 1 2 3 4
///
public int TaskPriority { get; set; }
///
/// 任务预计开始时间(由发布者设置开始时间)
///
public string? PredictBeginTime { get; set; }
///
/// 任务预计结束时间(由发布者设置结束时间)
///
public string? PredictEndTime { get; set; }
///
/// 0 否 1 是
/// 是否纳入绩效考核
///
public int IsIntoPerformance { get; set; }
///
/// 人员任务
///
public List? UserTaskInfos { get; set; }
public string Remark { get; set; }
}
///
/// 任务者-详情
///
public class TaskerDetailsView
{
public int TAId { get; set; }
public int TaskCreateUserId { get; set; }
public int Id { get; set; }
public int UserId { get; set; }
public string UserName { get; set; }
///
/// 实际开始时间
///
public string BeginTime { get; set; }
public string OverTime { get; set; }
///
/// -1 未开始 0 已知晓 1 进行中 2 待审核 3 未完成 4 已完成 5任务中止
///
public int TaskStatus { get; set; }
///
/// 未完成原因
///
public string Cause { get; set; }
///
/// 评分
///
public int Score { get; set; }
///
/// 评分备注
///
public string ScoreRemark { get; set; }
}
///
/// 任务参与人
///
public class TaskUserDetailsView
{
public int Id { get; set; }
public int TAId { get; set; }
public int UserId { get; set; }
//public string UserName { get; set; }
///
/// 实际开始时间
///
public string BeginTime { get; set; }
///
/// 实际完成时间
///
public string OverTime { get; set; }
///
/// 任务状态
///
public TaskerEnum TaskStatus { get; set; }
///
/// 未完成原因
///
public string Cause { get; set; }
///
/// 评分备注
///
public string Remark { get; set; }
}
}