public Boolean IsEqual(WorkQueue compareWorkQueue)
        {
            Boolean isEqual = base.IsEqual((CoreConfigurationObject)compareWorkQueue);


            isEqual &= (workflowId == compareWorkQueue.WorkflowId);


            isEqual &= (scheduleValue == compareWorkQueue.ScheduleValue);

            isEqual &= (scheduleQualifier == compareWorkQueue.ScheduleQualifier);

            isEqual &= (thresholdValue == compareWorkQueue.ThresholdValue);

            isEqual &= (thresholdQualifier == compareWorkQueue.ThresholdQualifier);

            isEqual &= (initialConstraintValue == compareWorkQueue.InitialConstraintValue);

            isEqual &= (initialConstraintQualifier == compareWorkQueue.InitialConstraintQualifier);

            isEqual &= (initialMilestoneValue == compareWorkQueue.initialMilestoneValue);

            isEqual &= (initialMilestoneQualifier == compareWorkQueue.initialMilestoneQualifier);


            isEqual &= (workTeams.Count == compareWorkQueue.WorkTeams.Count);



            // COMPARE WORKFLOW PERMISSIONS

            // TODO: SILVERLIGHT UPDATE

            //if (isEqual) {

            //    foreach (Server.Application.WorkQueueTeam currentWorkTeam in workTeams) {

            //        Server.Application.WorkQueueTeam compareWorkTeam = compareWorkQueue.WorkTeam (currentWorkTeam.WorkTeamId);

            //        if (compareWorkTeam == null) { isEqual = false; break; }


            //        isEqual &= (currentWorkTeam.Permission == compareWorkTeam.Permission);

            //        if (!isEqual) { break; }

            //    }

            //}


            return(isEqual);
        }
Beispiel #2
0
        private void WorkQueueGetCompleted(Object sender, Server.Application.WorkQueueGetCompletedEventArgs e)
        {
            GlobalProgressBarHide("WorkQueue");

            if ((!e.Cancelled) && (e.Error == null) && (e.Result != null))
            {
                workQueue = new WorkQueue(Application, e.Result);

                NotifyPropertyChanged("WorkQueue");
            }

            return;
        }
Beispiel #3
0
        public Boolean IsEqual(WorkQueue compareWorkQueue)
        {
            Boolean isEqual = base.IsEqual((CoreConfigurationObject)compareWorkQueue);


            isEqual &= (workflowId == compareWorkQueue.WorkflowId);


            isEqual &= (scheduleValue == compareWorkQueue.ScheduleValue);

            isEqual &= (scheduleQualifier == compareWorkQueue.ScheduleQualifier);

            isEqual &= (thresholdValue == compareWorkQueue.ThresholdValue);

            isEqual &= (thresholdQualifier == compareWorkQueue.ThresholdQualifier);

            isEqual &= (initialConstraintValue == compareWorkQueue.InitialConstraintValue);

            isEqual &= (initialConstraintQualifier == compareWorkQueue.InitialConstraintQualifier);

            isEqual &= (initialMilestoneValue == compareWorkQueue.initialMilestoneValue);

            isEqual &= (initialMilestoneQualifier == compareWorkQueue.initialMilestoneQualifier);


            isEqual &= (getWorkViewId == compareWorkQueue.GetWorkViewId);

            isEqual &= (getWorkUseGrouping == compareWorkQueue.GetWorkUseGrouping);


            // COMPARE GET WORK USER VIEWS

            isEqual &= (getWorkUserViews.Count == compareWorkQueue.GetWorkUserViews.Count);

            if (isEqual)
            {
                foreach (Server.Application.WorkQueueGetWorkUserView currentUserView in getWorkUserViews)
                {
                    Server.Application.WorkQueueGetWorkUserView compareUserView = compareWorkQueue.GetWorkUserView(currentUserView.SecurityAuthorityId, currentUserView.UserAccountId);

                    if (compareUserView == null)
                    {
                        isEqual = false; break;
                    }


                    isEqual &= (currentUserView.WorkQueueViewId == compareUserView.WorkQueueViewId);

                    if (!isEqual)
                    {
                        break;
                    }
                }
            }

            // COMPARE WORK TEAMS

            isEqual &= (workTeams.Count == compareWorkQueue.WorkTeams.Count);

            if (isEqual)
            {
                foreach (Server.Application.WorkQueueTeam currentWorkTeam in workTeams)
                {
                    Server.Application.WorkQueueTeam compareWorkTeam = compareWorkQueue.WorkTeam(currentWorkTeam.WorkTeamId);

                    if (compareWorkTeam == null)
                    {
                        isEqual = false; break;
                    }


                    isEqual &= (currentWorkTeam.Permission == compareWorkTeam.Permission);

                    if (!isEqual)
                    {
                        break;
                    }
                }
            }


            return(isEqual);
        }