Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
myjob-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
myjob-manage
Commits
0ad76c64
Commit
0ad76c64
authored
Jul 14, 2025
by
sawit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Datasource Table
parent
b3348a7f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
366 additions
and
4 deletions
+366
-4
common.module.ts
src/app/DPU/common/common.module.ts
+5
-0
datasource-table.component.html
...myportal/datasource-table/datasource-table.component.html
+0
-0
datasource-table.component.scss
...myportal/datasource-table/datasource-table.component.scss
+5
-0
datasource-table.component.ts
...n/myportal/datasource-table/datasource-table.component.ts
+277
-0
datasource-table.model.ts
src/app/DPU/models/datasource-table.model.ts
+34
-0
datasourse-table.service.ts
src/app/DPU/services/datasourse-table.service.ts
+37
-0
nav.service.ts
src/app/shared/services/nav.service.ts
+2
-2
en.json
src/assets/i18n/en.json
+3
-1
th.json
src/assets/i18n/th.json
+3
-1
No files found.
src/app/DPU/common/common.module.ts
View file @
0ad76c64
...
@@ -93,6 +93,11 @@ export const admin: Routes = [
...
@@ -93,6 +93,11 @@ export const admin: Routes = [
loadComponent
:
()
=>
loadComponent
:
()
=>
import
(
'./myportal/set-excel-reports/excel-list/excel-list.component'
).
then
((
m
)
=>
m
.
ExcelListComponent
),
import
(
'./myportal/set-excel-reports/excel-list/excel-list.component'
).
then
((
m
)
=>
m
.
ExcelListComponent
),
},
},
{
path
:
'datasource-table'
,
loadComponent
:
()
=>
import
(
'./myportal/datasource-table/datasource-table.component'
).
then
((
m
)
=>
m
.
DatasourceTableComponent
),
},
//////////////emp/////////////////
//////////////emp/////////////////
{
{
path
:
'emp/department'
,
path
:
'emp/department'
,
...
...
src/app/DPU/common/myportal/datasource-table/datasource-table.component.html
0 → 100644
View file @
0ad76c64
This diff is collapsed.
Click to expand it.
src/app/DPU/common/myportal/datasource-table/datasource-table.component.scss
0 → 100644
View file @
0ad76c64
.secure-input
{
-webkit-text-security
:
disc
;
text-security
:
disc
;
}
\ No newline at end of file
src/app/DPU/common/myportal/datasource-table/datasource-table.component.ts
0 → 100644
View file @
0ad76c64
This diff is collapsed.
Click to expand it.
src/app/DPU/models/datasource-table.model.ts
0 → 100644
View file @
0ad76c64
export
interface
DatasourceTableModel
{
companyId
:
string
companyName
:
string
databaseName
:
string
dbType
:
string
password
:
string
portNumber
:
string
serverName
:
string
status
:
string
userName
:
string
}
export
class
MyDatasourceTableModel
implements
DatasourceTableModel
{
companyId
:
string
companyName
:
string
databaseName
:
string
dbType
:
string
password
:
string
portNumber
:
string
serverName
:
string
status
:
string
userName
:
string
constructor
(
data
?:
Partial
<
DatasourceTableModel
>
)
{
this
.
companyId
=
data
?.
companyId
||
''
this
.
companyName
=
data
?.
companyName
||
''
this
.
databaseName
=
data
?.
databaseName
||
''
this
.
dbType
=
data
?.
dbType
||
''
this
.
password
=
data
?.
password
||
''
this
.
portNumber
=
data
?.
portNumber
||
''
this
.
serverName
=
data
?.
serverName
||
''
this
.
status
=
data
?.
status
||
''
this
.
userName
=
data
?.
userName
||
''
}
}
\ No newline at end of file
src/app/DPU/services/datasourse-table.service.ts
0 → 100644
View file @
0ad76c64
import
{
Injectable
}
from
'@angular/core'
;
import
{
HttpClient
,
HttpHeaders
}
from
'@angular/common/http'
;
import
{
TranslateService
}
from
'@ngx-translate/core'
;
import
{
Observable
}
from
'rxjs'
;
import
{
DatasourceTableModel
}
from
'../models/datasource-table.model'
;
import
{
environment
}
from
'../../../environments/environment'
;
import
{
AlertModel
}
from
'../models/alert.model'
;
@
Injectable
({
providedIn
:
'root'
})
export
class
DatasourseTableService
{
constructor
(
private
http
:
HttpClient
,
private
translateService
:
TranslateService
)
{
}
getid
(
companyid
:
string
):
Observable
<
DatasourceTableModel
>
{
return
this
.
http
.
get
<
DatasourceTableModel
>
(
environment
.
url
+
"datasource/"
+
companyid
)
}
getList
():
Observable
<
DatasourceTableModel
[]
>
{
return
this
.
http
.
get
<
DatasourceTableModel
[]
>
(
environment
.
url
+
"datasource/lists"
)
}
post
(
body
:
DatasourceTableModel
):
Observable
<
AlertModel
>
{
return
this
.
http
.
post
<
AlertModel
>
(
environment
.
url
+
"datasource"
,
body
)
}
delete
(
body
:
DatasourceTableModel
):
Observable
<
AlertModel
>
{
let
option
=
{
headers
:
new
HttpHeaders
({
"Content-Type"
:
"application/json"
,
}),
body
:
body
}
return
this
.
http
.
delete
<
AlertModel
>
(
environment
.
url
+
"datasource"
,
option
)
}
}
\ No newline at end of file
src/app/shared/services/nav.service.ts
View file @
0ad76c64
...
@@ -144,8 +144,8 @@ export class NavService implements OnDestroy {
...
@@ -144,8 +144,8 @@ export class NavService implements OnDestroy {
},
},
{
{
icon
:
'receipt'
,
icon
:
'receipt'
,
path
:
'/admin/
manage-articles
'
,
path
:
'/admin/
datasource-table
'
,
title
:
'DataSource Tab
el
'
,
title
:
'DataSource Tab
le
'
,
type
:
'link'
,
type
:
'link'
,
},
},
{
{
...
...
src/assets/i18n/en.json
View file @
0ad76c64
...
@@ -107,5 +107,7 @@
...
@@ -107,5 +107,7 @@
"Career Cluster ID"
:
"Career Cluster ID"
,
"Career Cluster ID"
:
"Career Cluster ID"
,
"Invalid email format @"
:
"May be you forgot @ [ Ex. ] username@hostname.com"
,
"Invalid email format @"
:
"May be you forgot @ [ Ex. ] username@hostname.com"
,
"Invalid email format ."
:
"Why after @ have not dot [ Ex. ] username@hostname.com"
,
"Invalid email format ."
:
"Why after @ have not dot [ Ex. ] username@hostname.com"
,
"This email already exists"
:
"This email already exists"
"This email already exists"
:
"This email already exists"
,
"Datasource Table Information"
:
"Datasource Table"
,
"Company Name"
:
"Company Name"
}
}
src/assets/i18n/th.json
View file @
0ad76c64
...
@@ -107,5 +107,7 @@
...
@@ -107,5 +107,7 @@
"Career Cluster ID"
:
"รหัสกลุ่มอาชีพ"
,
"Career Cluster ID"
:
"รหัสกลุ่มอาชีพ"
,
"Invalid email format @"
:
"ไม่ได้ใส่ @ [ ตัวอย่าง ] username@hostname.com"
,
"Invalid email format @"
:
"ไม่ได้ใส่ @ [ ตัวอย่าง ] username@hostname.com"
,
"Invalid email format ."
:
"หลัง @ ไม่ได้ใส่ . หลังชื่อ [ ตัวอย่าง ] username@hostname.com"
,
"Invalid email format ."
:
"หลัง @ ไม่ได้ใส่ . หลังชื่อ [ ตัวอย่าง ] username@hostname.com"
,
"This email already exists"
:
"อีเมลนี้มีอยู่แล้ว"
"This email already exists"
:
"อีเมลนี้มีอยู่แล้ว"
,
"Datasource Table Information"
:
"Datasource Table"
,
"Company Name"
:
"ชื่อบริษัท"
}
}
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