コード例 #1
0
        /// <summary>
        /// 账单详情
        /// </summary>
        /// <param name="appid"></param>
        /// <param name="SettlementDay"></param>
        /// <returns></returns>
        public ActionResult BillList_Details(int appid, string SettlementDay)
        {
            JMP.BLL.CoSettlementDeveloperAppDetails        cobll  = new JMP.BLL.CoSettlementDeveloperAppDetails();
            List <JMP.MDL.CoSettlementDeveloperAppDetails> colist = new List <JMP.MDL.CoSettlementDeveloperAppDetails>();

            DataTable dt = new DataTable();

            //查询账单详情
            dt     = cobll.GetModel_Statistics(appid, SettlementDay).Tables[0];
            colist = JMP.TOOL.MdlList.ToList <JMP.MDL.CoSettlementDeveloperAppDetails>(dt);

            ViewBag.colist = colist;

            return(PartialView());
        }
コード例 #2
0
        public ActionResult Index()
        {
            //每日应用汇总
            JMP.BLL.jmp_appcount bll      = new JMP.BLL.jmp_appcount();
            JMP.MDL.jmp_appcount model    = new JMP.MDL.jmp_appcount();
            JMP.MDL.jmp_user     sm_model = new JMP.MDL.jmp_user();
            //开发者每日结算详情
            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;

            JMP.BLL.jmp_user sm_bll = new JMP.BLL.jmp_user();
            sm_model            = sm_bll.GetModel(u_id);
            ViewBag.FrozenMoney = sm_model.FrozenMoney.ToString("f0");
            //今天
            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");

            //根据日期查询交易金额和笔数(今天)
            model = bll.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 = model;
            return(View());
        }
コード例 #3
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());
        }