Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
queue
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
Indra Raja
queue
Commits
2483887e
Commit
2483887e
authored
Nov 12, 2020
by
Azy Mushofy Anwary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
haha
parent
45eb06fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
80 additions
and
76 deletions
+80
-76
public/action-js/antrian-js/action-datapasien.js
public/action-js/antrian-js/action-datapasien.js
+80
-76
No files found.
public/action-js/antrian-js/action-datapasien.js
View file @
2483887e
...
@@ -225,6 +225,7 @@ function validasipasien(id_poli, dokter, id_pasien) {
...
@@ -225,6 +225,7 @@ function validasipasien(id_poli, dokter, id_pasien) {
for
(
x
in
data
)
{
for
(
x
in
data
)
{
if
(
id_pasien
==
data
[
x
][
'
id_pasien
'
])
{
if
(
id_pasien
==
data
[
x
][
'
id_pasien
'
])
{
if
(
id_poli
==
data
[
x
][
'
id_poli
'
])
{
if
(
id_poli
==
data
[
x
][
'
id_poli
'
])
{
if
(
dokter
==
data
[
x
][
'
id_dokter
'
])
{
if
(
dokter
==
data
[
x
][
'
id_dokter
'
])
{
...
@@ -233,8 +234,11 @@ function validasipasien(id_poli, dokter, id_pasien) {
...
@@ -233,8 +234,11 @@ function validasipasien(id_poli, dokter, id_pasien) {
let
nama
=
result
.
data
[
0
][
'
nama
'
];
let
nama
=
result
.
data
[
0
][
'
nama
'
];
// $("#pilihantrian").modal("toggle");
$
(
'
#pilihantrian
'
).
hide
();
swal
({
swal
({
title
:
"
Pasien dengan nama'
"
+
nama
+
"
' telah melakukan pendaftaran di poli dan dokter ini!
\n
Apakah anda ingin mencetak no antrian lagi ?
"
,
title
:
"
Pasien dengan nama
'
"
+
nama
+
"
' telah melakukan pendaftaran di poli dan dokter ini!
\n
Apakah anda ingin mencetak no antrian lagi ?
"
,
type
:
"
warning
"
,
type
:
"
warning
"
,
confirmButtonClass
:
"
success
"
,
confirmButtonClass
:
"
success
"
,
confirmButtonText
:
"
Yes!
"
,
confirmButtonText
:
"
Yes!
"
,
...
@@ -263,9 +267,12 @@ $('#pilihno').on('click', function (e) {
...
@@ -263,9 +267,12 @@ $('#pilihno').on('click', function (e) {
var
id_pasien
=
$
(
'
#id_pasien
'
).
val
();
var
id_pasien
=
$
(
'
#id_pasien
'
).
val
();
var
id_poli
=
$
(
'
#poli option:selected
'
).
attr
(
"
value
"
);
var
id_poli
=
$
(
'
#poli option:selected
'
).
attr
(
"
value
"
);
var
dokter
=
$
(
'
#dokter option:selected
'
).
attr
(
"
value
"
);
var
dokter
=
$
(
'
#dokter option:selected
'
).
attr
(
"
value
"
);
if
(
validasipasien
(
id_poli
,
dokter
,
id_pasien
)
==
1
)
{
}
else
{
pilihAntrian
(
id_poli
)
pilihAntrian
(
id_poli
)
}
// console.log(id_poli)
});
});
...
@@ -291,10 +298,7 @@ function pilihAntrian(id_poli) {
...
@@ -291,10 +298,7 @@ function pilihAntrian(id_poli) {
var
$antrian
=
(
response
.
data
);
var
$antrian
=
(
response
.
data
);
if
(
validasipasien
(
id_poli
,
dokter
,
id_pasien
)
==
1
)
{
// console.log(validasipasien(id_poli, dokter, id_pasien))
}
else
{
if
(
$antrian
)
{
if
(
$antrian
)
{
var
hour
=
0
;
var
hour
=
0
;
...
@@ -440,7 +444,7 @@ function pilihAntrian(id_poli) {
...
@@ -440,7 +444,7 @@ function pilihAntrian(id_poli) {
}
else
{
}
else
{
}
}
}
...
...
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