copy dari repo om Irfan
This commit is contained in:
@@ -0,0 +1,529 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>PROSES | REKAPITULASI GP</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="Porto Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="okler.net">
|
||||
<link rel="icon" type="image/png" href="<?php echo base_url('')?>assets/images/logoPcmBaru3.png" />
|
||||
|
||||
<!-- Mobile Metas -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
|
||||
<!-- Vendor CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap/css/bootstrap.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/font-awesome/css/font-awesome.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/css/datepicker3.css" />
|
||||
|
||||
<!-- Specific Page Vendor CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/select2/select2.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/css/datatables.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap-multiselect/bootstrap-multiselect.css" />
|
||||
|
||||
<!-- Theme CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/stylesheets/theme.css" />
|
||||
|
||||
<!-- Skin CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/stylesheets/skins/default.css" />
|
||||
|
||||
<!-- Theme Custom CSS -->
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/stylesheets/theme-custom.css">
|
||||
|
||||
<!-- Head Libs -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/modernizr/modernizr.js"></script>
|
||||
|
||||
</head>
|
||||
<script src="<?= base_url() ?>assets/bower_components/jquery/jquery-3.3.1.min.js"></script>
|
||||
<script src="<?= base_url() ?>assets/bower_components/sweetalert2/sweetalert2.all.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
let base_url = '<?= base_url() ?>';
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<section class="body">
|
||||
|
||||
<!-- start: header -->
|
||||
<?php $this->load->view('template/header'); ?>
|
||||
<!-- end: header -->
|
||||
|
||||
<div class="inner-wrapper">
|
||||
<!-- start: sidebar -->
|
||||
<?php $this->load->view('template/sidebar'); ?>
|
||||
<!-- end: sidebar -->
|
||||
|
||||
<section role="main" class="content-body">
|
||||
<header class="page-header">
|
||||
<h2><strong>(Step 1)</strong> | Data Kuartal</h2>
|
||||
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li><span><strong style="color:Orange">Master Data </span></strong></li>
|
||||
</ol>
|
||||
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<?php
|
||||
$jabatan = $this->session->userdata('jabatan');
|
||||
$username = $this->session->userdata('username');
|
||||
$id_karyawan = $this->session->userdata('id_karyawan');
|
||||
$panggilan = $this->session->userdata('nama_panggilan');
|
||||
?>
|
||||
|
||||
<!-- start: page -->
|
||||
<section class="panel panel-featured panel-featured-tertiary">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="<?php echo base_url('') ?>index.php" class="text-dark"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title"><strong>DATA DETAIL KUARTAL</strong><br><i class="text-warning">Note : [Tombol Kuning untuk Revisi Data Rekap.]</i>
|
||||
<br><i class="text-primary">Note : [Tombol Biru untuk Kunci Akhir menuju Laporan.]</i></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<table class="table table-bordered table-striped mb-none" id="table1">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Kuartal</th>
|
||||
<th class="dark">Karyawan</th>
|
||||
<th class="dark text-right">Total Proyek<br><i style="color:SkyBlue">(Exclude Fee)</i></th>
|
||||
<th class="dark text-right">Total HPP</th>
|
||||
<th class="dark text-right">Total GP</th>
|
||||
<th class="center dark">PILIHAN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($rekap) || is_object($rekap)) {
|
||||
$no = 1; $datsn = "";
|
||||
foreach ($rekap as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td class="text-dark"><strong>Periode <?= $key['NAMA_KUARTAL']; ?></strong><br>(<b style="color:DarkCyan"><?= $key['AWAL']; ?></b> - <b style="color:FireBrick"><?= $key['AKHIR']; ?></b>)</td>
|
||||
<td><?= $key['NAMA_PANGGILAN_KARYAWAN']; ?></td>
|
||||
<td class="text-right text-quartenary"><b><?= $key['NOTA']; ?></b></td>
|
||||
<td class="text-right text-success"><b><?= $key['BIAYA']; ?></b></td>
|
||||
<td class="text-right text-secondary"><b><?= $key['GP']; ?></b></td>
|
||||
<td class="actions center">
|
||||
<button type="button" onclick="revisiData('<?= $key['ID_RQ']; ?>')" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#modal-revisi"><i class="fa fa-rotate-left"></i></button>
|
||||
<button type="button" onclick="kunciData('<?= $key['ID_RQ']; ?>')" class="btn btn-xs btn-primary" data-toggle="modal" data-target="#modal-kunci"><i class="fa fa-lock"></i></button>
|
||||
<button type="button" onclick="cetakData('<?= $key['ID_RQ']; ?>')" class="btn btn-xs btn-default text-quartenary" data-toggle="modal" data-target="#modal-cetak"><i class="fa fa-file-excel-o"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++; $datsn = "";
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="panel panel-featured panel-featured-quartenary">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="#" class="fa fa-caret-down" style="color:Magenta"></a>
|
||||
</div>
|
||||
|
||||
<h2 class="panel-title"><strong>DATA PROYEK TERPILIH</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<table class="table table-bordered table-striped mb-none" id="table2">
|
||||
<thead>
|
||||
|
||||
<th class="center default">No</th>
|
||||
<th width="110px" class="default">Kode</th>
|
||||
<?php if ($username=="venny" OR $username=="suvi" OR $jabatan=="ADMINISTRATOR") { ?>
|
||||
<th width="110px" class="default">Sales</th>
|
||||
<?php } ?>
|
||||
<th class="default">Pelanggan</th>
|
||||
<th class="default">Nama Proyek</th>
|
||||
<th class="default text-right">Nilai Proyek <i style="color:DarkOrange">(Exclude)</i><br>Nilai Fee</th>
|
||||
<th class="center default">Detail Proyek</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($proyek) || is_object($proyek)) {
|
||||
$no = 1;
|
||||
foreach ($proyek as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td style="color:Chocolate"><strong><?= $key['KODE_PROYEK']; ?></strong><br>(<?= $key['TANGGAL']; ?>)</td>
|
||||
<?php if ($username=="venny" OR $username=="suvi" OR $jabatan=="ADMINISTRATOR") { ?>
|
||||
<td><?= $key['NAMA_PANGGILAN_KARYAWAN']; ?><br><b><i class="text-dark">(<?= $key['NAMA_KUARTAL']; ?>)</i></b></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['TYPE_PELANGGAN']=="0") { ?>
|
||||
<td><strong class="text-primary">Corporate</strong> : <br><?= $key['NAMA_PELANGGAN'] ?><br>(<?= $key['NAMA_KOTA'] ?>)<br></td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']=="1") { ?>
|
||||
<td><strong class="text-success">Dealer</strong> : <br><?= $key['NAMA_PELANGGAN'] ?><br>(<?= $key['NAMA_KOTA'] ?>)<br></td>
|
||||
<?php } else if ($key['TYPE_PELANGGAN']=="2") { ?>
|
||||
<td><strong class="text-warning">User</strong> : <br><?= $key['NAMA_PELANGGAN'] ?><br>(<?= $key['NAMA_KOTA'] ?>)<br></td>
|
||||
<?php } ?>
|
||||
<td><?= $key['PO_PROYEK']; ?></td>
|
||||
<td class="text-right"><b class="text-secondary"><?= $key['NILAI']; ?></b><br><b class="text-quartenary">(<?= $key['FEE']; ?>)</b></td>
|
||||
<td class="actions center">
|
||||
<button type="button" class="btn btn-xs btn-default text-primary" onclick="openTab(<?php echo $key['ID_PROYEK'];?>)"><i class="fa fa-external-link"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Revisi -->
|
||||
<div id="modal-revisi" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageRekapGp/revisirekap_KA1', array('id' => 'formrekapgp'), array('method' => 'revisirekap_KA1')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><strong>Revisi Data</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id_rqrev" id="id_rqrev" class="form-control">
|
||||
<h4>Apakah ingin revisi Data?</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-warning"><strong>Revisi</strong> <i class="fa fa-rotate-left"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal Kunci -->
|
||||
<div id="modal-kunci" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageRekapGp/kuncirekap_KA1', array('id' => 'formrekapgp'), array('method' => 'kuncirekap_KA1')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><strong>Kunci Data</strong></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id_rqlock" id="id_rqlock" class="form-control">
|
||||
<h4>Apakah ingin kunci Data?</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitButton" id="SubmitButton" class="btn btn-primary"><strong>Kunci</strong> <i class="fa fa-lock"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal Cetak -->
|
||||
<div id="modal-cetak" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('ManageRekapGp/excelrekap_SA1', array('method' => 'post'), array('id' => 'formrekapgp')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><strong>Cetak Data</strong></h2>
|
||||
</header>
|
||||
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id_rqprint" id="id_rqprint" class="form-control">
|
||||
<h4>Apakah ingin Cetak Data?</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" name="SubmitCetak" id="SubmitCetak" formtarget="_blank" class="btn btn-default"><strong>Cetak</strong> <i class="fa fa-file-excel-o"></i></a></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('template/sidebar_right'); ?>
|
||||
<!-- Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
||||
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-multiselect/bootstrap-multiselect.js"></script>
|
||||
<!-- Specific Page Vendor -->
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
||||
|
||||
<!-- Theme Base, Components and Settings -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
||||
|
||||
<!-- Theme Custom -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
||||
|
||||
<!-- Theme Initialization Files -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
||||
|
||||
|
||||
<!-- Examples -->
|
||||
<!-- Examples -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.default.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>
|
||||
<!-- <script src="<?php echo base_url('') ?>assets/javascripts/tables/examples.datatables.editable.js"></script> -->
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/ui-elements/examples.notifications.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/vendor/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url('') ?>assets/javascripts/forms/examples.validation.js"></script>
|
||||
<!-- notif -->
|
||||
<?php $this->load->view('template/notification'); ?>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->session->flashdata('success')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('success'); ?>.',
|
||||
type: 'success',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('failed')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data gagal <?= $this->session->flashdata('failed'); ?>, hubungi Administrator',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('latest')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data sudah tidak ada, silahkan check.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_lock')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('data_lock'); ?>. Kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_lock_all')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data berhasil <?= $this->session->flashdata('data_lock'); ?> semua. Kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('proyek_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Proyek <?= $this->session->flashdata('proyek_error'); ?> sudah terpakai.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('proyek_time')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Proyek <?= $this->session->flashdata('proyek_time'); ?> tidak sesuai dengan Periode Kuartal.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('kuartal_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Kuartal <?= $this->session->flashdata('kuartal_error'); ?> sudah ditutup, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('proyek_periode')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Proyek Sales Terkait ada yang belum Selesai di Periode <?= $this->session->flashdata('proyek_periode'); ?>.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_zero_negative')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai tidak valid, silahkan Check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_valid')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data utama berubah, kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('data_used')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data terpakai, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('qty_less_pcm')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Kuantiti melebihi Stock PCM, proses dihentikan',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('qty_less_sp')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Kuantiti melebihi Stock Proyek, proses dihentikan',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('po_same')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nomor PO sudah terpakai.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
|
||||
$('#table1').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
$('#table2').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
function revisiData(id_rq) {
|
||||
document.getElementById("id_rqrev").value = id_rq;
|
||||
}
|
||||
|
||||
function kunciData(id_rq) {
|
||||
document.getElementById("id_rqlock").value = id_rq;
|
||||
}
|
||||
|
||||
function cetakData(id_rq) {
|
||||
document.getElementById("id_rqprint").value = id_rq;
|
||||
}
|
||||
|
||||
function openTab(id) {
|
||||
window.open("http://200.1.1.6/apps/index.php/ManageRekapGp/dataRekapKuartal_Keuangan_A2/"+id, '_blank');
|
||||
}
|
||||
|
||||
function multiselect_selected($el) {
|
||||
var ret = true;
|
||||
$('option', $el).each(function(element) {
|
||||
if (!!!$(this).prop('selected')) {
|
||||
ret = false;
|
||||
}
|
||||
});
|
||||
return ret;
|
||||
}
|
||||
|
||||
function multiselect_selectAll($el) {
|
||||
$('option', $el).each(function(element) {
|
||||
$el.multiselect('select', $(this).val());
|
||||
});
|
||||
}
|
||||
|
||||
function multiselect_deselectAll($el) {
|
||||
$('option', $el).each(function(element) {
|
||||
$el.multiselect('deselect', $(this).val());
|
||||
});
|
||||
}
|
||||
|
||||
function multiselect_toggle($el, $btn) {
|
||||
if (multiselect_selected($el)) {
|
||||
multiselect_deselectAll($el);
|
||||
$btn.text("Pilih Semua");
|
||||
} else {
|
||||
multiselect_selectAll($el);
|
||||
$btn.text("Hapus Semua");
|
||||
}
|
||||
}
|
||||
|
||||
$('#proyekid-toggle').css('font-weight', '700');
|
||||
|
||||
$("#proyekid-toggle").click(function(e) {
|
||||
e.preventDefault();
|
||||
multiselect_toggle($("#proyekid"), $(this));
|
||||
});
|
||||
|
||||
$('#SubmitCetak').click(function() {
|
||||
var st = $('#id_rqprint').val();
|
||||
|
||||
if (st != '') {
|
||||
$('#modal-cetak').modal('toggle');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user