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
a253c195
Commit
a253c195
authored
Jul 07, 2025
by
DESKTOP-E3GSHH7\myhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
เเก้ไขตอนกดเซฟ
parent
5927934c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
36 deletions
+15
-36
job-type.component.html
...ommon/company-department/job-type/job-type.component.html
+8
-5
province.component.html
...ommon/company-department/province/province.component.html
+5
-3
province.component.ts
.../common/company-department/province/province.component.ts
+2
-28
No files found.
src/app/DPU/common/company-department/job-type/job-type.component.html
View file @
a253c195
<app-page-header
[
title
]="'จัดการประเภทงาน'"
[
activeTitle
]="'ผู้ดูแลระบบ'"
[
title1
]="'จัดการประเภทงาน'"
></app-page-header>
<app-page-header
[
title
]="'จัดการประเภทงาน'"
[
activeTitle
]="'ผู้ดูแลระบบ'"
[
title1
]="'จัดการประเภทงาน'"
></app-page-header>
<div
class=
"grid grid-cols-12 gap-6"
>
<div
class=
"grid grid-cols-12 gap-6"
>
<div
class=
"xl:col-span-12 col-span-12"
>
<div
class=
"xl:col-span-12 col-span-12"
>
...
@@ -172,10 +173,10 @@
...
@@ -172,10 +173,10 @@
</div>
</div>
</div>
</div>
<div
class=
"xl:col-span-12 col-span-12"
>
<div
class=
"xl:col-span-12 col-span-12"
>
<label
for=
"
th
Name"
class=
"form-label"
>
{{'Description(ENG)' | translate}}
</label>
<label
for=
"
eng
Name"
class=
"form-label"
>
{{'Description(ENG)' | translate}}
</label>
<input
type=
"text"
class=
"form-control"
id=
"
th
Name"
placeholder=
""
[(
ngModel
)]="
selectModel
.
engName
"
<input
type=
"text"
class=
"form-control"
id=
"
eng
Name"
placeholder=
""
[(
ngModel
)]="
selectModel
.
engName
"
[
disabled
]="
action =
==
'
edit
'"
>
[
disabled
]="
action =
==
'
edit
'"
>
<div
class=
"text-danger"
*
ngIf=
"!selectModel.
th
Name"
>
<div
class=
"text-danger"
*
ngIf=
"!selectModel.
eng
Name"
>
{{'Please fill in information' | translate}}
{{'Please fill in information' | translate}}
</div>
</div>
</div>
</div>
...
@@ -187,7 +188,9 @@
...
@@ -187,7 +188,9 @@
data-hs-overlay=
"#modal-detail"
>
data-hs-overlay=
"#modal-detail"
>
{{'Cancel' | translate}}
{{'Cancel' | translate}}
</button>
</button>
<button
type=
"button"
(
click
)="
save
()"
class=
"ti-btn bg-primary text-white !font-medium"
>
{{'Save' |
<button
type=
"button"
(
click
)="
save
()"
class=
"ti-btn bg-primary text-white !font-medium"
[
class
.
ti-btn-disabled
]="!
selectModel
.
jobTypeId
||!
selectModel
.
thName
||!
selectModel
.
engName
"
[
disabled
]="!
selectModel
.
jobTypeId
||!
selectModel
.
thName
||!
selectModel
.
engName
"
>
{{'Save' |
translate}}
</button>
translate}}
</button>
</div>
</div>
</div>
</div>
...
...
src/app/DPU/common/company-department/province/province.component.html
View file @
a253c195
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<input
class=
"form-check-input check-all"
type=
"checkbox"
id=
"all-products"
<input
class=
"form-check-input check-all"
type=
"checkbox"
id=
"all-products"
(
change
)="
toggleAll
($
event
)"
[
checked
]="
allSelected
"
aria-label=
"..."
>
(
change
)="
toggleAll
($
event
)"
[
checked
]="
allSelected
"
aria-label=
"..."
>
</th>
</th>
<th
scope=
"col"
class=
"text-start"
>
รหัส
ประเภทงาน
</th>
<th
scope=
"col"
class=
"text-start"
>
รหัส
จังหวัด
</th>
<th
scope=
"col"
class=
"text-start"
>
ชื่อย่อ (ไทย)
</th>
<th
scope=
"col"
class=
"text-start"
>
ชื่อย่อ (ไทย)
</th>
<th
scope=
"col"
class=
"text-start"
>
ชื่อย่อ (อังกฤษ)
</th>
<th
scope=
"col"
class=
"text-start"
>
ชื่อย่อ (อังกฤษ)
</th>
<th
scope=
"col"
class=
"text-start"
>
รายละเอียด (ไทย)
</th>
<th
scope=
"col"
class=
"text-start"
>
รายละเอียด (ไทย)
</th>
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
<div
class=
"grid grid-cols-12 gap-4"
>
<div
class=
"grid grid-cols-12 gap-4"
>
<div
class=
"xl:col-span-12 col-span-12"
>
<div
class=
"xl:col-span-12 col-span-12"
>
<label
for=
"provinceId"
class=
"form-label"
>
{{'
provinceId
' | translate}}
</label>
<label
for=
"provinceId"
class=
"form-label"
>
{{'
รหัสจังหวัด
' | translate}}
</label>
<input
type=
"text"
class=
"form-control"
id=
"provinceId"
placeholder=
""
[(
ngModel
)]="
selectModel
.
provinceId
"
<input
type=
"text"
class=
"form-control"
id=
"provinceId"
placeholder=
""
[(
ngModel
)]="
selectModel
.
provinceId
"
[
readonly
]="
action =
==
'
edit
'"
[
readonly
]="
action =
==
'
edit
'"
[
readonly
]="
action =
==
'
edit
'"
[
readonly
]="
action =
==
'
edit
'"
[
ngClass
]="{
'!
bg-input-readonly
'
:
action =
==
'
edit
'
}"
>
[
ngClass
]="{
'!
bg-input-readonly
'
:
action =
==
'
edit
'
}"
>
...
@@ -256,7 +256,9 @@
...
@@ -256,7 +256,9 @@
data-hs-overlay=
"#modal-detail"
>
data-hs-overlay=
"#modal-detail"
>
{{'Cancel' | translate}}
{{'Cancel' | translate}}
</button>
</button>
<button
type=
"button"
(
click
)="
save
()"
class=
"ti-btn bg-primary text-white !font-medium"
>
{{'Save' |
<button
type=
"button"
(
click
)="
save
()"
class=
"ti-btn bg-primary text-white !font-medium"
[
class
.
ti-btn-disabled
]="!
selectModel
.
provinceId
||!
selectModel
.
thName
||!
selectModel
.
engName
||!
selectedCountry
||!
selectedRegion
"
[
disabled
]="!
selectModel
.
provinceId
||!
selectModel
.
thName
||!
selectModel
.
engName
||!
selectedCountry
||!
selectedRegion
"
>
{{'Save' |
translate}}
</button>
translate}}
</button>
</div>
</div>
</div>
</div>
...
...
src/app/DPU/common/company-department/province/province.component.ts
View file @
a253c195
...
@@ -49,7 +49,7 @@ export class ProvinceComponent {
...
@@ -49,7 +49,7 @@ export class ProvinceComponent {
countryList
:
CountryModel
[]
=
[];
countryList
:
CountryModel
[]
=
[];
selectedCountry
:
CountryModel
|
undefined
selectedCountry
:
CountryModel
|
undefined
regionList
:
RegionModel
[]
=
[]
regionList
:
RegionModel
[]
=
[]
selectedRegion
:
RegionModel
|
undefined
selectedRegion
:
RegionModel
|
undefined
pageIndex
=
0
;
pageIndex
=
0
;
...
@@ -184,7 +184,7 @@ export class ProvinceComponent {
...
@@ -184,7 +184,7 @@ export class ProvinceComponent {
c
=>
c
.
countryId
===
this
.
selectModel
.
country
?.
countryId
c
=>
c
.
countryId
===
this
.
selectModel
.
country
?.
countryId
);
);
}
}
if
(
this
.
selectModel
.
region
&&
this
.
regionList
){
if
(
this
.
selectModel
.
region
&&
this
.
regionList
)
{
this
.
selectedRegion
=
this
.
regionList
.
find
(
this
.
selectedRegion
=
this
.
regionList
.
find
(
r
=>
r
.
regionId
===
this
.
selectModel
.
region
?.
regionId
r
=>
r
.
regionId
===
this
.
selectModel
.
region
?.
regionId
)
)
...
@@ -208,32 +208,6 @@ export class ProvinceComponent {
...
@@ -208,32 +208,6 @@ export class ProvinceComponent {
save
()
{
save
()
{
const
checkprovince
=
this
.
selectModel
;
if
(
!
checkprovince
.
provinceId
)
{
swal
({
title
:
"ข้อผิดพลาด!"
,
text
:
"กรุณาระบุรหัสจังหวัด"
,
icon
:
"warning"
,
buttons
:
[
"ยกเลิก"
,
"ยืนยัน"
],
});
return
;
}
else
if
(
!
checkprovince
.
country
){
swal
({
title
:
"ข้อผิดพลาด!"
,
text
:
"กรุณาเลือกประเทศ"
,
icon
:
"warning"
,
buttons
:
[
"ยกเลิก"
,
"ยืนยัน"
],
});
return
;
}
else
if
(
!
checkprovince
.
region
){
swal
({
title
:
"ข้อผิดพลาด!"
,
text
:
"กรุณาเลือกภูมิภาค"
,
icon
:
"warning"
,
buttons
:
[
"ยกเลิก"
,
"ยืนยัน"
],
});
return
;
}
console
.
log
(
'Before Save, selectModel is:'
,
this
.
selectModel
);
console
.
log
(
'Before Save, selectModel is:'
,
this
.
selectModel
);
swal
({
swal
({
title
:
"คุณแน่ใจหรือไม่?"
,
title
:
"คุณแน่ใจหรือไม่?"
,
...
...
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