Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
PSManagementUI
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
PSManagementUI
Commits
5b062c32
Commit
5b062c32
authored
Aug 26, 2024
by
hasan khaddour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix projects types info
parent
ff0f181d
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
57 additions
and
30 deletions
+57
-30
customer-create.component.html
...mers/pages/customer-create/customer-create.component.html
+10
-6
customer-details.component.html
...rs/pages/customer-details/customer-details.component.html
+0
-4
customer-details.component.ts
...mers/pages/customer-details/customer-details.component.ts
+2
-1
employees.service.ts
src/app/employees/services/employees.service.ts
+1
-1
edit-type-modal.component.html
...components/edit-type-modal/edit-type-modal.component.html
+4
-4
type-item.component.html
...jects-types/components/type-item/type-item.component.html
+7
-0
createNewTypeRequest.ts
...pp/projects-types/models/requests/createNewTypeRequest.ts
+2
-1
updateProjectTypeRequest.ts
...rojects-types/models/requests/updateProjectTypeRequest.ts
+1
-0
projectType.ts
src/app/projects-types/models/responses/projectType.ts
+2
-0
types-create.component.html
...ects-types/pages/types-create/types-create.component.html
+7
-3
types-detail.component.html
...ects-types/pages/types-detail/types-detail.component.html
+1
-0
financial-item.component.ts
...cts/components/financial-item/financial-item.component.ts
+1
-1
add-financial-spend-modal.component.ts
...ancial-spend-modal/add-financial-spend-modal.component.ts
+1
-1
participationChange.ts
src/app/projects/models/responses/participationChange.ts
+10
-0
project.ts
src/app/projects/models/responses/project.ts
+2
-2
financial-spending.component.ts
.../pages/financial-spending/financial-spending.component.ts
+1
-1
project-create.component.ts
...projects/pages/project-create/project-create.component.ts
+1
-1
financial-spending.service.ts
src/app/projects/services/financial-spending.service.ts
+1
-1
project.service.ts
src/app/projects/services/project.service.ts
+1
-1
financial-spend-table.component.ts
.../financial-spend-table/financial-spend-table.component.ts
+1
-1
project-footer.component.ts
...ts/componenets/project-footer/project-footer.component.ts
+1
-1
No files found.
src/app/customers/pages/customer-create/customer-create.component.html
View file @
5b062c32
...
...
@@ -7,29 +7,33 @@
<div
class=
"card p-4"
>
<form
class=
"php-email-form"
>
<div
class=
"row gy-4"
>
<div
class=
"row text-center"
>
<p>
إضافة جهة طارحة
</p>
</div>
<div
class=
"col-12"
>
<input
type=
"text"
[(
ngModel
)]="
request
.
customerName
"
name=
"
name"
class=
"form-control"
placeholder=
"Your Name
"
required
>
name=
"
customerName"
class=
"form-control"
placeholder=
"اسم الجهة الطارحة
"
required
>
</div>
<div
class=
"col-6 "
>
<input
type=
"email"
[(
ngModel
)]="
request
.
email
"
class=
"form-control"
name=
"email"
placeholder=
"
Your Email
"
required
>
class=
"form-control"
name=
"email"
placeholder=
"
البريد الالكتروني
"
required
>
</div>
<div
class=
"col-6"
>
<input
type=
"text"
[(
ngModel
)]="
request
.
address
.
streetName
"
class=
"form-control"
name=
"s
ubject"
placeholder=
"street Name
"
required
>
class=
"form-control"
name=
"s
treetName"
placeholder=
"اسم الشارع
"
required
>
</div>
<div
class=
"col-6"
>
<input
type=
"number"
[(
ngModel
)]="
request
.
address
.
streetNumber
"
class=
"form-control"
name=
"s
ubject"
placeholder=
"street Number
"
required
>
class=
"form-control"
name=
"s
treetNumber"
placeholder=
"رقم الشارع
"
required
>
</div>
<div
class=
"col-6"
>
<input
type=
"text"
[(
ngModel
)]="
request
.
address
.
city
"
class=
"form-control"
name=
"
subject"
placeholder=
"city
"
required
>
class=
"form-control"
name=
"
city"
placeholder=
"المدينة
"
required
>
</div>
...
...
src/app/customers/pages/customer-details/customer-details.component.html
View file @
5b062c32
...
...
@@ -48,10 +48,6 @@
<form
(
ngSubmit
)="
saveCustomer
()"
>
<div
class=
"row"
>
<div
class=
"mb-3 col-5 offset-1"
>
<label
for=
"stepName"
class=
"form-label"
>
الجهة الطارحة
</label>
<input
type=
"text"
name=
"stepName"
id=
"stepName"
class=
"form-control"
[(
ngModel
)]="
selectedCustomer
.
customerName
"
required
>
</div>
<div
class=
"mb-3 col-5"
>
<label
for=
"expectedSpendingDate"
class=
"form-label"
>
البريد الاكتروني
</label>
...
...
src/app/customers/pages/customer-details/customer-details.component.ts
View file @
5b062c32
...
...
@@ -64,7 +64,8 @@ export class CustomerDetailsComponent implements OnInit {
let
request
:
UpdateCustomerRequest
=
{
...
this
.
selectedCustomer
,
customerId
:
this
.
selectedCustomer
.
id
customerId
:
this
.
selectedCustomer
.
id
,
customerName
:
this
.
selectedCustomer
.
customerName
}
this
.
customerService
.
updateCustomer
(
this
.
selectedCustomer
.
id
,
request
).
subscribe
({
...
...
src/app/employees/services/employees.service.ts
View file @
5b062c32
...
...
@@ -9,7 +9,7 @@ import { EmployeeParticipate } from '../models/responses/employeeParticipate';
import
{
GetEmployeeTrackHistoryRequest
}
from
'../models/requests/getEmployeeTrackHistoryRequest'
;
import
{
EmployeeTrack
}
from
'../../tracks/models/responses/employeeTrack'
;
import
{
UpdateEmplyeeWorkHours
}
from
'../models/requests/updateEmployeeWorkHoursRequest'
;
import
{
Department
}
from
'../../projects/models/responses/
D
epartment'
;
import
{
Department
}
from
'../../projects/models/responses/
d
epartment'
;
@
Injectable
({
providedIn
:
'root'
...
...
src/app/projects-types/components/edit-type-modal/edit-type-modal.component.html
View file @
5b062c32
...
...
@@ -2,12 +2,12 @@
<div
class=
"row"
>
<div
class=
"mb-3 col-5 offset-1"
>
<label
for=
"
stepName"
class=
"form-label"
>
اسم النوع
</label>
<input
type=
"
text"
name=
"stepName"
id=
"stepName"
class=
"form-control"
[(
ngModel
)]="
selectedItem
.
typeName
"
required
>
<label
for=
"
employee"
class=
"form-label"
>
عدد العمال المطلوب لهذا النوع
</label>
<input
type=
"
number"
name=
"employee"
id=
"employee"
class=
"form-control"
[
min
]="
0
"
[(
ngModel
)]="
selectedItem
.
expectedNumberOfWorker
"
required
>
</div>
<div
class=
"mb-3 col-5 "
>
<label
for=
"
local
"
class=
"form-label"
>
الجهد لهذا النوع من المشاريع
</label>
<input
id=
"
local"
class=
"form-control"
[(
ngModel
)]="
selectedItem
.
expectedEffort
"
name=
"local
"
required
>
<label
for=
"
efort
"
class=
"form-label"
>
الجهد لهذا النوع من المشاريع
</label>
<input
id=
"
efort"
class=
"form-control"
[(
ngModel
)]="
selectedItem
.
expectedEffort
"
[
min
]="
0
"
name=
"efort
"
required
>
</div>
<div
class=
"mb-3 col-9 offset-1"
>
...
...
src/app/projects-types/components/type-item/type-item.component.html
View file @
5b062c32
...
...
@@ -21,6 +21,13 @@
</div>
</div>
<div
class=
"col-8 "
>
<div
class=
"small mb-2 d-flex"
>
<span
class=
"text-muted flex-fill"
>
عدد العمال لهذا النوع من المشاريع : {{item.expectedNumberOfWorker}}
</span>
</div>
</div>
<div
class=
"col-8 "
>
<div
class=
"small mb-2 d-flex"
>
<span
class=
"text-muted"
>
الجهد المتوقع لهذا النوع من المشاريع {{item.expectedEffort}} ساعة عمل
</span>
...
...
src/app/projects-types/models/requests/createNewTypeRequest.ts
View file @
5b062c32
...
...
@@ -3,5 +3,6 @@ export class CreateNewTypeRequest {
typeName
:
string
;
description
:
string
;
expectedEffort
:
number
;
expectedNumberOfWorker
:
number
;
}
src/app/projects-types/models/requests/updateProjectTypeRequest.ts
View file @
5b062c32
...
...
@@ -3,5 +3,6 @@ export class UpdateTypeRequest{
typeName
:
string
description
:
String
expectedEffort
:
number
expectedNumberOfWorker
:
number
;
}
src/app/projects-types/models/responses/projectType.ts
View file @
5b062c32
...
...
@@ -3,4 +3,6 @@ export class ProjectType {
typeName
:
string
description
:
string
expectedEffort
:
number
expectedNumberOfWorker
:
number
}
\ No newline at end of file
src/app/projects-types/pages/types-create/types-create.component.html
View file @
5b062c32
...
...
@@ -15,18 +15,22 @@
<div
class=
"col-12"
>
<input
type=
"text"
[(
ngModel
)]="
request
.
typeName
"
name=
"
n
ame"
class=
"form-control"
placeholder=
"اسم المشروع"
required
>
name=
"
typeN
ame"
class=
"form-control"
placeholder=
"اسم المشروع"
required
>
</div>
<div
class=
"col-6 "
>
<textarea
type=
"tex"
[(
ngModel
)]="
request
.
description
"
[
cols
]="
4
"
name=
"description"
class=
"form-control"
name=
"description"
placeholder=
"الوصف"
minlength=
"15"
required
>
class=
"form-control"
name=
"
request
description"
placeholder=
"الوصف"
minlength=
"15"
required
>
</textarea>
</div>
<div
class=
"col-6"
>
<input
type=
"number"
[(
ngModel
)]="
request
.
expectedEffort
"
class=
"form-control"
name=
"subject"
placeholder=
"ساعات العمل اللازمة"
required
min=
"0"
>
class=
"form-control"
name=
"expectedNumberOfWorker"
placeholder=
"ساعات العمل اللازمة"
required
min=
"0"
>
</div>
<div
class=
"col-6"
>
<input
type=
"number"
[(
ngModel
)]="
request
.
expectedNumberOfWorker
"
class=
"form-control"
name=
"expectedNumberOfWorker"
placeholder=
"عدد العمال المتوقع"
required
min=
"0"
>
</div>
...
...
src/app/projects-types/pages/types-detail/types-detail.component.html
View file @
5b062c32
...
...
@@ -15,6 +15,7 @@
<p><strong>
الوصف
</strong></p>
<p>
{{type.description}}
</p>
<p>
عدد ساعات العمل المتوقعة لهذا النوع من المشاريع {{type.expectedEffort}}
</p>
<p>
عدد العمال المتوقع لهذا النوع من المشاريع {{type.expectedNumberOfWorker}}
</p>
</div>
...
...
src/app/projects/components/financial-item/financial-item.component.ts
View file @
5b062c32
import
{
Component
,
EventEmitter
,
Input
,
Output
}
from
'@angular/core'
;
import
{
FinancialSpending
}
from
'../../models/responses/
F
inancialSpending'
;
import
{
FinancialSpending
}
from
'../../models/responses/
f
inancialSpending'
;
@
Component
({
selector
:
'financial-item'
,
...
...
src/app/projects/components/modals/add-financial-spend-modal/add-financial-spend-modal.component.ts
View file @
5b062c32
import
{
Component
,
Input
}
from
'@angular/core'
;
import
{
FinancialSpending
}
from
'../../../models/responses/
F
inancialSpending'
;
import
{
FinancialSpending
}
from
'../../../models/responses/
f
inancialSpending'
;
import
{
CreateFinancialSpendItemRequest
}
from
'../../../models/requests/financial-reuqests/CreateFinancialSpendItemRequest'
;
import
{
NgbActiveModal
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
...
...
src/app/projects/models/responses/participationChange.ts
0 → 100644
View file @
5b062c32
export
class
ParticipationChange
{
employeeId
:
number
;
projectId
:
number
;
partialTimeBefore
:
number
;
partialTimeAfter
:
number
;
roleBefore
:
string
;
roleAfter
:
string
;
changeDate
:
Date
;
}
src/app/projects/models/responses/project.ts
View file @
5b062c32
...
...
@@ -6,9 +6,9 @@ import { FinancialFund } from "../valueObjects/FinancialFund"
import
{
ProjectInfo
}
from
"../valueObjects/ProjectInfo"
import
{
ProposalInfo
}
from
"../valueObjects/proposalInfo"
import
{
ProjectClassification
}
from
"../valueObjects/ProjectClassification"
import
{
Department
}
from
"./
D
epartment"
import
{
Department
}
from
"./
d
epartment"
import
{
Step
}
from
"./Step"
import
{
FinancialSpending
}
from
"./
F
inancialSpending"
import
{
FinancialSpending
}
from
"./
f
inancialSpending"
import
{
ProjectType
}
from
"../../../projects-types/models/responses/projectType"
export
class
Project
{
...
...
src/app/projects/pages/financial-spending/financial-spending.component.ts
View file @
5b062c32
import
{
Component
}
from
'@angular/core'
;
import
{
FinancialSpending
}
from
'../../models/responses/
F
inancialSpending'
;
import
{
FinancialSpending
}
from
'../../models/responses/
f
inancialSpending'
;
import
{
FinancialSpendingService
}
from
'../../services/financial-spending.service'
;
import
{
ActivatedRoute
,
Router
}
from
'@angular/router'
;
import
{
NgbModal
}
from
'@ng-bootstrap/ng-bootstrap'
;
...
...
src/app/projects/pages/project-create/project-create.component.ts
View file @
5b062c32
...
...
@@ -10,7 +10,7 @@ import { ProjectService } from '../../services/project.service';
import
{
CreateProjectRequest
}
from
'../../models/requests/project-requests/createProjectRequest'
;
import
{
ToastrComponentlessModule
,
ToastrService
}
from
'ngx-toastr'
;
import
{
Router
}
from
'@angular/router'
;
import
{
Department
}
from
'../../models/responses/
D
epartment'
;
import
{
Department
}
from
'../../models/responses/
d
epartment'
;
import
{
ProjectType
}
from
'../../../projects-types/models/responses/projectType'
;
import
{
ProjectsTypesService
}
from
'../../../projects-types/services/projects-types.service'
;
//#endregion imports
...
...
src/app/projects/services/financial-spending.service.ts
View file @
5b062c32
import
{
HttpClient
}
from
'@angular/common/http'
;
import
{
Injectable
}
from
'@angular/core'
;
import
{
ConfigurationService
}
from
'../../core/services/configuration/configuration.service'
;
import
{
FinancialSpending
}
from
'../models/responses/
F
inancialSpending'
;
import
{
FinancialSpending
}
from
'../models/responses/
f
inancialSpending'
;
import
{
Observable
}
from
'rxjs'
;
import
{
CreateFinancialSpendItemRequest
}
from
'../models/requests/financial-reuqests/CreateFinancialSpendItemRequest'
;
import
{
GetFinancialSpendItemByProjecRequest
}
from
'../models/requests/financial-reuqests/GetFinancialSpendItemByProjectRequest'
;
...
...
src/app/projects/services/project.service.ts
View file @
5b062c32
...
...
@@ -15,7 +15,7 @@ import { CancelProjectRequest } from '../models/requests/project-requests/Cancel
import
{
RePlanProjectRequest
}
from
'../models/requests/project-requests/RePlanProjectRequest'
;
import
{
CreateProjectRequest
}
from
'../models/requests/project-requests/createProjectRequest'
;
import
{
AddAttachmentRequest
}
from
'../models/requests/project-requests/AddAttachmentRequest'
;
import
{
Attachment
}
from
'../models/responses/
A
ttachment'
;
import
{
Attachment
}
from
'../models/responses/
a
ttachment'
;
import
{
CompleteProjectRequest
}
from
'../models/requests/project-requests/completeProjectRequest'
;
import
{
ChangeEmployeeParticipationRequest
}
from
'../models/requests/project-requests/ChangeEmployeeParticipationRequest'
;
...
...
src/app/reports/componenets/financial-spend-table/financial-spend-table.component.ts
View file @
5b062c32
import
{
Component
,
Input
}
from
'@angular/core'
;
import
{
FinancialSpending
}
from
'../../../projects/models/responses/
F
inancialSpending'
;
import
{
FinancialSpending
}
from
'../../../projects/models/responses/
f
inancialSpending'
;
@
Component
({
selector
:
'financial-spend-table'
,
...
...
src/app/reports/componenets/project-footer/project-footer.component.ts
View file @
5b062c32
import
{
Component
,
Input
}
from
'@angular/core'
;
import
{
Customer
}
from
'../../../customers/models/customer'
;
import
{
Employee
}
from
'../../../employees/models/responses/employee'
;
import
{
Department
}
from
'../../../projects/models/responses/
D
epartment'
;
import
{
Department
}
from
'../../../projects/models/responses/
d
epartment'
;
@
Component
({
selector
:
'project-footer'
,
...
...
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