Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TaskBlaster.csproj:
- CreateProject.aspx.cs:
- searchButton_Click()
- - Takes the string from "Add Participants" textbox, and queries the DB for Users whose (FirstName + " " + LastName) matches the string, then popluates the ListBoxSearchResults with the results of the query
- addButton_Click()
- - Takes the selected item of the ListBoxSearchResults and adds it to a temp table that houses currently added participants.
- removeButton_Click()
- - Removes the selected item of the ListBoxParticipants from the temp table for storing currently added participants.
- submitButton_Click()
- - Takes all relevant information from CreatProject form and creates a new item for the project table. (NEEDS MORE INFO)
- TaskBlasterObjects.csproj:
- Objective.cs:
- - MUTATOR METHODS:
- get/set string Name()
- get/set string Description()
- get/set int Status()
- - can it return an enum? maybe should be enum return value
- get/set User Creator()
- - as discussed, maybe this needs to be represented as a string rather than a User to avoid infinite recursion
- get/set List<Action> PostRequisiteActions()
- - I have no idea what this will look like to be honest
- get/set DateTime Deadline()
- get/set DateTime EstimatedCompletionTime()
- get/set DateTime DateCreated()
- - INHERITED METHODS:
- void SetPostRequisiteActions(List<Action> a)
- - Actions are sequentially carried out according to their position in the List<Action>
- void AssignToRole(User u, Role r)
- - Adds a User to List<User> users in Role
- void RemoveFromRole(User u, Role r)
- - Finds and removes User u in List<User> users of Role. Check to see if User exists in this list first.
- void UpdateStatus()
- - Here is an example of the inherited method:
- - if (subtasks.Count > 0)
- {
- status = 0; // INCOMPLETE
- }
- for (int i = 0; i < userCompletionStatusList.Count - 1; i++) // THIS ONLY APPLIES TO TASKS
- {
- if (userCompletionStatusList.ElementAt(i).status != (int)STATUS.complete)
- {
- status = 2; // IN-PROGRESS
- }
- }
- status = 1; // COMPLETE
- Task.cs:
- MUTATOR METHODS:
- get/set Task Parent()
- get/set List<Tasks> Subtasks()
- CLASS-SPECIFIC METHODS:
- void AddSubtask(Task t)
- void RemoveSubtask(Task t)
- - check to see if Task t exists in the current List<Task> subtasks
- void UpdateUserCompletionStatus()
- - method gets called every time one of these things happens:
- 1. User is added/deleted
- 2. Role is added/deleted
- 3. Status of user is changed
- Project.cs:
- MUTATOR METHODS:
- get/set List<Task> Subtasks()
- CLASS-SPECIFIC METHODS
- void AddSubtask(Task t)
- void RemoveSubtask(Task t)
- Role.cs
- MUTATOR METHODS:
- get/set string Title()
- - note that we will need to reserve and check for value "participant"
- get/set string Description()
- get/set List<User> Users()
- CLASS-SPECIFIC METHODS:
- void AddUser(User u)
- void RemoveUser(User u)
- ......................................................................................
- NOTES:
- - How "actions" are represented in the middle-ware is still undetermined
- - Actual method calls have not been implemented yet in the TaskBlaster project
- - In ProjectDAO we need to retrieve all 'Project Names' a User is a participant in. This method is called, 'getProjects'
- and takes a username as a parameter. Called from HomeScreen.aspx.cs* in method generateProjectTree
- - In NotificationDAO we need to retrieve all 'Notification Messages' a user has (For now.. May want to only retrieve ones they have not read?)
- I call this method from HomeScreen.aspx.cs* in method generateNotificationList
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement