Esempio n. 1
0
        public ActionResult CalcFeeAmt(int cashType, string transAmt)
        {
            decimal tAmt = 0;

            decimal.TryParse(transAmt, out tAmt);
            ServiceFeesLogic logic = new ServiceFeesLogic();
            M_WithdrawalCash mwc   = logic.GetWithdrawalCashFees(cashType, tAmt);

            if (mwc == null)
            {
                return(Content("0.00"));
            }
            return(Content(mwc.ServiceFees.ToString("0.00")));
        }
Esempio n. 2
0
        /// <summary>
        /// 获取提现手续费
        /// </summary>
        /// <param name="withdrawalType">提现方式.0:普通提现;1:快速提现;2:即时提现.默认值为0</param>
        /// <param name="withdrawalAmount">提现金额</param>
        /// <returns></returns>
        public M_WithdrawalCash GetWithdrawalCashFees(int withdrawalType, Decimal withdrawalAmount)
        {
            DateTime         withdrawalTime = DateTime.Now;
            M_WithdrawalCash result         = new M_WithdrawalCash();

            result.Amount      = withdrawalAmount;
            result.Type        = withdrawalType;
            result.ArrivalDate = GetArrivalDate(withdrawalType, withdrawalTime);
            result.ServiceFees = GetServiceFees(withdrawalType, withdrawalAmount, withdrawalTime);
            switch (withdrawalType)
            {
            case 2:
                result.Limit = 200000.00M;
                result.Payer = FeesPayerEnum.Remittee;
                break;

            default:
                result.Limit = 0.00M;
                result.Payer = FeesPayerEnum.Platform;
                break;
            }
            return(result);
        }