Beispiel #1
0
        public virtual void StartBlock3(Sungero.RecordManagement.Server.DeadlineRejectionAssignmentArguments e)
        {
            e.Block.Subject = Functions.DeadlineExtensionTask.GetDeadlineExtensionSubject(_obj, DeadlineExtensionTasks.Resources.ExtensionDeadlineDenied);
            e.Block.Performers.Add(_obj.Author);

            e.Block.CurrentDeadline = _obj.CurrentDeadline;
            e.Block.NewDeadline     = _obj.NewDeadline;
            Docflow.PublicFunctions.Module.SynchronizeAddendaAndAttachmentsGroup(_obj.AddendaGroup, _obj.DocumentsGroup.OfficialDocuments.FirstOrDefault());
        }
Beispiel #2
0
 public virtual void CompleteAssignment3(Sungero.RecordManagement.IDeadlineRejectionAssignment assignment, Sungero.RecordManagement.Server.DeadlineRejectionAssignmentArguments e)
 {
     // Сохранить переписку и срок.
     _obj.Reason      = assignment.ActiveText;
     _obj.NewDeadline = assignment.NewDeadline;
 }
Beispiel #3
0
        public virtual void StartAssignment3(Sungero.RecordManagement.IDeadlineRejectionAssignment assignment, Sungero.RecordManagement.Server.DeadlineRejectionAssignmentArguments e)
        {
            var assignmentsDeadLine = 1;

            _obj.MaxDeadline    = Calendar.Now.AddWorkingDays(assignmentsDeadLine);
            assignment.Deadline = _obj.MaxDeadline;

            // "От".
            assignment.Author = _obj.Assignee;

            // Выдать права на изменение для возможности прекращения подзадач.
            Functions.ActionItemExecutionTask.GrantAccessRightToAssignment(assignment, _obj);
        }