예제 #1
0
 public EmailRule(IContextEmailRule emailRule) : base(emailRule)
 {
     SmtpClientContext        = emailRule.SmtpClientContext;
     TemplateContext          = emailRule.TemplateContext;
     CurrentObjectEmailMember = emailRule.CurrentObjectEmailMember;
     EmailReceipientsContext  = emailRule.EmailReceipientsContext;
 }
예제 #2
0
        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);
                }
            }
        }
예제 #3
0
 public EmailRule(IContextEmailRule emailRule) : base(emailRule) {
     SmtpClientContext = emailRule.SmtpClientContext;
     TemplateContext = emailRule.TemplateContext;
     CurrentObjectEmailMember=emailRule.CurrentObjectEmailMember;
     EmailReceipientsContext = emailRule.EmailReceipientsContext;
 }