Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. TaskBlaster.csproj:
  2.  
  3. CreateProject.aspx.cs:
  4. searchButton_Click()
  5. - 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
  6. addButton_Click()
  7. - Takes the selected item of the ListBoxSearchResults and adds it to a temp table that houses currently added participants.
  8. removeButton_Click()
  9. - Removes the selected item of the ListBoxParticipants from the temp table for storing currently added participants.
  10. submitButton_Click()
  11. - Takes all relevant information from CreatProject form and creates a new item for the project table. (NEEDS MORE INFO)
  12.  
  13. TaskBlasterObjects.csproj:
  14.  
  15. Objective.cs:
  16. - MUTATOR METHODS:
  17. get/set string Name()
  18. get/set string Description()
  19. get/set int Status()
  20. - can it return an enum? maybe should be enum return value
  21. get/set User Creator()
  22. - as discussed, maybe this needs to be represented as a string rather than a User to avoid infinite recursion
  23. get/set List<Action> PostRequisiteActions()
  24. - I have no idea what this will look like to be honest
  25. get/set DateTime Deadline()
  26. get/set DateTime EstimatedCompletionTime()
  27. get/set DateTime DateCreated()
  28.  
  29. - INHERITED METHODS:
  30. void SetPostRequisiteActions(List<Action> a)
  31. - Actions are sequentially carried out according to their position in the List<Action>
  32. void AssignToRole(User u, Role r)
  33. - Adds a User to List<User> users in Role
  34. void RemoveFromRole(User u, Role r)
  35. - Finds and removes User u in List<User> users of Role. Check to see if User exists in this list first.
  36. void UpdateStatus()
  37. - Here is an example of the inherited method:
  38. - if (subtasks.Count > 0)
  39. {
  40. status = 0; // INCOMPLETE
  41. }
  42.  
  43. for (int i = 0; i < userCompletionStatusList.Count - 1; i++) // THIS ONLY APPLIES TO TASKS
  44. {
  45. if (userCompletionStatusList.ElementAt(i).status != (int)STATUS.complete)
  46. {
  47. status = 2; // IN-PROGRESS
  48. }
  49. }
  50. status = 1; // COMPLETE
  51.  
  52. Task.cs:
  53. MUTATOR METHODS:
  54. get/set Task Parent()
  55. get/set List<Tasks> Subtasks()
  56.  
  57. CLASS-SPECIFIC METHODS:
  58. void AddSubtask(Task t)
  59. void RemoveSubtask(Task t)
  60. - check to see if Task t exists in the current List<Task> subtasks
  61. void UpdateUserCompletionStatus()
  62. - method gets called every time one of these things happens:
  63. 1. User is added/deleted
  64. 2. Role is added/deleted
  65. 3. Status of user is changed
  66.  
  67. Project.cs:
  68. MUTATOR METHODS:
  69. get/set List<Task> Subtasks()
  70.  
  71. CLASS-SPECIFIC METHODS
  72. void AddSubtask(Task t)
  73. void RemoveSubtask(Task t)
  74.  
  75. Role.cs
  76. MUTATOR METHODS:
  77. get/set string Title()
  78. - note that we will need to reserve and check for value "participant"
  79. get/set string Description()
  80. get/set List<User> Users()
  81.  
  82. CLASS-SPECIFIC METHODS:
  83. void AddUser(User u)
  84. void RemoveUser(User u)
  85.  
  86. ......................................................................................
  87.  
  88. NOTES:
  89. - How "actions" are represented in the middle-ware is still undetermined
  90. - Actual method calls have not been implemented yet in the TaskBlaster project
  91.  
  92. - In ProjectDAO we need to retrieve all 'Project Names' a User is a participant in. This method is called, 'getProjects'
  93. and takes a username as a parameter. Called from HomeScreen.aspx.cs* in method generateProjectTree
  94.  
  95. - In NotificationDAO we need to retrieve all 'Notification Messages' a user has (For now.. May want to only retrieve ones they have not read?)
  96. I call this method from HomeScreen.aspx.cs* in method generateNotificationList
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement