VerificationActTaskHandlers.cs 638 Bytes
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Core;
using Sungero.CoreEntities;
using DirRX.Storage.VerificationActTask;

namespace DirRX.Storage
{
  partial class VerificationActTaskSharedHandlers
  {

    public virtual void DocumentGroupAdded(Sungero.Workflow.Interfaces.AttachmentAddedEventArgs e)
    {
      var document = _obj.DocumentGroup.DestructionActs.First();

      using (TenantInfo.Culture.SwitchTo())
        _obj.Subject = CaseArchiving.VerificationTasks.Resources.VerificationTaskSubjectFormat(Sungero.Docflow.PublicFunctions.Module.TrimSpecialSymbols(document.Name));
    }

  }
}