private void ToTableSet() { TableSet = new Dictionary <string, DataTable>(); TableSet.Add("FrontDevBriefList", DataTableBuilder.ToDataTableOfList(brief.FrontDevBriefList, "FrontDevBriefList")); TableSet.Add("FrontDataBriefList", DataTableBuilder.ToDataTableOfList(brief.FrontDataBriefList, "FrontDataBriefList")); TableSet.Add("BackDevBriefList", DataTableBuilder.ToDataTableOfList(brief.BackDevBriefList, "BackDevBriefList")); TableSet.Add("BackDataBriefList", DataTableBuilder.ToDataTableOfList(brief.BackDataBriefList, "BackDataBriefList")); }
public WeeklyDocument PrepareDataSet() { weeklies = new IntegratedWeeklies(); weeklies.Load() .Summarize() .Sort(); dataSet = new Dictionary <string, object>(); string title = string.Format("科技与产品管理部一周重点工作清单({0}-{1})", DateUtil.ToWeekBegin(), DateUtil.ToWeekEnd()); dataSet.Add("Title", title); dataSet.Add("CurrentWeekWorks", DataTableBuilder.ToDataTableOfList(weeklies.CurrentWeekWorks, "CurrentWeekWorks")); dataSet.Add("CurrentWeekReleases", DataTableBuilder.ToDataTableOfList(weeklies.CurrentWeekReleases, "CurrentWeekReleases")); return(this); }