Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
ProjectsStatusManagement
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hasan.bahjat
ProjectsStatusManagement
Commits
3610daea
Commit
3610daea
authored
Aug 13, 2024
by
hasan khaddour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some contracts for project domains.
parent
dc822b12
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
172 additions
and
1 deletion
+172
-1
EmployeeResponse.cs
...nagement.Contracts/Employees/Response/EmployeeResponse.cs
+13
-0
FinancialSpendingResponse.cs
...cts/FinancialSpends/Response/FinancialSpendingResponse.cs
+15
-0
PSManagement.Contracts.csproj
PSManagement.Contracts/PSManagement.Contracts.csproj
+10
-0
AddAttachmentRequest.cs
...ement.Contracts/Projects/Requests/AddAttachmentRequest.cs
+1
-0
AddParticipantRequest.cs
...ment.Contracts/Projects/Requests/AddParticipantRequest.cs
+11
-0
AddProjectStepRequest.cs
...ment.Contracts/Projects/Requests/AddProjectStepRequest.cs
+12
-0
ApproveProjectRequest.cs
...ment.Contracts/Projects/Requests/ApproveProjectRequest.cs
+10
-0
CancelProjectRequest.cs
...ement.Contracts/Projects/Requests/CancelProjectRequest.cs
+8
-0
ChangeProjectTeamLeaderRequest.cs
...racts/Projects/Requests/ChangeProjectTeamLeaderRequest.cs
+8
-0
ListAllProjectsRequest.cs
...ent.Contracts/Projects/Requests/ListAllProjectsRequest.cs
+13
-0
RemoveParticipantRequest.cs
...t.Contracts/Projects/Requests/RemoveParticipantRequest.cs
+8
-0
CreateProjectResponse.cs
...ment.Contracts/Projects/Response/CreateProjectResponse.cs
+1
-1
EmployeeParticipateResponse.cs
...ontracts/Projects/Response/EmployeeParticipateResponse.cs
+13
-0
ProjectResponse.cs
PSManagement.Contracts/Projects/Response/ProjectResponse.cs
+36
-0
StepResponse.cs
PSManagement.Contracts/Steps/Response/StepResponse.cs
+13
-0
No files found.
PSManagement.Contracts/Employees/Response/EmployeeResponse.cs
0 → 100644
View file @
3610daea
using
PSManagement.Domain.Employees.Entities
;
namespace
PSManagement.Contracts.Projects.Response
{
public
class
EmployeeResponse
{
public
int
Id
{
get
;
set
;
}
public
int
HIASTId
{
get
;
set
;
}
public
int
UserId
{
get
;
set
;
}
public
PersonalInfo
PersonalInfo
{
get
;
set
;
}
public
WorkInfo
WorkInfo
{
get
;
set
;
}
}
}
\ No newline at end of file
PSManagement.Contracts/FinancialSpends/Response/FinancialSpendingResponse.cs
0 → 100644
View file @
3610daea
using
PSManagement.SharedKernel.ValueObjects
;
using
System
;
namespace
PSManagement.Contracts.Projects.Response
{
public
class
FinancialSpendingResponse
{
public
int
Id
{
get
;
set
;
}
public
DateTime
ExpectedSpendingDate
{
get
;
set
;
}
public
String
CostType
{
get
;
set
;
}
public
String
Description
{
get
;
set
;
}
public
int
LocalPurchase
{
get
;
set
;
}
public
Money
ExternalPurchase
{
get
;
set
;
}
}
}
\ No newline at end of file
PSManagement.Contracts/PSManagement.Contracts.csproj
View file @
3610daea
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<PropertyGroup>
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
...
@@ -9,7 +10,16 @@
...
@@ -9,7 +10,16 @@
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<ProjectReference Include="..\PSManagement.Application\PSManagement.Application.csproj" />
<ProjectReference Include="..\PSManagement.Domain\PSManagement.Domain.csproj" />
<ProjectReference Include="..\PSManagement.Domain\PSManagement.Domain.csproj" />
</ItemGroup>
</ItemGroup>
<ItemGroup>
<Folder Include="Employees\Requests\" />
<Folder Include="FinancialSpends\Requests\" />
<Folder Include="Steps\Requests\" />
<Folder Include="Tracks\Response\" />
<Folder Include="Tracks\Requests\" />
</ItemGroup>
</Project>
</Project>
PSManagement.Contracts/Projects/Requests/AddAttachmentRequest.cs
View file @
3610daea
...
@@ -8,4 +8,5 @@ namespace PSManagement.Contracts.Projects.Requests
...
@@ -8,4 +8,5 @@ namespace PSManagement.Contracts.Projects.Requests
String
AttachmentDescription
,
String
AttachmentDescription
,
String
AttachmentName
,
String
AttachmentName
,
IFormFile
File
);
IFormFile
File
);
}
}
PSManagement.Contracts/Projects/Requests/AddParticipantRequest.cs
0 → 100644
View file @
3610daea
using
System
;
namespace
PSManagement.Contracts.Projects.Requests
{
public
record
AddParticipantRequest
(
int
ProjectId
,
int
ParticipantId
,
int
PartialTimeRatio
,
String
Role
);
}
PSManagement.Contracts/Projects/Requests/AddProjectStepRequest.cs
0 → 100644
View file @
3610daea
using
PSManagement.Domain.Projects.ValueObjects
;
namespace
PSManagement.Contracts.Projects.Requests
{
public
record
AddProjectStepRequest
(
int
ProjectId
,
StepInfo
StepInfo
,
int
CurrentCompletionRatio
,
int
Weight
);
}
PSManagement.Contracts/Projects/Requests/ApproveProjectRequest.cs
0 → 100644
View file @
3610daea
using
PSManagement.Domain.Projects.ValueObjects
;
namespace
PSManagement.Contracts.Projects.Requests
{
public
record
ApproveProjectRequest
(
Aggreement
ProjectAggreement
,
int
ProjectId
);
}
PSManagement.Contracts/Projects/Requests/CancelProjectRequest.cs
0 → 100644
View file @
3610daea
namespace
PSManagement.Contracts.Projects.Requests
{
public
record
CancelProjectRequest
(
int
EmployeeId
,
int
ProjectId
);
}
PSManagement.Contracts/Projects/Requests/ChangeProjectTeamLeaderRequest.cs
0 → 100644
View file @
3610daea
namespace
PSManagement.Contracts.Projects.Requests
{
public
record
ChangeProjectTeamLeaderRequest
(
int
EmployeeId
,
int
ProjectId
);
}
PSManagement.Contracts/Projects/Requests/ListAllProjectsRequest.cs
0 → 100644
View file @
3610daea
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
PSManagement.Contracts.Projects.Requests
{
public
record
ListAllProjectsRequest
(
int
?
PageNumber
,
int
?
PageSize
)
;
}
PSManagement.Contracts/Projects/Requests/RemoveParticipantRequest.cs
0 → 100644
View file @
3610daea
namespace
PSManagement.Contracts.Projects.Requests
{
public
record
RemoveParticipantRequest
(
int
ProjectId
,
int
ParticipantId
);
}
PSManagement.Contracts/Projects/Response/CreateProjectResponse.cs
View file @
3610daea
using
PSManagement.Domain.Projects.ValueObjects
;
using
PSManagement.Domain.Projects.ValueObjects
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq
;
using
System.Text
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
...
@@ -16,4 +15,5 @@ namespace PSManagement.Contracts.Projects.Response
...
@@ -16,4 +15,5 @@ namespace PSManagement.Contracts.Projects.Response
int
ProjectManagerId
,
int
ProjectManagerId
,
int
ExecuterId
int
ExecuterId
);
);
}
}
PSManagement.Contracts/Projects/Response/EmployeeParticipateResponse.cs
0 → 100644
View file @
3610daea
using
PSManagement.Application.Employees.Common
;
namespace
PSManagement.Contracts.Projects.Response
{
public
class
EmployeeParticipateResponse
{
public
int
EmployeeId
{
get
;
set
;
}
public
int
ProjectId
{
get
;
set
;
}
public
EmployeResponse
Employee
{
get
;
set
;
}
public
int
PartialTimeRatio
{
get
;
set
;
}
public
string
Role
{
get
;
set
;
}
}
}
\ No newline at end of file
PSManagement.Contracts/Projects/Response/ProjectResponse.cs
0 → 100644
View file @
3610daea
using
PSManagement.Contracts.Customers.Responses
;
using
PSManagement.Domain.Employees.Entities
;
using
PSManagement.Domain.Projects.Entities
;
using
PSManagement.Domain.Projects.ValueObjects
;
using
System.Collections.Generic
;
namespace
PSManagement.Contracts.Projects.Response
{
public
class
ProjectResponse
{
public
int
Id
{
get
;
set
;
}
public
ProposalInfo
ProposalInfo
{
get
;
set
;
}
public
ProjectInfo
ProjectInfo
{
get
;
set
;
}
public
string
CurrentState
{
get
;
set
;
}
public
Aggreement
ProjectAggreement
{
get
;
set
;
}
public
int
TeamLeaderId
{
get
;
set
;
}
public
EmployeeResponse
TeamLeader
{
get
;
set
;
}
public
int
ProjectManagerId
{
get
;
set
;
}
public
EmployeeResponse
ProjectManager
{
get
;
set
;
}
public
int
ExecuterId
{
get
;
set
;
}
public
Department
Executer
{
get
;
set
;
}
public
int
ProposerId
{
get
;
private
set
;
}
public
CustomerRecord
Proposer
{
get
;
set
;
}
public
ICollection
<
StepResponse
>
Steps
{
get
;
set
;
}
public
ICollection
<
Attachment
>
Attachments
{
get
;
set
;
}
public
FinancialFund
FinancialFund
{
get
;
set
;
}
public
ICollection
<
FinancialSpendingResponse
>
FinancialSpending
{
get
;
set
;
}
public
ICollection
<
EmployeeParticipateResponse
>
EmployeeParticipates
{
get
;
set
;
}
}
}
PSManagement.Contracts/Steps/Response/StepResponse.cs
0 → 100644
View file @
3610daea
using
PSManagement.Domain.Projects.ValueObjects
;
namespace
PSManagement.Contracts.Projects.Response
{
public
class
StepResponse
{
public
int
Id
{
get
;
set
;
}
public
StepInfo
StepInfo
{
get
;
set
;
}
public
int
CurrentCompletionRatio
{
get
;
set
;
}
public
int
Weight
{
get
;
set
;
}
public
int
ProjectId
{
get
;
set
;
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment