using System;
using System.Collections.Generic;
namespace Bootstrap.DataAccess
{
///
///
///
public class Task
{
///
/// 获取/设置 任务ID
///
public string Id { get; set; }
///
/// 获取/设置 任务名称
///
public string TaskName { get; set; }
///
/// 获取/设置 分配人
///
public string AssignName { get; set; }
///
/// 获得/设置 分配人昵称
///
public string AssignDisplayName { get; set; }
///
/// 获取/设置 完成任务人
///
public string UserName { get; set; }
///
/// 获取/设置 任务所需时间(天)
///
public int TaskTime { get; set; }
///
/// 获取/设置 任务进度
///
public double TaskProgress { get; set; }
///
/// 获取/设置 分配时间
///
public DateTime AssignTime { get; set; }
///
/// 查询所有任务
///
///
public virtual IEnumerable Retrieves() => DbManager.Create().SkipTake(0, 1000, "select t.*, u.DisplayName AssignDisplayName from Tasks t inner join Users u on t.UserName = u.UserName order by AssignTime desc");
}
}