copy dari repo om Irfan
This commit is contained in:
@@ -0,0 +1,628 @@
|
||||
<!doctype html>
|
||||
<html class="fixed sidebar-left-collapsed">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>SALES PRODUK</title>
|
||||
<meta name="keywords" content="HTML5 Admin Template" />
|
||||
<meta name="description" content="Porto Admin - Responsive HTML5 Template">
|
||||
<meta name="author" content="okler.net">
|
||||
|
||||
<!-- 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" />
|
||||
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/base/jquery-ui.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>
|
||||
|
||||
<style>
|
||||
.ui-front {
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.solid {
|
||||
border-bottom-style: solid;
|
||||
border-width: 5px;
|
||||
border-color: teal;
|
||||
}
|
||||
|
||||
.f18 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<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">
|
||||
|
||||
<?php
|
||||
$id_karyawan = $this->session->userdata('id_karyawan');
|
||||
$nama_panggilan = $this->session->userdata('nama_panggilan');
|
||||
$username = $this->session->userdata('username');
|
||||
$tgl_now = date('d/m/Y');
|
||||
?>
|
||||
|
||||
<header class="page-header">
|
||||
<h2><b>Data Administrasi | </b><b style="color:LightGreen">[<?=$tampil?>]</b></h2>
|
||||
<div class="right-wrapper pull-right">
|
||||
<ol class="breadcrumbs">
|
||||
<li><span><b style="color:Gold">Master Data </span></b></li>
|
||||
</ol>
|
||||
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- start: page -->
|
||||
<section class="panel panel-featured panel-featured-primary">
|
||||
<header class="panel-heading">
|
||||
<div class="panel-actions">
|
||||
<a data-toggle="modal" data-target="#modalFitur" style="color:Coral"><b>Fitur </b><i class="fa fa-question-circle"></i></a>  
|
||||
<a href="<?php echo base_url('') ?>index.php" class="text-dark"><b>Dashboard </b><i class="fa fa-home"></i></a>
|
||||
</div>
|
||||
<h2 class="panel-title"><b style="color:Blue">ADMINISTRASI</b></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="panel-group" id="accordion">
|
||||
<div class="panel panel-accordion">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title">
|
||||
<a onclick="setToggle(1)" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
|
||||
<b class="f18" style="color:Green"><b style="color:Black">[1]</b> CN SO PENJUALAN | <b style="color:DarkRed"><?=$countSo?> DATA</b></b>
|
||||
</a>
|
||||
</h2>
|
||||
</header>
|
||||
<div id="collapseOne" class="accordion-body collapse <?php if ($posisiToggle==1) { ?>in<?php } ?>">
|
||||
<div class="toggle-content">
|
||||
<div class="panel-body">
|
||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalKunciSemua"><b>Kunci (Bulk) <i class="fa fa-lock"></i></b></button>
|
||||
<table class="table table-bordered table-striped mb-none" id="table1">
|
||||
<thead>
|
||||
<th class="center default">No</th>
|
||||
<th class="default">Kode</th>
|
||||
<th class="default">Pemberi</th>
|
||||
<th class="default">Nama CN</th>
|
||||
<th class="default">Kode Bukti</th>
|
||||
<?php if ($hak>1) { ?>
|
||||
<th class="center default">PILIHAN</th>
|
||||
<?php } ?>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($cnSo) || is_object($cnSo)) {
|
||||
$no = 1;
|
||||
foreach ($cnSo as $key) {
|
||||
?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><b style="color:Black"><?= $key['KODE_CN']; ?></b><br><i>(<?= $key['CIPTA_CN']; ?>)</i></td>
|
||||
<td><b style="color:DarkGreen">[<?= $key['NAMA_MERK']; ?>]</b><br><?= $key['NAMA_SUPPLIER'] ?><br><i>(<?= $key['NAMA_KOTA'] ?>)</i></td>
|
||||
<td><b style="color:Chocolate"><?=$key['NAMA_CN'];?></b><br><u><b style="color:Blue">[<?= $key['NILAI']; ?>]</b></u></td>
|
||||
<td><b style="color:Blue"><?= $key['KOBUK']; ?></b><br><b style="color:Tomato"><?= $key['NIBUK']; ?></b></td>
|
||||
<?php if ($hak>1) { ?>
|
||||
<td class="actions center">
|
||||
<?php if ($key['LINK']==0) { ?>
|
||||
<span data-toggle="modal" data-target="#modalKunciSo"><button type="button" onclick="kunciData('<?=$key['ID_CN']?>')" class="btn btn-xs btn-primary" title="" data-toggle="tooltip" data-trigger="hover" data-original-title="Tombol untuk Kunci Data"><i class="fa fa-lock"></i></button></span>
|
||||
<?php } else { ?>
|
||||
<button type="button" class="btn btn-xs btn-default"><b style="color:Red">Belum Link <i class="fa fa-times"></i></b></button>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="panel panel-accordion">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title">
|
||||
<a onclick="setToggle(2)" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
|
||||
<b class="f18" style="color:Green"><b style="color:Black">[2]</b> CN POTONGAN PEMBELIAN | <b style="color:DarkRed"><?=$countPembelian?> DATA</b></b>
|
||||
</a>
|
||||
</h2>
|
||||
</header>
|
||||
<div id="collapseTwo" class="accordion-body collapse <?php if ($posisiToggle==2) { ?>in<?php } ?>">
|
||||
<div class="toggle-content">
|
||||
<div class="panel-body">
|
||||
<table class="table table-bordered table-striped mb-none" id="table2">
|
||||
<thead>
|
||||
<th class="center default">No</th>
|
||||
<th class="default">Kode</th>
|
||||
<th class="default">Pemberi</th>
|
||||
<th class="default">Nama CN</th>
|
||||
<?php if ($hak>1) { ?>
|
||||
<th class="center default">PILIHAN</th>
|
||||
<?php } ?>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($cnPembelian) || is_object($cnPembelian)) {
|
||||
$no = 1;
|
||||
foreach ($cnPembelian as $key) {
|
||||
?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><b style="color:Black"><?= $key['KODE_CN']; ?></b><br><i>(<?= $key['CIPTA_CN']; ?>)</i></td>
|
||||
<td><b style="color:DarkGreen">[<?= $key['NAMA_MERK']; ?>]</b><br><?= $key['NAMA_SUPPLIER'] ?><br><i>(<?= $key['NAMA_KOTA'] ?>)</i></td>
|
||||
<td><b style="color:Chocolate"><?=$key['NAMA_CN'];?></b><br><u><b style="color:Blue">[<?= $key['NILAI']; ?>]</b></u></td>
|
||||
<?php if ($hak>1) { ?>
|
||||
<td class="actions center">
|
||||
<span data-toggle="modal" data-target="#modalKunciPembelian"><button type="button" onclick="linkData('<?=$key['ID_CN']?>')" class="btn btn-xs btn-primary" title="" data-toggle="tooltip" data-trigger="hover" data-original-title="Tombol untuk Kunci Data"><i class="fa fa-lock"></i></button></span>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-accordion">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title">
|
||||
<a onclick="setToggle(3)" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseThree">
|
||||
<b class="f18" style="color:Green"><b style="color:Black">[3]</b> CN VOUCHER | <b style="color:DarkRed"><?=$countVoucher?> DATA</b></b>
|
||||
</a>
|
||||
</h2>
|
||||
</header>
|
||||
<div id="collapseThree" class="accordion-body collapse <?php if ($posisiToggle==3) { ?>in<?php } ?>">
|
||||
<div class="toggle-content">
|
||||
<div class="panel-body">
|
||||
<table class="table table-bordered table-striped mb-none" id="table3">
|
||||
<thead>
|
||||
<th class="center default">No</th>
|
||||
<th class="default">Kode</th>
|
||||
<th class="default">Pemberi</th>
|
||||
<th class="default">Nama CN</th>
|
||||
<?php if ($hak>1) { ?>
|
||||
<th class="center default">PILIHAN</th>
|
||||
<?php } ?>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($cnVoucher) || is_object($cnVoucher)) {
|
||||
$no = 1;
|
||||
foreach ($cnVoucher as $key) {
|
||||
?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><b style="color:Black"><?= $key['KODE_CN']; ?></b><br><i>(<?= $key['CIPTA_CN']; ?>)</i></td>
|
||||
<td><b style="color:DarkGreen">[<?= $key['NAMA_MERK']; ?>]</b><br><?= $key['NAMA_SUPPLIER'] ?><br><i>(<?= $key['NAMA_KOTA'] ?>)</i></td>
|
||||
<td><b style="color:Chocolate"><?=$key['NAMA_CN'];?></b><br><u><b style="color:Blue">[<?= $key['NILAI']; ?>]</b></u></td>
|
||||
<?php if ($hak>1) { ?>
|
||||
<td class="actions center">
|
||||
<span data-toggle="modal" data-target="#modalKunciVoucher"><button type="button" onclick="voucherData('<?=$key['ID_CN']?>')" class="btn btn-xs btn-primary" title="" data-toggle="tooltip" data-trigger="hover" data-original-title="Tombol untuk Kunci Data"><i class="fa fa-lock"></i></button></span>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-accordion">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title">
|
||||
<a onclick="setToggle(4)" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseFour">
|
||||
<b class="f18" style="color:Green"><b style="color:Black">[4]</b> CN SELESAI | <b style="color:DarkRed">3 BULAN KEBELAKANG</b> | <b style="color:DarkRed"><?=$countSelesai?> DATA</b></b>
|
||||
</a>
|
||||
</h2>
|
||||
</header>
|
||||
<div id="collapseFour" class="accordion-body collapse <?php if ($posisiToggle==4) { ?>in<?php } ?>">
|
||||
<div class="toggle-content">
|
||||
<div class="panel-body">
|
||||
<table class="table table-bordered table-striped mb-none" id="table4">
|
||||
<thead>
|
||||
<th class="center default">No</th>
|
||||
<th class="default">Kode</th>
|
||||
<th class="default">Pemberi</th>
|
||||
<th class="default">Jenis CN</th>
|
||||
<th class="default">Kode Bukti</th>
|
||||
<th class="center default">PILIHAN</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (is_array($cnSelesai) || is_object($cnSelesai)) {
|
||||
$no = 1;
|
||||
foreach ($cnSelesai as $key) {
|
||||
if ($key['JENIS_CN']==1) {
|
||||
$jenis = "SO PENJUALAN";
|
||||
} else if ($key['JENIS_CN']==2) {
|
||||
$jenis = "POTONG PEMBELIAN";
|
||||
} else if ($key['JENIS_CN']==3) {
|
||||
$jenis = "VOUCHER";
|
||||
} else if ($key['JENIS_CN']==9) {
|
||||
$jenis = "DATA LAMA";
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td class="center"><?= $no; ?></td>
|
||||
<td><b style="color:Black"><?= $key['KODE_CN']; ?></b><br><i>(<?= $key['SELESAI_CN']; ?>)</i></td>
|
||||
<td><b style="color:DarkGreen">[<?= $key['NAMA_MERK']; ?>]</b><br><?= $key['NAMA_SUPPLIER'] ?><br><i>(<?= $key['NAMA_KOTA'] ?>)</i></td>
|
||||
<td><b style="color:Chocolate"><?=$jenis?></b><br><u><b style="color:Blue">[<?= $key['NILAI']; ?>]</b></u><br><b style="color:Tomato"><?= $key['NAMA_CN']; ?></b></td>
|
||||
<td><b style="color:DarkOrchid"><?= $key['KOBUK']; ?></b><br><b style="color:SlateBlue"><?= $key['NIBUK']; ?></b></td>
|
||||
<?php if ($hak>1) { ?>
|
||||
<td class="actions center">
|
||||
<span data-toggle="modal" data-target="#modalRevisi"><button type="button" onclick="revisiData('<?=$key['ID_CN']?>')" class="btn btn-xs btn-danger" title="" data-toggle="tooltip" data-trigger="hover" data-original-title="Tombol untuk Revisi Data"><i class="fa fa-rotate-left"></i></button></span>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $no++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end: page -->
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div id="modalFitur" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-lg" style="width:50%">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><b>Fitur Teknis</b></h4>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<div class="form-group">
|
||||
<h5>
|
||||
<b style="color:DarkRed">Berikut ini adalah Daftar Menu yang dapat diakses sesuai dengan Hak Akses Anda.</b><br>
|
||||
<br><b style="color:DarkGreen">AKSES PENUH/OPERATOR</b><br><b> Bisa akses semua Menu dan Data</b><br>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="modalKunciSemua">
|
||||
<?= form_open('Menu/SP_KunciBulk_Sub1_E1_DataCreditNote', array('id' => 'formsalesproduk'), array('method' => 'SP_KunciBulk_Sub1_E1_DataCreditNote')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><b>Kunci Semua SO </b><b class="text-danger">[Warna Merah harus diisi]</b></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-2"><b class="text-danger">Credit Note</b></div>
|
||||
<div class="col-md-10">
|
||||
<div class="btn-group">
|
||||
<select class="form-control" id="id_cnbulk" name="id_cnbulk[]" multiple="multiple" data-plugin-multiselect data-plugin-options='{ "enableCaseInsensitiveFiltering": true }' data-multiselect-toggle-all="true" required>
|
||||
<?php if (is_array($cnSo) || is_object($cnSo)) {
|
||||
foreach ($cnSo as $key) { ?>
|
||||
<?php if ($key['LINK']==0) { ?>
|
||||
<option value="<?= $key['ID_CN'] ?>" ><?= $key['NAMA_CN'] ?> [<?= $key['NILAI'] ?>]</option>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
<button id="cnbulk-toggle" class="btn btn-primary"><b>Pilih Semua</b></button>
|
||||
</div>
|
||||
<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-primary"><b>Kunci</b> <i class="fa fa-lock"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<div id="modalKunciSo" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('Menu/SP_Kunci_Sub1_E1_DataCreditNote', array('id' => 'formsalesproduk'), array('method' => 'SP_Kunci_Sub1_E1_DataCreditNote')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><b>Kunci Data</b></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id_cn" id="id_cnlock" class="form-control">
|
||||
<input type="hidden" name="jenis_cn" value="1" class="form-control">
|
||||
<h4>Apakah ingin mengunci 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"><b>Kunci</b> <i class="fa fa-lock"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="modalKunciPembelian" class="modal fade" tabindex="-1" role="dialog">
|
||||
<?= form_open('Menu/SP_Kunci_Sub1_E1_DataCreditNote', array('id' => 'formsalesproduk'), array('method' => 'SP_Kunci_Sub1_E1_DataCreditNote')); ?>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h4 class="panel-title"><b>Kunci Data </b><b class="text-danger">[Warna Merah harus diisi]</b></h4>
|
||||
</header>
|
||||
<div class="modal-body ">
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_cn" id="id_cnln" class="form-control">
|
||||
<input type="hidden" name="jenis_cn" value="2" class="form-control">
|
||||
<div class="col-md-2"><b class="text-danger">Kode Pembelian</b></div>
|
||||
<div class="col-md-10">
|
||||
<select data-plugin-selectTwo name="id_pembelian" id="id_pembelianln" class="form-control populate" required></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-primary"><b>Kunci</b> <i class="fa fa-lock"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="modalKunciVoucher" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('Menu/SP_Kunci_Sub1_E1_DataCreditNote', array('id' => 'formsalesproduk'), array('method' => 'SP_Kunci_Sub1_E1_DataCreditNote')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><b>Kunci Data</b></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id_cn" id="id_cnvoucher" class="form-control">
|
||||
<input type="hidden" name="jenis_cn" value="3" class="form-control">
|
||||
<h4><u style="color:Red">Pastikan Voucher sudah diterima dan Senilai dengan CN.</u><br><br>Apakah ingin mengunci 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"><b>Kunci</b> <i class="fa fa-lock"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="modalRevisi" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<?= form_open('Menu/SP_Revisi_Sub1_E1_DataCreditNote', array('id' => 'formsalesproduk'), array('method' => 'SP_Revisi_Sub1_E1_DataCreditNote')); ?>
|
||||
<div class="modal-content">
|
||||
<header class="panel-heading">
|
||||
<h2 class="panel-title"><b>Revisi Data</b></h2>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-text">
|
||||
<input type="hidden" name="id_cnrev" id="id_cnrev" 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-danger"><b>Revisi</b> <i class="fa fa-rotate-left"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$this->load->view('template/sidebar_right');
|
||||
$this->load->view('template/script_vendor');
|
||||
$this->load->view('template/script_flashdata');
|
||||
$this->load->view('template/notification');
|
||||
?>
|
||||
|
||||
<script>
|
||||
$('#table1').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
$('#table2').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
$('#table3').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
$('#table4').dataTable( {
|
||||
"paging": false
|
||||
} );
|
||||
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
$('#cnbulk-toggle').css('font-weight', '700');
|
||||
$("#cnbulk-toggle").click(function(e) {
|
||||
e.preventDefault();
|
||||
multiselect_toggle($("#id_cnbulk"), $(this));
|
||||
});
|
||||
|
||||
function setToggle(node) {
|
||||
$.ajax({
|
||||
url: "<?= base_url() ?>index.php/Menu/GE_Ubah_SetTogglePosisi",
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
data: {
|
||||
node : node,
|
||||
menu : <?=$id_menu?>,
|
||||
},
|
||||
success: function(response) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function kunciData(id_cn) {
|
||||
document.getElementById("id_cnlock").value = id_cn;
|
||||
}
|
||||
|
||||
function linkData(id_cn) {
|
||||
document.getElementById("id_cnln").value = id_cn;
|
||||
document.getElementById("id_pembelianln").value = null;
|
||||
document.getElementById("id_pembelianln").innerHTML = "";
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
data: {
|
||||
id_cn : id_cn,
|
||||
},
|
||||
url: '<?= base_url('') ?>index.php/Menu/SP_Ambil_Sub1_DataCreditNote',
|
||||
dataType: 'json',
|
||||
success: function(response) {
|
||||
var listData = response.data;
|
||||
var isiMaster = document.getElementById('id_pembelianln');
|
||||
isiMaster.innerHTML = isiMaster.innerHTML + '<option value="" selected>Pilih Kode Pembelian</option>';
|
||||
for (var i = 0; i < listData.length; i++) {
|
||||
isiMaster.innerHTML = isiMaster.innerHTML + '<option value="' + listData[i]['ID_PEMBELIAN'] + '">' + listData[i]['KODE_PEMBELIAN'] + ' | (' + listData[i]['TANGGAL'] + ') | ' + listData[i]['POTONGAN'] + '</option>';
|
||||
}
|
||||
$('#id_pembelianln').val(null).trigger('change');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function voucherData(id_cn) {
|
||||
document.getElementById("id_cnvoucher").value = id_cn;
|
||||
}
|
||||
|
||||
function revisiData(id_cn) {
|
||||
document.getElementById("id_cnrev").value = id_cn;
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user