Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
frontend
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
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
Antrian
frontend
Commits
a10aeeb6
Commit
a10aeeb6
authored
Nov 12, 2020
by
Indra Raja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
3f6ed735
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
27 deletions
+30
-27
module/Application/src/Controller/QueueController.php
module/Application/src/Controller/QueueController.php
+0
-1
module/Application/view/application/Umum/tampilanantrian.phtml
...e/Application/view/application/Umum/tampilanantrian.phtml
+0
-1
public/action-js/antrian-js/action-admin.js
public/action-js/antrian-js/action-admin.js
+17
-14
public/action-js/antrian-js/action-antrian.js
public/action-js/antrian-js/action-antrian.js
+13
-5
public/action-js/antrian-js/action-umum.js
public/action-js/antrian-js/action-umum.js
+0
-4
public/action-js/tampilanantiran-js/action-pilihantrian.js
public/action-js/tampilanantiran-js/action-pilihantrian.js
+0
-2
No files found.
module/Application/src/Controller/QueueController.php
View file @
a10aeeb6
...
@@ -130,7 +130,6 @@ class QueueController extends \Application\Master\GlobalActionController
...
@@ -130,7 +130,6 @@ class QueueController extends \Application\Master\GlobalActionController
$view
->
setVariable
(
'kode_dokter'
,
$result
[
'kode_dokter'
]);
$view
->
setVariable
(
'kode_dokter'
,
$result
[
'kode_dokter'
]);
// print_r($result);die;
// print_r($result);die;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nama_pasien_cetak = "'
.
$result
[
'nama'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nama_pasien_cetak = "'
.
$result
[
'nama'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nama_dokter_cetak = "'
.
$result
[
'nama_dokter'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nama_dokter_cetak = "'
.
$result
[
'nama_dokter'
]
.
'"'
);
...
...
module/Application/view/application/Umum/tampilanantrian.phtml
View file @
a10aeeb6
Azy
galing
\ No newline at end of file
public/action-js/antrian-js/action-admin.js
View file @
a10aeeb6
...
@@ -23,7 +23,7 @@ function textToAudio() {
...
@@ -23,7 +23,7 @@ function textToAudio() {
speech
.
lang
=
"
id
"
;
speech
.
lang
=
"
id
"
;
speech
.
text
=
voice
;
speech
.
text
=
voice
;
speech
.
volume
=
1
;
//como estas jol
speech
.
volume
=
1
;
speech
.
rate
=
0.70
;
speech
.
rate
=
0.70
;
speech
.
pitch
=
1
;
speech
.
pitch
=
1
;
...
@@ -33,16 +33,17 @@ function textToAudio() {
...
@@ -33,16 +33,17 @@ function textToAudio() {
function
textToAudioRuang
()
{
function
textToAudioRuang
()
{
// let msg1 = "nomor antrian";
// let msg1 = "nomor antrian";
let
ruang
=
document
.
getElementById
(
"
nama_ruang
"
).
innerHTML
;
let
ruang
=
document
.
getElementById
(
"
nama_ruang
"
).
innerHTML
;
var
res
=
ruang
.
replace
(
"
.
"
,
"
"
);
document
.
getElementById
(
"
nama_ruang
"
).
innerHTML
=
res
;
let
voice
=
"
silahkan masuk ke
"
+
ruang
;
let
voice
=
"
silahkan masuk ke
"
+
res
;
console
.
log
(
voice
)
let
speech
=
new
SpeechSynthesisUtterance
();
let
speech
=
new
SpeechSynthesisUtterance
();
speech
.
lang
=
"
id
"
;
speech
.
lang
=
"
id
"
;
console
.
log
(
voice
);
speech
.
text
=
voice
;
speech
.
text
=
voice
;
speech
.
volume
=
1
;
//como estas jol
speech
.
volume
=
1
;
speech
.
rate
=
0.70
;
speech
.
rate
=
0.70
;
speech
.
pitch
=
1
;
speech
.
pitch
=
1
;
...
@@ -344,18 +345,12 @@ function actionqueue(antrianno, status) {
...
@@ -344,18 +345,12 @@ function actionqueue(antrianno, status) {
}
else
if
(
status
==
30
)
{
}
else
if
(
status
==
30
)
{
// SOound call
// SOound call
swal
({
title
:
"
Call!
"
,
text
:
"
Sedang Melakukan Panggilan
"
,
type
:
"
success
"
,
showConfirmButton
:
false
,
timer
:
8000
});
var
flush
=
new
Audio
(
'
../../data/tone/a1.mp3
'
);
var
flush
=
new
Audio
(
'
../../data/tone/a1.mp3
'
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
flush
.
play
();
},
1000
)
flush
.
play
();
},
)
flush
.
onended
=
function
()
{
flush
.
onended
=
function
()
{
textToAudio
()
textToAudio
()
...
@@ -364,6 +359,14 @@ function actionqueue(antrianno, status) {
...
@@ -364,6 +359,14 @@ function actionqueue(antrianno, status) {
textToAudioRuang
()
},
3000
)
textToAudioRuang
()
},
3000
)
};
};
swal
({
title
:
"
Call!
"
,
text
:
"
Sedang Melakukan Panggilan
"
,
type
:
"
success
"
,
showConfirmButton
:
false
,
timer
:
14000
});
$
(
'
#btnNext
'
).
prop
(
'
disabled
'
,
true
);
$
(
'
#btnNext
'
).
prop
(
'
disabled
'
,
true
);
...
...
public/action-js/antrian-js/action-antrian.js
View file @
a10aeeb6
...
@@ -35,8 +35,13 @@ $('#cetak').on('click', function (e) {
...
@@ -35,8 +35,13 @@ $('#cetak').on('click', function (e) {
'
</th></tr></tbody></table></body></html>
'
);
'
</th></tr></tbody></table></body></html>
'
);
w
.
window
.
print
();
w
.
window
.
print
();
w
.
document
.
close
();
w
.
document
.
close
();
return
false
;
w
.
window
.
onafterprint
=
function
(){
setTimeout
(
function
()
{
w
.
close
()
window
.
location
.
href
=
baseURL
+
"
/queue/beranda
"
},
3000
);
}
})
})
...
@@ -85,10 +90,11 @@ function SaveDataAja(param) {
...
@@ -85,10 +90,11 @@ function SaveDataAja(param) {
if
(
response
[
'
code
'
]
==
0
)
{
if
(
response
[
'
code
'
]
==
0
)
{
let
$id
=
response
.
data
.
id_pasien
;
let
$id
=
response
.
data
.
id_pasien
;
console
.
log
(
response
.
data
);
// alert($id);
// alert($id);
let
$encodedId
=
btoa
(
$id
);
let
$encodedId
=
btoa
(
$id
);
// console.log($encodedId);
// console.log($encodedId);
window
.
location
.
href
=
(
"
cetakantrian/
"
+
$encodedId
);
//
window.location.href = ("cetakantrian/" + $encodedId);
}
else
{
}
else
{
bootbox
.
alert
({
message
:
'
gagal
'
,
centerVertical
:
true
});
bootbox
.
alert
({
message
:
'
gagal
'
,
centerVertical
:
true
});
...
@@ -262,6 +268,8 @@ function pilihAntrian() {
...
@@ -262,6 +268,8 @@ function pilihAntrian() {
success
:
function
(
response
)
{
success
:
function
(
response
)
{
console
.
log
(
response
.
data
);
console
.
log
(
response
.
data
);
var
$antrian
=
(
response
.
data
);
var
$antrian
=
(
response
.
data
);
$
(
'
.antrian
'
).
empty
();
// console.log($antrian);
// console.log($antrian);
// console.log(response);
// console.log(response);
if
(
$antrian
)
{
if
(
$antrian
)
{
...
...
public/action-js/antrian-js/action-umum.js
View file @
a10aeeb6
...
@@ -21,10 +21,6 @@ function loadantrianumum() {
...
@@ -21,10 +21,6 @@ function loadantrianumum() {
}
}
// result.data[0]['no_antrian']+result.data[0]['kode_dokter'];
$
(
"
#box
"
).
append
(
hasil
);
$
(
"
#box
"
).
append
(
hasil
);
}
else
{
}
else
{
...
...
public/action-js/tampilanantiran-js/action-pilihantrian.js
View file @
a10aeeb6
...
@@ -5,8 +5,6 @@ $('#pilih').on('click', function () {
...
@@ -5,8 +5,6 @@ $('#pilih').on('click', function () {
window
.
location
.
href
=
(
"
tampilanantrian
"
);
window
.
location
.
href
=
(
"
tampilanantrian
"
);
});
});
function
loadpoli
()
{
function
loadpoli
()
{
$
.
ajax
({
$
.
ajax
({
type
:
'
POST
'
,
type
:
'
POST
'
,
...
...
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