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
da8aceac
Commit
da8aceac
authored
Oct 27, 2020
by
Indra Raja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integrasi
parent
9f79eea5
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
98 additions
and
164 deletions
+98
-164
module/Application/src/Controller/AdminController.php
module/Application/src/Controller/AdminController.php
+7
-38
module/Application/src/Controller/ApiController.php
module/Application/src/Controller/ApiController.php
+80
-88
module/Application/src/Controller/UmumController.php
module/Application/src/Controller/UmumController.php
+4
-23
module/Application/src/Model/Param/Storage/Mysql.php
module/Application/src/Model/Param/Storage/Mysql.php
+4
-4
module/Application/view/application/queue/cekdatapasien.phtml
...le/Application/view/application/queue/cekdatapasien.phtml
+1
-1
public/action-js/antrian-js/action-admin.js
public/action-js/antrian-js/action-admin.js
+1
-10
public/action-js/antrian-js/action-kelolapoli.js
public/action-js/antrian-js/action-kelolapoli.js
+1
-0
No files found.
module/Application/src/Controller/AdminController.php
View file @
da8aceac
...
@@ -54,15 +54,8 @@ class AdminController extends \Application\Master\GlobalActionController
...
@@ -54,15 +54,8 @@ class AdminController extends \Application\Master\GlobalActionController
// echo "<pre>";
// echo "<pre>";
$id
=
$getpath
[
3
];
$id
=
$getpath
[
3
];
// echo "<pre>";
// print_r($uri);die;
// $storage = \Application\Model\Param\Storage::factory($this->getDb(), $this->getConfig());
// $param = new \Application\Model\Param($storage);
// $curl = curl_init();
// $curl = curl_init();
// curl_setopt_array($curl, array(
// curl_setopt_array($curl, array(
...
@@ -74,7 +67,7 @@ class AdminController extends \Application\Master\GlobalActionController
...
@@ -74,7 +67,7 @@ class AdminController extends \Application\Master\GlobalActionController
// CURLOPT_FOLLOWLOCATION => true,
// CURLOPT_FOLLOWLOCATION => true,
// CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
// CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
// CURLOPT_CUSTOMREQUEST => "POST",
// CURLOPT_CUSTOMREQUEST => "POST",
// CURLOPT_POSTFIELDS => array('inoantrian' => '
1','idok' => '74','istatus' => '3
0'),
// CURLOPT_POSTFIELDS => array('inoantrian' => '
7','idok' => '74','istatus' => '4
0'),
// ));
// ));
// $response = curl_exec($curl);
// $response = curl_exec($curl);
...
@@ -82,37 +75,11 @@ class AdminController extends \Application\Master\GlobalActionController
...
@@ -82,37 +75,11 @@ class AdminController extends \Application\Master\GlobalActionController
// curl_close($curl);
// curl_close($curl);
// echo $response;
// echo $response;
// $data = json_decode(file_get_contents('php://input'),true);
// function curl($url, $data){
// $ch = curl_init();
// curl_setopt($ch, CURLOPT_URL, $url);
// curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
// curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// $output = curl_exec($ch);
// curl_close($ch);
// return $output;
// }
// // Data Parameter yang Dikirim oleh cURL
// echo $data;
// $data = array("inoantrian"=>"1","idok"=>"74","istatus"=>"40");
// print_r($data);
// print_r($data);
// $send = curl("http://queue.indra/api/nextantrian/",json_encode($data));
// echo json_encode(array('respon'=>$send),JSON_UNESCAPED_SLASHES);
$arr
=
json_decode
(
file_get_contents
(
"php://input"
));
if
(
empty
(
$arr
->
inoantrian
)
OR
empty
(
$arr
->
idok
)
OR
empty
(
$arr
->
istatus
)){
echo
"Submit gagal!"
;
}
else
{
echo
"Submit berhasil!"
.
$arr
->
inoantrian
.
"</b><b>"
.
$arr
->
idok
.
"</b>.<b>"
.
$arr
->
istatus
.
"</b>."
;
}
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var id = "'
.
$id
.
'"'
);
$this
->
headScript
->
appendScript
(
' var id = "'
.
$id
.
'"'
);
$this
->
headScript
->
appendFile
(
'/action-js/antrian-js/action-admin.js'
);
$this
->
headScript
->
appendFile
(
'/action-js/antrian-js/action-admin.js'
);
...
@@ -136,6 +103,8 @@ class AdminController extends \Application\Master\GlobalActionController
...
@@ -136,6 +103,8 @@ class AdminController extends \Application\Master\GlobalActionController
$this
->
layout
(
"layout/layoutAdmin"
);
$this
->
layout
(
"layout/layoutAdmin"
);
return
$view
;
return
$view
;
}
}
public
function
antrianterlewatAction
()
public
function
antrianterlewatAction
()
{
{
$this
->
isLoggedIn
();
$this
->
isLoggedIn
();
...
...
module/Application/src/Controller/ApiController.php
View file @
da8aceac
This diff is collapsed.
Click to expand it.
module/Application/src/Controller/UmumController.php
View file @
da8aceac
...
@@ -53,28 +53,8 @@ class UmumController extends \Application\Master\GlobalActionController
...
@@ -53,28 +53,8 @@ class UmumController extends \Application\Master\GlobalActionController
// echo "<pre>";
// echo "<pre>";
$decodeid
=
base64_decode
(
$getpath
[
3
]);
$decodeid
=
base64_decode
(
$getpath
[
3
]);
// $curl = curl_init();
// curl_setopt_array($curl, array(
// CURLOPT_URL => "http://queue.indra/api/loadantrian?id_poli=$decodeid",
// CURLOPT_RETURNTRANSFER => true,
// CURLOPT_ENCODING => "",
// CURLOPT_MAXREDIRS => 10,
// CURLOPT_TIMEOUT => 0,
// CURLOPT_FOLLOWLOCATION => true,
// CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
// CURLOPT_CUSTOMREQUEST => "POST",
// CURLOPT_POSTFIELDS => array('id_poli' => $decodeid),
// ));
// $response = curl_exec($curl);
// curl_close($curl);
// // echo $response;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var id_poli = "'
.
$decodeid
.
'"'
);
$this
->
headScript
->
appendScript
(
' var id_poli = "'
.
$decodeid
.
'"'
);
...
@@ -83,6 +63,7 @@ class UmumController extends \Application\Master\GlobalActionController
...
@@ -83,6 +63,7 @@ class UmumController extends \Application\Master\GlobalActionController
$this
->
layout
(
"layout/layoutUmum"
);
$this
->
layout
(
"layout/layoutUmum"
);
return
$view
;
return
$view
;
}
}
}
}
\ No newline at end of file
module/Application/src/Model/Param/Storage/Mysql.php
View file @
da8aceac
...
@@ -440,9 +440,6 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
...
@@ -440,9 +440,6 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
return
$result
;
return
$result
;
}
}
public
function
loaddatapasien
(
$id
){
$result
=
new
Result
();
try
{
public
function
loadsisaantrian
(
$id
,
$no
){
public
function
loadsisaantrian
(
$id
,
$no
){
...
@@ -486,7 +483,10 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
...
@@ -486,7 +483,10 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
}
}
return
$result
;
return
$result
;
}
}
public
function
loaddatapasien
(
$id
){
$result
=
new
Result
();
try
{
$sql
=
" SELECT * FROM pasien WHERE id_pasien =
$id
"
;
$sql
=
" SELECT * FROM pasien WHERE id_pasien =
$id
"
;
...
...
module/Application/view/application/queue/cekdatapasien.phtml
View file @
da8aceac
...
@@ -42,7 +42,7 @@ input::-webkit-inner-spin-button {
...
@@ -42,7 +42,7 @@ input::-webkit-inner-spin-button {
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
<h5>
No Rekam Medis
</h5></label><br>
<label>
<h5>
No Rekam Medis
</h5></label><br>
<input
type=
"
number"
id=
"no_rekam_medis"
placeholder=
"No Rekam Medis"
class=
"form-control"
max=
"999999999999999"
maxlength=
"8
"
></input>
<input
type=
"
text"
id=
"no_rekam_medis"
placeholder=
"No Rekam Medis"
class=
"form-control
"
></input>
</div>
</div>
<!-- <div class="form-group">
<!-- <div class="form-group">
...
...
public/action-js/antrian-js/action-admin.js
View file @
da8aceac
const
STATUS_QUEUE
=
10
;
const
STATUS_NEXT
=
20
;
const
STATUS_CALL
=
30
;
const
STATUS_SERVED
=
40
;
const
STATUS_DONE
=
50
;
const
STATUS_MISSED
=
60
;
/* JS comes here */
/* JS comes here */
/* JS comes here */
/* JS comes here */
...
@@ -35,7 +26,7 @@ function textToAudioRuang() {
...
@@ -35,7 +26,7 @@ function textToAudioRuang() {
var
res
=
ruang
.
replace
(
"
.
"
,
"
"
);
var
res
=
ruang
.
replace
(
"
.
"
,
"
"
);
document
.
getElementById
(
"
nama_ruang
"
).
innerHTML
=
res
;
document
.
getElementById
(
"
nama_ruang
"
).
innerHTML
=
res
;
let
voice
=
"
silahkan m
asuk
ke ruang
"
+
res
;
let
voice
=
"
silahkan m
enuju
ke ruang
"
+
res
;
console
.
log
(
voice
)
console
.
log
(
voice
)
let
speech
=
new
SpeechSynthesisUtterance
();
let
speech
=
new
SpeechSynthesisUtterance
();
...
...
public/action-js/antrian-js/action-kelolapoli.js
View file @
da8aceac
...
@@ -26,6 +26,7 @@ function Loadpoli() {
...
@@ -26,6 +26,7 @@ function Loadpoli() {
let
data
=
result
.
data
;
let
data
=
result
.
data
;
let
counter
=
1
;
let
counter
=
1
;
for
(
x
in
data
)
{
for
(
x
in
data
)
{
// console.log(data);
// console.log(data);
...
...
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