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
0c387bd4
Commit
0c387bd4
authored
Aug 08, 2024
by
hasan khaddour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Domains
parent
4ac73670
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
92 additions
and
62 deletions
+92
-62
Customer.cs
PSManagement.Domain/Customers/Aggregate/Customer.cs
+1
-1
Employee.cs
PSManagement.Domain/Employees/Entities/Employee.cs
+6
-2
FinincialSpending.cs
...nt.Domain/FinincialSpending/Entities/FinincialSpending.cs
+17
-0
IFinicialSpendingRepository.cs
...ncialSpending/Repositories/IFinicialSpendingRepository.cs
+8
-0
Role.cs
PSManagement.Domain/Identity/Entities/Role.cs
+3
-4
PSManagement.Domain.csproj
PSManagement.Domain/PSManagement.Domain.csproj
+2
-0
EmployeeParticipate.cs
PSManagement.Domain/Projects/Entities/EmployeeParticipate.cs
+0
-1
Project.cs
PSManagement.Domain/Projects/Entities/Project.cs
+28
-13
Step.cs
PSManagement.Domain/Projects/Entities/Step.cs
+1
-2
IStepsRepository.cs
...nagement.Domain/Projects/Repositories/IStepsRepository.cs
+2
-2
Aggreement.cs
PSManagement.Domain/Projects/ValueObjects/Aggreement.cs
+4
-4
FinincialFund.cs
PSManagement.Domain/Projects/ValueObjects/FinincialFund.cs
+7
-0
ProjectInfo.cs
PSManagement.Domain/Projects/ValueObjects/ProjectInfo.cs
+4
-4
ProposalInfo.cs
PSManagement.Domain/Projects/ValueObjects/ProposalInfo.cs
+3
-3
ProjectStatus.cs
PSManagement.Domain/ProjectsStatus/Entites/ProjectStatus.cs
+1
-1
IProjectStatusRepository.cs
...n/ProjectsStatus/Repositories/IProjectStatusRepository.cs
+2
-3
ProjectType.cs
PSManagement.Domain/ProjectsTypes/Entities/ProjectType.cs
+1
-1
IProjectTypesRepository.cs
...ain/ProjectsTypes/Repositories/IProjectTypesRepository.cs
+0
-0
Item.cs
PSManagement.Domain/Steps/Entities/Item.cs
+0
-18
StepTrack.cs
PSManagement.Domain/Tracking/Entities/StepTrack.cs
+1
-1
Track.cs
PSManagement.Domain/Tracking/Entities/Track.cs
+1
-2
No files found.
PSManagement.Domain/Customers/Aggregate/Customer.cs
View file @
0c387bd4
using
PSManagement.Domain.Customers.DomainEvents
;
using
PSManagement.Domain.Customers.Entities
;
using
PSManagement.Domain.Customers.ValueObjects
;
using
PSManagement.Domain.Projects.
Aggregate
;
using
PSManagement.Domain.Projects.
Entities
;
using
PSManagement.SharedKernel.Aggregate
;
using
System
;
using
System.Collections.Generic
;
...
...
PSManagement.Domain/Employees/Entities/Employee.cs
View file @
0c387bd4
using
PSManagement.Domain.Identity.Entities
;
using
PSManagement.Domain.Projects.Aggregate
;
using
PSManagement.Domain.Projects.Entities
;
using
PSManagement.Domain.Tracking
;
using
PSManagement.Domain.Tracking.Entities
;
...
...
@@ -19,6 +18,8 @@ namespace PSManagement.Domain.Employees.Entities
public
int
UserId
{
get
;
set
;
}
public
User
User
{
get
;
set
;
}
public
PersonalInfo
PersonalInfo
{
get
;
set
;
}
public
WorkInfo
WorkInfo
{
get
;
set
;
}
public
ICollection
<
Project
>
Projects
{
get
;
set
;
}
public
ICollection
<
EmployeeTrack
>
EmployeeTracks
{
get
;
set
;
}
...
...
@@ -36,5 +37,8 @@ namespace PSManagement.Domain.Employees.Entities
HIASTId
=
hiastId
;
}
}
public
record
WorkInfo
(
String
WorkType
,
String
WorkJob
);
}
PSManagement.Domain/FinincialSpending/Entities/FinincialSpending.cs
0 → 100644
View file @
0c387bd4
using
PSManagement.SharedKernel.Entities
;
using
PSManagement.SharedKernel.ValueObjects
;
using
System
;
namespace
PSManagement.Domain.Projects.Entities
{
public
class
FinincialSpending
:
BaseEntity
{
public
String
CostType
{
get
;
set
;
}
public
String
Description
{
get
;
set
;
}
public
Money
LocalPurchase
{
get
;
set
;
}
public
Money
ExternalPurchase
{
get
;
set
;
}
}
}
PSManagement.Domain/FinincialSpending/Repositories/IFinicialSpendingRepository.cs
0 → 100644
View file @
0c387bd4
namespace
PSManagement.Domain.FinincialSpending.Repositories
{
public
interface
IFinicialSpendingRepository
{
}
}
PSManagement.Domain/Identity/Entities/Role.cs
View file @
0c387bd4
using
System
;
using
PSManagement.SharedKernel.Entities
;
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel.DataAnnotations
;
namespace
PSManagement.Domain.Identity.Entities
{
public
class
Role
{
[
Key
]
public
int
Id
{
get
;
set
;
}
public
class
Role
:
BaseEntity
{
public
String
Name
{
get
;
set
;
}
public
ICollection
<
Permission
>
Permissions
{
get
;
set
;
}
public
ICollection
<
User
>
Users
{
get
;
set
;
}
...
...
PSManagement.Domain/PSManagement.Domain.csproj
View file @
0c387bd4
...
...
@@ -7,6 +7,8 @@
<ItemGroup>
<Folder Include="Identity\ValueObjects\" />
<Folder Include="Projects\DomainErrors\" />
<Folder Include="Reports\Entities\" />
<Folder Include="Reports\Repositories\" />
</ItemGroup>
<ItemGroup>
...
...
PSManagement.Domain/Projects/Entities/EmployeeParticipate.cs
View file @
0c387bd4
using
PSManagement.Domain.Employees.Entities
;
using
PSManagement.Domain.Projects.Aggregate
;
using
PSManagement.SharedKernel.Entities
;
using
System
;
...
...
PSManagement.Domain/Projects/
Aggregate
/Project.cs
→
PSManagement.Domain/Projects/
Entities
/Project.cs
View file @
0c387bd4
using
PSManagement.Domain.Customers.Aggregate
;
using
PSManagement.Domain.Employees.Entities
;
using
PSManagement.Domain.Projects.Entities
;
using
PSManagement.Domain.Projects.ValueObjects
;
using
PSManagement.Domain.ProjectsStatus.Entites
;
using
PSManagement.Domain.ProjectTypes.Entities
;
using
PSManagement.Domain.Steps.Entities
;
using
PSManagement.Domain.Tracking
;
using
PSManagement.SharedKernel.Aggregate
;
using
PSManagement.SharedKernel.ValueObjects
;
using
System.Collections.Generic
;
using
System.Collections.ObjectModel
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
PSManagement.Domain.Projects.
Aggregate
namespace
PSManagement.Domain.Projects.
Entities
{
public
class
Project
:
IAggregateRoot
{
// information about the project itself
public
ProposalInfo
ProposalInfo
{
get
;
set
;
}
public
ProjectInfo
ProjectInfo
{
get
;
set
;
}
//public ProjectType ProjectType { get; set; }
public
ProjectStatus
ProjectStatus
{
get
;
set
;
}
public
Aggreement
ProjectAggreement
{
get
;
set
;
}
...
...
@@ -27,31 +26,47 @@ namespace PSManagement.Domain.Projects.Aggregate
public
Employee
TeamLeader
{
get
;
set
;
}
public
int
ProjectManagerId
{
get
;
set
;
}
public
Employee
ProjectManager
{
get
;
set
;
}
public
int
ExecuterId
{
get
;
set
;
}
public
Department
Executer
{
get
;
set
;
}
// the proposer of the project
public
int
ProposerId
{
get
;
private
set
;
}
public
Customer
Proposer
{
get
;
set
;
}
//
public
ICollection
<
Step
>
Steps
{
get
;
set
;
}
public
ICollection
<
Employee
>
Participants
{
get
;
set
;
}
public
ICollection
<
Employee
>
Participants
{
get
;
set
;
}
public
ICollection
<
Attachment
>
Attachments
{
get
;
set
;
}
// finincial plan
public
FinincialFund
FinincialFund
{
get
;
set
;
}
public
ICollection
<
FinincialSpending
>
FinincialSpending
{
get
;
set
;
}
public
ICollection
<
EmployeeParticipate
>
EmployeeParticipates
{
get
;
set
;
}
public
ICollection
<
Track
>
Tracks
{
get
;
set
;
}
public
Project
(
ProposalInfo
proposalInfo
,
ProjectInfo
projectInfo
,
Aggreement
projectAggreement
,
int
proposerId
,
int
teamLeaderId
,
int
projectManagerId
,
int
executerId
)
{
ProposalInfo
=
proposalInfo
;
ProjectInfo
=
projectInfo
;
ProjectAggreement
=
projectAggreement
;
TeamLeaderId
=
teamLeaderId
;
ProjectManagerId
=
projectManagerId
;
ExecuterId
=
executerId
;
ProposerId
=
proposerId
;
}
public
Project
()
{
}
}
public
record
FinincialFund
(
string
FinicialStatus
,
string
Source
);
}
PSManagement.Domain/
Step
s/Entities/Step.cs
→
PSManagement.Domain/
Project
s/Entities/Step.cs
View file @
0c387bd4
using
PSManagement.Domain.Employees.Entities
;
using
PSManagement.Domain.Projects.Aggregate
;
using
PSManagement.Domain.Tracking
;
using
PSManagement.Domain.Tracking.Entities
;
using
PSManagement.SharedKernel.Aggregate
;
...
...
@@ -10,7 +9,7 @@ using System.Linq;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
PSManagement.Domain.
Step
s.Entities
namespace
PSManagement.Domain.
Project
s.Entities
{
public
class
Step
:
BaseEntity
{
...
...
PSManagement.Domain/
Step
s/Repositories/IStepsRepository.cs
→
PSManagement.Domain/
Project
s/Repositories/IStepsRepository.cs
View file @
0c387bd4
using
PSManagement.Domain.
Step
s.Entities
;
using
PSManagement.Domain.
Project
s.Entities
;
using
PSManagement.SharedKernel.Repositories
;
using
System
;
using
System.Collections.Generic
;
...
...
@@ -6,7 +6,7 @@ using System.Linq;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
PSManagement.Domain.
Step
s.Repositories
namespace
PSManagement.Domain.
Project
s.Repositories
{
public
interface
IStepsRepository
:
IRepository
<
Step
>
{
...
...
PSManagement.Domain/Projects/ValueObjects/Aggreement.cs
View file @
0c387bd4
using
System
;
namespace
PSManagement.Domain.Projects.
Aggregate
namespace
PSManagement.Domain.Projects.
ValueObjects
{
public
record
Aggreement
(
int
AggreementNumber
,
DateTime
AggreementDate
public
record
Aggreement
(
int
AggreementNumber
,
DateTime
AggreementDate
);
}
PSManagement.Domain/Projects/ValueObjects/FinincialFund.cs
0 → 100644
View file @
0c387bd4
namespace
PSManagement.Domain.Projects.ValueObjects
{
public
record
FinincialFund
(
string
FinicialStatus
,
string
Source
);
}
PSManagement.Domain/Projects/ValueObjects/ProjectInfo.cs
View file @
0c387bd4
using
System
;
namespace
PSManagement.Domain.Projects.
Aggregate
namespace
PSManagement.Domain.Projects.
ValueObjects
{
public
record
ProjectInfo
(
String
Name
,
String
Code
,
String
Description
string
Name
,
string
Code
,
string
Description
);
}
PSManagement.Domain/Projects/ValueObjects/ProposalInfo.cs
View file @
0c387bd4
using
PSManagement.Domain.Customers.Aggregate
;
using
System
;
namespace
PSManagement.Domain.Projects.
Aggregate
namespace
PSManagement.Domain.Projects.
ValueObjects
{
public
record
ProposalInfo
(
int
ProposingBookNumber
,
public
record
ProposalInfo
(
int
ProposingBookNumber
,
DateTime
ProposingBookDate
);
...
...
PSManagement.Domain/Projects
/Entiti
es/ProjectStatus.cs
→
PSManagement.Domain/Projects
Status/Entit
es/ProjectStatus.cs
View file @
0c387bd4
using
PSManagement.SharedKernel.Entities
;
namespace
PSManagement.Domain.Projects
.Entiti
es
namespace
PSManagement.Domain.Projects
Status.Entit
es
{
public
class
ProjectStatus
:
BaseEntity
{
...
...
PSManagement.Domain/Projects/Repositories/IProjectStatusRepository.cs
→
PSManagement.Domain/Projects
Status
/Repositories/IProjectStatusRepository.cs
View file @
0c387bd4
using
PSManagement.Domain.Projects
.Entiti
es
;
using
PSManagement.Domain.Projects
Status.Entit
es
;
using
PSManagement.SharedKernel.Repositories
;
namespace
PSManagement.Domain.Projects.Repositories
namespace
PSManagement.Domain.Projects
Status
.Repositories
{
public
interface
IProjectStatusRepository
:
IRepository
<
ProjectStatus
>
{
}
}
PSManagement.Domain/ProjectTypes/Entities/ProjectType.cs
→
PSManagement.Domain/Project
s
Types/Entities/ProjectType.cs
View file @
0c387bd4
using
PSManagement.Domain.Projects.
Aggregate
;
using
PSManagement.Domain.Projects.
Entities
;
using
PSManagement.SharedKernel.Aggregate
;
using
PSManagement.SharedKernel.Entities
;
using
System
;
...
...
PSManagement.Domain/ProjectTypes/Repositories/IProjectTypesRepository.cs
→
PSManagement.Domain/Project
s
Types/Repositories/IProjectTypesRepository.cs
View file @
0c387bd4
File moved
PSManagement.Domain/Steps/Entities/Item.cs
deleted
100644 → 0
View file @
4ac73670
using
PSManagement.SharedKernel.Entities
;
using
PSManagement.SharedKernel.ValueObjects
;
using
System
;
namespace
PSManagement.Domain.Steps.Entities
{
public
class
Item
:
BaseEntity
{
public
string
ItemName
{
get
;
set
;
}
public
string
ItemDescription
{
get
;
set
;
}
public
Money
Price
{
get
;
set
;
}
public
Item
()
{
}
}
}
PSManagement.Domain/Tracking/Entities/StepTrack.cs
View file @
0c387bd4
using
PSManagement.Domain.
Step
s.Entities
;
using
PSManagement.Domain.
Project
s.Entities
;
using
PSManagement.SharedKernel.Entities
;
using
System.Collections.Generic
;
...
...
PSManagement.Domain/Tracking/Entities/Track.cs
View file @
0c387bd4
using
PSManagement.Domain.Employees.Entities
;
using
PSManagement.Domain.Projects.Aggregate
;
using
PSManagement.Domain.Steps.Entities
;
using
PSManagement.Domain.Projects.Entities
;
using
PSManagement.Domain.Tracking.Entities
;
using
PSManagement.SharedKernel.Aggregate
;
using
PSManagement.SharedKernel.Entities
;
...
...
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