public BrochureDownload(SPListItem item)
     : base(item)
 {
     _FirstName = item.GetSiteColumnStringValue(SiteColumns.NAME, string.Empty);
     _LastName = item.GetSiteColumnStringValue(SiteColumns.LAST_NAME, string.Empty);
     _Company = item.GetSiteColumnStringValue(SiteColumns.COMPANY, string.Empty);
     _Email = item.GetSiteColumnStringValue(SiteColumns.EMAIL, string.Empty);
 }
Exemple #2
0
 public HomeSlide(SPListItem item)
     : base(item)
 {            
     SPFieldUrlValue spLink = item.GetSiteColumnUrlValue(SiteColumns.LINK);
     _Title = item.File.Title;
     _Description = item.GetSiteColumnStringValue(SiteColumns.DESCRIPTION, string.Empty);            
     _LinkUrl = spLink == null ? string.Empty : spLink.Url;
     _LinkTitle = spLink == null ? string.Empty : spLink.Description;
     _ImageUrl = item.File.ServerRelativeUrl;
     _Color = item.GetSiteColumnStringValue(SiteColumns.COLOR, string.Empty);
 }
 public ContactRequest(SPListItem item)
     : base(item)
 {
     _FirstName = item.GetSiteColumnStringValue(SiteColumns.NAME, string.Empty);
     _LastName = item.GetSiteColumnStringValue(SiteColumns.LAST_NAME, string.Empty);
     _Company = item.GetSiteColumnStringValue(SiteColumns.COMPANY, string.Empty);
     _Email = item.GetSiteColumnStringValue(SiteColumns.EMAIL, string.Empty);
     _Phone = item.GetSiteColumnStringValue(SiteColumns.PHONE, string.Empty);
     _Mobile = item.GetSiteColumnStringValue(SiteColumns.MOBILE, string.Empty);
     _City = item.GetSiteColumnStringValue(SiteColumns.CITY, string.Empty);
     _Subject = item.GetSiteColumnStringValue(SiteColumns.SUBJECT, string.Empty);
     _OtherSubject = item.GetSiteColumnStringValue(SiteColumns.OTHER_SUBJECT, string.Empty);
 }
Exemple #4
0
 public DemoRequest(SPListItem item)
     : base(item)
 {
     _FirstName = item.GetSiteColumnStringValue(SiteColumns.NAME, string.Empty);
     _LastName = item.GetSiteColumnStringValue(SiteColumns.LAST_NAME, string.Empty);
     _Company = item.GetSiteColumnStringValue(SiteColumns.COMPANY, string.Empty);
     _Email = item.GetSiteColumnStringValue(SiteColumns.EMAIL, string.Empty);
     _Phone = item.GetSiteColumnStringValue(SiteColumns.PHONE, string.Empty);
     _Mobile = item.GetSiteColumnStringValue(SiteColumns.MOBILE, string.Empty);
     _City = item.GetSiteColumnStringValue(SiteColumns.CITY, string.Empty);
 }