Académique Documents
Professionnel Documents
Culture Documents
Revision History
Date
Author
Change Summary
Version
1.0
1.1
1.2
1.2
References
Key
BRS
Guru Home > BRS > Shar ed Documents > Emplo yers > Post Project
http://guru-sharepoint.a2zmoonlighter.com/mockups/Register-Dashboard/
Contents
Revision History ...................................................................................................................................................................... 1
1
1.3
1.4
Modify project......................................................................................................................................................... 4
1.5
1.6
1.7
1.8
1.9
1.11
1.12
1.13
1.14
1.15
Guru.Business.Activities.Projects.ProjectData........................................................................................................ 8
2.1.1
ProjectData.PostProject .................................................................................................................................. 8
2.1.2
ProjectData.ModifyProject ............................................................................................................................. 9
2.1.3
ProjectData.RepostProject .............................................................................................................................. 9
2.1.4
ProjectData.CloseProjectOnRepost ................................................................................................................ 9
2.1.5
ProjectData.AddSkill...................................................................................................................................... 10
2.1.6
2.1.7
2.1.8
2.1.9
ProjectData.GetIndustry ............................................................................................................................... 11
2.1.10
ProjectData.GetFixedPriceBudget ................................................................................................................ 11
2.1.11
ProjectData.GetDuration .............................................................................................................................. 11
2.1.12
ProjectData.GetHoursPerWeek .................................................................................................................... 11
2.1.13
ProjectData.GetInvitees ................................................................................................................................ 12
2.2
2.2.1
PrivacySetting................................................................................................................................................ 12
2.2.2
LocationPreference ....................................................................................................................................... 12
2.2.3
BudgetType ................................................................................................................................................... 12
2.2.4
2.3
2.3.1
2.3.2
Page 2
Employer
Input:
Authenticated Employer
Project title
Description
Privacy Setting information
Location Information
Industry Information
Attachments
Skills Information
Budget Information
Timeline
Project Type (PostProject)
Updates:
1. All specified information will be inserted in database.
Output:
None
See also:
Post a project with user credentials
1. Based on user credentials (User Name and Password) we need to login user first, after maintaining login with
provided credentials,
UI will call a method to post a project: all project related information will be inserted in database.
Post a project with newly registered employer
1. Need to register with user information (Full name, email address, Username, Password) once successful
registration done;
UI will call a method to post a project: All project related information will be inserted in database.
2.1.1 ProjectData.PostProject
Employer
Input:
Same as 1.1
Profile Id
Page 3
Updates:
1. A pre-approved new project will be posted with dummy proposal and awarded particular freelancer.
See also:
2.1.1 ProjectData.PostProject
Employer
Input:
Same as 1.1
Profile Id(s)
Project Type (Invite)
Updates:
1. A new project will be posted and invitation will be set to one or more specified freelancer.
See also:
2.1.1 ProjectData.PostProject
Employer
Input:
Same as 1.1
Project Id
Updates:
Output:
None.
See also:
2.1.2 ProjectData.ModifyProject
Employer
Page 4
Input:
Authenticated Employer
Project id
Flag indicating whether initial project will remain open or close.
Updates:
None
Output:
A new project will be posted upon reposting initial project, it depends on user selection that initial project will
close or remain open.
See also:
2.1.3 ProjectData.RepostProject
Employer
Input:
Authenticated Employer
Project id
Flag indicating whether initial project will remain open or close.
Updates:
Output:
None.
See also:
2.1.4 ProjectData.CloseProjectOnRepost
Employer
Input:
Skill
Updates:
1. All specified information will be inserted in database.
See also:
2.1.5 ProjectData.AddSkill
Page 5
Employer
Input:
Output:
List of 8 skills matching the characters entered by the user will return as output.
See also:
2.1.6 GetSkills
Employer
Input:
Output:
See also:
1.9 GetCities
Employer
Input:
Output:
See also:
2.1.8 GetCountry
Employer
Input:
Tuesday, September 11, 2012 by Abhishek Pandey
Page 6
None
Output:
See also:
2.1.9 ProjectData.GetIndustry
Employer
Output:
See also:
2.1.10 ProjectData.GetFixedPriceBudget
Employer
Output:
See also:
2.1.11 ProjectData.GetDuration
Employer
Output:
See also:
2.1.12 ProjectData.GetHoursPerWeek
Page 7
Method details:
1.
2.
3.
4.
Assumption :
Assuming that UI will pass all invites profiles ids in case of project posting for invitation.
As per current implemented logic we have lid being passed at time of invitation.
That belongs to table tCompanyInvite_temp table.
I guess we have to display all invitees profiles in post project page as we are displaying in current
functionality, if this is case than at presenter label to get all invitees profile through lid we need to call a
private method that will return all profiles through lid, Kindly ref section 2.1.13ProjectData.GetInvitees
Tuesday, September 11, 2012 by Abhishek Pandey
Page 8
otherwise we need to pass lid in post project method and inside that method we need to call
2.1.13ProjectData.GetInvitees method to get all profile ids.
Use cases:
1. 1.1, Post a Project
2.1.2 ProjectData.ModifyProject
Method signature:
public void ModifyProject(string title,string description,int industryId, IList<Attachments>
Attachments, IList<int> skillId, ProjectBudget projectBudget,datetime timeline,Project project)
Method details:
1.
2.
3.
4.
5.
6.
Use cases:
1. 1.4, Modify Project
2.1.3 ProjectData.RepostProject
Method signature:
public void RepostProject(int projectId,bool closeIntitialProject)
Method details:
1.
2.
3.
4.
5.
6.
Use cases:
1. 1.5, Repost Project
2.1.4 ProjectData.CloseProjectOnRepost
Method signature:
private void CloseProjectOnRepost(int projectId)
Method details:
1. Ensures all project id is not null or empty.
2. Update dateexpire, dateupdate column in of tproject table.
Tuesday, September 11, 2012 by Abhishek Pandey
Page 9
2.1.5 ProjectData.AddSkill
private void AddSkill(IList<skill> skill)
Method details:
1. Ensures all list of skill is not null or empty
2. Check all skill with existing skills if any new skill found call data layer to add new skills in database.
Use cases:
1. 1.7 Add new skill
Method details:
1. Ensure keyword is not null or empty
2. Retrieve List of 8 skills matching the characters entered by the user through Custom query against tSkillList.
Use cases:
1. 1.8 Retrieve matching skills
Method details:
1. Ensure keyword is not null or empty
2. Retrieve List of 5 cities matching the characters entered by the user through Custom query against tWorldCities
Use cases:
1. 1.9 Retrieve matching cities
Method details:
1. Ensure keyword is not null or empty
Tuesday, September 11, 2012 by Abhishek Pandey
Page 10
2. Retrieve List of 5 countries matching the characters entered by the user through Custom query against
tCountries.
Use cases:
1. 1.10 Retrieve matching countries
2.1.9 ProjectData.GetIndustry
public List<Industry> GetIndustry()
Method details:
1. Retrieve List of All industry through Custom query against tIndustry.
Use cases:
1. 1.11, Retrieve industry
2.1.10 ProjectData.GetFixedPriceBudget
public List<FixedPriceBudget> GetFixedPriceBudget()
Method details:
1. Retrieve List of All Fixed Price Budget through Custom query against tProjectBudget
Use cases:
1. 1.12, Retrieve fixed price budget
2.1.11 ProjectData.GetDuration
public List<Duration> GetProjectDuration()
Method details:
1. Retrieve List of All Duration through Custom query against tProjectDuration
Use cases:
1. 1.13, Retrieve project duration
2.1.12 ProjectData.GetHoursPerWeek
Public List<HoursPerWeek> GetHoursPerWeek()
Method details:
1. Retrieve List of All Hours per Week through Custom query against tHoursPerWeek.
Use cases:
1. 1.14, Retrieve hours per week
Tuesday, September 11, 2012 by Abhishek Pandey
Page 11
2.1.13 ProjectData.GetInvitees
private List<Profile> GetInvitees (int lid)
Method details:
1. Ensures lid is not null or empty
2. Retrieve List of invitees profiles.
3. Through Custom query against tCompanyInvite_temp
Use cases:
1. 2.1.1 ProjectData.PostProject
2.2.2 ProjectLocationPreference
2.2.3 BudgetType
Page 12
Project tProject
Page 13