public bool IsCurrentScenicTp(Ticket t) { t = new BLLTicket().GetTicket(t.Id); BLLScenicTicket bllscenicticket = new BLLScenicTicket(); List<Scenic> list = bllscenicticket.GetScenicByTicket(t.Id).ToList(); foreach (Scenic item in list) { if (item.Id == bllMember.GetScenicAdmin((Guid)CurrentUser.ProviderUserKey).Scenic.Id) { return true; } } return false; }
public bool IsCurrentScenicTp(Ticket t) { t = new BLLTicket().GetTicket(t.Id); BLLScenicTicket bllscenicticket = new BLLScenicTicket(); List<Scenic> list = bllscenicticket.GetScenicByTicket(t.Id).ToList(); foreach (Scenic item in list) { if (item.Id == Master.Scenic.Id) { return true; } } return false; }
public bool IsTp(Ticket t) { BLLScenicTicket bllscenicticket = new BLLScenicTicket(); IList<Scenic> list = bllscenicticket.GetScenicByTicket(t.Id); if (list.Count > 0) return true; return false; }
//判断是否为套票景区 public bool IsPackageScenic(Scenic s) { BLLScenicTicket bllscenicticket = new BLLScenicTicket(); if (s.Tickets.Count > 0 && bllscenicticket.GetScenicByTicket(s.Tickets[0].Id).Count > 0) return true; return false; }