/// <summary> /// 根据投注信息获取对应奖金 /// </summary> /// <param name="playRadioCode">玩法单选编号</param> /// <param name="PrizeType">是否舍弃返点</param> /// <param name="BonusLevel">玩法 1700/1800</param> /// <returns></returns> protected virtual decimal GetBaseAmt(int playRadioCode, int PrizeType, int BonusLevel, decimal backNum, ref decimal stepAmt) { var source = BaseDataCatch.GetPalyTypeRadio(); var palyTypeRadio = source.Where(c => c.RadioCode == playRadioCode).FirstOrDefault(); if (null == palyTypeRadio) { return(0); } decimal baseAmt = 0; if (BonusLevel == 1700) { baseAmt = PrizeType == 1 ? palyTypeRadio.BonusBasic17 : GetbackNumMonery1700(palyTypeRadio.MaxBonus17, palyTypeRadio, backNum); //palyTypeRadio.MaxBonus17; stepAmt = palyTypeRadio.StepAmt1700; } else { baseAmt = PrizeType == 1 ? palyTypeRadio.BonusBasic : GetbackNumMonery(palyTypeRadio.MaxBonus, palyTypeRadio, backNum);//palyTypeRadio.MaxBonus;//1800 stepAmt = palyTypeRadio.StepAmt; } return(baseAmt); }
/// <summary> /// 根据 投注信息获取奖金集合 /// </summary> /// <param name="item"></param> /// <returns></returns> protected virtual List <PlayTypeRadiosBonus> GetBaseAmtLst(BasicModel.LotteryBasic.BetDetail item, ref PlayTypeRadio radio) { var source = BaseDataCatch.GetPalyTypeRadio(); var palyTypeRadio = source.Where(c => c.RadioCode == item.PalyRadioCode).FirstOrDefault(); if (null == palyTypeRadio) { return(null); } radio = palyTypeRadio; return(BaseDataCatch.GetPlayTypeRadiosBonus().Where(c => c.RadioCode == palyTypeRadio.RadioCode).ToList()); }