Esempio n. 1
0
        /// <summary>
        /// 为首页获取数据
        /// </summary>
        /// <param name="memberid"></param>
        /// <returns></returns>
        public WebIndexModel GetIndexNeeddata(int memberid)
        {
            int count = 0;
            List <ReMemberRelationModel> rememberlist = ReMemberRelationDAL.GetMemberRecommendMap(memberid, out count);
            WebIndexModel model = new WebIndexModel();

            model.helperOrders      = HelpeOrderDAL.GetTopHelpeOrderListByMemberID(memberid, 6);       //我提供的帮助订单
            model.acceptOrders      = AcceptHelpOrderDAL.GetTopAcceptOrderListByMemberID(memberid, 6); //接受帮助的订单
            model.activecodeCount   = ActiveCodeDAL.GetMemberActiveCodeCount(memberid, 1);             //我的激活币的个数
            model.activecodelog     = OperateLogDAL.GetActiveCodeLogByMemberID(memberid, 10);          //我的激活币和排单币的使用状态
            model.AmontChangLog     = OperateLogDAL.GetAmontChangeLogByMemberID(memberid, 10);         //我的资金变动日志
            model.members           = count;                                                           //我下级会员的总人数
            model.paidancodeCount   = ActiveCodeDAL.GetMemberActiveCodeCount(memberid, 2);             //我的排单币个数
            model.zijinmodel        = MemberCapitalDetailDAL.GetMemberStaticCapital(memberid);         //我的资金状况详情
            model.HelperMatchedList = MatchOrderDAL.GetHelperMatchedOrderListByMemberID(memberid, 5);  //我的提供帮助匹配信息
            model.AcceptMatchedList = MatchOrderDAL.GetAcceptMatchedOrderListByMemberID(memberid, 5);  //我的接受帮助匹配信息
            model.NewsCount         = AdminSiteNewsDal.GetSysNewsCount(memberid);                      //系统公告数量
            model.SysNewsList       = AdminSiteNewsDal.GetModelListByUserID(memberid, 5);              //系统公告列表
            model.ContactCount      = AdminSiteNewsDal.GetNewWebContentCount(memberid);                //我的留言数量
            return(model);
        }
Esempio n. 2
0
 /// <summary>
 /// 查询我的留言数目
 /// </summary>
 /// <param name="memberid"></param>
 /// <returns></returns>
 public int GetNewWebContentCount(int memberid)
 {
     return(AdminSiteNewsDal.GetNewWebContentCount(memberid));
 }