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
45eb06fd
Commit
45eb06fd
authored
Nov 12, 2020
by
Azy Mushofy Anwary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Baru
parent
f41e1573
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
116 additions
and
70 deletions
+116
-70
module/Application/src/Controller/ApiController.php
module/Application/src/Controller/ApiController.php
+1
-1
public/action-js/antrian-js/action-datapasien.js
public/action-js/antrian-js/action-datapasien.js
+18
-18
public/action-js/antrian-js/action-kelolaantrian.js
public/action-js/antrian-js/action-kelolaantrian.js
+48
-21
public/action-js/antrian-js/action-kelolaantrianunreg.js
public/action-js/antrian-js/action-kelolaantrianunreg.js
+48
-22
public/action-js/antrian-js/action-kelolapoli.js
public/action-js/antrian-js/action-kelolapoli.js
+0
-7
public/action-js/antrian-js/action-registrasidokter.js
public/action-js/antrian-js/action-registrasidokter.js
+1
-1
No files found.
module/Application/src/Controller/ApiController.php
View file @
45eb06fd
...
...
@@ -236,7 +236,7 @@ class ApiController extends \Application\Master\GlobalActionController {
$id_antrian
=
$register
->
data
[
0
][
'id_antrian'
];
$whereidantrian
=
'id_antrian='
.
$id_antrian
;
// print_r($
id_antrian
);die;
// print_r($
register
);die;
$param
->
updateGlobal
(
$table_antrianpasien
,
$dataArrayAntrianPasien
,
$whereidantrian
);
...
...
public/action-js/antrian-js/action-datapasien.js
View file @
45eb06fd
...
...
@@ -220,16 +220,28 @@ function validasipasien(id_poli, dokter, id_pasien) {
id_pasien
:
id_pasien
},
success
:
function
(
result
)
{
console
.
log
(
dokter
)
//
console.log(dokter)
var
data
=
result
.
data
;
for
(
x
in
data
)
{
if
(
id_pasien
==
data
[
x
][
'
id_pasien
'
])
{
if
(
id_poli
==
data
[
x
][
'
id_poli
'
])
{
if
(
dokter
==
data
[
x
][
'
id_dokter
'
])
{
let
$idantrian
=
result
.
data
[
0
][
'
id_antrian
'
];
let
$encodedIdantrian
=
btoa
(
$idantrian
)
let
nama
=
result
.
data
[
0
][
'
nama
'
];
swal
({
title
:
"
Pasien dengan nama'
"
+
nama
+
"
' telah melakukan pendaftaran di poli dan dokter ini!
\n
Apakah anda ingin mencetak no antrian lagi ?
"
,
type
:
"
warning
"
,
confirmButtonClass
:
"
success
"
,
confirmButtonText
:
"
Yes!
"
,
showCancelButton
:
true
,
},
function
()
{
window
.
location
=
(
baseURL
+
"
/queue/cetakantrian/
"
+
$encodedIdantrian
);
});
exist
=
1
;
}
}
...
...
@@ -277,23 +289,11 @@ function pilihAntrian(id_poli) {
success
:
function
(
response
)
{
var
$antrian
=
(
response
.
data
);
// console.log(validasipasien(id_poli, dokter, id_pasien) == 1);
if
(
validasipasien
(
id_poli
,
dokter
,
id_pasien
)
==
1
)
{
let
$idantrian
=
response
.
data
[
0
][
'
id_antrian
'
];
let
$encodedIdantrian
=
btoa
(
$idantrian
)
if
(
validasipasien
(
id_poli
,
dokter
,
id_pasien
)
==
1
)
{
// console.log(validasipasien(id_poli, dokter, id_pasien))
let
nama
=
response
.
data
[
0
][
'
nama
'
];
swal
({
title
:
"
Pasien dengan nama'
"
+
nama
+
"
' telah melakukan pendaftaran di poli dan dokter ini!
\n
Apakah anda ingin mencetak no antrian lagi ?
"
,
type
:
"
error
"
,
confirmButtonClass
:
"
success
"
,
confirmButtonText
:
"
Yes!
"
,
showCancelButton
:
true
,
},
function
()
{
window
.
location
=
(
baseURL
+
"
/queue/cetakantrian/
"
+
$encodedIdantrian
);
});
}
else
{
if
(
$antrian
)
{
var
hour
=
0
;
...
...
public/action-js/antrian-js/action-kelolaantrian.js
View file @
45eb06fd
...
...
@@ -72,6 +72,27 @@ function Loadpasien() {
}
function
actionqueue
(
idpasien
,
iddokter
)
{
$
.
ajax
({
type
:
'
POST
'
,
dataType
:
'
json
'
,
url
:
baseURL
+
'
/api/loadantrianmiss
'
,
data
:
{
iidpasien
:
idpasien
,
},
success
:
function
(
result
)
{
// console.log(result);
let
nama
=
result
.
data
[
0
].
nama
;
let
no
=
result
.
data
[
0
].
no_antrian
;
let
poli
=
result
.
data
[
0
].
nama_poli
;
let
dokter
=
result
.
data
[
0
].
nama_dokter
;
swal
({
title
:
"
Apakah yakin mengupdate data antrian dengan Nama '
"
+
nama
+
"
' di Poli '
"
+
poli
+
"
' dan Nama Dokter '
"
+
dokter
+
"
' ?
"
,
type
:
"
warning
"
,
confirmButtonClass
:
"
btn-danger
"
,
confirmButtonText
:
"
Yes!
"
,
showCancelButton
:
true
,
},
function
()
{
$
.
ajax
({
type
:
'
POST
'
,
dataType
:
'
json
'
,
...
...
@@ -101,6 +122,12 @@ function actionqueue(idpasien, iddokter) {
});
}
}
});
}
);
}
});
}
public/action-js/antrian-js/action-kelolaantrianunreg.js
View file @
45eb06fd
...
...
@@ -76,6 +76,27 @@ function Loadunregister() {
}
function
unregister
(
id_pasien
)
{
$
.
ajax
({
type
:
'
POST
'
,
dataType
:
'
json
'
,
url
:
baseURL
+
'
/api/loadantrianunregis
'
,
data
:
{
id_pasien
:
id_pasien
,
},
success
:
function
(
result
)
{
// console.log(result);
let
nama
=
result
.
data
[
0
].
nama
;
let
no
=
result
.
data
[
0
].
no_antrian
;
let
poli
=
result
.
data
[
0
].
nama_poli
;
let
dokter
=
result
.
data
[
0
].
nama_dokter
;
swal
({
title
:
"
Apakah yakin mereset data antrian dengan Nama '
"
+
nama
+
"
' di Poli '
"
+
poli
+
"
' dan Nama Dokter '
"
+
dokter
+
"
' dengan No Antrian '
"
+
no
+
"
' ?
"
,
type
:
"
warning
"
,
confirmButtonClass
:
"
btn-danger
"
,
confirmButtonText
:
"
Yes!
"
,
showCancelButton
:
true
,
},
function
()
{
$
.
ajax
({
type
:
'
POST
'
,
dataType
:
'
json
'
,
...
...
@@ -105,6 +126,11 @@ function unregister(id_pasien) {
});
}
}
});
}
);
}
});
}
public/action-js/antrian-js/action-kelolapoli.js
View file @
45eb06fd
...
...
@@ -470,15 +470,8 @@ function Delete(param) {
button
:
"
ok
"
,
});
}
},
error
:
function
(
xhr
)
{
alert
(
xhr
.
status
+
'
-
'
+
xhr
.
statusText
);
}
});
},
function
()
{
// This function will run if the user clicked "cancel"
window
.
location
.
href
=
"
<?php echo Yii::$app->request->baseUrl;?>/todo/index/
"
;
}
);
...
...
public/action-js/antrian-js/action-registrasidokter.js
View file @
45eb06fd
...
...
@@ -342,7 +342,7 @@ function SaveDataRegister(param) {
if
(
result
.
code
==
0
)
{
$
(
'
#addData
'
).
modal
(
'
hide
'
);
swal
({
title
:
"
<span style='color:#222'>
Good Job
!</span>
"
,
title
:
"
<span style='color:#222'>
Berhasil
!</span>
"
,
confirmButtonColor
:
"
#66BB6A
"
,
html
:
true
,
type
:
"
success
"
...
...
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