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
903cd10c
Commit
903cd10c
authored
Dec 20, 2021
by
Chanachai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Update กดบันทึกแล้วข้อมูลขึ้น"
This reverts commit
f25fa6ac
.
parent
f25fa6ac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
60 deletions
+31
-60
contact.model.ts
src/app/models/contact.model.ts
+0
-12
contact-admin.component.html
src/app/pages/contact-admin/contact-admin.component.html
+29
-36
contact.service.ts
src/app/service/contact.service.ts
+1
-11
room.service.ts
src/app/service/room.service.ts
+1
-1
No files found.
src/app/models/contact.model.ts
View file @
903cd10c
...
...
@@ -16,15 +16,4 @@ export class Contact {
this
.
ctStatus
=
0
;
this
.
sDate
=
''
;
}
}
export
interface
SearchContactModel
{
sDate
:
string
;
}
export
class
SearchContactModel
{
constructor
(
init
?:
SearchContactModel
)
{
Object
.
assign
(
this
,
init
);
this
.
sDate
=
''
}
}
\ No newline at end of file
src/app/pages/contact-admin/contact-admin.component.html
View file @
903cd10c
...
...
@@ -2,26 +2,20 @@
<div
class=
"card"
>
<div
class=
"card-body"
>
<div
class=
"row"
>
<div
class=
"col-
6
md-1"
>
<div
class=
"col-
4
md-1"
>
<label>
ชื่อผู้แจ้ง Bug:
</label>
<input
input
class=
" form-control"
placeholder=
""
type=
"text"
[(
ngModel
)]="
modelContact
.
ctName
"
/>
<input
input
class=
" form-control"
placeholder=
""
type=
"text"
/>
</div>
<div
class=
"col-
6
md-1"
>
<div
class=
"col-
4
md-1"
>
<label
for=
"typeahead-focus"
>
หัวข้อการแจ้ง Bug:
</label>
<input
input
class=
" form-control"
placeholder=
""
type=
"text"
[(
ngModel
)]="
modelContact
.
ctHead
"
/>
<input
input
class=
" form-control"
placeholder=
""
type=
"text"
/>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-6 md-1"
>
<div
class=
"col-4 md-1"
>
<label
for=
"typeahead-focus"
>
หน้าต่างที่ต้องการแจ้ง Bug:
</label>
<input
id=
"typeahead-focus"
type=
"text"
class=
"form-control"
[(
ngModel
)]="
model
Contact
.
ctTab
"
<input
id=
"typeahead-focus"
type=
"text"
class=
"form-control"
[(
ngModel
)]="
model
"
[
ngbTypeahead
]="
search
"
(
focus
)="
focus
$.
next
($
any
($
event
).
target
.
value
)"
(
click
)="
click
$.
next
($
any
($
event
).
target
.
value
)"
#
instance=
"ngbTypeahead"
/>
</div>
<div
class=
"col-6 mb-1"
>
<label
for=
"exampleFormControlSelect1"
>
วันที่เริ่มต้น
</label>
<input
type=
"date"
class=
"form-control"
value=
""
[(
ngModel
)]="
modelContact
.
sDate
"
>
</div>
</div>
<div
class=
" row"
>
<div
class=
" col-md-12"
>
...
...
@@ -34,10 +28,8 @@
</div>
<div
class=
"card-footer"
>
<div
class=
"d-grid gap-2 d-md-flex justify-content-md-center"
>
<button
class=
"btn btn-primary btn-sm"
[
disabled
]=""
type=
"submit"
(
click
)="
saveContact
()"
>
บันทึก
</button>
<button
class=
"btn btn-primary btn-sm"
type=
"cancel"
(
click
)="
model
.
dismiss
('
Cross
click
')"
>
ยกเลิก
</button>
<button
class=
"btn btn-primary btn-sm"
type=
"submit"
[
disabled
]=""
(
click
)="
saveContact
()"
>
บันทึก
</button>
<button
class=
"btn btn-primary btn-sm"
type=
"cancel"
(
click
)="
model
.
dismiss
('
Cross
click
')"
>
ยกเลิก
</button>
</div>
</div>
</div>
...
...
@@ -110,32 +102,32 @@
[(
ngModel
)]="
modelContact
.
ctHead
"
/>
</div>
</div>
<div
class=
" row"
>
<div
class=
" col-md-12
"
>
<div
class=
" form-group
"
>
<label>
หน้าต่างที่มี BUG
</label
>
<input
readonly
class=
" form-control"
placeholder=
""
type=
"text"
[(
ngModel
)]="
modelContact
.
ctTab
"
/>
</div
>
</div
>
<div
class=
" row
"
>
<div
class=
" col-md-12
"
>
<div
class=
" form-group"
>
<label>
หน้าต่างที่มี BUG
</label>
<input
readonly
class=
" form-control"
placeholder=
""
type=
"text"
[(
ngModel
)]="
modelContact
.
ctTab
"
/
>
</div>
</div>
<div
class=
" row"
>
<div
class=
" col-md-12
"
>
<div
class=
" form-group
"
>
<label>
ชื่อผู้แจ้ง
</label
>
<input
readonly
class=
" form-control"
placeholder=
""
type=
"text"
[(
ngModel
)]="
modelContact
.
ctName
"
/>
</div
>
</div
>
<div
class=
" row
"
>
<div
class=
" col-md-12
"
>
<div
class=
" form-group"
>
<label>
ชื่อผู้แจ้ง
</label>
<input
readonly
class=
" form-control"
placeholder=
""
type=
"text"
[(
ngModel
)]="
modelContact
.
ctName
"
/
>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-12 mb-1
"
>
<label
for=
"exampleFormControlSelect1"
>
วันที่แจ้ง
</label
>
<input
readonly
type=
"date"
class=
"form-control"
[(
ngModel
)]="
sDate
"
>
<
/div
>
</div
>
<div
class=
"row
"
>
<div
class=
"col-sm-12 mb-1"
>
<label
for=
"exampleFormControlSelect1"
>
วันที่แจ้ง
</label
>
<
input
readonly
type=
"date"
class=
"form-control"
[(
ngModel
)]="
sDate
"
>
</div>
</div>
</div>
</div>
</div>
</ng-template>
</ng-template>
\ No newline at end of file
src/app/service/contact.service.ts
View file @
903cd10c
import
{
HttpClient
}
from
'@angular/common/http'
;
import
{
Injectable
}
from
'@angular/core'
;
import
{
Contact
,
SearchContactModel
}
from
"../models/contact.model"
;
import
{
Contact
}
from
"../models/contact.model"
;
@
Injectable
({
providedIn
:
'root'
})
export
class
ContactService
{
...
...
@@ -25,15 +25,5 @@ export class ContactService {
getListContact
()
{
return
this
.
listContact
;
}
searchListContact
(
searchModel
:
SearchContactModel
)
{
this
.
http
.
get
(
this
.
url
+
'&startDate='
+
searchModel
.
sDate
.
split
(
"-"
)[
2
]
+
'-'
+
searchModel
.
sDate
.
split
(
"-"
)[
1
]
+
'-'
+
searchModel
.
sDate
.
split
(
"-"
)[
0
]
).
subscribe
((
response
:
any
)
=>
{
console
.
log
(
response
);
this
.
listContact
=
response
;
},
error
=>
{
console
.
log
(
error
)
alert
(
"ไม่สามารถค้นหาได้ เนื่องจาก :
\
n"
+
error
.
message
)
})
}
}
src/app/service/room.service.ts
View file @
903cd10c
...
...
@@ -220,7 +220,7 @@ export class RoomService {
this
.
listRoomSearch
=
response
;
},
error
=>
{
console
.
log
(
error
)
alert
(
"ไม่สามารถค้นหาห้องประ
ช
ุมที่ว่างได้ เนื่องจาก :
\
n"
+
error
.
message
)
alert
(
"ไม่สามารถค้นหาห้องประ
ข
ุมที่ว่างได้ เนื่องจาก :
\
n"
+
error
.
message
)
})
}
...
...
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