Пример #1
0
 private MeetingWebinarIndex(MeetingCache.MeetingCacheWebinar meetingCacheWebinar, bool isAdmin, int userId)
     : base(meetingCacheWebinar, isAdmin, userId)
 {
     FillCapacity = meetingCacheWebinar.FillCapacity;
 }
Пример #2
0
 private MeetingSkoleniDavidaKotaskaIndex(MeetingCache.MeetingCacheSkoleniDavidaKotaska meetingCacheSkoleniDavidaKotaska, bool isAdmin, int userId)
     : base(meetingCacheSkoleniDavidaKotaska, isAdmin, userId)
 {
     City = meetingCacheSkoleniDavidaKotaska.City;
     Street = meetingCacheSkoleniDavidaKotaska.AddressLine1;
     Title = meetingCacheSkoleniDavidaKotaska.Title;
     Price = meetingCacheSkoleniDavidaKotaska.Price.HasValue && meetingCacheSkoleniDavidaKotaska.CurrencyType.HasValue
                 ? String.Format("{0:N0} {1}", meetingCacheSkoleniDavidaKotaska.Price.GetValueOrDefault(), meetingCacheSkoleniDavidaKotaska.CurrencyType)
                 : NullDisplayText;
 }
Пример #3
0
 private MeetingBusinessInfoIndex(MeetingCache.MeetingCacheBusinessInfo meetingCacheBusinessInfo, bool isAdmin, int userId)
     : base(meetingCacheBusinessInfo, isAdmin, userId)
 {
     City = meetingCacheBusinessInfo.City;
     Street = meetingCacheBusinessInfo.AddressLine1;
 }
Пример #4
0
 private MeetingSetkaniTymuIndex(MeetingCache.MeetingCacheSetkaniTymu meetingCacheSetkaniTymu, bool isAdmin, int userId)
     : base(meetingCacheSetkaniTymu, isAdmin, userId)
 {
     City = meetingCacheSetkaniTymu.City;
     Street = meetingCacheSetkaniTymu.AddressLine1;
     MeetingTitleType = meetingCacheSetkaniTymu.MeetingTitleType;
     Price = meetingCacheSetkaniTymu.Price.HasValue && meetingCacheSetkaniTymu.CurrencyType.HasValue
                 ? String.Format("{0:N0} {1}", meetingCacheSetkaniTymu.Price.GetValueOrDefault(), meetingCacheSetkaniTymu.CurrencyType)
                 : NullDisplayText;
 }
Пример #5
0
 private MeetingMspEveningIndex(MeetingCache.MeetingCacheMspEvening meetingCacheMspEvening, bool isAdmin, int userId)
     : base(meetingCacheMspEvening, isAdmin, userId)
 {
     City = meetingCacheMspEvening.City;
     Street = meetingCacheMspEvening.AddressLine1;
 }
Пример #6
0
 protected MeetingIndex(MeetingCache.MeetingCacheBase meetingCacheBase, bool isAdmin, int userId)
 {
     MeetingId = meetingCacheBase.MeetingId;
     Date = meetingCacheBase.Started;
     Day = meetingCacheBase.Started.ToString("ddd", CultureInfo.CreateSpecificCulture("cs-CZ"));
     Time = meetingCacheBase.Started.ToString("HH:mm");
     Organizer = meetingCacheBase.PrimaryAndSecondaryOrganizerFullName;
     FreeCapacity = meetingCacheBase.Capacity - meetingCacheBase.FillCapacity;
     Lecturer = meetingCacheBase.Lecturer;
     Access = isAdmin || meetingCacheBase.OrganizerId == userId || meetingCacheBase.SecondaryOrganizerId == userId ? Access.Write : Access.Read;
     Private = meetingCacheBase.Private;
 }