Example #1
0
 public void AddAwardMany(AwardEntity[] awards)
 {
     foreach (var item in awards)
     {
         this.AddAward(item.TicketNO, item.Level, item.Remark);
     }
 }
Example #2
0
        public static AwardEntity[] BuildAwardEntity(AwardDataSet.TmpAwardRow[] ongoing)
        {
            var result = new AwardEntity[ongoing.Length];

            for (var i = 0; i < result.Length; i++)
            {
                var item = new AwardEntity();
                item.TicketNO = ongoing[i].TicketNO;
                item.Level = ongoing[i].Level;
                item.Remark = ongoing[i].Remark;
                result[i] = item;
            }
            return result;
        }
Example #3
0
        public static AwardEntity[] BuildAwardEntity(AwardDataSet.TmpAwardRow[] ongoing)
        {
            var result = new AwardEntity[ongoing.Length];

            for (var i = 0; i < result.Length; i++)
            {
                var item = new AwardEntity();
                item.TicketNO = ongoing[i].TicketNO;
                item.Level    = ongoing[i].Level;
                item.Remark   = ongoing[i].Remark;
                result[i]     = item;
            }
            return(result);
        }