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; }
List<ScenicImg> sclist = new List<ScenicImg>(); //绑定周边景区 #endregion Fields #region Methods //绑定套票所需要的内容 public void bindpackage(Scenic s) { List<Scenic> list = new BLLScenicTicket().GetScenicByTicket(s.Tickets[0].Id).ToList(); bindimglist = ""; for (int i = 0; i < list.Count; i++) { if (i == 0) { scpoint = list[0].Position; scmapname = list[0].Name; } else bindimglist += list[i].Position + "," + list[i].Name + ":"; } // bindimglist.Substring(0, bindimglist.Length - 1); imgcount = list.Count - 1; introordertk.Visible = 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; }