/// <summary> /// 开奖第二步,处理代理商电子票逻辑 /// </summary> /// <param name="issueNo"></param> /// <param name="lotoId"></param> /// <param name="winNumber"></param> /// <param name="winMoneyList"></param> private void ExecForOpen_StepTwo(string issueNo, int lotoId, string winNumber, double[] winMoneyList) { var dt = new SLS.Dal.Tables.T_ElectronTicketAgentSchemes().Open(ConnectString , "*" , "IsuseID = " + Shove._Web.Utility.FilteSqlInfusion(issueNo) + " and WinMoney is null and state = 1" , "[ID]"); if (dt == null) { throw new SLS.Common.ElectronicException("数据库读写错误"); } var t_ElectronTicketAgentSchemes = new SLS.Dal.Tables.T_ElectronTicketAgentSchemes(); for (int i = 0; i < dt.Rows.Count; i++) { string LotteryNumber = dt.Rows[i]["LotteryNumber"].ToString(); string Description = ""; double WinMoneyNoWithTax = 0; double WinMoney = new SLS.Lottery()[lotoId].ComputeWin(LotteryNumber, winNumber, ref Description, ref WinMoneyNoWithTax, int.Parse(dt.Rows[i]["PlayTypeID"].ToString()), winMoneyList); t_ElectronTicketAgentSchemes.WinMoney.Value = WinMoney * Shove._Convert.StrToInt(dt.Rows[i]["Multiple"].ToString(), 1); t_ElectronTicketAgentSchemes.WinMoneyWithoutTax.Value = WinMoneyNoWithTax * Shove._Convert.StrToInt(dt.Rows[i]["Multiple"].ToString(), 1); t_ElectronTicketAgentSchemes.WinDescription.Value = Description; t_ElectronTicketAgentSchemes.Update(ConnectString, "[ID] =" + dt.Rows[i]["ID"].ToString()); } }
/// <summary> /// 开奖第二步,处理代理商电子票逻辑 /// </summary> /// <param name="issueNo"></param> /// <param name="lotoId"></param> /// <param name="winNumber"></param> /// <param name="winMoneyList"></param> private void ExecForOpen_StepTwo(string issueNo,int lotoId,string winNumber,double[] winMoneyList) { var dt = new SLS.Dal.Tables.T_ElectronTicketAgentSchemes().Open(ConnectString , "*" , "IsuseID = " + Shove._Web.Utility.FilteSqlInfusion(issueNo) + " and WinMoney is null and state = 1" , "[ID]"); if(dt == null) throw new SLS.Common.ElectronicException("数据库读写错误"); var t_ElectronTicketAgentSchemes = new SLS.Dal.Tables.T_ElectronTicketAgentSchemes(); for (int i = 0; i < dt.Rows.Count; i++) { string LotteryNumber = dt.Rows[i]["LotteryNumber"].ToString(); string Description = ""; double WinMoneyNoWithTax = 0; double WinMoney = new SLS.Lottery()[lotoId].ComputeWin(LotteryNumber, winNumber, ref Description, ref WinMoneyNoWithTax, int.Parse(dt.Rows[i]["PlayTypeID"].ToString()), winMoneyList); t_ElectronTicketAgentSchemes.WinMoney.Value = WinMoney * Shove._Convert.StrToInt(dt.Rows[i]["Multiple"].ToString(), 1); t_ElectronTicketAgentSchemes.WinMoneyWithoutTax.Value = WinMoneyNoWithTax * Shove._Convert.StrToInt(dt.Rows[i]["Multiple"].ToString(), 1); t_ElectronTicketAgentSchemes.WinDescription.Value = Description; t_ElectronTicketAgentSchemes.Update(ConnectString,"[ID] =" + dt.Rows[i]["ID"].ToString()); } }