예제 #1
0
        public void PermanentTaskCheckOut(int taskId)
        {
            var activeImagingTaskServices = new ActiveImagingTaskServices();
            var task = activeImagingTaskServices.GetTask(taskId);

            task.Status    = "0";
            task.Partition = "";
            task.Completed = "";
            task.Elapsed   = "";
            task.Rate      = "";
            task.Remaining = "";
            activeImagingTaskServices.UpdateActiveImagingTask(task);

            activeImagingTaskServices.SendTaskCompletedEmail(task);
        }
예제 #2
0
        public void CheckOut(int taskId, int profileId)
        {
            var activeImagingTaskServices = new ActiveImagingTaskServices();
            var task = activeImagingTaskServices.GetTask(taskId);

            if (task.Type.Contains("upload"))
            {
            }

            if (task.Type.Contains("unreg"))
            {
                activeImagingTaskServices.DeleteUnregisteredOndTask(task.Id);
            }
            else
            {
                activeImagingTaskServices.DeleteActiveImagingTask(task.Id);
            }

            if (task.Type != "multicast" && task.Type != "ondmulticast")
            {
                activeImagingTaskServices.SendTaskCompletedEmail(task);
            }
        }