Commit 28acbd17 authored by Azy Mushofy Anwary's avatar Azy Mushofy Anwary

Pasien

parent 535f27c2
...@@ -395,8 +395,9 @@ class ApiController extends \Application\Master\GlobalActionController { ...@@ -395,8 +395,9 @@ 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_antrian_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);
...@@ -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;
......
...@@ -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');
......
...@@ -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 antrian_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_antrian_pasien
INNER JOIN dokter_to_poli INNER JOIN m_pegawai
ON antrian_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 antrian_pasien.id_poli = poli.id_poli ON a_antrian_pasien.id_poli = m_unit.id
WHERE antrian_pasien.id_antrian = $id WHERE a_antrian_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_antrian_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_antrian_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_antrian_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_antrian_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);
......
...@@ -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>
......
...@@ -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>
......
...@@ -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();
......
...@@ -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);
...@@ -637,3 +638,12 @@ $(function () { ...@@ -637,3 +638,12 @@ $(function () {
inputQuantity[$thisIndex] = val; inputQuantity[$thisIndex] = val;
}); });
}); });
function goBack() {
window.history.back();
}
$('#kembali').on('click', function () {
// loadsisaantrian()
goBack()
})
...@@ -105,9 +105,9 @@ $('#tambah').on('click', function (e) { ...@@ -105,9 +105,9 @@ $('#tambah').on('click', function (e) {
//} //}
}) })
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)
...@@ -117,9 +117,9 @@ function savedatapoli() { ...@@ -117,9 +117,9 @@ function savedatapoli() {
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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment