Beispiel #1
0
        public JsonResult MsgCount()
        {
            JMP.BLL.jmp_user bll = new JMP.BLL.jmp_user();
            int userid           = UserInfo.UserId;
            int msgCount         = bll.GetUserMsgCount(userid);

            return(Json(new { success = msgCount > 0 ? 1 : 0, mess = msgCount }));
        }
Beispiel #2
0
        public ActionResult Default()
        {
            #region 获取用户实名认证状态信息

            JMP.BLL.jmp_user sm_bll   = new JMP.BLL.jmp_user();
            JMP.MDL.jmp_user sm_model = new JMP.MDL.jmp_user();

            int u_ids = UserInfo.Uid;

            //查询登录信息
            sm_model = sm_bll.GetModel(u_ids);

            ViewBag.auditstate = sm_model.u_auditstate;
            ViewBag.linkEmail  = sm_model.u_email;


            #endregion

            int r_id = UserInfo.UserRid;

            string menuStr = GetMenStr(u_ids, r_id);
            ViewBag.UserName   = UserInfo.UserNo;
            ViewBag.MsgCount   = sm_bll.GetUserMsgCount(u_ids);
            ViewBag.MenuTopStr = menuStr;
            ViewBag.QQ         = ConfigurationManager.AppSettings["linkqq"];
            ViewBag.Tel        = ConfigurationManager.AppSettings["linkphone"];

            //每日应用汇总
            JMP.BLL.jmp_appcount bllapp   = new JMP.BLL.jmp_appcount();
            JMP.MDL.jmp_appcount modelapp = new JMP.MDL.jmp_appcount();
            //开发者每日结算详情
            JMP.BLL.CoSettlementDeveloperAppDetails cobll                   = new JMP.BLL.CoSettlementDeveloperAppDetails();
            JMP.MDL.CoSettlementDeveloperAppDetails comodel_yesterday       = new JMP.MDL.CoSettlementDeveloperAppDetails();
            JMP.MDL.CoSettlementDeveloperAppDetails comodel_month           = new JMP.MDL.CoSettlementDeveloperAppDetails();
            JMP.MDL.CoSettlementDeveloperAppDetails comodel_preceding_month = new JMP.MDL.CoSettlementDeveloperAppDetails();

            int u_id = UserInfo.UserId;
            //今天
            string u_time = DateTime.Now.ToString("yyyy-MM-dd");
            //昨天
            string u_time_yesterday = DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd");
            //本月
            string u_time_month = DateTime.Now.ToString("yyyy-MM");
            //上月
            string u_time_preceding_month = DateTime.Now.AddMonths(-1).ToString("yyyy-MM");

            //根据日期查询交易金额和笔数(今天)
            modelapp = bllapp.DataAppcountAdy(u_time, u_id, 0);


            //根据不同日期统计查询(昨天)
            comodel_yesterday = cobll.GetModelKFZ_total(u_id, u_time_yesterday, 0);
            //根据不同日期统计查询(本月)
            comodel_month = cobll.GetModelKFZ_total(u_id, u_time_month, 1);
            //根据不同日期统计查询(上月)
            comodel_preceding_month = cobll.GetModelKFZ_total(u_id, u_time_preceding_month, 1);

            //流水及收入金额
            ViewBag.comodel_yesterday       = comodel_yesterday;
            ViewBag.comodel_month           = comodel_month;
            ViewBag.comodel_preceding_month = comodel_preceding_month;

            ViewBag.AppCount = modelapp;

            return(View());
        }