Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BookingMyHrManagement
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
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
Chanachai
BookingMyHrManagement
Commits
4b46d3b0
Commit
4b46d3b0
authored
May 16, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
47ef36f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
33 deletions
+41
-33
home-installer.component.ts
...any-management/home-installer/home-installer.component.ts
+41
-33
No files found.
Web-Manage/src/app/DPU/company-management/home-installer/home-installer.component.ts
View file @
4b46d3b0
...
@@ -3,7 +3,7 @@ import { EquipmentService } from './../../services/equirement.service';
...
@@ -3,7 +3,7 @@ import { EquipmentService } from './../../services/equirement.service';
import
{
ProjectService
}
from
'./../../services/project.service'
;
import
{
ProjectService
}
from
'./../../services/project.service'
;
import
{
UserService
}
from
'./../../services/user.service'
;
import
{
UserService
}
from
'./../../services/user.service'
;
import
{
ChangeDetectorRef
,
Component
,
ElementRef
,
Renderer2
,
ViewChild
}
from
'@angular/core'
;
import
{
ChangeDetectorRef
,
Component
,
ElementRef
,
Renderer2
,
ViewChild
}
from
'@angular/core'
;
import
{
RouterModule
}
from
'@angular/router'
;
import
{
ActivatedRoute
,
RouterModule
}
from
'@angular/router'
;
import
ApexCharts
from
'apexcharts'
import
ApexCharts
from
'apexcharts'
import
{
SharedModule
}
from
'../../../shared/shared.module'
;
import
{
SharedModule
}
from
'../../../shared/shared.module'
;
import
{
NgApexchartsModule
}
from
'ng-apexcharts'
;
import
{
NgApexchartsModule
}
from
'ng-apexcharts'
;
...
@@ -22,6 +22,7 @@ import swal from 'sweetalert';
...
@@ -22,6 +22,7 @@ import swal from 'sweetalert';
import
{
ProjectModel
}
from
'../../models/project.model'
;
import
{
ProjectModel
}
from
'../../models/project.model'
;
import
{
EquipmentModel
}
from
'../../models/equipments.model'
;
import
{
EquipmentModel
}
from
'../../models/equipments.model'
;
import
{
DashboardModel
}
from
'../../models/dasbord.model'
;
import
{
DashboardModel
}
from
'../../models/dasbord.model'
;
import
{
CompanyService
}
from
'../../services/company.service'
;
@
Component
({
@
Component
({
selector
:
'app-home-installer'
,
selector
:
'app-home-installer'
,
...
@@ -50,7 +51,7 @@ export class HomeInstallerComponent {
...
@@ -50,7 +51,7 @@ export class HomeInstallerComponent {
isDropdownOpen
=
false
;
isDropdownOpen
=
false
;
projectSelection
:
{
[
key
:
string
]:
boolean
}
=
{};
projectSelection
:
{
[
key
:
string
]:
boolean
}
=
{};
confirmPassword
=
""
confirmPassword
=
""
dashbordList
:
string
[]
=
[];
dashbordList
:
string
[]
=
[];
equipmentList
:
EquipmentModel
[]
=
[]
equipmentList
:
EquipmentModel
[]
=
[]
projectList
:
ProjectModel
[]
=
[]
projectList
:
ProjectModel
[]
=
[]
itemsList
:
UserProfileModel
[]
=
[]
itemsList
:
UserProfileModel
[]
=
[]
...
@@ -79,27 +80,27 @@ export class HomeInstallerComponent {
...
@@ -79,27 +80,27 @@ export class HomeInstallerComponent {
}
}
_searchTerm
=
""
;
_searchTerm
=
""
;
chartOptions1
:
any
;
chartOptions1
:
any
;
chartOptions2
:
any
;
chartOptions2
:
any
;
chartOptions3
:
any
chartOptions3
:
any
chartOptions
:
any
;
chartOptions
:
any
;
optionsCircle1
:
any
;
optionsCircle1
:
any
;
chartOptions4
:
any
;
chartOptions4
:
any
;
optionsCircle2
:
any
;
optionsCircle2
:
any
;
optionsCircle3
:
any
optionsCircle3
:
any
chartOptions5
:
any
;
chartOptions5
:
any
;
chartOptions6
:
any
;
chartOptions6
:
any
;
chartOptions7
:
any
;
chartOptions7
:
any
;
chartOptions8
:
any
;
chartOptions8
:
any
;
chartOptions9
:
any
chartOptions9
:
any
chartOptions10
:
any
chartOptions10
:
any
chartOptions11
:
any
chartOptions11
:
any
chart3options
:
any
chart3options
:
any
chart2options
:
any
chart2options
:
any
chart1options
:
any
chart1options
:
any
public
series
:
ApexAxisChartSeries
=
[];
public
series
:
ApexAxisChartSeries
=
[];
public
chart
!
:
ApexChart
;
public
chart
!
:
ApexChart
;
public
dataLabels
!
:
ApexDataLabels
;
public
dataLabels
!
:
ApexDataLabels
;
public
markers
!
:
ApexMarkers
;
public
markers
!
:
ApexMarkers
;
...
@@ -108,7 +109,7 @@ public series: ApexAxisChartSeries = [];
...
@@ -108,7 +109,7 @@ public series: ApexAxisChartSeries = [];
public
yaxis
!
:
ApexYAxis
;
public
yaxis
!
:
ApexYAxis
;
public
xaxis
!
:
ApexXAxis
;
public
xaxis
!
:
ApexXAxis
;
public
tooltip
!
:
ApexTooltip
;
public
tooltip
!
:
ApexTooltip
;
public
colors
!
:
any
;
public
colors
!
:
any
;
public
commonOptions1
:
any
=
{
public
commonOptions1
:
any
=
{
dataLabels
:
{
dataLabels
:
{
enabled
:
false
,
enabled
:
false
,
...
@@ -151,7 +152,14 @@ public series: ApexAxisChartSeries = [];
...
@@ -151,7 +152,14 @@ public series: ApexAxisChartSeries = [];
type
:
'datetime'
,
type
:
'datetime'
,
},
},
};
};
constructor
(
private
el
:
ElementRef
,
private
renderer
:
Renderer2
,
private
cdr
:
ChangeDetectorRef
,
private
userService
:
UserService
,
public
translate
:
TranslateService
,
private
tokenService
:
TokenService
,
private
ProjectService
:
ProjectService
,
private
EquipmentService
:
EquipmentService
,
private
DashboardService
:
DashboardService
)
{
companyId
:
string
=
''
;
constructor
(
private
el
:
ElementRef
,
private
renderer
:
Renderer2
,
private
cdr
:
ChangeDetectorRef
,
private
userService
:
UserService
,
public
translate
:
TranslateService
,
private
tokenService
:
TokenService
,
private
ProjectService
:
ProjectService
,
private
EquipmentService
:
EquipmentService
,
private
DashboardService
:
DashboardService
,
private
route
:
ActivatedRoute
,
private
comService
:
ProjectService
)
{
this
.
companyId
=
this
.
route
.
snapshot
.
paramMap
.
get
(
'companyId'
)
!
;
this
.
comService
.
getById
(
this
.
companyId
).
subscribe
(
result
=>
{
console
.
log
(
"SAVEEE"
)
this
.
tokenService
.
saveSelectCompany
(
result
);
// this.router.navigate(["/company"]);
})
this
.
chartOptions9
=
{
this
.
chartOptions9
=
{
series
:
[
series
:
[
...
@@ -253,7 +261,7 @@ public series: ApexAxisChartSeries = [];
...
@@ -253,7 +261,7 @@ public series: ApexAxisChartSeries = [];
};
};
this
.
chartOptions2
=
{
this
.
chartOptions2
=
{
series
:
[
series
:
[
{
{
name
:
"High - 2013"
,
name
:
"High - 2013"
,
...
@@ -280,7 +288,7 @@ public series: ApexAxisChartSeries = [];
...
@@ -280,7 +288,7 @@ public series: ApexAxisChartSeries = [];
show
:
false
show
:
false
},
},
events
:
{
events
:
{
mounted
:
(
chart
:
any
)
=>
{
mounted
:
(
chart
:
any
)
=>
{
chart
.
windowResizeHandler
();
chart
.
windowResizeHandler
();
}
}
},
},
...
@@ -356,9 +364,9 @@ public series: ApexAxisChartSeries = [];
...
@@ -356,9 +364,9 @@ public series: ApexAxisChartSeries = [];
offsetX
:
-
5
offsetX
:
-
5
}
}
}
}
this
.
chartOptions1
=
{
this
.
chartOptions1
=
{
chart
:
{
chart
:
{
type
:
'line'
,
type
:
'line'
,
height
:
40
,
height
:
40
,
...
@@ -425,7 +433,7 @@ public series: ApexAxisChartSeries = [];
...
@@ -425,7 +433,7 @@ public series: ApexAxisChartSeries = [];
colors
:
[
'#23b7e5'
],
colors
:
[
'#23b7e5'
],
}
}
this
.
chartOptions2
=
{
this
.
chartOptions2
=
{
chart
:
{
chart
:
{
type
:
'line'
,
type
:
'line'
,
height
:
45
,
height
:
45
,
...
@@ -737,7 +745,7 @@ public series: ApexAxisChartSeries = [];
...
@@ -737,7 +745,7 @@ public series: ApexAxisChartSeries = [];
},
},
},
},
};
};
this
.
optionsCircle2
=
{
this
.
optionsCircle2
=
{
chart
:
{
chart
:
{
height
:
120
,
height
:
120
,
width
:
100
,
width
:
100
,
...
@@ -776,7 +784,7 @@ public series: ApexAxisChartSeries = [];
...
@@ -776,7 +784,7 @@ public series: ApexAxisChartSeries = [];
labels
:
[
"Followers"
]
labels
:
[
"Followers"
]
}
}
this
.
optionsCircle3
=
{
this
.
optionsCircle3
=
{
chart
:
{
chart
:
{
height
:
120
,
height
:
120
,
width
:
100
,
width
:
100
,
...
@@ -883,7 +891,7 @@ public series: ApexAxisChartSeries = [];
...
@@ -883,7 +891,7 @@ public series: ApexAxisChartSeries = [];
this
.
isDropdownOpen
=
!
this
.
isDropdownOpen
;
this
.
isDropdownOpen
=
!
this
.
isDropdownOpen
;
}
}
getdasbord
(){
getdasbord
()
{
this
.
DashboardService
.
getDashboard
(
this
.
startDate
,
this
.
endDate
,)
this
.
DashboardService
.
getDashboard
(
this
.
startDate
,
this
.
endDate
,)
.
subscribe
(
data
=>
{
.
subscribe
(
data
=>
{
console
.
log
(
'Dashboard Data:'
,
data
);
console
.
log
(
'Dashboard Data:'
,
data
);
...
...
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