/// <summary> /// 定期发布的任务 /// </summary> /// <returns></returns> public bool SavePubTasks() { var Ents = GetTasks(Sql.FFTM); if (Ents.Count == 0) { return(false); } Ents.Sort((a, b) => { var IntA = a.Inf.Stat.ToInt(); var IntB = b.Inf.Stat.ToInt(); return(IntA > IntB ? -1 : IntA < IntB ? 1 : 0); }); var Fd = new FileData.WTFConfig { ShowID = false, ShowPoints = false, ShowEstSch_AsEst = true, ShowEstSch_AsRemain = true, ShowEstSch_NotWhenDone = true, ShowStatus = true, ShowStatus_NoWait = true, }; Flr.WriteTaskFile("BUP", Ents, Fd); return(true); }
/// <summary> /// 得到未完成的任务(已开始:进行中/或暂停) /// </summary> public bool SaveUnfinishedTasks() { var Ents = GetTasks(Sql.StUndInMon); if (Ents.Count == 0) { return(false); } Flr.WriteTaskFile("未完成", Ents); return(true); }
/// <summary> /// 需要评估的任务 /// </summary> public void Get0PtsFinishedTasks() { string SqlCond = $"t.storyPoint = 0"; var Ents = GetTasks(SqlCond); List <Task> ZeroPts = new List <Task>(); foreach (var Ent in Ents) { if (Ent.Inf.RealPts > 0f) { continue; } ZeroPts.Add(Ent); } if (ZeroPts.Count > 0) { Flr.WriteTaskFile("需评估", ZeroPts, new FileData.WTFConfig { ShowPoints = false }); } }
/// <summary> /// 计算/保存 某月完成的任务,和每个人的速度 /// </summary> public void SaveFinishedTasks() { var Ents = GetTasks(Sql.Finished); Flr.WriteTaskFile("完成", Ents); }