using Newtonsoft.Json;
using OASystem.Domain.Enums;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Domain.ViewModels.Groups
{
public class Grp_ScheduleView
{
///
/// 流程管控Id
///
public int Id { get; set; }
///
/// 团组Id
///
public int DiId { get; set; }
///
/// 团组名称
///
public string DeleName { get; set; }
///
/// 主流程(枚举)
///
public GrpSchedulePrimaryStepEnum PrimaryStep { get; set; }
///
/// 主流程中文描述
///
public string PrimaryStep_Text
{
get
{
return EnumHelper.GetEnumDescription(PrimaryStep);
}
}
///
/// 预计开始时间
///
public DateTime ExpectBeginDt { get; set; }
///
/// 预计结束时间
///
public DateTime ExpectEndDt { get; set; }
///
/// 总负责人Id
///
public int Leader { get; set; }
///
/// 总负责人
///
public string LeaderName { get; set; }
///
/// 异常状态0:正常 1:异常
///
public int Exception { get; set; }
}
public class Grp_ScheduleRootView
{
public int Root { get; set; }
public string RootName
{
get
{
NameValueCollection nvc = EnumHelper.GetNVCFromEnumValue(typeof(GrpSchedulePrimaryStepEnum));
string rst = nvc[this.Root.ToString()];
if (string.IsNullOrEmpty(rst))
{
rst = Root.ToString();
}
return rst;
}
}
public List ChildList { get; set; }
public GrpConfig Config { get; set; }
}
public class GrpConfig
{
public string backgroundColor { get; set; }
}
}