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
b59ed23d
Commit
b59ed23d
authored
4 years ago
by
Indra Raja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update panggilan antrian dan cetak antrian
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 @
b59ed23d
...
...
@@ -130,7 +130,6 @@ class QueueController extends \Application\Master\GlobalActionController
$view
->
setVariable
(
'kode_dokter'
,
$result
[
'kode_dokter'
]);
// print_r($result);die;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nama_pasien_cetak = "'
.
$result
[
'nama'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nama_dokter_cetak = "'
.
$result
[
'nama_dokter'
]
.
'"'
);
...
...
This diff is collapsed.
Click to expand it.
module/Application/view/application/Umum/tampilanantrian.phtml
View file @
b59ed23d
Azy
galing
\ No newline at end of file
This diff is collapsed.
Click to expand it.
public/action-js/antrian-js/action-admin.js
View file @
b59ed23d
...
...
@@ -23,7 +23,7 @@ function textToAudio() {
speech
.
lang
=
"
id
"
;
speech
.
text
=
voice
;
speech
.
volume
=
1
;
//como estas jol
speech
.
volume
=
1
;
speech
.
rate
=
0.70
;
speech
.
pitch
=
1
;
...
...
@@ -33,16 +33,17 @@ function textToAudio() {
function
textToAudioRuang
()
{
// let msg1 = "nomor antrian";
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
();
speech
.
lang
=
"
id
"
;
console
.
log
(
voice
);
speech
.
text
=
voice
;
speech
.
volume
=
1
;
//como estas jol
speech
.
volume
=
1
;
speech
.
rate
=
0.70
;
speech
.
pitch
=
1
;
...
...
@@ -344,18 +345,12 @@ function actionqueue(antrianno, status) {
}
else
if
(
status
==
30
)
{
// SOound call
swal
({
title
:
"
Call!
"
,
text
:
"
Sedang Melakukan Panggilan
"
,
type
:
"
success
"
,
showConfirmButton
:
false
,
timer
:
8000
});
var
flush
=
new
Audio
(
'
../../data/tone/a1.mp3
'
);
setTimeout
(
function
()
{
flush
.
play
();
},
1000
)
flush
.
play
();
},
)
flush
.
onended
=
function
()
{
textToAudio
()
...
...
@@ -364,6 +359,14 @@ function actionqueue(antrianno, status) {
textToAudioRuang
()
},
3000
)
};
swal
({
title
:
"
Call!
"
,
text
:
"
Sedang Melakukan Panggilan
"
,
type
:
"
success
"
,
showConfirmButton
:
false
,
timer
:
14000
});
$
(
'
#btnNext
'
).
prop
(
'
disabled
'
,
true
);
...
...
This diff is collapsed.
Click to expand it.
public/action-js/antrian-js/action-antrian.js
View file @
b59ed23d
...
...
@@ -35,8 +35,13 @@ $('#cetak').on('click', function (e) {
'
</th></tr></tbody></table></body></html>
'
);
w
.
window
.
print
();
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) {
if
(
response
[
'
code
'
]
==
0
)
{
let
$id
=
response
.
data
.
id_pasien
;
console
.
log
(
response
.
data
);
// alert($id);
let
$encodedId
=
btoa
(
$id
);
// console.log($encodedId);
window
.
location
.
href
=
(
"
cetakantrian/
"
+
$encodedId
);
//
window.location.href = ("cetakantrian/" + $encodedId);
}
else
{
bootbox
.
alert
({
message
:
'
gagal
'
,
centerVertical
:
true
});
...
...
@@ -262,6 +268,8 @@ function pilihAntrian() {
success
:
function
(
response
)
{
console
.
log
(
response
.
data
);
var
$antrian
=
(
response
.
data
);
$
(
'
.antrian
'
).
empty
();
// console.log($antrian);
// console.log(response);
if
(
$antrian
)
{
...
...
This diff is collapsed.
Click to expand it.
public/action-js/antrian-js/action-umum.js
View file @
b59ed23d
...
...
@@ -21,10 +21,6 @@ function loadantrianumum() {
}
// result.data[0]['no_antrian']+result.data[0]['kode_dokter'];
$
(
"
#box
"
).
append
(
hasil
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
public/action-js/tampilanantiran-js/action-pilihantrian.js
View file @
b59ed23d
...
...
@@ -5,8 +5,6 @@ $('#pilih').on('click', function () {
window
.
location
.
href
=
(
"
tampilanantrian
"
);
});
function
loadpoli
()
{
$
.
ajax
({
type
:
'
POST
'
,
...
...
This diff is collapsed.
Click to expand it.
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