Example #1
0
        public BusinessObjects.WorkManagement.SkillCollection GetSkills()
        {
            BusinessObjects.WorkManagement.TaskLookupData lookupData = null;

            Services.LookupServiceClient serviceProxy = new Services.LookupServiceClient();
            lookupData = serviceProxy.GetTaskLookupData();
            serviceProxy.Close();

            return lookupData.Skills;

            /*
            -- Test Data
            List<BusinessObjects.WorkManagement.DispatchPriority> categories = new List<BusinessObjects.WorkManagement.DispatchPriority>();
            categories.Add(new BusinessObjects.WorkManagement.DispatchPriority() { ID = 1, Description = "Level 1 (Highest)" });
            categories.Add(new BusinessObjects.WorkManagement.DispatchPriority() { ID = 2, Description = "Level 2" });
            categories.Add(new BusinessObjects.WorkManagement.DispatchPriority() { ID = 3, Description = "Level 3" });
            categories.Add(new BusinessObjects.WorkManagement.DispatchPriority() { ID = 4, Description = "Level 4" });
            categories.Add(new BusinessObjects.WorkManagement.DispatchPriority() { ID = 5, Description = "Level 5 (Lowest)" });
            return categories;
            */
        }