Пример #1
0
        public Boolean UpdateGetWork()
        {
            Boolean success = false;

            StringBuilder sqlStatement = new StringBuilder();

            WorkQueue updatedWorkQueue = null;


            try {
                if (!application.SessionWorkQueueHasManagePermission(id))
                {
                    throw new ApplicationException("Permission Denied. Not a manager of the Work Queue.");
                }

                updatedWorkQueue = new WorkQueue(application, id);

                if (modifiedAccountInfo.ActionDate != updatedWorkQueue.ModifiedAccountInfo.ActionDate)
                {
                    throw new ApplicationException("Permission Denied. Work Queue has been modified since last retreived from the database.");
                }


                updatedWorkQueue.GetWorkViewId = getWorkViewId;

                updatedWorkQueue.GetWorkUseGrouping = getWorkUseGrouping;

                updatedWorkQueue.GetWorkUserViews = getWorkUserViews;


                success = updatedWorkQueue.Save(false);
            }

            catch (Exception applicationException) {
                success = false;

                application.SetLastException(applicationException);
            }

            return(success);
        }