コード例 #1
0
ファイル: HelpeOrderBLL.cs プロジェクト: BlogPark/SimpleWeb
        /// <summary>
        /// 得到当天的提供帮助金额
        /// </summary>
        /// <returns></returns>
        public decimal GetTodayMoney()
        {
            string datastart = DateTime.Now.ToString("yyyy-MM-dd") + " 00:00:00";
            string dataend   = DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59";

            return(HelpeOrderDAL.GetTodayHelpMoney(datastart, dataend));
        }
コード例 #2
0
ファイル: AdminIndexBLL.cs プロジェクト: BlogPark/SimpleWeb
        public AdminIndexModels GetDefaultData()
        {
            //decimal staticnum = MemberCapitalDetailDAL.GetTotalAmontForPlant(out dynamicnum);
            string           datastart = DateTime.Now.ToString("yyyy-MM-dd") + " 00:00:00";
            string           dataend   = DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59";
            AdminIndexModels model     = new AdminIndexModels();

            model.ActiveCodeCount   = ActiveCodeDAL.GetTotalCount(1); //全部激活码数量
            model.ActiveMemberCount = MemberInfoDAL.GetTotalMemberCount(2);
            model.PaidanCodeCount   = ActiveCodeDAL.GetTotalCount(2); //全部排单币数量
            model.TotalAcceptAmont  = AcceptHelpOrderDAL.GetTotalAcceptMoney();
            model.TotalHelpAmont    = HelpeOrderDAL.GetTotalHelpMoney();
            model.TotalMemberCount  = MemberInfoDAL.GetTotalMemberCount(1);
            model.TodayAcceptMoney  = AcceptHelpOrderDAL.GetTodayAcceptMoney(datastart, dataend);
            model.TodayHelpMoney    = HelpeOrderDAL.GetTodayHelpMoney(datastart, dataend);
            model.TodayMatchedMoney = MatchOrderDAL.GetTotalMatchMoneyByDay(datastart, dataend);
            model.TotalMatchMoney   = MatchOrderDAL.GetTotalMatchMoney();
            return(model);
        }