示例#1
0
        protected override void InitActivityConfiguration()
        {
            AddActivities(new ActivityEngine());
            AddActivities(new ActivityEngine(REQUESTOR_REWORKED));
            ActivityList.Each(p => { AddActivities(new ActivityEngine(p)); });
            AddActivities(new ActivityEngine(() =>
            {
                IEnumerable <string> ccList = null;
                string subject = string.Empty;
                if (RequestHeader != null)
                {
                    ccList  = requestHeaderRepository.GetMTFEmailNotification(RequestHeader.Id);
                    subject = _treatmentRepository.GetSubjectEmail(RequestHeader.Id);
                }

                return(CreateEmailData("MODIFICATION", ccList, subject));
            },
                                             new FormDataProcessing()
            {
                IsAddNewRequestHeader = false,
                IsEditPriority        = false,
                IsEditRequestor       = false,
                IsSaveActivityHistory = true,
                IsUpdateLastActivity  = true,
                IsSaveRequestData     = true,
                IsSaveAttachments     = true,
                TriggerWorkflow       = false
            }));
        }
示例#2
0
 protected override void InitActivityConfiguration()
 {
     AddActivities(new ActivityEngine());
     ActivityList.Each(p => { AddActivities(new ActivityEngine(p)); });
     AddActivities(new ActivityEngine(() => {
         return(CreateEmailData("MODIFICATION"));
     }));
 }
示例#3
0
 protected override void InitActivityConfiguration()
 {
     AddActivities(new ActivityEngine());
     ActivityList.Each(p => {
         if (p.Name.IsCaseInsensitiveEqual("repair"))
         {
             AddActivities(new ActivityEngine(p, () => {
                 return(GetEmailData("ITIRF_REPAIR_GROUP"));
             }));
         }
         else
         {
             AddActivities(new ActivityEngine(p));
         }
     });
 }
示例#4
0
 protected override void InitActivityConfiguration()
 {
     AddActivities(new ActivityEngine());
     AddActivities(new ActivityEngine(REQUESTOR_REWORKED));
     ActivityList.Each(p => { AddActivities(new ActivityEngine(p)); });
     AddActivities(new ActivityEngine(() =>
     {
         return(CreateEmailData("MODIFICATION"));
     },
                                      new FormDataProcessing()
     {
         IsAddNewRequestHeader = false,
         IsEditPriority        = false,
         IsEditRequestor       = false,
         IsSaveActivityHistory = true,
         IsUpdateLastActivity  = true,
         IsSaveRequestData     = true,
         IsSaveAttachments     = true,
         TriggerWorkflow       = false
     }));
 }