/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is WorkflowType) { var WorkflowType = (WorkflowType)model; this.IsSystem = WorkflowType.IsSystem; this.IsActive = WorkflowType.IsActive; this.WorkflowIdPrefix = WorkflowType.WorkflowIdPrefix; this.Name = WorkflowType.Name; this.Description = WorkflowType.Description; this.CategoryId = WorkflowType.CategoryId; this.Order = WorkflowType.Order; this.WorkTerm = WorkflowType.WorkTerm; this.ProcessingIntervalSeconds = WorkflowType.ProcessingIntervalSeconds; this.IsPersisted = WorkflowType.IsPersisted; this.SummaryViewText = WorkflowType.SummaryViewText; this.NoActionMessage = WorkflowType.NoActionMessage; this.LogRetentionPeriod = WorkflowType.LogRetentionPeriod; this.CompletedWorkflowRetentionPeriod = WorkflowType.CompletedWorkflowRetentionPeriod; this.LoggingLevel = WorkflowType.LoggingLevel; this.IconCssClass = WorkflowType.IconCssClass; // set activityTypeIds to null so it load them all at once on demand this.activityTypeIds = null; } }
/// <summary> /// Raises the <see cref="E:System.Web.UI.Control.Init" /> event. /// </summary> /// <param name="e">An <see cref="T:System.EventArgs" /> object that contains the event data.</param> protected override void OnInit(EventArgs e) { // Get the context types defined through configuration or block properties var requiredContext = ContextTypesRequired; // Check to see if a context type was specified in a query, form, or page route parameter string param = PageParameter("ContextEntityType"); if (!String.IsNullOrWhiteSpace(param)) { requiredContext.Add(param); } // Get the current context for each required context type ContextEntities = new Dictionary <string, Data.IEntity>(); foreach (var contextEntityType in requiredContext) { if (!String.IsNullOrWhiteSpace(contextEntityType)) { Data.IEntity contextEntity = CurrentPage.GetCurrentContext(contextEntityType); if (contextEntity != null) { ContextEntities.Add(contextEntityType, contextEntity); } } } base.OnInit(e); }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is GroupType) { var groupType = (GroupType)model; this.IsSystem = groupType.IsSystem; this.Name = groupType.Name; this.Description = groupType.Description; this.GroupTerm = groupType.GroupTerm; this.GroupMemberTerm = groupType.GroupMemberTerm; this.DefaultGroupRoleId = groupType.DefaultGroupRoleId; this.AllowMultipleLocations = groupType.AllowMultipleLocations; this.ShowInGroupList = groupType.ShowInGroupList; this.ShowInNavigation = groupType.ShowInNavigation; this.IconCssClass = groupType.IconCssClass; this.TakesAttendance = groupType.TakesAttendance; this.AttendanceRule = groupType.AttendanceRule; this.AttendancePrintTo = groupType.AttendancePrintTo; this.Order = groupType.Order; this.InheritedGroupTypeId = groupType.InheritedGroupTypeId; this.LocationSelectionMode = groupType.LocationSelectionMode; this.GroupTypePurposeValueId = groupType.GroupTypePurposeValueId; this.locationTypeValueIDs = groupType.LocationTypes.Select(l => l.LocationTypeValueId).ToList(); this.Roles = new Dictionary <int, string>(); groupType.Roles.OrderBy(r => r.Order).ToList().ForEach(r => Roles.Add(r.Id, r.Name)); } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is Site) { var site = (Site)model; this.IsSystem = site.IsSystem; this.Name = site.Name; this.Description = site.Description; this.Theme = site.Theme; this.DefaultPageId = site.DefaultPageId; this.DefaultPageRouteId = site.DefaultPageRouteId; this.LoginPageId = site.LoginPageId; this.LoginPageRouteId = site.LoginPageRouteId; this.CommunicationPageId = site.CommunicationPageId; this.CommunicationPageRouteId = site.CommunicationPageRouteId; this.RegistrationPageId = site.RegistrationPageId; this.RegistrationPageRouteId = site.RegistrationPageRouteId; this.ErrorPage = site.ErrorPage; this.GoogleAnalyticsCode = site.GoogleAnalyticsCode; this.FacebookAppId = site.FacebookAppId; this.FacebookAppSecret = site.FacebookAppSecret; this.PageNotFoundPageId = site.PageNotFoundPageId; this.PageNotFoundPageRouteId = site.PageNotFoundPageRouteId; foreach (var domain in site.SiteDomains.Select(d => d.Domain).ToList()) { _siteDomains.AddOrUpdate(domain, site.Id, (k, v) => site.Id); } } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is Site) { var site = (Site)model; this.IsSystem = site.IsSystem; this.Name = site.Name; this.Description = site.Description; this.Theme = site.Theme; this.DefaultPageId = site.DefaultPageId; this.DefaultPageRouteId = site.DefaultPageRouteId; this.LoginPageId = site.LoginPageId; this.LoginPageRouteId = site.LoginPageRouteId; this.RegistrationPageId = site.RegistrationPageId; this.RegistrationPageRouteId = site.RegistrationPageRouteId; this.ErrorPage = site.ErrorPage; this.GoogleAnalyticsCode = site.GoogleAnalyticsCode; this.FacebookAppId = site.FacebookAppId; this.FacebookAppSecret = site.FacebookAppSecret; this.PageNotFoundPageId = site.PageNotFoundPageId; this.PageNotFoundPageRouteId = site.PageNotFoundPageRouteId; } }
/// <summary> /// Raises the <see cref="E:System.Web.UI.Control.Init" /> event. /// </summary> /// <param name="e">An <see cref="T:System.EventArgs" /> object that contains the event data.</param> protected override void OnInit(EventArgs e) { // Get the context types defined through configuration or block properties var requiredContext = ContextTypesRequired; // Check to see if a context type was specified in a query, form, or page route parameter string param = PageParameter("ContextEntityType"); if (!String.IsNullOrWhiteSpace(param)) { var entityType = EntityTypeCache.Read(param, false); if (entityType != null) { requiredContext.Add(entityType); } } // Get the current context for each required context type ContextEntities = new Dictionary <string, Data.IEntity>(); foreach (var contextEntityType in requiredContext) { Data.IEntity contextEntity = RockPage.GetCurrentContext(contextEntityType); if (contextEntity != null) { ContextEntities.Add(contextEntityType.Name, contextEntity); } } base.OnInit(e); this.BlockValidationGroup = string.Format("{0}_{1}", this.GetType().BaseType.Name, _blockCache.Id); RockPage.BlockUpdated += Page_BlockUpdated; }
/// <summary> /// Copies the model property values to the DTO properties /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is InteractionComponent) { var interactionComponent = (InteractionComponent)model; this.Name = interactionComponent.Name; this.EntityId = interactionComponent.EntityId; this.ChannelId = interactionComponent.ChannelId; } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is Campus) { var campus = (Campus)model; this.IsSystem = campus.IsSystem; this.Name = campus.Name; this.ShortCode = campus.ShortCode; } }
/// <summary> /// Trims a string using an entities MaxLength attribute value /// </summary> /// <param name="str">The string.</param> /// <param name="entity">The entity.</param> /// <param name="propertyName">Name of the property.</param> /// <returns></returns> public static string TrimForMaxLength(this string str, Data.IEntity entity, string propertyName) { if (str.IsNotNullOrWhiteSpace()) { var maxLengthAttr = entity.GetAttributeFrom <System.ComponentModel.DataAnnotations.MaxLengthAttribute>(propertyName); if (maxLengthAttr != null) { return(str.Left(maxLengthAttr.Length)); } } return(str); }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is RestController) { var RestController = (RestController)model; this.Name = RestController.Name; this.ClassName = RestController.ClassName; SetCache(RestController.ClassName, model.Id, new CacheItemPolicy()); } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is PersonBadge) { var personBadge = (PersonBadge)model; this.Name = personBadge.Name; this.Description = personBadge.Description; this.EntityTypeId = personBadge.EntityTypeId; this.Order = personBadge.Order; } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is EventCalendar) { var eventCalendar = (EventCalendar)model; this.Description = eventCalendar.Description; this.IconCssClass = eventCalendar.IconCssClass; this.IsActive = eventCalendar.IsActive; this.Name = eventCalendar.Name; } }
/// <summary> /// Copies the model property values to the DTO properties /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is DefinedValue) { var definedValue = (DefinedValue)model; this.IsSystem = definedValue.IsSystem; this.DefinedTypeId = definedValue.DefinedTypeId; this.Order = definedValue.Order; this.Value = definedValue.Value; this.Description = definedValue.Description; } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is Layout) { var Layout = (Layout)model; this.IsSystem = Layout.IsSystem; this.SiteId = Layout.SiteId; this.FileName = Layout.FileName; this.Name = Layout.Name; this.Description = Layout.Description; } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is Page) { var page = (Page)model; this.InternalName = page.InternalName; this.PageTitle = page.PageTitle; this.BrowserTitle = page.BrowserTitle; this.ParentPageId = page.ParentPageId; this.LayoutId = page.LayoutId; this.IsSystem = page.IsSystem; this.RequiresEncryption = page.RequiresEncryption; this.EnableViewState = page.EnableViewState; this.PageDisplayTitle = page.PageDisplayTitle; this.PageDisplayBreadCrumb = page.PageDisplayBreadCrumb; this.PageDisplayIcon = page.PageDisplayIcon; this.PageDisplayDescription = page.PageDisplayDescription; this.DisplayInNavWhen = page.DisplayInNavWhen; this.MenuDisplayDescription = page.MenuDisplayDescription; this.MenuDisplayIcon = page.MenuDisplayIcon; this.MenuDisplayChildPages = page.MenuDisplayChildPages; this.BreadCrumbDisplayName = page.BreadCrumbDisplayName; this.BreadCrumbDisplayIcon = page.BreadCrumbDisplayIcon; this.IconCssClass = page.IconCssClass; this.Order = page.Order; this.OutputCacheDuration = page.OutputCacheDuration; this.Description = page.Description; this.KeyWords = page.KeyWords; this.HeaderContent = page.HeaderContent; this.IncludeAdminFooter = page.IncludeAdminFooter; this.AllowIndexing = page.AllowIndexing; this.BodyCssClass = page.BodyCssClass; this.PageContexts = new Dictionary <string, string>(); if (page.PageContexts != null) { page.PageContexts.ToList().ForEach(c => this.PageContexts.Add(c.Entity, c.IdParameter)); } this.PageRoutes = new List <PageRouteInfo>(); if (page.PageRoutes != null) { page.PageRoutes.ToList().ForEach(r => this.PageRoutes.Add(new PageRouteInfo { Id = r.Id, Guid = r.Guid, Route = r.Route })); } } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is BlockType) { var blockType = (BlockType)model; this.IsSystem = blockType.IsSystem; this.Path = blockType.Path; this.Name = blockType.Name; this.Description = blockType.Description; this.IsInstancePropertiesVerified = false; } }
/// <summary> /// Copies the model property values to the DTO properties /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is RestAction) { var RestAction = (RestAction)model; this.ControllerId = RestAction.ControllerId; this.Method = RestAction.Method; this.ApiId = RestAction.ApiId; this.Path = RestAction.Path; SetCache(RestAction.ApiId, model.Id, new CacheItemPolicy()); } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is GroupType) { var groupType = (GroupType)model; this.IsSystem = groupType.IsSystem; this.Name = groupType.Name; this.Description = groupType.Description; this.GroupTerm = groupType.GroupTerm; this.GroupMemberTerm = groupType.GroupMemberTerm; this.DefaultGroupRoleId = groupType.DefaultGroupRoleId; this.AllowMultipleLocations = groupType.AllowMultipleLocations; this.ShowInGroupList = groupType.ShowInGroupList; this.ShowInNavigation = groupType.ShowInNavigation; this.IconCssClass = groupType.IconCssClass; this.TakesAttendance = groupType.TakesAttendance; this.AttendanceCountsAsWeekendService = groupType.AttendanceCountsAsWeekendService; this.SendAttendanceReminder = groupType.SendAttendanceReminder; this.ShowConnectionStatus = groupType.ShowConnectionStatus; this.AttendanceRule = groupType.AttendanceRule; this.GroupCapacityRule = groupType.GroupCapacityRule; this.AttendancePrintTo = groupType.AttendancePrintTo; this.Order = groupType.Order; this.InheritedGroupTypeId = groupType.InheritedGroupTypeId; this.AllowedScheduleTypes = groupType.AllowedScheduleTypes; this.LocationSelectionMode = groupType.LocationSelectionMode; this.EnableLocationSchedules = groupType.EnableLocationSchedules; this.GroupTypePurposeValueId = groupType.GroupTypePurposeValueId; this.IgnorePersonInactivated = groupType.IgnorePersonInactivated; this.IsIndexEnabled = groupType.IsIndexEnabled; this.locationTypeValueIDs = groupType.LocationTypes.Select(l => l.LocationTypeValueId).ToList(); this.Roles = new List <GroupTypeRoleCache>(); groupType.Roles .OrderBy(r => r.Order) .ToList() .ForEach(r => Roles.Add(new GroupTypeRoleCache(r))); this.GroupScheduleExclusions = new List <DateRange>(); groupType.GroupScheduleExclusions .OrderBy(s => s.StartDate) .ToList() .ForEach(s => GroupScheduleExclusions.Add(new DateRange(s.StartDate, s.EndDate))); } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is FieldType) { var fieldType = (FieldType)model; this.IsSystem = fieldType.IsSystem; this.Name = fieldType.Name; this.Description = fieldType.Description; this.Assembly = fieldType.Assembly; this.Class = fieldType.Class; this.Field = Rock.Field.Helper.InstantiateFieldType(fieldType.Assembly, fieldType.Class); } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is Site) { var site = (Site)model; this.IsSystem = site.IsSystem; this.Name = site.Name; this.Description = site.Description; this.Theme = site.Theme; this.DefaultPageId = site.DefaultPageId; this.DefaultPageRouteId = site.DefaultPageRouteId; this.LoginPageId = site.LoginPageId; this.LoginPageRouteId = site.LoginPageRouteId; this.ChangePasswordPageId = site.ChangePasswordPageId; this.ChangePasswordPageRouteId = site.ChangePasswordPageRouteId; this.RegistrationPageId = site.RegistrationPageId; this.RegistrationPageRouteId = site.RegistrationPageRouteId; this.PageNotFoundPageId = site.PageNotFoundPageId; this.PageNotFoundPageRouteId = site.PageNotFoundPageRouteId; this.CommunicationPageId = site.CommunicationPageId; this.CommunicationPageRouteId = site.CommunicationPageRouteId; this.ErrorPage = site.ErrorPage; this.GoogleAnalyticsCode = site.GoogleAnalyticsCode; this.EnableMobileRedirect = site.EnableMobileRedirect; this.MobilePageId = site.MobilePageId; this.ExternalUrl = site.ExternalUrl; this.AllowedFrameDomains = site.AllowedFrameDomains; this.RedirectTablets = site.RedirectTablets; this.EnablePageViews = site.EnablePageViews; this.PageHeaderContent = site.PageHeaderContent; this.AllowIndexing = site.AllowIndexing; this.IsIndexEnabled = site.IsIndexEnabled; this.IndexStartingLocation = site.IndexStartingLocation; this.RequiresEncryption = site.RequiresEncryption; this.EnabledForShortening = site.EnabledForShortening; this.FavIconBinaryFileId = site.FavIconBinaryFileId; foreach (var domain in site.SiteDomains.Select(d => d.Domain).ToList()) { _siteDomains.AddOrUpdate(domain, site.Id, (k, v) => site.Id); } } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is DefinedType) { var definedType = (DefinedType)model; this.IsSystem = definedType.IsSystem; this.FieldTypeId = definedType.FieldTypeId; this.Order = definedType.Order; this.Category = definedType.Category; this.Name = definedType.Name; this.Description = definedType.Description; this.definedValueIds = definedType.DefinedValues .Select(v => v.Id).ToList(); } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is EntityType) { var entityType = (EntityType)model; this.Name = entityType.Name; this.AssemblyName = entityType.AssemblyName; this.FriendlyName = entityType.FriendlyName; this.IsEntity = entityType.IsEntity; this.IsSecured = entityType.IsSecured; this.SingleValueFieldTypeId = entityType.SingleValueFieldTypeId; this.MultiValueFieldTypeId = entityType.MultiValueFieldTypeId; _entityTypes.AddOrUpdate(entityType.Name, entityType.Id, (k, v) => entityType.Id); } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is NoteType) { var NoteType = (NoteType)model; this.IsSystem = NoteType.IsSystem; this.EntityTypeId = NoteType.EntityTypeId; this.EntityTypeQualifierColumn = NoteType.EntityTypeQualifierColumn; this.EntityTypeQualifierValue = NoteType.EntityTypeQualifierValue; this.Name = NoteType.Name; this.UserSelectable = NoteType.UserSelectable; this.CssClass = NoteType.CssClass; this.IconCssClass = NoteType.IconCssClass; this.Order = NoteType.Order; } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is DefinedType) { var definedType = (DefinedType)model; this.IsSystem = definedType.IsSystem; this.FieldTypeId = definedType.FieldTypeId; this.Order = definedType.Order; this.CategoryId = definedType.CategoryId; this.Name = definedType.Name; this.Description = definedType.Description; // set definedValueIds to null so it load them all at once on demand this.definedValueIds = null; } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { if (model is Rock.Model.Attribute) { var attribute = (Rock.Model.Attribute)model; var qualifiers = new Dictionary <string, string>(); if (attribute.AttributeQualifiers != null) { foreach (Rock.Model.AttributeQualifier qualifier in attribute.AttributeQualifiers) { qualifiers.Add(qualifier.Key, qualifier.Value); } } CopyFromModel(attribute, qualifiers); } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is WorkflowActivityType) { var workflowActivityType = (WorkflowActivityType)model; this.IsActive = workflowActivityType.IsActive; this.WorkflowTypeId = workflowActivityType.WorkflowTypeId; this.Name = workflowActivityType.Name; this.Description = workflowActivityType.Description; this.IsActivatedWithWorkflow = workflowActivityType.IsActivatedWithWorkflow; this.Order = workflowActivityType.Order; // set actionTypeIds to null so it load them all at once on demand this.actionTypeIds = null; } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is Category) { var category = (Category)model; this.IsSystem = category.IsSystem; this.ParentCategoryId = category.ParentCategoryId; this.EntityTypeId = category.EntityTypeId; this.EntityTypeQualifierColumn = category.EntityTypeQualifierColumn; this.EntityTypeQualifierValue = category.EntityTypeQualifierValue; this.Name = category.Name; this.Description = category.Description; this.Order = category.Order; this.IconCssClass = category.IconCssClass; } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is WorkflowActionType) { var workflowActionType = (WorkflowActionType)model; this.ActivityTypeId = workflowActionType.ActivityTypeId; this.Name = workflowActionType.Name; this.Order = workflowActionType.Order; this.EntityTypeId = workflowActionType.EntityTypeId; this.IsActionCompletedOnSuccess = workflowActionType.IsActionCompletedOnSuccess; this.IsActivityCompletedOnSuccess = workflowActionType.IsActivityCompletedOnSuccess; this.WorkflowFormId = workflowActionType.WorkflowFormId; this.CriteriaAttributeGuid = workflowActionType.CriteriaAttributeGuid; this.CriteriaComparisonType = workflowActionType.CriteriaComparisonType; this.CriteriaValue = workflowActionType.CriteriaValue; } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is LavaShortcode) { var shortcode = ( LavaShortcode )model; this.IsSystem = shortcode.IsSystem; this.Name = shortcode.Name; this.Description = shortcode.Description; this.IsActive = shortcode.IsActive; this.Documentation = shortcode.Documentation; this.TagName = shortcode.TagName; this.Markup = shortcode.Markup; this.TagType = shortcode.TagType; this.Parameters = shortcode.Parameters; this.EnabledLavaCommands = shortcode.EnabledLavaCommands; } }
/// <summary> /// Copies from model. /// </summary> /// <param name="model">The model.</param> public override void CopyFromModel(Data.IEntity model) { base.CopyFromModel(model); if (model is WorkflowActionFormAttribute) { var workflowActionFormAttribute = (WorkflowActionFormAttribute)model; this.WorkflowActionFormId = workflowActionFormAttribute.WorkflowActionFormId; this.AttributeId = workflowActionFormAttribute.AttributeId; this.Order = workflowActionFormAttribute.Order; this.IsVisible = workflowActionFormAttribute.IsVisible; this.IsReadOnly = workflowActionFormAttribute.IsReadOnly; this.IsRequired = workflowActionFormAttribute.IsRequired; this.HideLabel = workflowActionFormAttribute.HideLabel; this.PreHtml = workflowActionFormAttribute.PreHtml; this.PostHtml = workflowActionFormAttribute.PostHtml; } }