/// <summary>
        /// 营收支付手机界面
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        public ActionResult RevenuePay(string code)
        {
            #region 获取人员表信息

            string accessToken = WeChatTools.GetAccessoken();
            string userInfoStr = WeChatTools.GetUserInfoByCode(accessToken, code);
            var    userInfo    = Common.JsonHelper.JsonToModel <U_WeChatUserID>(userInfoStr); //用户ID
            //U_WeChatUserID userInfo = new U_WeChatUserID();
            //userInfo.UserId = "18936495119";
            //userInfo.UserId = "WangCunbiao";
            var personInfoModel = _wl.GetUserInfo(userInfo.UserId); //获取人员表信息
            ViewData["vguid"] = personInfoModel.Vguid;

            var driverInfo = _rl.GetDriverMsg(personInfoModel);
            //var driverInfo = getDriverInfo(personInfoModel);
            //ViewData["driverId"] = "21033";
            //ViewData["organizationId"] = "55";
            ViewData["driverId"]       = driverInfo.Id;
            ViewData["organizationId"] = driverInfo.OrganizationID;

            //Business_Personnel_Information personInfoModel = new Business_Personnel_Information();
            //personInfoModel.Vguid = Guid.Parse("B0167926-C8AF-4AAE-9B18-573EEEDFE740");
            //ViewData["vguid"] = personInfoModel.Vguid;
            #endregion

            #region 查询车牌号是否为空
            ViewData["payException"] = "0";
            //var driverInfo = _weChatRevenueLogic.GetDriverInfo(personInfoModel);
            //if (driverInfo == null)
            //{
            //    ViewData["payException"] = "1";
            //}
            #endregion

            #region 获取openid

            //var openInfoStr = WeChatTools.ConvertToOpenidByUserId(accessToken, userInfo.UserId);
            //var openInfo = Common.JsonHelper.JsonToModel<U_OpenInfo>(openInfoStr);
            //var openidExt = openInfo.openid;
            //ViewData["openid"] = openidExt;

            #endregion

            //var configList = _configManagementLogic.GetConfigList();
            //var fee = configList[13].ConfigValue;
            //ViewData["driverPay"] = fee;
            //var driverPayfee = double.Parse(fee.Trim('%')) / 100;            //获取司机支付的手续费


            //string pushContentVguid = "CCA89587-50BA-4B89-B87B-B53603B74F1B"; //推送的主键
            string pushContentVguid = Request.QueryString["Vguid"]; //推送的主键
            ViewData["pushContentVguid"] = pushContentVguid;
            var  pushContentModel = _pl.GetPushDetail(pushContentVguid);
            bool isValidTime      = false; //未过有效期

            if (pushContentModel != null)
            {
                //判断是否已经支付过
                bool isExist = _weChatRevenueLogic.HasPaymentHistory(personInfoModel.Vguid, pushContentModel.VGUID, 2);
                ViewData["isExist"] = isExist ? "1" : "0";
                #region 判断是否过了有效期

                if (pushContentModel.PeriodOfValidity != null)
                {
                    if (DateTime.Now > pushContentModel.PeriodOfValidity)
                    {
                        isValidTime = true; //已过有效期
                    }
                }

                #endregion

                #region 判断是否是司机

                //去查询营收
                //if (personInfoModel.DepartmenManager == 1) //说明是司机
                //{
                //    ViewData["IsDriver"] = "1";
                //}

                #endregion

                #region 查询营收金额

                if (pushContentModel.RevenueType == 2) //营收金额
                {
                    //去查询营收
                    var revenue = _weChatRevenueLogic.GetRevenueMsgByPersonInfo(personInfoModel);
                    //if (revenue.CurrentAccountBalance == "0" || revenue.CurrentAccountBalance == "0.00")
                    //{
                    //    revenue.CurrentAccountBalance = "-10000.123984";
                    //}
                    //decimal caBalance = Convert.ToDecimal(revenue.CurrentAccountBalance);
                    //var currentAccountBalance = FormatData(caBalance);
                    //revenue.CurrentAccountBalance = FormatData(caBalance).ToString();
                    ViewBag.Revenue = revenue;

                    //if (caBalance < 0)
                    //{
                    //    caBalance = caBalance * -1;
                    //}

                    //ViewBag.CurrentAccountBalance = caBalance.ToString("F2");
                    //var handlingFee = Convert.ToDecimal(revenue.FeeMoney);

                    //handlingFee = FormatData(handlingFee);
                    //if (handlingFee < 0)
                    //{
                    //    handlingFee = handlingFee * -1;
                    //}
                    //ViewBag.HandlingFee = handlingFee;

                    //ViewBag.TotalAmount = currentAccountBalance + handlingFee;
                }

                #endregion
            }
            ViewBag.isValidTime          = isValidTime;
            ViewData["PushContentModel"] = pushContentModel;
            return(View());
        }