public void SaveSkill(BusinessObjects.WorkManagement.Skill skill) { BusinessObjects.WorkManagement.TaskLookupData lookupData = new BusinessObjects.WorkManagement.TaskLookupData(); lookupData.Skills = new BusinessObjects.WorkManagement.SkillCollection(); lookupData.Skills.Add(skill); Services.LookupServiceClient serviceProxy = new Services.LookupServiceClient(); serviceProxy.SaveLookupData(lookupData); serviceProxy.Close(); }
public List<BusinessObjects.WorkManagement.SchedulingPriority> GetSchedulingPriorityOptions() { BusinessObjects.WorkManagement.PriorityLookupData lookupData = null; Services.LookupServiceClient serviceProxy = new Services.LookupServiceClient(); lookupData = serviceProxy.GetPriorityLookupData(); serviceProxy.Close(); return new List<BusinessObjects.WorkManagement.SchedulingPriority>(lookupData.Scheduling); /* -- Test Data List<BusinessObjects.WorkManagement.SchedulingPriority> categories = new List<BusinessObjects.WorkManagement.SchedulingPriority>(); categories.Add(new BusinessObjects.WorkManagement.SchedulingPriority() { ID = 0, Description = "Same Day" }); categories.Add(new BusinessObjects.WorkManagement.SchedulingPriority() { ID = 1, Description = "2 Hours" }); categories.Add(new BusinessObjects.WorkManagement.SchedulingPriority() { ID = 2, Description = "4 Hours" }); categories.Add(new BusinessObjects.WorkManagement.SchedulingPriority() { ID = 3, Description = "6 Hours" }); return categories; */ }
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; */ }
public bool AddTaskToActivity(int taskID, int activityID) { bool result = true; Services.LookupServiceClient serviceProxy = new Services.LookupServiceClient(); serviceProxy.AddTasksToActivity(taskID.ToString(), activityID); serviceProxy.Close(); return result; }
public bool RemoveTask(int taskID, int activityID) { bool result = true; Services.LookupServiceClient serviceProxy = new Services.LookupServiceClient(); result = serviceProxy.RemoveTasksFromActivity(taskID.ToString(), activityID); serviceProxy.Close(); return result; }
public int SaveActivity(BusinessObjects.WorkManagement.Activity activity) { Services.LookupServiceClient serviceProxy = new Services.LookupServiceClient(); int activityID = serviceProxy.SaveActivity(activity); serviceProxy.Close(); return activityID; }
public bool SaveTask(BusinessObjects.WorkManagement.ActivityTaskTemplate task) { Services.LookupServiceClient serviceProxy = new Services.LookupServiceClient(); int rowsAffected = serviceProxy.SaveTaskTemplate(task,0); serviceProxy.Close(); return (rowsAffected > 0); }
public Services.ActivityTaskTemplateCollection GetTasks() { Services.ActivityTaskTemplateCollection tasks = null; Services.LookupServiceClient serviceProxy = new Services.LookupServiceClient(); tasks = serviceProxy.GetTaskLibrary(); serviceProxy.Close(); return tasks; }