public Entrants(Guid entrant_ID) { EntrantsBL entrants = new EntrantsBL(); tblEntrants = entrants.GetEntrantsByEntrant_ID(entrant_ID); Entrant_ID = entrant_ID; if (!tblEntrants[0].IsShow_IDNull()) Show_ID = tblEntrants[0].Show_ID; if (!tblEntrants[0].IsCatalogueNull()) Catalogue = tblEntrants[0].Catalogue; else Catalogue = false; if (!tblEntrants[0].IsOvernight_CampingNull()) Overnight_Camping = tblEntrants[0].Overnight_Camping; else Overnight_Camping = false; if (!tblEntrants[0].IsOverpaymentNull()) Overpayment = decimal.Parse(tblEntrants[0].Overpayment.ToString("#.00")); if (!tblEntrants[0].IsUnderpaymentNull()) Underpayment = decimal.Parse(tblEntrants[0].Underpayment.ToString("#.00")); if (!tblEntrants[0].IsOffer_Of_HelpNull()) Offer_Of_Help = tblEntrants[0].Offer_Of_Help; else Offer_Of_Help = false; if (!tblEntrants[0].IsHelp_DetailsNull()) Help_Details = tblEntrants[0].Help_Details; if (!tblEntrants[0].IsWithold_AddressNull()) Withold_Address = tblEntrants[0].Withold_Address; else Withold_Address = false; if (!tblEntrants[0].IsSend_Running_OrderNull()) Send_Running_Order = tblEntrants[0].Send_Running_Order; else Send_Running_Order = false; if (!tblEntrants[0].IsEntry_DateNull()) Entry_Date = tblEntrants[0].Entry_Date; }
public List<Entrants> GetEntrantsByShow_IDAndDog_ID(Guid show_ID, Guid dog_ID, bool includeLinked) { List<Entrants> entrantList = new List<Entrants>(); EntrantsBL entrants = new EntrantsBL(); tblEntrants = entrants.GetEntrantsByShow_IDAndDog_ID(show_ID, dog_ID, includeLinked); if (tblEntrants != null && tblEntrants.Count > 0) { foreach (sss.tblEntrantsRow row in tblEntrants) { Entrants entrant = new Entrants(row.Entrant_ID); entrantList.Add(entrant); } } return entrantList; }