public IList GetDetailList(int index, int relationIndex) { SubEventList list = new SubEventList(); SubEvent se = null; PromoEvent Current = this[index]; se = new SubEvent() { AccountName = "Sub Account 1", BaseCases = 1000, PromoCases = 2000, ShipFromDate = Current.ShipFromDate, ShipToDate = Current.ShipToDate }; list.Add(se); se = new SubEvent() { AccountName = "Sub Account 2", BaseCases = 1500, PromoCases = 2500, ShipFromDate = Current.ShipFromDate, ShipToDate = Current.ShipToDate }; list.Add(se); se = new SubEvent() { AccountName = "Sub Account 3", BaseCases = 800, PromoCases = 2000, ShipFromDate = Current.ShipFromDate, ShipToDate = Current.ShipToDate }; list.Add(se); se = new SubEvent() { AccountName = "Sub Account 4", BaseCases = 9000, PromoCases = 25000, ShipFromDate = Current.ShipFromDate, ShipToDate = Current.ShipToDate }; list.Add(se); return(list); }
public PromoEvent() { SubEvents = new SubEventList(); }