Пример #1
0
 /// <summary>
 /// 加载全部的项目列表
 /// </summary>
 /// <returns></returns>
 public Task <OperateResult <IEnumerable <ProjectListDto> > > LoadProjectListAsync()
 {
     return(OperateUtil.ExecuteAsync(async() =>
     {
         return await _projectCache.GetProjectListAsync();
     }, callMemberName: "ProjectApplication-LoadProjectListAsync"));
 }
        /// <summary>
        /// 根据项目来统计
        /// </summary>
        /// <returns></returns>
        private async Task StatisticsByProjectAsync()
        {
            var projectList = await _projectCache.GetProjectListAsync();

            //获取上次各个统计截止时间
            var statisticsValueTypeList = typeof(StatisticsValueType).GetDesc().Keys;

            foreach (var statisticsValueType in statisticsValueTypeList)
            {
            }
        }