Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Antrian
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
Indra Raja
Antrian
Commits
28acbd17
Commit
28acbd17
authored
Feb 19, 2021
by
Azy Mushofy Anwary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pasien
parent
535f27c2
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
94 additions
and
58 deletions
+94
-58
module/Application/src/Controller/ApiController.php
module/Application/src/Controller/ApiController.php
+10
-8
module/Application/src/Controller/QueueController.php
module/Application/src/Controller/QueueController.php
+7
-7
module/Application/src/Model/Param/Storage/Mysql.php
module/Application/src/Model/Param/Storage/Mysql.php
+26
-19
module/Application/view/application/queue/cetakantrian.phtml
module/Application/view/application/queue/cetakantrian.phtml
+11
-2
module/Application/view/application/queue/datapasien.phtml
module/Application/view/application/queue/datapasien.phtml
+2
-2
public/action-js/antrian-js/action-cetak.js
public/action-js/antrian-js/action-cetak.js
+13
-5
public/action-js/antrian-js/action-datapasien.js
public/action-js/antrian-js/action-datapasien.js
+15
-5
public/action-js/antrian-js/action-kelolapoli.js
public/action-js/antrian-js/action-kelolapoli.js
+10
-10
No files found.
module/Application/src/Controller/ApiController.php
View file @
28acbd17
...
@@ -395,12 +395,13 @@ class ApiController extends \Application\Master\GlobalActionController {
...
@@ -395,12 +395,13 @@ class ApiController extends \Application\Master\GlobalActionController {
'status_code'
=>
10
,
'status_code'
=>
10
,
'sisa_antrian'
=>
$sisa_antrian
,
'sisa_antrian'
=>
$sisa_antrian
,
);
);
// print_r($dataArrayAntrianPasien);die;
$table_antrianpasien
=
'antrian_pasien'
;
$table_antrianpasien
=
'a
_a
ntrian_pasien'
;
$where
=
'id_dokter='
.
$dokter
.
' and no_antrian='
.
$no_antrian
;
$where
=
'id_dokter='
.
$dokter
.
' and no_antrian='
.
$no_antrian
;
$register
=
$param
->
loadregisterantrian
(
$where
);
$register
=
$param
->
loadregisterantrian
(
$where
);
$id_antrian
=
$register
->
data
[
0
][
'id_antrian'
];
$id_antrian
=
$register
->
data
[
0
][
'id_antrian'
];
$whereidantrian
=
'id_antrian='
.
$id_antrian
;
$whereidantrian
=
'id_antrian='
.
$id_antrian
;
// print_r($register);die;
// print_r($register);die;
...
@@ -789,16 +790,17 @@ class ApiController extends \Application\Master\GlobalActionController {
...
@@ -789,16 +790,17 @@ class ApiController extends \Application\Master\GlobalActionController {
$nama_poli
=
$post
->
inama_poli
;
$nama_poli
=
$post
->
inama_poli
;
$id_poli
=
$post
->
id_poli
;
$id_poli
=
$post
->
id_poli
;
// print_r($id_poli);die;
$kode_poli
=
$post
->
ikode_poli
;
$kode_poli
=
$post
->
ikode_poli
;
$deskripsi_poli
=
$post
->
ideskripsi_poli
;
$deskripsi_poli
=
$post
->
ideskripsi_poli
;
$password
=
$post
->
ipassword
;
$password
=
$post
->
ipassword
;
$seqAfter1
=
$param
->
getLastSeqPostgree
(
$table_poli
,
'id'
);
$seqAfter1
=
$param
->
getLastSeqPostgree
(
$table_poli
,
'id'
);
// print_r($seqAfter1);die;
$dataArray
=
array
(
$dataArray
=
array
(
'username'
=>
$nama_poli
,
'username'
=>
$nama_poli
,
'password'
=>
md5
(
$password
),
//
'password' => md5($password),
'create_dtm'
=>
gmdate
(
"Y-m-d H:i:s"
,
time
()
+
60
*
60
*
7
),
'create_dtm'
=>
gmdate
(
"Y-m-d H:i:s"
,
time
()
+
60
*
60
*
7
),
'role'
=>
10
,
'role'
=>
10
,
'status'
=>
10
,
'status'
=>
10
,
...
@@ -806,10 +808,10 @@ class ApiController extends \Application\Master\GlobalActionController {
...
@@ -806,10 +808,10 @@ class ApiController extends \Application\Master\GlobalActionController {
'id'
=>
$seqAfter1
->
data
[
'total'
],
'id'
=>
$seqAfter1
->
data
[
'total'
],
);
);
print_r
(
$dataArray
);
die
;
//
print_r( $dataArray);die;
$param
->
saveGlobal
(
$dataArray
,
$tabel
);
$param
->
saveGlobal
(
$dataArray
,
$tabel
);
print_r
(
$dataArr
);
die
;
$result
->
code
=
0
;
$result
->
code
=
0
;
$result
->
info
=
'ok'
;
$result
->
info
=
'ok'
;
$result
->
data
=
$dataArrayPoli
->
data
;
$result
->
data
=
$dataArrayPoli
->
data
;
...
@@ -2742,7 +2744,7 @@ class ApiController extends \Application\Master\GlobalActionController {
...
@@ -2742,7 +2744,7 @@ class ApiController extends \Application\Master\GlobalActionController {
$load
=
$text
->
loadpenjamin
(
$post
->
icara_bayar
);
$load
=
$text
->
loadpenjamin
(
$post
->
icara_bayar
);
// print_r($load);die;
if
(
$load
->
code
==
0
){
if
(
$load
->
code
==
0
){
$result
->
code
=
$result
::
CODE_SUCCESS
;
$result
->
code
=
$result
::
CODE_SUCCESS
;
...
...
module/Application/src/Controller/QueueController.php
View file @
28acbd17
...
@@ -198,22 +198,22 @@ class QueueController extends \Application\Master\GlobalActionController
...
@@ -198,22 +198,22 @@ class QueueController extends \Application\Master\GlobalActionController
}
}
//print_r($codeCounter);die;
//print_r($codeCounter);die;
$view
->
setVariable
(
'no_rekam_medis'
,
$result
[
'no_rekam_medis'
]);
$view
->
setVariable
(
'no_rekam_medis'
,
$result
[
'no_rekam_medis'
]);
$view
->
setVariable
(
'nama'
,
$result
[
'nama'
]);
$view
->
setVariable
(
'nama'
,
$result
[
'nama
_pasien
'
]);
$view
->
setVariable
(
'nama_dokter'
,
$result
[
'nama_dokter'
]);
$view
->
setVariable
(
'nama_dokter'
,
$result
[
'nama_dokter'
]);
$view
->
setVariable
(
'
kode_poli'
,
$result
[
'nama_poli
'
]);
$view
->
setVariable
(
'
nama_poli'
,
$result
[
'nama_ruangan
'
]);
$view
->
setVariable
(
'no_antrian'
,
$result
[
'no_antrian'
]);
$view
->
setVariable
(
'no_antrian'
,
$result
[
'no_antrian'
]);
$view
->
setVariable
(
'no_antrian'
,
$result
[
'no_antrian'
]);
$view
->
setVariable
(
'no_antrian'
,
$result
[
'no_antrian'
]);
$view
->
setVariable
(
'kode_
dokter'
,
$result
[
'kode_dokter
'
]);
$view
->
setVariable
(
'kode_
poli'
,
$result
[
'singkatan
'
]);
$view
->
setVariable
(
'sisa_antrian'
,
$result
[
'sisa_antrian'
]);
$view
->
setVariable
(
'sisa_antrian'
,
$result
[
'sisa_antrian'
]);
//
print_r($result);die;
//
print_r($result);die;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var no_rekam_medis_cetak = "'
.
$result
[
'no_rekam_medis'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var no_rekam_medis_cetak = "'
.
$result
[
'no_rekam_medis'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nama_pasien_cetak = "'
.
$result
[
'nama'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nama_pasien_cetak = "'
.
$result
[
'nama
_pasien
'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nama_dokter_cetak = "'
.
$result
[
'nama_dokter'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nama_dokter_cetak = "'
.
$result
[
'nama_dokter'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var
kode_poli_cetak = "'
.
$result
[
'nama_poli
'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var
nama_poli_cetak = "'
.
$result
[
'nama_ruangan
'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var no_antrian_cetak = "'
.
$result
[
'no_antrian'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var no_antrian_cetak = "'
.
$result
[
'no_antrian'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var kode_
dokter_cetak = "'
.
$result
[
'kode_dokter
'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var kode_
poli_cetak = "'
.
$result
[
'singkatan
'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var sisa_antrian = "'
.
$result
[
'sisa_antrian'
]
.
'"'
);
$this
->
headScript
->
appendScript
(
' var sisa_antrian = "'
.
$result
[
'sisa_antrian'
]
.
'"'
);
$this
->
headScript
->
appendFile
(
'/action-js/antrian-js/action-cetak.js'
);
$this
->
headScript
->
appendFile
(
'/action-js/antrian-js/action-cetak.js'
);
...
...
module/Application/src/Model/Param/Storage/Mysql.php
View file @
28acbd17
...
@@ -321,13 +321,13 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
...
@@ -321,13 +321,13 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
public
function
loadUserData
(
$id
){
public
function
loadUserData
(
$id
){
$result
=
new
Result
();
$result
=
new
Result
();
try
{
try
{
$sql
=
" SELECT a
ntrian_pasien.id_pasien, antrian_pasien.nama, antrian_pasien.no_antrian,antrian_pasien.no_rekam_medis, dokter_to_poli.nama_dokter, poli.nama_poli , dokter_to_poli.kode_dokter, dokter_to_poli.id_dokter,antrian_pasien.sisa_antrian, antrian_pasien.create_date
$sql
=
" SELECT a
_antrian_pasien.id_pasien, a_antrian_pasien.nama as nama_pasien, a_antrian_pasien.no_antrian,a_antrian_pasien.no_rekam_medis, m_pegawai.nama as nama_dokter, m_unit.nama_ruangan , m_unit.singkatan, m_pegawai.id as id_dokter, m_unit.id as id_poli ,a_antrian_pasien.create_date, a_antrian_pasien.id_antrian,a_antrian_pasien.sisa_antrian
FROM antrian_pasien
FROM a
_a
ntrian_pasien
INNER JOIN
dokter_to_pol
i
INNER JOIN
m_pegawa
i
ON a
ntrian_pasien.id_dokter = dokter_to_poli.id_dokter
ON a
_antrian_pasien.id_dokter = m_pegawai.id
INNER JOIN
poli
INNER JOIN
m_unit
ON a
ntrian_pasien.id_poli = poli.id_poli
ON a
_antrian_pasien.id_poli = m_unit.id
WHERE antrian_pasien.id_antrian =
$id
WHERE a
_a
ntrian_pasien.id_antrian =
$id
"
;
"
;
$stmt
=
$this
->
_db
->
query
(
$sql
);
$stmt
=
$this
->
_db
->
query
(
$sql
);
...
@@ -446,7 +446,7 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
...
@@ -446,7 +446,7 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
try
{
try
{
$sql
=
" SELECT COUNT(id_pasien)
$sql
=
" SELECT COUNT(id_pasien)
FROM antrian_pasien
FROM a
_a
ntrian_pasien
WHERE id_pasien is not null AND create_date > CURRENT_TIMESTAMP - INTERVAL '24 HOUR' AND
WHERE id_pasien is not null AND create_date > CURRENT_TIMESTAMP - INTERVAL '24 HOUR' AND
id_dokter =
$id
AND (status_code <> 50 and status_code <> 60) and no_antrian <
$no
"
;
id_dokter =
$id
AND (status_code <> 50 and status_code <> 60) and no_antrian <
$no
"
;
...
@@ -712,7 +712,7 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
...
@@ -712,7 +712,7 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
$result
=
new
Result
();
$result
=
new
Result
();
try
{
try
{
$sql
=
"SELECT id_antrian, id_dokter, no_antrian, create_date FROM antrian_pasien WHERE create_date > CURRENT_TIMESTAMP - INTERVAL '24 HOUR' AND
$where
"
;
$sql
=
"SELECT id_antrian, id_dokter, no_antrian, create_date FROM a
_a
ntrian_pasien WHERE create_date > CURRENT_TIMESTAMP - INTERVAL '24 HOUR' AND
$where
"
;
// print_r($sql);die;
// print_r($sql);die;
$stmt
=
$this
->
_db
->
query
(
$sql
);
$stmt
=
$this
->
_db
->
query
(
$sql
);
...
@@ -1678,8 +1678,8 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
...
@@ -1678,8 +1678,8 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
try
{
try
{
$sql
=
"SELECT DISTINCT on (idd.no_antrian) idd.no_antrian,idd.no_antrian, idd.id_pasien , idd.create_date,rd.waktu_antrian, rd.jam_mulai, idd.status_code,rd.id_register,idd.id_poli,idd.id_dokter,idd.id_antrian,idd.nama
$sql
=
"SELECT DISTINCT on (idd.no_antrian) idd.no_antrian,idd.no_antrian, idd.id_pasien , idd.create_date,rd.waktu_antrian, rd.jam_mulai, idd.status_code,rd.id_register,idd.id_poli,idd.id_dokter,idd.id_antrian,idd.nama
FROM antrian_pasien idd
FROM a
_a
ntrian_pasien idd
LEFT JOIN register_dokter rd
LEFT JOIN
a_
register_dokter rd
on idd.id_register = rd.id_register
on idd.id_register = rd.id_register
WHERE idd.create_date > CURRENT_TIMESTAMP - INTERVAL '24 HOUR' and idd.id_dokter =
$iddok
AND idd.id_poli=
$id_poli
ORDER BY no_antrian ASC"
;
WHERE idd.create_date > CURRENT_TIMESTAMP - INTERVAL '24 HOUR' and idd.id_dokter =
$iddok
AND idd.id_poli=
$id_poli
ORDER BY no_antrian ASC"
;
...
@@ -1722,8 +1722,8 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
...
@@ -1722,8 +1722,8 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
try
{
try
{
$sql
=
"SELECT DISTINCT on (idd.no_antrian) idd.no_antrian,idd.no_antrian, idd.id_pasien , idd.create_date,rd.waktu_antrian, rd.jam_mulai, idd.status_code,rd.id_register,idd.id_poli,idd.id_dokter,idd.id_antrian,idd.nama
$sql
=
"SELECT DISTINCT on (idd.no_antrian) idd.no_antrian,idd.no_antrian, idd.id_pasien , idd.create_date,rd.waktu_antrian, rd.jam_mulai, idd.status_code,rd.id_register,idd.id_poli,idd.id_dokter,idd.id_antrian,idd.nama
FROM antrian_pasien idd
FROM a
_a
ntrian_pasien idd
LEFT JOIN register_dokter rd
LEFT JOIN
a_
register_dokter rd
on idd.id_register = rd.id_register
on idd.id_register = rd.id_register
WHERE idd.create_date > CURRENT_TIMESTAMP - INTERVAL '24 HOUR' AND idd.id_pasien =
$id_pasien
"
;
WHERE idd.create_date > CURRENT_TIMESTAMP - INTERVAL '24 HOUR' AND idd.id_pasien =
$id_pasien
"
;
...
@@ -2001,7 +2001,9 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
...
@@ -2001,7 +2001,9 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
$result
=
new
Result
();
$result
=
new
Result
();
try
{
try
{
$sql
=
" SELECT * FROM m_pendidikan ORDER BY nama_pendidikan asc "
;
$sql
=
" SELECT * FROM m_pendidikan
where status = 1 and is_deleted = 0
ORDER BY nama_pendidikan asc "
;
// print_r($sql);die;
// print_r($sql);die;
$stmt
=
$this
->
_db
->
query
(
$sql
);
$stmt
=
$this
->
_db
->
query
(
$sql
);
...
@@ -2217,7 +2219,9 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
...
@@ -2217,7 +2219,9 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
$result
=
new
Result
();
$result
=
new
Result
();
try
{
try
{
$sql
=
"SELECT * FROM m_jenis_kedatangan ORDER BY nama_jenis_kedatangan asc"
;
$sql
=
"SELECT * FROM m_jenis_kedatangan
where status = 1 and is_deleted = 0
ORDER BY nama_jenis_kedatangan asc"
;
// print_r($sql);die;
// print_r($sql);die;
$stmt
=
$this
->
_db
->
query
(
$sql
);
$stmt
=
$this
->
_db
->
query
(
$sql
);
...
@@ -2253,7 +2257,9 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
...
@@ -2253,7 +2257,9 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
$result
=
new
Result
();
$result
=
new
Result
();
try
{
try
{
$sql
=
" SELECT * FROM m_penjamin where parent is null order by nama_penjamin asc"
;
$sql
=
" SELECT * FROM m_penjamin where parent is null
and status = 1 and is_deleted = 0
order by nama_penjamin asc"
;
// print_r($sql);die;
// print_r($sql);die;
$stmt
=
$this
->
_db
->
query
(
$sql
);
$stmt
=
$this
->
_db
->
query
(
$sql
);
...
@@ -2289,7 +2295,8 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
...
@@ -2289,7 +2295,8 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
$result
=
new
Result
();
$result
=
new
Result
();
try
{
try
{
$sql
=
"SELECT * FROM m_penjamin where parent =
$cara_bayar
and status= 1 order by nama_penjamin asc"
;
$sql
=
"SELECT * FROM m_penjamin where parent =
$cara_bayar
and status = 1 and is_deleted = 0
order by nama_penjamin asc"
;
// print_r($sql);die;
// print_r($sql);die;
$stmt
=
$this
->
_db
->
query
(
$sql
);
$stmt
=
$this
->
_db
->
query
(
$sql
);
...
@@ -2361,7 +2368,7 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
...
@@ -2361,7 +2368,7 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
$result
=
new
Result
();
$result
=
new
Result
();
try
{
try
{
$sql
=
"SELECT * FROM m_unit where instalasi_id=1"
;
$sql
=
"SELECT * FROM m_unit where instalasi_id=1
and status = 1 and is_deleted = 0
"
;
// print_r($sql);die;
// print_r($sql);die;
$stmt
=
$this
->
_db
->
query
(
$sql
);
$stmt
=
$this
->
_db
->
query
(
$sql
);
...
@@ -2434,7 +2441,7 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
...
@@ -2434,7 +2441,7 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
try
{
try
{
$sql
=
" SELECT m_pegawai.id,m_pegawai.nama,m_pegawai.unit_medis_id,m_pegawai.unit_id,m_unit.nama_ruangan FROM m_pegawai INNER JOIN m_unit ON m_pegawai.unit_id = m_unit.id
$sql
=
" SELECT m_pegawai.id,m_pegawai.nama,m_pegawai.unit_medis_id,m_pegawai.unit_id,m_unit.nama_ruangan FROM m_pegawai INNER JOIN m_unit ON m_pegawai.unit_id = m_unit.id
WHERE m_pegawai.instalasi_id =1 and m_unit.id =
$poli
AND m_pegawai.unit_medis_id=1"
;
WHERE m_pegawai.instalasi_id =1 and m_unit.id =
$poli
AND m_pegawai.unit_medis_id=1
and status = 1 and is_deleted = 0
"
;
// print_r($sql);die;
// print_r($sql);die;
$stmt
=
$this
->
_db
->
query
(
$sql
);
$stmt
=
$this
->
_db
->
query
(
$sql
);
...
...
module/Application/view/application/queue/cetakantrian.phtml
View file @
28acbd17
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
<h3>
:
</h3>
<h3>
:
</h3>
</div>
</div>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<h3>
<?php
echo
$this
->
kode
_poli
?>
</h3>
<h3>
<?php
echo
$this
->
nama
_poli
?>
</h3>
</div>
</div>
</div>
</div>
<br>
<br>
...
@@ -86,7 +86,16 @@
...
@@ -86,7 +86,16 @@
<h3>
:
</h3>
<h3>
:
</h3>
</div>
</div>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<h3>
<?php
echo
$this
->
kode_dokter
?><?php
echo
$this
->
no_antrian
?>
</label></h3>
<h3>
<?php
echo
$this
->
kode_poli
?>
-
<?php
$antrian
=
(
string
)
$this
->
no_antrian
;
if
(
strlen
(
$antrian
)
==
1
){
echo
"00"
.
$antrian
;
}
else
if
(
strlen
(
$antrian
)
==
2
){
echo
"0"
.
$antrian
;
}
else
{
echo
$antrian
;
}
?>
</div>
</div>
</div>
</div>
<br>
<br>
...
...
module/Application/view/application/queue/datapasien.phtml
View file @
28acbd17
...
@@ -236,7 +236,7 @@ input[type="done"] + label {
...
@@ -236,7 +236,7 @@ input[type="done"] + label {
<!-- </div> -->
<!-- </div> -->
<!-- <div class="form-group col-md-4"> -->
<!-- <div class="form-group col-md-4"> -->
<input
type=
"hidden"
id=
"no_
hp
"
class=
"form-control "
disabled
></input>
<input
type=
"hidden"
id=
"no_
telepon
"
class=
"form-control "
disabled
></input>
<!-- </div> -->
<!-- </div> -->
</form>
</form>
</div>
</div>
...
@@ -276,7 +276,7 @@ input[type="done"] + label {
...
@@ -276,7 +276,7 @@ input[type="done"] + label {
<br>
<br>
<div
class=
"container"
>
<div
class=
"container"
>
<button
type=
"button"
id=
"pilihno"
class=
"btn btn-primary"
data-toggle=
"modal"
data-target=
"#pilihantrian"
style=
"float: left;width: 49%;"
>
Daftar Antrian
</button>
<button
type=
"button"
id=
"pilihno"
class=
"btn btn-primary"
data-toggle=
"modal"
data-target=
"#pilihantrian"
style=
"float: left;width: 49%;"
>
Daftar Antrian
</button>
<button
type=
"button"
id=
"
pilihno
"
class=
"btn btn-danger"
style=
"float: right;width: 49%;"
>
Kembali
</button>
<button
type=
"button"
id=
"
kembali
"
class=
"btn btn-danger"
style=
"float: right;width: 49%;"
>
Kembali
</button>
</div>
</div>
<br>
<br>
...
...
public/action-js/antrian-js/action-cetak.js
View file @
28acbd17
...
@@ -2,18 +2,26 @@
...
@@ -2,18 +2,26 @@
$
(
'
#cetak
'
).
on
(
'
click
'
,
function
(
e
)
{
$
(
'
#cetak
'
).
on
(
'
click
'
,
function
(
e
)
{
//alert("kepanggil");
//alert("kepanggil");
e
.
preventDefault
();
e
.
preventDefault
();
var
no_antrian
=
no_antrian_cetak
.
toString
().
length
;
var
antrian
;
if
(
no_antrian
==
1
)
{
antrian
=
'
00
'
+
no_antrian_cetak
.
toString
();
}
else
if
(
no_antrian
==
2
)
{
antrian
=
'
0
'
+
no_antrian_cetak
.
toString
();
}
else
{
antrian
=
no_antrian_cetak
;
}
var
w
=
window
.
open
(
''
,
''
,
'
width=300,height=400
'
);
var
w
=
window
.
open
(
''
,
''
,
'
width=300,height=400
'
);
w
.
document
.
write
(
'
<html><body><table border="" >
'
+
w
.
document
.
write
(
'
<html><body><table border="" >
'
+
'
<tr><th><h1>SELAMAT DATANG</h1><h2> Di Rumah Sakit</h2></th></tr></thead>
'
+
'
<tr><th><h1>SELAMAT DATANG</h1><h2> Di Rumah Sakit</h2></th></tr></thead>
'
+
'
<tbody><tr>
'
+
'
<tbody><tr>
'
+
'
<th><h2>ANTRIAN</h2>
'
+
'
<th><h2>ANTRIAN</h2>
'
+
'
<h1>
'
+
kode_
dokter_cetak
+
+
no_antrian_cetak
+
'
</h1>
'
+
'
<h1>
'
+
kode_
poli_cetak
+
'
-
'
+
antrian
+
'
</h1>
'
+
'
<h3>Nama Pasien :
'
+
nama_pasien_cetak
+
'
</h3>
'
+
'
<h3>Nama Pasien :
'
+
nama_pasien_cetak
+
'
</h3>
'
+
'
<h3>
Poli :
'
+
kode
_poli_cetak
+
'
</h3>
'
+
'
<h3>
'
+
nama
_poli_cetak
+
'
</h3>
'
+
'
<h3>
Nama Dokter :
'
+
nama_dokter_cetak
+
'
</h3>
'
+
'
<h3>
'
+
nama_dokter_cetak
+
'
</h3>
'
+
'
<h3>Jumlah yang sedang dalam antrian :
'
+
sisa_antrian
+
'
</h3>
'
+
'
<h3>Jumlah yang sedang dalam antrian :
'
+
sisa_antrian
+
'
</h3>
'
+
'
<h4
>waktu :
'
+
new
Date
().
toLocaleString
(
"
en-US
"
,
{
timeZone
:
"
Asia/Jakarta
"
})
+
'
</h4
>
'
+
'
<h4
style=text-align: right>
'
+
new
Date
().
toLocaleString
(
"
en-US
"
,
{
timeZone
:
"
Asia/Jakarta
"
})
+
'
</h4style=text-align:
>
'
+
'
</th></tr></tbody></table></body></html>
'
);
'
</th></tr></tbody></table></body></html>
'
);
w
.
window
.
print
();
w
.
window
.
print
();
w
.
document
.
close
();
w
.
document
.
close
();
...
...
public/action-js/antrian-js/action-datapasien.js
View file @
28acbd17
...
@@ -20,13 +20,15 @@ function loaddatapasien(param) {
...
@@ -20,13 +20,15 @@ function loaddatapasien(param) {
let
data
=
result
.
data
;
let
data
=
result
.
data
;
$
(
'
#id_pasien
'
).
val
(
data
[
0
].
id
);
$
(
'
#id_pasien
'
).
val
(
data
[
0
].
id
);
$
(
'
#ktp
'
).
val
(
data
[
0
].
no_ktp
);
// alert(data[0].no_ktp)
$
(
'
#no_rekam_medis
'
).
val
(
data
[
0
].
no_rekam_medis
);
$
(
'
#no_rekam_medis
'
).
val
(
data
[
0
].
no_rekam_medis
);
$
(
'
#no_ktp
'
).
val
(
data
[
0
].
ktp
);
$
(
'
#no_ktp
'
).
val
(
data
[
0
].
ktp
);
$
(
'
#nama
'
).
val
(
data
[
0
].
nama
);
$
(
'
#nama
'
).
val
(
data
[
0
].
nama
);
$
(
'
#tempat_lahir
'
).
val
(
data
[
0
].
tempat_lahir
);
$
(
'
#tempat_lahir
'
).
val
(
data
[
0
].
tempat_lahir
);
$
(
'
#tanggal_lahir
'
).
val
(
data
[
0
].
tanggal_lahir
);
$
(
'
#tanggal_lahir
'
).
val
(
data
[
0
].
tanggal_lahir
);
$
(
'
#alamat
'
).
val
(
data
[
0
].
alamat
);
$
(
'
#alamat
'
).
val
(
data
[
0
].
alamat
);
$
(
'
#no_telepon
'
).
val
(
data
[
0
].
no_
hp
);
$
(
'
#no_telepon
'
).
val
(
data
[
0
].
no_
telepon
);
}
else
{
}
else
{
...
@@ -94,8 +96,6 @@ function loadcarabayar() {
...
@@ -94,8 +96,6 @@ function loadcarabayar() {
$
(
'
#cara_bayar
'
).
on
(
'
change
'
,
function
()
{
$
(
'
#cara_bayar
'
).
on
(
'
change
'
,
function
()
{
var
cara_bayar
=
$
(
'
#cara_bayar
'
).
val
();
var
cara_bayar
=
$
(
'
#cara_bayar
'
).
val
();
console
.
log
(
poli
);
$
.
ajax
({
$
.
ajax
({
type
:
'
POST
'
,
type
:
'
POST
'
,
dataType
:
'
json
'
,
dataType
:
'
json
'
,
...
@@ -254,7 +254,7 @@ function savedataaja() {
...
@@ -254,7 +254,7 @@ function savedataaja() {
let
tempat_lahir
=
$
(
'
#tempat_lahir
'
).
val
();
let
tempat_lahir
=
$
(
'
#tempat_lahir
'
).
val
();
let
tanggal_lahir
=
$
(
'
#tanggal_lahir
'
).
val
();
let
tanggal_lahir
=
$
(
'
#tanggal_lahir
'
).
val
();
let
alamat
=
$
(
'
#alamat
'
).
val
();
let
alamat
=
$
(
'
#alamat
'
).
val
();
let
no_hp
=
$
(
'
#no_
hp
'
).
val
();
let
no_hp
=
$
(
'
#no_
telepon
'
).
val
();
let
no_rekam_medis
=
$
(
'
#no_rekam_medis
'
).
val
();
let
no_rekam_medis
=
$
(
'
#no_rekam_medis
'
).
val
();
let
poli
=
$
(
"
#poli option:selected
"
).
attr
(
"
value
"
);
let
poli
=
$
(
"
#poli option:selected
"
).
attr
(
"
value
"
);
let
dokter
=
$
(
'
#dokter option:selected
'
).
attr
(
"
value
"
);
let
dokter
=
$
(
'
#dokter option:selected
'
).
attr
(
"
value
"
);
...
@@ -285,6 +285,7 @@ function savedataaja() {
...
@@ -285,6 +285,7 @@ function savedataaja() {
},
},
success
:
function
(
response
)
{
success
:
function
(
response
)
{
console
.
log
(
response
)
if
(
response
[
'
code
'
]
==
0
)
{
if
(
response
[
'
code
'
]
==
0
)
{
console
.
log
(
response
);
console
.
log
(
response
);
...
@@ -636,4 +637,13 @@ $(function () {
...
@@ -636,4 +637,13 @@ $(function () {
}
}
inputQuantity
[
$thisIndex
]
=
val
;
inputQuantity
[
$thisIndex
]
=
val
;
});
});
});
});
\ No newline at end of file
function
goBack
()
{
window
.
history
.
back
();
}
$
(
'
#kembali
'
).
on
(
'
click
'
,
function
()
{
// loadsisaantrian()
goBack
()
})
public/action-js/antrian-js/action-kelolapoli.js
View file @
28acbd17
...
@@ -101,25 +101,25 @@ $('#tambah').on('click', function (e) {
...
@@ -101,25 +101,25 @@ $('#tambah').on('click', function (e) {
// bootbox.alert({ message: 'Nama poli sudah ada!', centerVertical: true });
// bootbox.alert({ message: 'Nama poli sudah ada!', centerVertical: true });
// }
// }
// else {
// else {
savedatapoli
();
savedatapoli
();
//}
//}
})
})
function
savedatapoli
()
{
function
savedatapoli
()
{
var
nama_poli
=
document
.
getElementById
(
'
poli
'
);
//
var nama_poli = document.getElementById('poli');
let
id
_poli
=
$
(
'
#poli option:selected
'
).
attr
(
"
value
"
);
let
nama
_poli
=
$
(
'
#poli option:selected
'
).
attr
(
"
value
"
);
console
.
log
(
poli
)
console
.
log
(
nama_
poli
)
let
password
=
$
(
'
#password
'
).
val
();
let
password
=
$
(
'
#password
'
).
val
();
// console.log(password)
// console.log(password)
$
.
ajax
({
$
.
ajax
({
type
:
'
POST
'
,
type
:
'
POST
'
,
dataType
:
'
json
'
,
dataType
:
'
json
'
,
url
:
baseURL
+
'
/api/savekelolapoli
'
,
url
:
baseURL
+
'
/api/savekelolapoli
'
,
data
:
{
data
:
{
inama_poli
:
nama_poli
,
inama_poli
:
nama_poli
,
ipassword
:
password
,
ipassword
:
password
,
id_poli
:
id_poli
,
id_poli
:
id_poli
,
}
}
,
,
success
:
function
(
response
)
{
success
:
function
(
response
)
{
...
@@ -198,7 +198,7 @@ $('#edit').on('click', function () {
...
@@ -198,7 +198,7 @@ $('#edit').on('click', function () {
let
nama_poli
=
$
(
'
#nama_poliEdt
'
).
val
();
let
nama_poli
=
$
(
'
#nama_poliEdt
'
).
val
();
let
kode_poli
=
$
(
'
#kode_poliEdt
'
).
val
();
let
kode_poli
=
$
(
'
#kode_poliEdt
'
).
val
();
let
deskripsi_poli
=
$
(
'
#deskripsi_poliEdt
'
).
val
();
let
deskripsi_poli
=
$
(
'
#deskripsi_poliEdt
'
).
val
();
if
(
nama_poli
==
null
||
nama_poli
==
""
)
{
if
(
nama_poli
==
null
||
nama_poli
==
""
)
{
bootbox
.
alert
({
message
:
'
Nama poli tidak boleh kosong
'
,
centerVertical
:
true
});
bootbox
.
alert
({
message
:
'
Nama poli tidak boleh kosong
'
,
centerVertical
:
true
});
return
false
;
return
false
;
...
@@ -225,7 +225,7 @@ $('#edit').on('click', function () {
...
@@ -225,7 +225,7 @@ $('#edit').on('click', function () {
else
if
(
validasipoli
(
nama_poli
,
kode_poli
,
deskripsi_poli
)
==
7
)
{
else
if
(
validasipoli
(
nama_poli
,
kode_poli
,
deskripsi_poli
)
==
7
)
{
bootbox
.
alert
({
message
:
'
Deskripsi Poli harus berbeda!
'
,
centerVertical
:
true
});
bootbox
.
alert
({
message
:
'
Deskripsi Poli harus berbeda!
'
,
centerVertical
:
true
});
}
}
else
{
else
{
editdatapoli
(
id_poli
)
editdatapoli
(
id_poli
)
}
}
})
})
...
...
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