public EmailRule(IContextEmailRule emailRule) : base(emailRule) { SmtpClientContext = emailRule.SmtpClientContext; TemplateContext = emailRule.TemplateContext; CurrentObjectEmailMember = emailRule.CurrentObjectEmailMember; EmailReceipientsContext = emailRule.EmailReceipientsContext; }
public EmailRulePermission(IContextEmailRule contextLogicRule) : base(OperationName, contextLogicRule) { EmailReceipientsContext = contextLogicRule.EmailReceipientsContext; TemplateContext = contextLogicRule.TemplateContext; SmtpClientContext = contextLogicRule.SmtpClientContext; var objectTypeData = (Type)contextLogicRule.GetPropertyValue(nameof(ILogicRuleOperationPermissionData.ObjectTypeData)); if (objectTypeData != null) { var propertyValue = (string)contextLogicRule.GetPropertyValue(nameof(IEmailOperationPermissionData.CurrentObjectEmailMember)); if (!string.IsNullOrWhiteSpace(propertyValue)) { CurrentObjectEmailMember = CaptionHelper.ApplicationModel.BOModel.GetClass(objectTypeData).FindMember(propertyValue); } } }
public EmailRule(IContextEmailRule emailRule) : base(emailRule) { SmtpClientContext = emailRule.SmtpClientContext; TemplateContext = emailRule.TemplateContext; CurrentObjectEmailMember=emailRule.CurrentObjectEmailMember; EmailReceipientsContext = emailRule.EmailReceipientsContext; }