Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
portal-apps-manage
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
angular
portal-apps-manage
Commits
41948ca4
Commit
41948ca4
authored
Sep 12, 2025
by
pantakan konthang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[myLearn] เพิ่มหน้าจอตั้งค่าระยะเวลาผู้เรียนไม่ตอบสนอง
parent
c77d822b
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
422 additions
and
12 deletions
+422
-12
m-config.model.ts
src/app/portal-manage/models/mylearn/m-config.model.ts
+32
-0
myhrcompany.model.ts
src/app/portal-manage/models/mylearn/myhrcompany.model.ts
+2
-2
user-authorization.component.ts
...t-user/user-authorization/user-authorization.component.ts
+1
-1
mylearn.module.ts
src/app/portal-manage/mylearn/mylearn.module.ts
+5
-0
timeout-screen-manage.component.html
...imeout-screen-manage/timeout-screen-manage.component.html
+114
-0
timeout-screen-manage.component.scss
...imeout-screen-manage/timeout-screen-manage.component.scss
+0
-0
timeout-screen-manage.component.spec.ts
...out-screen-manage/timeout-screen-manage.component.spec.ts
+28
-0
timeout-screen-manage.component.ts
.../timeout-screen-manage/timeout-screen-manage.component.ts
+198
-0
course.service.ts
src/app/portal-manage/services/mylearn/course.service.ts
+1
-1
m-config.service.ts
src/app/portal-manage/services/mylearn/m-config.service.ts
+27
-0
myhrcompany.service.ts
...app/portal-manage/services/mylearn/myhrcompany.service.ts
+1
-1
transfer.service.ts
src/app/portal-manage/services/mylearn/transfer.service.ts
+1
-1
user-profile.services.ts
...p/portal-manage/services/mylearn/user-profile.services.ts
+2
-2
user-role.service.ts
src/app/portal-manage/services/mylearn/user-role.service.ts
+1
-1
user.service.ts
src/app/portal-manage/services/mylearn/user.service.ts
+1
-1
nav.service.ts
src/app/shared/services/nav.service.ts
+6
-0
environment.prod.ts
src/environments/environment.prod.ts
+1
-1
environment.ts
src/environments/environment.ts
+1
-1
No files found.
src/app/portal-manage/models/mylearn/m-config.model.ts
0 → 100644
View file @
41948ca4
export
interface
TimeOutscreenModel
{
configId
:
string
companyId
:
string
thName
:
string
engName
:
string
configValue
:
string
configCode
:
string
configType
:
string
configUnit
:
string
configCodeDetail
:
ConfigCodeDetail
configTypeDetail
:
ConfigTypeDetail
configUnitDetail
:
ConfigUnitDetail
}
export
interface
ConfigCodeDetail
{
code
:
string
tdesc
:
string
edesc
:
string
}
export
interface
ConfigTypeDetail
{
code
:
string
tdesc
:
string
edesc
:
string
}
export
interface
ConfigUnitDetail
{
code
:
string
tdesc
:
string
edesc
:
string
}
src/app/portal-manage/models/mylearn/myhrcompany.model.ts
View file @
41948ca4
...
@@ -77,14 +77,14 @@ export class MyHrcompanyModel extends BaseModel implements HrcompanyModel {
...
@@ -77,14 +77,14 @@ export class MyHrcompanyModel extends BaseModel implements HrcompanyModel {
// getPictureURL(): string {
// getPictureURL(): string {
// if (this.pictureUrl) {
// if (this.pictureUrl) {
// return environment.baseUrl
s
+ "/files/image/" + this.pictureUrl
// return environment.baseUrl
Mylearn
+ "/files/image/" + this.pictureUrl
// } else {
// } else {
// return ""
// return ""
// }
// }
// }
// }
getLogo
():
string
{
getLogo
():
string
{
if
(
this
.
logo
)
{
if
(
this
.
logo
)
{
return
environment
.
baseUrl
s
+
"/files/image/"
+
this
.
logo
return
environment
.
baseUrl
Mylearn
+
"/files/image/"
+
this
.
logo
}
else
{
}
else
{
return
""
return
""
}
}
...
...
src/app/portal-manage/mylearn/management-user/user-authorization/user-authorization.component.ts
View file @
41948ca4
...
@@ -101,7 +101,7 @@ export class UserAuthorizationComponent implements OnInit {
...
@@ -101,7 +101,7 @@ export class UserAuthorizationComponent implements OnInit {
uploadConfig
()
{
uploadConfig
()
{
this
.
uploaderProfile
=
new
FileUploader
({
this
.
uploaderProfile
=
new
FileUploader
({
url
:
environment
.
baseUrl
s
+
"/files/upload-image"
,
url
:
environment
.
baseUrl
Mylearn
+
"/files/upload-image"
,
isHTML5
:
true
,
isHTML5
:
true
,
authToken
:
this
.
tokenService
.
getToken
()
!
,
authToken
:
this
.
tokenService
.
getToken
()
!
,
});
});
...
...
src/app/portal-manage/mylearn/mylearn.module.ts
View file @
41948ca4
...
@@ -146,6 +146,11 @@ export const mylearn: Routes = [
...
@@ -146,6 +146,11 @@ export const mylearn: Routes = [
import
(
'./course-transfer/course-transfer.component'
).
then
((
m
)
=>
m
.
CourseTransferComponent
),
import
(
'./course-transfer/course-transfer.component'
).
then
((
m
)
=>
m
.
CourseTransferComponent
),
},
},
{
{
path
:
'timeout-screen-manage'
,
loadComponent
:
()
=>
import
(
'./timeout-screen-manage/timeout-screen-manage.component'
).
then
((
m
)
=>
m
.
TimeoutScreenManageComponent
),
},
{
path
:
'management-user'
,
path
:
'management-user'
,
children
:
[
children
:
[
{
{
...
...
src/app/portal-manage/mylearn/timeout-screen-manage/timeout-screen-manage.component.html
0 → 100644
View file @
41948ca4
<app-page-header
[
title
]="'จัดการเวลาหน้าจอ'"
[
activeTitle
]="'ผู้ดูแลระบบ'"
[
title1
]="'
Company
Page
'"
></app-page-header>
<div
class=
"box p-6"
>
<div
class=
"relative w-full max-w-4xl mx-auto my-8 font-sans"
>
<button
(
click
)="
openCompanyModal
(
sourceCompanyModal
)"
class=
"w-full bg-white bg-gradient-to-r from-blue-600 to-blue-800 text-white font-semibold py-4 px-6 rounded-xl shadow-lg hover:from-blue-700 hover:to-blue-900 focus:outline-none focus:ring-4 focus:ring-blue-300 transition-all duration-300 ease-in-out flex items-center justify-between"
>
<span
class=
"text-xl sm:text-2xl text-primary"
>
{{ selectedCompany ? selectedCompany.companyName : 'เลือกบริษัท' }}
</span>
<i
class=
"ri-search-line text-primary"
style=
"font-size: 24px;"
></i>
</button>
</div>
<div
*
ngIf=
"selectedCompany && timeoutScreenConconfig"
class=
"bg-gray-50 border p-4 rounded-lg"
>
<h3
class=
"font-bold mb-4"
>
บริษัทที่เลือก: {{ selectedCompany.companyName }}
</h3>
<div
class=
"flex flex-wrap -mx-2 items-end"
>
<!-- 👈 ใช้ items-end ให้ชิดด้านล่าง -->
<!-- คอลัมน์ 1 -->
<div
class=
"w-full md:w-1/3 px-2"
>
<h5
class=
"block mb-1 font-medium"
>
ระยะเวลา
</h5>
<div
class=
"flex gap-2"
>
<input
type=
"number"
class=
"w-full border rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"
placeholder=
"ระยะเวลา"
[(
ngModel
)]="
timeoutScreenConconfig
.
configValue
"
step=
"1"
/>
</div>
</div>
<!-- คอลัมน์ 2 -->
<div
class=
"w-full md:w-1/3 px-2"
>
<h5
class=
"block mb-1 font-medium"
>
หน่วย
</h5>
<div
class=
"flex gap-2"
>
<select
class=
"w-full border rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"
[(
ngModel
)]="
timeoutScreenConconfig
.
configUnit
"
>
<option
value=
"S"
>
วินาที
</option>
<option
value=
"M"
>
นาที
</option>
<option
value=
"H"
>
ชั่วโมง
</option>
</select>
</div>
</div>
<!-- คอลัมน์ 3 -->
<div
class=
"w-full md:w-1/3 px-2"
>
<div
class=
"flex gap-2 justify-center"
>
<button
type=
"button"
class=
"w-1/2 border rounded-md px-3 py-2 text-sm bg-blue-600 bg-primary text-white font-medium focus:outline-none focus:ring-2 focus:ring-blue-500"
(
click
)="
save
()"
>
{{'Save' | translate}}
</button>
</div>
</div>
</div>
</div>
</div>
<ng-template
#
sourceCompanyModal
>
<div
class=
"ti-modal-content p-6"
>
<div
class=
"box overflow-x-auto"
>
<div
class=
"box-header justify-between"
>
<div
class=
"box-title"
>
บริษัท
</div>
<div
class=
"flex flex-wrap gap-2"
>
<div>
<input
class=
"form-control form-control"
type=
"text"
placeholder=
"Search..."
aria-label=
".form-control-sm example"
[(
ngModel
)]="
searchModal
"
(
ngModelChange
)="
updateModalPagedItems
()"
>
</div>
</div>
</div>
<table
class=
"table whitespace-nowrap min-w-full ti-custom-table-hover"
>
<thead>
<tr
class=
"border-b border-defaultborder bg-primary text-white"
>
<th
scope=
"col"
class=
"text-start"
>
{{ 'โลโก้บริษัท' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'รหัสบริษัท' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'ชื่อบริษัท' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'หน่วยงาน' | translate}}
</th>
</tr>
</thead>
<tbody>
<tr
*
ngFor=
"let company of CompanyFilterSource() | slice:(modalPageIndexSource*modalPageSize):(modalPageIndexSource+1)*modalPageSize"
(
click
)="
selectCompany
(
company
)"
>
<td>
<span
class=
"p-3 me-1"
style=
"width: 50px;"
>
<img
[
src
]="
company
.
pictureUrl =
==
''
?
'
assets
/
images
/
media
/
default-pic-gX
.
png
'
:
company
.
pictureUrl
"
id=
"profile-img"
class=
"border-radius-1"
style=
"width: 50px; height: 50px; object-fit: cover;"
>
</span>
</td>
<td>
{{ company.companyId }}
</td>
<td>
{{ company.companyName }}
</td>
<td>
{{ company.branchName }}
</td>
</tr>
<!-- <tr>
<td [attr.colspan]="6" class="text-center py-4">
<ng-container *ngIf="itemsListConsent.length === 0 && !searchTerm">
<p>กำลังโหลดข้อมูล หรือไม่มีข้อมูลเลย...</p>
</ng-container>
<ng-container
*ngIf="itemsListConsent.length > 0 && filterListConsent.length === 0 && searchTerm">
<p>ไม่พบข้อมูลที่ค้นหา...</p>
</ng-container>
</td>
</tr> -->
</tbody>
</table>
</div>
<div
class=
"ti-modal-footer flex justify-end gap-4 mb-3"
>
<button
type=
"button"
class=
"hs-dropdown-toggle ti-btn bg-danger align-middle text-white !font-medium"
(
click
)="
closeModal
()"
>
{{'Close' | translate}}
</button>
</div>
</div>
</ng-template>
src/app/portal-manage/mylearn/timeout-screen-manage/timeout-screen-manage.component.scss
0 → 100644
View file @
41948ca4
src/app/portal-manage/mylearn/timeout-screen-manage/timeout-screen-manage.component.spec.ts
0 → 100644
View file @
41948ca4
/* tslint:disable:no-unused-variable */
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
By
}
from
'@angular/platform-browser'
;
import
{
DebugElement
}
from
'@angular/core'
;
import
{
TimeoutScreenManageComponent
}
from
'./timeout-screen-manage.component'
;
describe
(
'TimeoutScreenManageComponent'
,
()
=>
{
let
component
:
TimeoutScreenManageComponent
;
let
fixture
:
ComponentFixture
<
TimeoutScreenManageComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
TimeoutScreenManageComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
TimeoutScreenManageComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/portal-manage/mylearn/timeout-screen-manage/timeout-screen-manage.component.ts
0 → 100644
View file @
41948ca4
import
{
CommonModule
}
from
'@angular/common'
;
import
{
Component
,
OnInit
,
TemplateRef
}
from
'@angular/core'
;
import
{
SharedModule
}
from
'../../../shared/shared.module'
;
import
{
TranslateModule
,
TranslateService
}
from
'@ngx-translate/core'
;
import
{
MyhrcompanyService
}
from
'../../services/mylearn/myhrcompany.service'
;
import
{
MatDialog
,
MatDialogRef
}
from
'@angular/material/dialog'
;
import
{
HrcompanyModel
,
MyHrcompanyModel
}
from
'../../models/mylearn/myhrcompany.model'
;
import
swal
from
'sweetalert'
;
import
{
MConfigService
}
from
'../../services/mylearn/m-config.service'
;
import
{
TimeOutscreenModel
}
from
'../../models/mylearn/m-config.model'
;
@
Component
({
selector
:
'app-timeout-screen-manage'
,
templateUrl
:
'./timeout-screen-manage.component.html'
,
styleUrls
:
[
'./timeout-screen-manage.component.scss'
],
imports
:
[
CommonModule
,
SharedModule
,
TranslateModule
,
],
standalone
:
true
,
})
export
class
TimeoutScreenManageComponent
implements
OnInit
{
MyhrcompanyList
:
MyHrcompanyModel
[]
=
[];
HrcompanyList
:
HrcompanyModel
[]
=
[];
selectedCompany
?:
MyHrcompanyModel
;
companyId
:
string
=
''
;
private
dialogRef
?:
MatDialogRef
<
any
>
;
searchTarget
=
""
searchModal
=
""
modalPageIndex
=
0
;
modalPageIndexSource
=
0
;
modalPageIndexTarget
=
0
;
readonly
maxPageButtons
=
15
;
modalPageSize
=
10
;
timeoutScreenConconfig
:
TimeOutscreenModel
constructor
(
private
myhrcompanyservice
:
MyhrcompanyService
,
private
translateService
:
TranslateService
,
private
dialog
:
MatDialog
,
private
mConfigService
:
MConfigService
)
{
}
ngOnInit
()
{
this
.
getMyHRCompany
();
this
.
getMyHRCompanyExternal
();
}
getMyHRCompany
()
{
this
.
myhrcompanyservice
.
getList
().
subscribe
({
next
:
(
response
:
HrcompanyModel
[])
=>
{
this
.
MyhrcompanyList
=
response
.
map
(
(
x
:
HrcompanyModel
)
=>
new
MyHrcompanyModel
(
x
,
this
.
translateService
)
);
this
.
HrcompanyList
=
this
.
MyhrcompanyList
;
},
error
:
(
error
)
=>
{
console
.
error
(
'error cant get company'
,
error
);
swal
(
"ข้อผิดพลาด"
,
"ไม่สามารถดึงข้อมูลบริษัทได้"
,
"error"
);
}
});
}
getMyHRCompanyExternal
()
{
const
externalCompanyId
=
"5f3c2b6e-8d7a-4b2f-a3e6-9f1d8c4e7b0a"
;
this
.
myhrcompanyservice
.
getByCompany
(
externalCompanyId
).
subscribe
({
next
:
(
response
:
HrcompanyModel
)
=>
{
const
company
=
new
MyHrcompanyModel
(
response
,
this
.
translateService
);
this
.
HrcompanyList
.
push
(
company
);
},
error
:
(
error
)
=>
{
console
.
error
(
"error can't get external company"
,
error
);
swal
(
"เกิดข้อผิดพลาด"
,
"ไม่สามารถดึงข้อมูล external company ได้"
,
"error"
);
}
});
}
closeModal
()
{
if
(
this
.
dialogRef
)
{
this
.
dialogRef
.
close
();
this
.
dialogRef
=
undefined
;
}
}
selectCompany
(
company
:
HrcompanyModel
)
{
this
.
selectedCompany
=
new
MyHrcompanyModel
(
company
,
this
.
translateService
);
this
.
companyId
=
company
.
companyId
;
this
.
closeModal
();
this
.
updateModalPagedItems
();
this
.
getTimeoutScreen
(
this
.
companyId
);
}
getTimeoutScreen
(
companyId
:
string
)
{
this
.
mConfigService
.
getTimeoutScreen
(
companyId
,
"NR"
).
subscribe
(
result
=>
{
this
.
timeoutScreenConconfig
=
result
[
0
]
// console.log("🍇🍇 ~ this.timeoutScreenConconfig:", this.timeoutScreenConconfig)
})
}
save
()
{
const
body
=
{
configId
:
this
.
timeoutScreenConconfig
.
configId
,
companyId
:
this
.
timeoutScreenConconfig
.
companyId
,
thName
:
this
.
timeoutScreenConconfig
.
thName
,
engName
:
this
.
timeoutScreenConconfig
.
engName
,
configValue
:
this
.
timeoutScreenConconfig
.
configValue
,
configCode
:
this
.
timeoutScreenConconfig
.
configCode
,
configType
:
this
.
timeoutScreenConconfig
.
configType
,
configUnit
:
this
.
timeoutScreenConconfig
.
configUnit
,
configCodeDetail
:
this
.
timeoutScreenConconfig
.
configCodeDetail
,
configTypeDetail
:
this
.
timeoutScreenConconfig
.
configTypeDetail
,
configUnitDetail
:
this
.
timeoutScreenConconfig
.
configUnitDetail
}
swal
({
title
:
"ยืนยันการบันทึก"
,
text
:
"คุณต้องการบันทึกหรือไม่?"
,
icon
:
"warning"
,
buttons
:
[
"ยกเลิก"
,
"ยืนยัน"
],
dangerMode
:
false
,
}).
then
((
willSave
:
boolean
)
=>
{
// console.log("🍇🍇 ~ willSave:", willSave)
if
(
willSave
)
{
this
.
mConfigService
.
saveTimeoutScreen
(
body
).
subscribe
(
response
=>
{
swal
(
"บันทึกสำเร็จ!"
,
"ข้อมูลถูกบันทึกเรียบร้อยแล้ว"
,
"success"
);
})
}
})
}
openCompanyModal
(
template
:
TemplateRef
<
any
>
)
{
this
.
dialogRef
=
this
.
dialog
.
open
(
template
,
{
width
:
'900px'
,
height
:
'600px'
});
this
.
updateModalPagedItems
();
}
updateModalPagedItems
()
{
const
filteredData
=
this
.
CompanyFilterSource
()
||
this
.
CompanyFilterTarget
();
const
startIndex
=
this
.
modalPageIndexSource
||
this
.
modalPageIndexTarget
*
this
.
modalPageSize
;
const
endIndex
=
startIndex
+
this
.
modalPageSize
;
this
.
HrcompanyList
=
filteredData
.
slice
(
startIndex
,
endIndex
);
}
CompanyFilterSource
():
HrcompanyModel
[]
{
return
this
.
MyhrcompanyList
.
filter
((
item
:
HrcompanyModel
)
=>
item
.
companyId
.
toLowerCase
().
includes
(
this
.
searchModal
.
toLowerCase
())
||
item
.
companyName
.
toLowerCase
().
includes
(
this
.
searchModal
.
toLowerCase
())
||
item
.
branchName
.
toLowerCase
().
includes
(
this
.
searchModal
.
toLowerCase
())
);
}
CompanyFilterTarget
():
HrcompanyModel
[]
{
return
this
.
MyhrcompanyList
.
filter
((
item
:
HrcompanyModel
)
=>
(
item
.
companyId
.
toLowerCase
().
includes
(
this
.
searchTarget
.
toLowerCase
())
||
item
.
companyName
.
toLowerCase
().
includes
(
this
.
searchTarget
.
toLowerCase
())
||
item
.
branchName
.
toLowerCase
().
includes
(
this
.
searchTarget
.
toLowerCase
()))
&&
item
.
companyId
!==
this
.
selectedCompany
?.
companyId
);
}
get
totalModalItemsCompany
():
number
{
return
this
.
CompanyFilterSource
().
length
;
}
get
totalModalItemsCompanyTarget
():
number
{
return
this
.
CompanyFilterTarget
().
length
;
}
get
totalPagesArrayInModal
():
number
[]
{
const
totalPages
=
Math
.
ceil
(
this
.
totalModalItemsCompany
||
this
.
totalModalItemsCompanyTarget
);
const
pageButtons
:
number
[]
=
[];
let
startPage
:
number
,
endPage
:
number
;
if
(
totalPages
<=
this
.
maxPageButtons
)
{
startPage
=
1
;
endPage
=
totalPages
;
}
else
{
const
halfButtons
=
Math
.
floor
(
this
.
maxPageButtons
/
2
);
if
(
this
.
modalPageIndex
<
halfButtons
)
{
startPage
=
1
;
endPage
=
this
.
maxPageButtons
;
}
else
if
(
this
.
modalPageIndex
>=
totalPages
-
halfButtons
)
{
startPage
=
totalPages
-
this
.
maxPageButtons
+
1
;
endPage
=
totalPages
;
}
else
{
startPage
=
this
.
modalPageIndex
-
halfButtons
+
1
;
endPage
=
this
.
modalPageIndex
+
halfButtons
;
}
}
for
(
let
i
=
startPage
;
i
<=
endPage
;
i
++
)
{
pageButtons
.
push
(
i
);
}
return
pageButtons
;
}
}
src/app/portal-manage/services/mylearn/course.service.ts
View file @
41948ca4
...
@@ -10,7 +10,7 @@ import { CourseModel } from '../../models/mylearn/course.model';
...
@@ -10,7 +10,7 @@ import { CourseModel } from '../../models/mylearn/course.model';
})
})
export
class
CourseService
{
export
class
CourseService
{
api
=
"/course"
api
=
"/course"
urlApi
=
environment
.
baseUrl
s
+
"/course"
urlApi
=
environment
.
baseUrl
Mylearn
+
"/course"
constructor
(
private
http
:
HttpClient
)
{
}
constructor
(
private
http
:
HttpClient
)
{
}
getcourse
()
{
getcourse
()
{
...
...
src/app/portal-manage/services/mylearn/m-config.service.ts
0 → 100644
View file @
41948ca4
import
{
HttpClient
}
from
'@angular/common/http'
;
import
{
Injectable
}
from
'@angular/core'
;
import
{
environment
}
from
'../../../../environments/environment'
;
import
{
TimeOutscreenModel
}
from
'../../models/mylearn/m-config.model'
;
@
Injectable
({
providedIn
:
'root'
})
export
class
MConfigService
{
api
=
"/config"
urlApi
=
environment
.
baseUrlMylearn
+
"/config"
constructor
(
private
http
:
HttpClient
)
{
}
getTimeoutScreen
(
companyId
:
string
,
configCode
:
string
){
return
this
.
http
.
get
<
TimeOutscreenModel
[]
>
(
this
.
urlApi
+
"/lists/search?companyId="
+
companyId
+
"&configCode="
+
configCode
)
}
saveTimeoutScreen
(
body
:
TimeOutscreenModel
){
return
this
.
http
.
post
<
TimeOutscreenModel
>
(
this
.
urlApi
,
body
)
}
}
src/app/portal-manage/services/mylearn/myhrcompany.service.ts
View file @
41948ca4
...
@@ -11,7 +11,7 @@ import { HrcompanyModel } from '../../models/mylearn/myhrcompany.model';
...
@@ -11,7 +11,7 @@ import { HrcompanyModel } from '../../models/mylearn/myhrcompany.model';
})
})
export
class
MyhrcompanyService
{
export
class
MyhrcompanyService
{
api
=
"/myhrcompany"
api
=
"/myhrcompany"
urlApi
=
environment
.
baseUrl
s
+
"/myhrcompany"
urlApi
=
environment
.
baseUrl
Mylearn
+
"/myhrcompany"
constructor
(
private
http
:
HttpClient
)
{
}
constructor
(
private
http
:
HttpClient
)
{
}
getcompany
()
{
getcompany
()
{
...
...
src/app/portal-manage/services/mylearn/transfer.service.ts
View file @
41948ca4
...
@@ -10,7 +10,7 @@ import { TransferModel } from '../../models/mylearn/transfer.model';
...
@@ -10,7 +10,7 @@ import { TransferModel } from '../../models/mylearn/transfer.model';
})
})
export
class
TransferService
{
export
class
TransferService
{
api
=
"/course-transfer"
api
=
"/course-transfer"
urlApi
=
environment
.
baseUrl
s
+
"/course-transfer"
urlApi
=
environment
.
baseUrl
Mylearn
+
"/course-transfer"
constructor
(
private
http
:
HttpClient
)
{
}
constructor
(
private
http
:
HttpClient
)
{
}
TransferCourse
(
body
:
TransferModel
):
Observable
<
any
>
{
TransferCourse
(
body
:
TransferModel
):
Observable
<
any
>
{
...
...
src/app/portal-manage/services/mylearn/user-profile.services.ts
View file @
41948ca4
...
@@ -192,8 +192,8 @@ import { CompanyZeemeModel } from "../../models/mylearn/courseinsite.model";
...
@@ -192,8 +192,8 @@ import { CompanyZeemeModel } from "../../models/mylearn/courseinsite.model";
providedIn
:
"root"
,
providedIn
:
"root"
,
})
})
export
class
UserProfileService
{
export
class
UserProfileService
{
private
apiBaseUrl
=
`
${
environment
.
baseUrl
s
}
/member`
;
private
apiBaseUrl
=
`
${
environment
.
baseUrl
Mylearn
}
/member`
;
// private apiBaseUrl = `${environment.baseUrl
s
}/admin`;
// private apiBaseUrl = `${environment.baseUrl
Mylearn
}/admin`;
constructor
(
constructor
(
private
http
:
HttpClient
,
private
http
:
HttpClient
,
private
translateService
:
TranslateService
private
translateService
:
TranslateService
...
...
src/app/portal-manage/services/mylearn/user-role.service.ts
View file @
41948ca4
...
@@ -11,7 +11,7 @@ import { PageResponseModel, ResponseModel } from '../../models/base.model';
...
@@ -11,7 +11,7 @@ import { PageResponseModel, ResponseModel } from '../../models/base.model';
providedIn
:
'root'
providedIn
:
'root'
})
})
export
class
UserRoleService
{
export
class
UserRoleService
{
private
urlApi
=
environment
.
baseUrl
s
+
"/users-role"
;
private
urlApi
=
environment
.
baseUrl
Mylearn
+
"/users-role"
;
constructor
(
constructor
(
private
http
:
HttpClient
,
private
http
:
HttpClient
,
...
...
src/app/portal-manage/services/mylearn/user.service.ts
View file @
41948ca4
...
@@ -12,7 +12,7 @@ import { TranslateService } from '@ngx-translate/core';
...
@@ -12,7 +12,7 @@ import { TranslateService } from '@ngx-translate/core';
providedIn
:
'root'
providedIn
:
'root'
})
})
export
class
UserService
{
export
class
UserService
{
private
urlApi
=
environment
.
baseUrl
s
+
"/users"
;
private
urlApi
=
environment
.
baseUrl
Mylearn
+
"/users"
;
constructor
(
constructor
(
private
http
:
HttpClient
,
private
http
:
HttpClient
,
...
...
src/app/shared/services/nav.service.ts
View file @
41948ca4
...
@@ -251,6 +251,12 @@ export class NavService implements OnDestroy {
...
@@ -251,6 +251,12 @@ export class NavService implements OnDestroy {
title
:
'โอนย้ายคอร์ส'
,
title
:
'โอนย้ายคอร์ส'
,
type
:
'link'
,
type
:
'link'
,
},
},
{
icon
:
'time'
,
path
:
'/mylearn/timeout-screen-manage'
,
title
:
'จัดการเวลาหน้าจอ'
,
type
:
'link'
,
},
...
this
.
createPortalMenu
(
'mylearn'
)
...
this
.
createPortalMenu
(
'mylearn'
)
];
];
}
}
...
...
src/environments/environment.prod.ts
View file @
41948ca4
...
@@ -5,7 +5,7 @@ export const environment = {
...
@@ -5,7 +5,7 @@ export const environment = {
production
:
true
,
production
:
true
,
// baseUrl: window.location.origin + '/api',
// baseUrl: window.location.origin + '/api',
baseUrl
:
'https://myjob-uat.myhr.co.th/api'
,
baseUrl
:
'https://myjob-uat.myhr.co.th/api'
,
baseUrl
s
:
'https://mylearn-uat.myhr.co.th/api'
,
baseUrl
Mylearn
:
'https://mylearn-uat.myhr.co.th/api'
,
url
:
'https://portal.myhr.co.th/api/'
,
url
:
'https://portal.myhr.co.th/api/'
,
jbossUrl
:
'https://hrplus.myhr.co.th/hr'
,
//add
jbossUrl
:
'https://hrplus.myhr.co.th/hr'
,
//add
portalFixedToken
:
'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBdXRoIiwidWlkIjoiOGFhNDUzMzAtMzE0Yy0xMWU3LWJhZjMtMmQ3ZDA5ODc3NzQ0Iiwicm9sZSI6InVzZXIiLCJpc3MiOiJDb21wdXRlciBTY2llbmNlIENvcnBvcmF0aW9uIExpbWl0ZWQiLCJmdWxsTmFtZSI6InRlZXJhZGFjaCBrdWhhdGFuYXNhdGllbiIsIm1lbWJlcklkIjoiOGFhNDUzMzAtMzE0Yy0xMWU3LWJhZjMtMmQ3ZDA5ODc3NzQ0In0.FO7u8g7KfzkmZFTuuniBCEQxduPjcvzMbH7iug3DT90'
,
portalFixedToken
:
'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBdXRoIiwidWlkIjoiOGFhNDUzMzAtMzE0Yy0xMWU3LWJhZjMtMmQ3ZDA5ODc3NzQ0Iiwicm9sZSI6InVzZXIiLCJpc3MiOiJDb21wdXRlciBTY2llbmNlIENvcnBvcmF0aW9uIExpbWl0ZWQiLCJmdWxsTmFtZSI6InRlZXJhZGFjaCBrdWhhdGFuYXNhdGllbiIsIm1lbWJlcklkIjoiOGFhNDUzMzAtMzE0Yy0xMWU3LWJhZjMtMmQ3ZDA5ODc3NzQ0In0.FO7u8g7KfzkmZFTuuniBCEQxduPjcvzMbH7iug3DT90'
,
...
...
src/environments/environment.ts
View file @
41948ca4
...
@@ -6,7 +6,7 @@ export const environment = {
...
@@ -6,7 +6,7 @@ export const environment = {
apiUrl
:
'http://localhost:3000/api'
,
// Example API URL for development
apiUrl
:
'http://localhost:3000/api'
,
// Example API URL for development
baseUrl
:
'https://myjob-uat.myhr.co.th/api'
,
baseUrl
:
'https://myjob-uat.myhr.co.th/api'
,
baseUrl
s
:
'https://mylearn-uat.myhr.co.th/api'
,
baseUrl
Mylearn
:
'https://mylearn-uat.myhr.co.th/api'
,
// baseScormUrl: 'http://localhost/vsscorm',
// baseScormUrl: 'http://localhost/vsscorm',
// api: '9357268c262a35e41df4cb3774d28301',
// api: '9357268c262a35e41df4cb3774d28301',
url
:
'https://portal.myhr.co.th/api/'
,
url
:
'https://portal.myhr.co.th/api/'
,
...
...
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