copy dari repo om Irfan
This commit is contained in:
@@ -0,0 +1,612 @@
|
||||
<!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>
|
||||
|
||||
<style type="text/css">
|
||||
div.r {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
div.l {
|
||||
text-align: left;
|
||||
}
|
||||
</style>
|
||||
|
||||
</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 2)</strong> | Detail Proyek <strong style="color:Orange">(<?=$kode_proyek?>)</strong> | <strong style="color:Gold"><?=$nama_pelanggan?></strong></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>
|
||||
|
||||
<!-- start: page -->
|
||||
<?php $jabatan = $this->session->userdata('jabatan'); $username = $this->session->userdata('username');?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<section class="panel">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a onclick="closeTab()" class="text-dark"><strong>Tutup </strong><i class="fa fa-times"></i></a>
|
||||
</div>
|
||||
<div class="l"><span style="font-weight:bold" class="panel-title">
|
||||
<strong style="color:DarkOrange">GP PROYEK</strong> | <b><i style="color:OrangeRed">Rp <?=$total_gp?></i></b><br>
|
||||
<i>(<b class="text-quartenary">Nilai Proyek</b> - <b class="text-tertiary">Barang SO</b> - <b class="text-secondary">Barang Proyek</b> - <b class="text-success">Biaya Proyek</b> - <b class="text-dark">Biaya Lainnya</b>)</i>
|
||||
</span></div>
|
||||
|
||||
</header>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<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:Red"></a>
|
||||
</div>
|
||||
<h1 class="panel-title"><strong>NILAI PROYEK | </strong><b><i style="color:DodgerBlue">TOTAL Rp <?=$total_spr?></i></b></h1>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<table class="table table-bordered table-striped mb-none" id="table1">
|
||||
<thead>
|
||||
|
||||
<th class="center primary">No</th>
|
||||
<th class="primary">SO | PO | Nilai</th>
|
||||
<th class="center primary">PILIHAN</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($so_proyek) || is_object($so_proyek)) {
|
||||
$no = 1; $datsn = "";
|
||||
foreach ($so_proyek as $key) { ?>
|
||||
<tr>
|
||||
<?php if ($key['STATUS_SO']==1) { ?>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<?php } else if ($key['STATUS_SO']==5) { ?>
|
||||
<td class="center"><b><?= $no; ?> <i class="fa fa-times text-danger"></i></b></td>
|
||||
<?php } ?>
|
||||
<?php if ($key['PO_SO']==NULL) { ?>
|
||||
<td class="text-dark"><strong><?= $key['KODE_SO']; ?></strong><br><b><i class="text-secondary text-right"><?= $key['NILAISO']; ?></i></b>
|
||||
<?php if ($key['FEE']!="0.00") { ?> <br><b><i class="text-quartenary text-right">Fee : <?= $key['FEE']; ?></i></b> <?php } ?>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="text-dark"><strong><?= $key['KODE_SO']; ?></strong><br><i style="color:Blue">(<?= $key['PO_SO']; ?>)</i><br><b><i class="text-secondary text-right"><?= $key['NILAISO']; ?></i></b>
|
||||
<?php if ($key['FEE']!="0.00") { ?> <br><b><i class="text-quartenary text-right">Fee : <?= $key['FEE']; ?></i></b> <?php } ?>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td class="actions center">
|
||||
<button type="button" onclick="ubahData('<?= $key['ID_SPR']; ?>','<?= $key['SO_ID']; ?>','<?= $key['PROYEK_ID']; ?>')" class="btn btn-xs btn-warning btn-edit" data-toggle="modal" data-target="#modal-ubah"><i class="fa fa-pencil"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $no++; $datsn = "";
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<section class="panel panel-featured panel-featured-dark">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="#" class="fa fa-caret-up" style="color:DarkOrange"></a>
|
||||
</div>
|
||||
<h1 class="panel-title"><strong>BIAYA LAINNYA | </strong><b><i style="color:DarkRed">TOTAL Rp <?=$total_bpry?></i></b></h1>
|
||||
</header>
|
||||
<div class="panel-body" style="display:none">
|
||||
<table class="table table-bordered table-striped mb-none" id="table2">
|
||||
<thead>
|
||||
|
||||
<th class="center warning">No</th>
|
||||
<th class="warning">Detail</th>
|
||||
<th class="warning text-right">Nilai</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($biaya_proyek) || is_object($biaya_proyek)) {
|
||||
$no = 1;
|
||||
foreach ($biaya_proyek as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['NAMA_BPRY']; ?></td>
|
||||
<td class="text-secondary text-right"><strong><?= $key['NILAI']; ?></strong></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-6">
|
||||
<section class="panel panel-featured panel-featured-tertiary">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="#" class="fa fa-caret-up" style="color:Black"></a>
|
||||
</div>
|
||||
<h1 class="panel-title"><strong>BARANG SO | </strong><b><i style="color:DarkOrchid">TOTAL Rp <?=$total_hppso?></i></b></h1>
|
||||
</header>
|
||||
<div class="panel-body" style="display:none">
|
||||
<table class="table table-bordered table-striped mb-none" id="table3">
|
||||
<thead>
|
||||
|
||||
<th class="center danger">No</th>
|
||||
<th class="danger">Barang</th>
|
||||
<th class="center danger">Kuantiti</th>
|
||||
<th class="center danger">DPP (Average)</th>
|
||||
<th class="center danger">Subtotal</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($hpp_so) || is_object($hpp_so)) {
|
||||
$no = 1;
|
||||
foreach ($hpp_so as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<?php if ($key['JENIS']==0) { ?>
|
||||
<td><strong class="text-secondary"><?= $key['KODE_BARANG']; ?></strong><br>(<?= $key['NAMA_BARANG']; ?>)</td>
|
||||
<?php } else if ($key['JENIS']==1) { ?>
|
||||
<td><strong class="text-warning"><?= $key['KODE_BARANG']; ?></strong><br>(<?= $key['NAMA_BARANG']; ?>)</td>
|
||||
<?php } ?>
|
||||
<td class="center"><?= $key['QTY']; ?></td>
|
||||
<td class="text-right"><strong class="text-secondary"><?= $key['HARGAAVG']; ?></strong><br><i>(<?= $key['TANGGAL']; ?>)</i></td>
|
||||
<td class="text-right text-quartenary"><strong><?= $key['HARGATOTAVG']; ?></strong></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<section class="panel panel-featured panel-featured-secondary">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="#" class="fa fa-caret-up" style="color:Blue"></a>
|
||||
</div>
|
||||
<h1 class="panel-title"><strong>BARANG PROYEK</strong> | <b><i style="color:Chocolate">TOTAL Rp <?=$total_hppbarang?></i></b></h1>
|
||||
</header>
|
||||
<div class="panel-body" style="display:none">
|
||||
<table class="table table-bordered table-striped mb-none" id="table4">
|
||||
<thead>
|
||||
|
||||
<th class="center dark">No</th>
|
||||
<th class="dark">Barang</th>
|
||||
<th class="dark">Kuantiti</th>
|
||||
<th class="text-right dark">DPP (Average)</th>
|
||||
<th class="text-right dark">Subtotal</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($persediaan) || is_object($persediaan)) {
|
||||
$no = 1;
|
||||
foreach ($persediaan as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><strong class="text-secondary"><?= $key['KODE_BARANG']; ?></strong><br>(<?= $key['NAMA_BARANG']; ?>)</td>
|
||||
<td><?= $key['QTY_DPR']; ?></td>
|
||||
<td class="text-right text-secondary"><strong><?= $key['HARGAAVG']; ?></strong></td>
|
||||
<td class="text-right text-quartenary"><strong><?= $key['HARGATOTAVG']; ?></strong></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<section class="panel panel-featured panel-featured-success">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a href="#" class="fa fa-caret-up" style="color:Magenta"></a>
|
||||
</div>
|
||||
<h1 class="panel-title"><strong>BIAYA PROYEK | </strong><b><i style="color:Teal">TOTAL Rp <?=$total_hpr?></i></b></h1>
|
||||
</header>
|
||||
<div class="panel-body" style="display:none">
|
||||
<table class="table table-bordered table-striped mb-none" id="table5">
|
||||
<thead>
|
||||
|
||||
<th class="center default">No</th>
|
||||
<th class="default">Tanggal</th>
|
||||
<th class="default text-right">Harga</th>
|
||||
<th width="280px" class="default">Keterangan</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($hpp_proyek) || is_object($hpp_proyek)) {
|
||||
$no = 1;
|
||||
foreach ($hpp_proyek as $key) { ?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><?= $key['TANGGAL']; ?></td>
|
||||
<td class="text-secondary text-right"><strong><?= $key['HARGA']; ?></strong></td>
|
||||
<td><?= $key['KET_DKB']; ?></td>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
|
||||
<!-- Modal Ubah -->
|
||||
<div class="modal fade" id="modal-ubah">
|
||||
<?= form_open('ManageRekapGp/ubahrekap_KA1', array('id' => 'formrekapgp'), array('method' => 'ubahrekap_KA1')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><strong>Ubah Data </strong><b class="text-danger">[Warna Merah harus diisi]</b></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_spred" id="id_spred" class="form-control">
|
||||
<input type="hidden" name="id_proyeked" id="id_proyeked" class="form-control">
|
||||
<div class="col-md-2"><label><strong class="text-danger">SO</strong></label></div>
|
||||
<div class="col-md-10">
|
||||
<select data-plugin-selectTwo name="id_soed" id="id_soed" class="form-control populate" required>
|
||||
<?php if (is_array($so) || is_object($so)) {
|
||||
foreach ($so as $key) { ?>
|
||||
<?php if ($key['PO_SO']!=NULL AND $key['LOCK']==0) { ?>
|
||||
<option value="<?= $key['ID_SO'] ?>" ><?= $key['KODE_SO'] ?> | <?= $key['TANGGAL'] ?> | <?= $key['TOTAL'] ?> (<?= $key['PO_SO'] ?>)</option>
|
||||
<?php } else if ($key['PO_SO']!=NULL AND $key['LOCK']==1) { ?>
|
||||
<option disabled value="<?= $key['ID_SO'] ?>" ><?= $key['KODE_SO'] ?> | <?= $key['TANGGAL'] ?> | <?= $key['TOTAL'] ?> (<?= $key['PO_SO'] ?>) *Terpakai</option>
|
||||
<?php } else if ($key['PO_SO']==NULL AND $key['LOCK']==1) { ?>
|
||||
<option disabled value="<?= $key['ID_SO'] ?>" ><?= $key['KODE_SO'] ?> | <?= $key['TANGGAL'] ?> | <?= $key['TOTAL'] ?> *Terpakai</option>
|
||||
<?php } else { ?>
|
||||
<option value="<?= $key['ID_SO'] ?>" ><?= $key['KODE_SO'] ?> | <?= $key['TANGGAL'] ?> | <?= $key['TOTAL'] ?></option>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
<small class="help-block"></small>
|
||||
</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>Ubah</strong> <i class="fa fa-pencil"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</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: 'Ada perubahan data. Cek kembali.',
|
||||
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_all'); ?> semua. Kembali ke Menu Awal.',
|
||||
type: 'warning',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('not_zero_negative')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Nilai kurang dari/ sama dengan 0.',
|
||||
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('sn_empty')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'SN ada yang kosong, 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('so_used')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'SO sudah terpakai, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('qty_less')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Kuantiti melebihi Stok PCM, proses dihentikan',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('qty_same')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Kuantiti sama dengan nilai Sebelumnya, proses dihentikan',
|
||||
type: 'warning',
|
||||
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('twin_item')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Kode Barang sama, silahkan Check kembali.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('plot_stock_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Barang tidak di-plot di Proyek ini, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('user_error')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Data Pelanggan tidak sama dengan SO, proses dihentikan.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('sn_empty_gudang')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: 'Ada SN yang belum terisi, kontak Team Gudang.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('so_void')) { ?>
|
||||
new PNotify({
|
||||
title: 'Notifikasi',
|
||||
text: '<?= $this->session->flashdata('so_void'); ?> sudah Batal, cek Kembali Data yang diinput.',
|
||||
type: 'error',
|
||||
shadow: true
|
||||
});
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
var table1 = $('#table1').dataTable( {
|
||||
"paging": true
|
||||
} );
|
||||
|
||||
var table2 = $('#table2').dataTable( {
|
||||
"paging": true
|
||||
} );
|
||||
|
||||
var table3 = $('#table3').dataTable( {
|
||||
"paging": true
|
||||
} );
|
||||
|
||||
var table4 = $('#table4').dataTable( {
|
||||
"paging": true
|
||||
} );
|
||||
|
||||
var table5 = $('#table5').dataTable( {
|
||||
"paging": true
|
||||
} );
|
||||
|
||||
function ubahData(id_spr, id_so, id_proyek) {
|
||||
document.getElementById("id_spred").value = id_spr;
|
||||
document.getElementById("id_soed").value = id_so;
|
||||
document.getElementById("id_proyeked").value = id_proyek;
|
||||
}
|
||||
|
||||
function closeTab() {
|
||||
window.close();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user