Пример #1
0
        public virtual void StartAssignment3(Sungero.Docflow.ICheckReturnAssignment assignment, Sungero.Docflow.Server.CheckReturnAssignmentArguments e)
        {
            assignment.Deadline = _obj.Deadline;

            var document = _obj.DocumentGroup.OfficialDocuments.First();

            // Выполнить задание, если документ уже вернули.
            var tracking = document.Tracking.Where(r => Equals(r.ReturnTask, _obj) && r.ReturnDate != null && r.ReturnResult != null).FirstOrDefault();

            if (tracking != null)
            {
                assignment.Complete(Docflow.CheckReturnAssignment.Result.Complete);
            }
        }
Пример #2
0
 public virtual void CompleteAssignment3(Sungero.Docflow.ICheckReturnAssignment assignment, Sungero.Docflow.Server.CheckReturnAssignmentArguments e)
 {
     Functions.CheckReturnTask.SetReturnResult(_obj, assignment.Performer, true);
 }