Ejemplo n.º 1
0
 /// <summary>
 /// 实例化一个新的中奖排行信息
 /// </summary>
 /// <param name="model">中奖排行信息的数据模型</param>
 public TopBonus(VirtualBonus model)
 {
     string t1 = (model.Id / 1000000).ToString("00");
     string t2 = (model.Id % 100).ToString("00");
     this.Issue = string.Format("{0}****{1}", t1, t2);
     this.Sum = model.Sum;
 }
 /// <summary>
 /// 实例化一个新的虚拟排行信息
 /// </summary>
 /// <param name="model">虚拟排行信息的数据模型</param>
 public VirtualBonusExport(VirtualBonus model)
 {
     this.Id = model.Id;
     this.TicketId = model.Ticket.Id;
     this.Ticket = model.Ticket.Name;
     this.Sum = model.Sum;
 }