IGR design
This commit is contained in:
parent
ae54fbd45e
commit
584f93b0a6
@ -1,144 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="content-wrapper">
|
|
||||||
<!-- Content Header (Page header) -->
|
|
||||||
<section class="content-header">
|
|
||||||
<h1>
|
|
||||||
Add Purchase order Line Item
|
|
||||||
</h1>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="content">
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<!-- left column -->
|
|
||||||
<div class="col-md-6">
|
|
||||||
<!-- general form elements -->
|
|
||||||
<div class="box box-success">
|
|
||||||
<div class="box-header">
|
|
||||||
<h3 class="box-title">Enter PO Line Item</h3>
|
|
||||||
</div><!-- /.box-header -->
|
|
||||||
<!-- form start -->
|
|
||||||
|
|
||||||
<form role="form" action="<?php echo base_url() ?>purchaseorder/addNewPOLineItem" method="post" id="AddPOLineItem" role="form">
|
|
||||||
<div class="box-body">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="ProductDescription">Product Description</label>
|
|
||||||
<select class="form-control" name="ProductDescription" required>
|
|
||||||
<option value="null">Select Product Description</option>
|
|
||||||
<?php
|
|
||||||
if(!empty($RawMaterials))
|
|
||||||
{
|
|
||||||
foreach ($RawMaterials as $RID)
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $RID->MaterialCode ?>"><?php echo $RID->MaterialCode ?> - <?php echo $RID->MaterialName ?></option>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="UOM">UOM</label>
|
|
||||||
<select class="form-control required" id="UOM" name="UOM">
|
|
||||||
<option value="null">Select UOM</option>
|
|
||||||
<?php
|
|
||||||
if(!empty($UOM))
|
|
||||||
{
|
|
||||||
foreach ($UOM as $UID)
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $UID->ConfigValue ?>"><?php echo $UID->ConfigValue ?></option>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="Quantity">Quantity</label>
|
|
||||||
<input type="text" class="form-control required digits" id="Quantity" name="Quantity" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="UnitPrice">Unit Price</label>
|
|
||||||
<input type="text" class="form-control required digits" id="UnitPrice" name="UnitPrice" onchange="change()" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="ProductPrice">Product Price</label>
|
|
||||||
<input type="text" class="form-control required digits" id="ProductPrice" name="ProductPrice" disabled >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="box-footer">
|
|
||||||
<input type="submit" class="btn btn-success" value="Submit" />
|
|
||||||
<input type="reset" class="btn btn-default" value="Reset" />
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-4">
|
|
||||||
<?php
|
|
||||||
helper('form');
|
|
||||||
$error = session()->getFlashdata('error');
|
|
||||||
if($error)
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<div class="alert alert-danger alert-dismissable">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
||||||
<?php echo session()->getFlashdata('error'); ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<?php
|
|
||||||
$success = session()->getFlashdata('success');
|
|
||||||
if($success)
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<div class="alert alert-success alert-dismissable">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
||||||
<?php echo session()->getFlashdata('success'); ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
<?php // \Config\Services::validation()->listErrors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?> </div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
<script>
|
|
||||||
function change(){
|
|
||||||
|
|
||||||
var txtQuantity = document.getElementById('Quantity').value;
|
|
||||||
var txtUnitPrice = document.getElementById('UnitPrice').value;
|
|
||||||
var Tot = txtQuantity * txtUnitPrice
|
|
||||||
document.getElementById('ProductPrice').value = Tot;
|
|
||||||
// Do Something
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<script src="<?php echo base_url(); ?>public/assets/js/editUser.js" type="text/javascript"></script>
|
|
||||||
1183
app/Views/addPO.php
1183
app/Views/addPO.php
File diff suppressed because it is too large
Load Diff
@ -72,7 +72,6 @@ if (!empty($ReqPOType)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<!-- end page title -->
|
<!-- end page title -->
|
||||||
<!-- Form row -->
|
<!-- Form row -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -126,7 +125,7 @@ if (!empty($ReqPOType)) {
|
|||||||
$Costs[$SID->CostCenterCode] = $SID->CostCenterCode . '-' . $SID->CostCenterName;
|
$Costs[$SID->CostCenterCode] = $SID->CostCenterCode . '-' . $SID->CostCenterName;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('CostCenter', $Costs, set_value('CostCenter'), 'id="CostCenter" class = "form-control"');
|
echo form_dropdown('CostCenter', $Costs, set_value('CostCenter'), 'id="CostCenter" class = "form-control searchabledropdown"');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -284,7 +283,7 @@ if (!empty($ReqPOType)) {
|
|||||||
$options[$MID->MaterialCode] = $MID->MaterialCode . ' ' . ' - ' . ' ' . $MID->MaterialName;
|
$options[$MID->MaterialCode] = $MID->MaterialCode . ' ' . ' - ' . ' ' . $MID->MaterialName;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('drpMaterial', $options, set_value('drpMaterial'), 'id="drpMaterial" class="form-control"');
|
echo form_dropdown('drpMaterial', $options, set_value('drpMaterial'), 'id="drpMaterial" class="form-control searchabledropdown"');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -358,7 +357,7 @@ if (!empty($ReqPOType)) {
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="EditMaterialCode" class="control-label">Material Code</label>
|
<label for="EditMaterialCode" class="control-label">Material Code</label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'EditMaterialCode', 'value' => set_value('EditMaterialCode'), 'id' => 'EditMaterialCode', 'class' => 'form-control', 'readonly' => 'true');
|
$data = array('name' => 'EditMaterialCode', 'value' => set_value('EditMaterialCode'), 'id' => 'EditMaterialCode', 'class' => 'form-control searchabledropdown', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -426,10 +425,7 @@ if (!empty($ReqPOType)) {
|
|||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
$(".searchabledropdown").select2();
|
||||||
$("#CostCenter").select2();
|
|
||||||
$("#drpMaterial").select2();
|
|
||||||
$("#EditMaterialCode").select2();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function isNumberKey(evt) {
|
function isNumberKey(evt) {
|
||||||
@ -471,9 +467,6 @@ if (!empty($ReqPOType)) {
|
|||||||
$('#EditotherDescription').hide();
|
$('#EditotherDescription').hide();
|
||||||
|
|
||||||
|
|
||||||
//Initialize Select2 Elements
|
|
||||||
$(".select2").select2();
|
|
||||||
|
|
||||||
var id = '<?php echo $CostCenterCode ?>';
|
var id = '<?php echo $CostCenterCode ?>';
|
||||||
var ReqType = '<?php echo $strReqPOType ?>';
|
var ReqType = '<?php echo $strReqPOType ?>';
|
||||||
|
|
||||||
@ -482,7 +475,10 @@ if (!empty($ReqPOType)) {
|
|||||||
urlval = "<?php echo base_url() ?>serviceAvilBudgetAmount";
|
urlval = "<?php echo base_url() ?>serviceAvilBudgetAmount";
|
||||||
$('#content').loader('show');
|
$('#content').loader('show');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data: {id: id,type: ReqType},
|
data: {
|
||||||
|
id: id,
|
||||||
|
type: ReqType
|
||||||
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: urlval,
|
url: urlval,
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
@ -572,7 +568,9 @@ if (!empty($ReqPOType)) {
|
|||||||
$('#content').loader('show');
|
$('#content').loader('show');
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data: {id: id},
|
data: {
|
||||||
|
id: id
|
||||||
|
},
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url(); ?>getMaterialDetails",
|
url: "<?php echo base_url(); ?>getMaterialDetails",
|
||||||
@ -760,7 +758,9 @@ if (!empty($ReqPOType)) {
|
|||||||
$('#txtDeletedRow').val(DelRows);
|
$('#txtDeletedRow').val(DelRows);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data: {id: id},
|
data: {
|
||||||
|
id: id
|
||||||
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>DeleteRequistionForm",
|
url: "<?php echo base_url() ?>DeleteRequistionForm",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
|
|||||||
@ -1,16 +1,10 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/3.3.4/jquery.inputmask.bundle.min.js"></script>
|
<link href="<?= base_url() . "public/new_assets/libs/bootstrap-datepicker/css/bootstrap-datepicker.min.css" ?>" rel="stylesheet" type="text/css" />
|
||||||
<script src="<?php echo base_url() ?>public/assets/lightswitch/lightswitch/lib/jquery.tabletojson.js"></script>
|
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/Autocomplete/jquery.autocomplete.js"></script>
|
||||||
<script src="<?php echo base_url() ?>public/assets/lightswitch/lightswitch/lib/jquery.tabletojson.min.js"></script>
|
|
||||||
<style>
|
|
||||||
#MaterialRcvdDate {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
#InvoiceDate {
|
<style>
|
||||||
|
#MaterialRcvdDate, #InvoiceDate {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
<style>
|
|
||||||
.autocomplete-suggestion {
|
.autocomplete-suggestion {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: skyblue;
|
background-color: skyblue;
|
||||||
@ -18,57 +12,54 @@
|
|||||||
outline: 1px solid slategrey;
|
outline: 1px solid slategrey;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/Autocomplete/jquery.autocomplete.js"></script>
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$("#PONO").select2();
|
// $('#DriverName').autocomplete({
|
||||||
$("#TransporterId").select2();
|
|
||||||
$('#DriverName').autocomplete({
|
|
||||||
|
|
||||||
onSearchStart: function(query) {
|
// onSearchStart: function(query) {
|
||||||
//alert(query);
|
// //alert(query);
|
||||||
$('#DriverName').autocomplete("option", "minLength", 0);
|
// $('#DriverName').autocomplete("option", "minLength", 0);
|
||||||
},
|
// },
|
||||||
|
|
||||||
serviceUrl: "<?php echo base_url(); ?>drivernameautocomplete",
|
// serviceUrl: "<?php echo base_url(); ?>drivernameautocomplete",
|
||||||
onSelect: function(suggestion) {
|
// onSelect: function(suggestion) {
|
||||||
var data = suggestion.DriverName;
|
// var data = suggestion.DriverName;
|
||||||
|
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
$('#DriverMobileNumber').autocomplete({
|
// $('#DriverMobileNumber').autocomplete({
|
||||||
serviceUrl: "<?php echo base_url(); ?>drivermobileautocomplete",
|
// serviceUrl: "<?php echo base_url(); ?>drivermobileautocomplete",
|
||||||
params: {
|
// params: {
|
||||||
driverName: function() {
|
// driverName: function() {
|
||||||
return $('#DriverName').val(); // Pass the value of the DriverName input field
|
// return $('#DriverName').val(); // Pass the value of the DriverName input field
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
onSearchStart: function(query) {
|
// onSearchStart: function(query) {
|
||||||
$('#DriverMobileNumber').autocomplete("option", "minLength", 0);
|
// $('#DriverMobileNumber').autocomplete("option", "minLength", 0);
|
||||||
},
|
// },
|
||||||
onSelect: function(suggestion) {
|
// onSelect: function(suggestion) {
|
||||||
var data = suggestion.DriverMobileNumber;
|
// var data = suggestion.DriverMobileNumber;
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$("#InvoiceDate").datepicker({
|
// $("#InvoiceDate").datepicker({
|
||||||
maxDate: 'now',
|
// maxDate: 'now',
|
||||||
dateFormat: 'dd-mm-yy',
|
// dateFormat: 'dd-mm-yy',
|
||||||
changeMonth: true,
|
// changeMonth: true,
|
||||||
changeYear: true,
|
// changeYear: true,
|
||||||
yearRange: '-100:+0'
|
// yearRange: '-100:+0'
|
||||||
});
|
// });
|
||||||
$("#MaterialRcvdDate").datepicker({
|
// $("#MaterialRcvdDate").datepicker({
|
||||||
maxDate: 'now',
|
// maxDate: 'now',
|
||||||
dateFormat: 'dd-mm-yy',
|
// dateFormat: 'dd-mm-yy',
|
||||||
changeMonth: true,
|
// changeMonth: true,
|
||||||
changeYear: true,
|
// changeYear: true,
|
||||||
yearRange: '-100:+0'
|
// yearRange: '-100:+0'
|
||||||
}).datepicker("setDate", new Date());
|
// }).datepicker("setDate", new Date());
|
||||||
|
|
||||||
});
|
});
|
||||||
//jquery for vechicle masking
|
//jquery for vechicle masking
|
||||||
@ -76,63 +67,35 @@
|
|||||||
// Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
|
// Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
|
||||||
// });
|
// });
|
||||||
</script>
|
</script>
|
||||||
|
<div class="content-page">
|
||||||
<style>
|
<div class="content">
|
||||||
.modal {
|
<!-- Start Content-->
|
||||||
text-align: center;
|
<div class="container-fluid">
|
||||||
padding: 0 !important;
|
<!-- start page title -->
|
||||||
}
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
.modal:before {
|
<div class="page-title-box page-title-box-alt">
|
||||||
content: '';
|
<h4><?= "Inward Gate Register"; ?></h4>
|
||||||
display: inline-block;
|
|
||||||
height: 100%;
|
|
||||||
vertical-align: middle;
|
|
||||||
margin-right: -4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-dialog {
|
|
||||||
display: inline-block;
|
|
||||||
text-align: left;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2 {
|
|
||||||
width: 100% ! important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.num {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dataTables_wrapper {
|
|
||||||
padding-bottom: 0px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<div class="content-wrapper" style="min-height:537px;">
|
|
||||||
|
|
||||||
<section class="content-header">
|
|
||||||
<h5>
|
|
||||||
<div class="pull-right hidden-xs">
|
<div class="pull-right hidden-xs">
|
||||||
<b>
|
<b>
|
||||||
<div id="wizard_clock"></div>
|
<div id="wizard_clock"></div>
|
||||||
</b>
|
</b>
|
||||||
</div>
|
</div>
|
||||||
</h5>
|
</div>
|
||||||
<h1>
|
</div>
|
||||||
<center> Inward Gate Register </center>
|
</div>
|
||||||
</h1>
|
<!-- end page title -->
|
||||||
</section>
|
<!-- Form row -->
|
||||||
<section class="content" style="margin: 15px;"><br />
|
<div class="row">
|
||||||
<div style="border:2px solid #333;">
|
<div class="col-12">
|
||||||
<form action="<?php echo base_url() ?>SaveIGR" method="post" enctype="multipart/form-data">
|
<div class="card">
|
||||||
<div class="row"><br /><br />
|
<div class="card-body">
|
||||||
<div id="content"> </div>
|
<form id="IGRForm" action="<?php echo base_url() ?>SaveIGR" method="post" enctype="multipart/form-data">
|
||||||
<div class="col-md-12">
|
|
||||||
<div class="col-md-6">
|
<div class="form-row">
|
||||||
<div style="display: flex; justify-content: space-between; align-items: center;">
|
<div class="form-group col-md-6">
|
||||||
<label>Select Purchase Order No <span style="color:red; font-size: 15px;">*</span></label>
|
<div class="d-flex justify-content-between align-items-center">
|
||||||
|
<label class="col-form-label">Select Purchase Order No <span class="text-danger">*</span></label>
|
||||||
<a id="printLink" data-toggle="tooltip" href="" target="new" style="text-align: right;">
|
<a id="printLink" data-toggle="tooltip" href="" target="new" style="text-align: right;">
|
||||||
<i class="fa fa-print" data-toggle="tooltip" title="Click here to Print the Purchase Order details"></i>
|
<i class="fa fa-print" data-toggle="tooltip" title="Click here to Print the Purchase Order details"></i>
|
||||||
</a>
|
</a>
|
||||||
@ -146,55 +109,79 @@
|
|||||||
$PONO = $SI->PONO;
|
$PONO = $SI->PONO;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('PONO', $options, set_value('PONO'), 'id="PONO"', 'class="form-control select2"', 'required="true"');
|
echo form_dropdown(
|
||||||
|
'PONO',
|
||||||
|
$options,
|
||||||
|
set_value('PONO'),
|
||||||
|
'class="form-control searchabledropdown" id="PONO" data-toggle="select2" required="true"'
|
||||||
|
);
|
||||||
?>
|
?>
|
||||||
<span class="help-block"></span>
|
<span class="help-block"></span>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" name="hiddenIsOpenOrder" id="hiddenIsOpenOrder" />
|
<div class="form-group col-md-6">
|
||||||
<div class="col-md-6">
|
<label class="col-form-label">Supplier Name</label>
|
||||||
<label>Supplier Name </label>
|
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'SupplierName', 'value' => set_value('SupplierName'), 'id' => 'Sup', 'class' => 'form-control', 'readonly' => 'true');
|
$data = array('name' => 'SupplierName', 'value' => set_value('SupplierName'), 'id' => 'Sup', 'class' => 'form-control', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="form-row">
|
||||||
<div class="col-md-12" style="margin: 10px 0;">
|
<div class="form-group col-md-4">
|
||||||
<div class="col-md-4">
|
<label class="col-form-label">Invoice Number<span class="text-danger">*</span></label>
|
||||||
<label>Invoice Number <span style="color:red; font-size: 15px;">*</span><!-- Delivery Challan/Inv No --></label>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'InvoiceNo', 'value' => set_value('InvoiceNo'), 'id' => 'InvoiceNo', 'class' => 'form-control', 'required=>"true"', 'autocomplete' => 'off'); // ,'onkeypress'=>'return isNumberKey(event);' );
|
$data = array('name' => 'InvoiceNo', 'value' => set_value('InvoiceNo'), 'id' => 'InvoiceNo', 'class' => 'form-control', 'required=>"true"', 'autocomplete' => 'off'); // ,'onkeypress'=>'return isNumberKey(event);' );
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label>Invoice Date <span style="color:red; font-size: 15px;">*</span><!-- Delivery Challan/Inv Date --></label>
|
<label class="col-form-label">Invoice Date<span class="text-danger">*</span></label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="text" class="form-control" data-provide="datepicker" data-date-format="dd/mm/yyyy" data-date-autoclose="true" id="InvoiceDate" name="InvoiceDate" data-date-end-date="<?= date('d/m/Y'); ?>" required autocomplete="off">
|
||||||
|
<div class="input-group-append">
|
||||||
|
<span class="input-group-text">
|
||||||
|
<i class="ri-calendar-event-fill"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div><!-- input-group -->
|
||||||
|
|
||||||
|
<!-- <input type="date" class="form-control" id="invoiceDate" name="invoice_date" value="<?= isset($invoice_details['invoice_date']) ? $invoice_details['invoice_date'] : '' ?>" max="<?= date('d/m/Y'); ?>" required> -->
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'InvoiceDate', 'value' => set_value('InvoiceDate'), 'id' => 'InvoiceDate', 'class' => 'form-control num', 'required' => 'true', 'autocomplete'=>'off');
|
// $data = array('name' => 'InvoiceDate', 'value' => set_value('InvoiceDate'), 'id' => 'InvoiceDate', 'class' => 'form-control num', 'required' => 'true', 'autocomplete' => 'off');
|
||||||
echo form_input($data);
|
// echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
|
||||||
<label>Material Received Date <span style="color:red; font-size: 15px;">*</span></label>
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="form-group col-md-4">
|
||||||
|
<label class="col-form-label">Material Received Date<span class="text-danger">*</span></label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="text" class="form-control" data-provide="datepicker" data-date-format="dd/mm/yyyy" data-date-autoclose="true" id="MaterialRcvdDate" name="MaterialRcvdDate" data-date-end-date="<?= date('d/m/Y'); ?>" required autocomplete="off">
|
||||||
|
<div class="input-group-append">
|
||||||
|
<span class="input-group-text">
|
||||||
|
<i class="ri-calendar-event-fill"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'MaterialRcvdDate', 'value' => set_value('MaterialRcvdDate'), 'id' => 'MaterialRcvdDate', 'class' => 'form-control num', 'required' => 'true', 'autocomplete'=>'off');
|
// $data = array('name' => 'MaterialRcvdDate', 'value' => set_value('MaterialRcvdDate'), 'id' => 'MaterialRcvdDate', 'class' => 'form-control num', 'required' => 'true', 'autocomplete' => 'off');
|
||||||
echo form_input($data);
|
// echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12" style="margin: 10px 0;">
|
<div class="form-row">
|
||||||
<div class="col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Vechicle Number</label>
|
|
||||||
|
<label class="col-form-label">Vechicle Number</label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'VehicleNo', 'value' => set_value('VehicleNo'), 'id' => 'VehicleNo', 'class' => 'form-control', 'maxlength' => '20', 'autocomplete' => 'off');
|
$data = array('name' => 'VehicleNo', 'value' => set_value('VehicleNo'), 'id' => 'VehicleNo', 'class' => 'form-control', 'maxlength' => '20', 'autocomplete' => 'off');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
<!-- <span pattern="" required="true"></span> -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Transporter Name</label>
|
<label class="col-form-label">Transporter Name</label>
|
||||||
<?php
|
<?php
|
||||||
$option = array(0 => 'Transporter Name');
|
$option = array(0 => 'Transporter Name');
|
||||||
if (!empty($transporter)) {
|
if (!empty($transporter)) {
|
||||||
@ -202,35 +189,29 @@
|
|||||||
$option[$opt->id] = $opt->name;
|
$option[$opt->id] = $opt->name;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('TransporterId', $option, set_value('TransporterId'), 'id="TransporterId"', 'class="form-control select2"');
|
echo form_dropdown('TransporterId', $option, set_value('TransporterId'), 'class="form-control searchabledropdown" id="TransporterId" data-toggle="select2"');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Driver Name</label>
|
<label class="col-form-label">Driver Name</label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'DriverName', 'value' => set_value('DriverName'), 'id' => 'DriverName', 'class' => 'form-control', 'maxlength' => '50', 'autocomplete' => 'off');
|
$data = array('name' => 'DriverName', 'value' => set_value('DriverName'), 'id' => 'DriverName', 'class' => 'form-control', 'maxlength' => '50', 'autocomplete' => 'off');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Driver Mobile Number</label>
|
<label class="col-form-label">Driver Mobile Number</label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'DriverMobileNumber', 'value' => set_value('DriverMobileNumber'), 'id' => 'DriverMobileNumber', 'class' => 'form-control', 'maxlength' => '50', 'autocomplete' => 'off');
|
$data = array('name' => 'DriverMobileNumber', 'value' => set_value('DriverMobileNumber'), 'id' => 'DriverMobileNumber', 'class' => 'form-control', 'maxlength' => '50', 'autocomplete' => 'off');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="form-row">
|
||||||
|
<div class="table-responsive">
|
||||||
<div class="col-md-12" style="margin-top: 10px;">
|
<table id="Inwardgateregistertable" class="table table-striped table-hover mb-0 editabletable IGR_Line" style="font-size:12px;">
|
||||||
<input type="hidden" name="hideIGRStatus" id="hideIGRStatus" value="0" />
|
<thead>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
|
|
||||||
<table id="Inwardgateregistertable" class="table table-bordered table-hover editabletable IGR_Line" style="background-color:#fff;font-size:12px;">
|
|
||||||
<thead style="background-color:#ddf">
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>Item Code</th>
|
<th>Item Code</th>
|
||||||
@ -245,110 +226,59 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="IGRappend"></tbody>
|
<tbody id="IGRappend"></tbody>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
<input type="hidden" name="txtRowCount" id="txtRowCount" />
|
</div> <!-- end table-responsive-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-4 col-md-offset-8">
|
|
||||||
<input type="file" name="MasterFile" id="images1" onchange="Copyfilenames(this.name); "><br>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-row text-right">
|
||||||
|
<div class="form-group col-md-12">
|
||||||
|
<input type="file" name="MasterFile" id="MasterFile" onchange="filenames(this.name); "><br>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="files">
|
<div class="files">
|
||||||
<div class="col-md-4 col-md-offset-8" style="padding-bottom: 15px;">
|
<div class="form-row float-right">
|
||||||
<button type="button" class="btn btn-primary btn-sm a1"
|
<div class="form-group">
|
||||||
onclick="appendFilesFileds()" id="day">
|
<button type="button" class="btn btn-primary waves-effect btn-sm a1"
|
||||||
|
onclick="appendFilesFileds()" id="additionalfilebtn">
|
||||||
Add Additional File
|
Add Additional File
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if(!empty($emp_data)){ foreach ($emp_data as $key => $value) { ?>
|
|
||||||
|
|
||||||
<div class="col-md-12 pad ">
|
|
||||||
<div class="col-md-4">
|
|
||||||
<span>File Name</span>
|
|
||||||
<input type="text" maxlength="255" class="form-control"
|
|
||||||
value="<?php echo $value['file_name']; ?>" readonly>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1" style="margin-top: 25px;">
|
<span id="filesContainer"></span>
|
||||||
<a href="<?php echo base_url() . 'public/uploads/images/emp_files/' . $value['emp_file']; ?>"
|
|
||||||
download>
|
|
||||||
<i class="fa fa-download" aria-hidden="true"
|
|
||||||
style="font-size: 25px;"></i>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-5" style="margin-top: 23px;">
|
|
||||||
<button type="button" class="btn btn-danger btn-sm"
|
|
||||||
id="<?= $value['id']; ?>"
|
|
||||||
onclick="removeContact(this)">Delete</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php }} ?>
|
|
||||||
|
|
||||||
<div id="filesContainer"></div>
|
|
||||||
</div><br>
|
</div><br>
|
||||||
<div class="col-md-4 col-md-offset-8">
|
|
||||||
<button class="btn btn-success" id='IGRLink' type="submit" name='IGRLink' onclick="filecheck(1);">Generate IGR</button>
|
|
||||||
<button class="btn btn-success" id='IGRDraftLink' type="submit" name='IGRDraftLink' onclick="filecheck(0);">Save as Draft IGR</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
<!-- form closed-->
|
|
||||||
|
|
||||||
<div class="modal fade" id="generateIGR" role="dialog">
|
|
||||||
<div class="modal-dialog modal_style">
|
|
||||||
<!-- Modal content-->
|
|
||||||
<form>
|
|
||||||
|
|
||||||
|
<div class="form-row">
|
||||||
|
<div class="form-group col-md-12"><br>
|
||||||
|
<input type="hidden" name="hiddenIsOpenOrder" id="hiddenIsOpenOrder" />
|
||||||
|
<input type="hidden" name="txtRowCount" id="txtRowCount" />
|
||||||
|
<input type="hidden" name="hideIGRStatus" id="hideIGRStatus" value="0" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-row float-right">
|
||||||
|
<div class="form-group">
|
||||||
|
<button class="btn btn-primary waves-effect" id="IGRLink" type="button">Generate IGR</button>
|
||||||
|
<button class="btn btn-primary waves-effect" id="IGRDraftLink" type="button">Save as Draft IGR</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form> <!-- end form -->
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
|
</div>
|
||||||
|
<div id="weight-calc-modal" class="modal fade" tabindex="-1" role="dialog"
|
||||||
|
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||||
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
|
||||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
||||||
<center>
|
|
||||||
<h4>Inward Gate Register Number</h4>
|
|
||||||
</center>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-12"> <br />
|
|
||||||
|
|
||||||
<center><label style="font-size:40px;" id="finaligr">Default</label> </center>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<center>
|
|
||||||
<button type="reset" value="Reset" onClick="window.location.reload()"> OK</button>
|
|
||||||
</center>
|
|
||||||
</div><!-- footer div closed -->
|
|
||||||
</div><!-- modal content div closed-->
|
|
||||||
</form><!-- form closed-->
|
|
||||||
</div><!-- modal content closed-->
|
|
||||||
</div><!-- modal fade closed-->
|
|
||||||
<!-- generateIGR modal ended-->
|
|
||||||
|
|
||||||
<div class="modal fade" id="WeightCalculator" role="dialog">
|
|
||||||
<div class="modal-dialog modal_style">
|
|
||||||
<!-- Modal content-->
|
|
||||||
<div class="modal-content">
|
|
||||||
|
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
<h4 class="modal-title">Weight Calculator<span id="WeightTitle"></span></h4>
|
||||||
<center>
|
<button type="button" class="close" data-dismiss="modal"
|
||||||
<h4>Weight Calculator<span id="WeightTitle"></span></h4>
|
aria-hidden="true">×</button>
|
||||||
</center>
|
</div>
|
||||||
<div class="pull-right hidden-xs">
|
<div class="modal-body p-4">
|
||||||
<b>
|
|
||||||
<div id="clock"></div>
|
<div id="clock"></div>
|
||||||
</b>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-12"> <br />
|
|
||||||
|
|
||||||
<!-- <center><label style="font-size:40px;">Default</label> </center> -->
|
|
||||||
<!-- <div class="container"> -->
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label for="GrossWeight" class="col-md-2 col-form-label">Gross Weight</label>
|
<label for="GrossWeight" class="col-md-2 col-form-label">Gross Weight</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
@ -392,39 +322,60 @@
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input type="file" name="WeightFile" id="WeightFile" onchange="Copyfilenames(this.name); "><br>
|
<input type="file" name="WeightFile" id="WeightFile" onchange="filenames(this.name); "><br>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- </div> -->
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<div class="col-md-12 text-right">
|
<button type="button" class="btn btn-secondary waves-effect"
|
||||||
<div class="col-md-4 col-md-offset-8">
|
data-dismiss="modal" value="Cancel">Cancel</button>
|
||||||
<a class="btn btn-cancel" data-dismiss="modal" value="Close">Close</a>
|
<button type="button"
|
||||||
<a class="btn btn-primary" onclick="modalSave()"> <span class="bold">Save</span></a>
|
class="btn btn-info waves-effect waves-light" onclick="modalSave()">Save</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- footer div closed -->
|
|
||||||
</div><!-- modal content div closed-->
|
|
||||||
</div><!-- modal content closed-->
|
|
||||||
</div><!-- modal fade closed-->
|
|
||||||
</div>
|
</div>
|
||||||
<!-- WeightCalculator modal ended-->
|
</div><!-- /.modal weight-calc-modal -->
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$(".searchabledropdown").select2();
|
||||||
|
|
||||||
|
$('#IGRLink').on('click', function() {
|
||||||
|
filecheck(1);
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#IGRDraftLink').on('click', function() {
|
||||||
|
filecheck(0);
|
||||||
|
});
|
||||||
|
|
||||||
|
function filecheck(status) {
|
||||||
|
$('#hideIGRStatus').val(status);
|
||||||
|
Save();
|
||||||
|
}
|
||||||
|
|
||||||
|
function Save() {
|
||||||
|
if (validate()) {
|
||||||
|
$('#IGRForm').submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<script>
|
||||||
|
function isNumberKey(evt) {
|
||||||
|
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
||||||
|
if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
function filenames(id) {
|
||||||
|
var size = $('input[name=' + id + ']')[0].files[0].size;
|
||||||
|
if (size > 2100000) {
|
||||||
|
alert('Sorry Your File is Large To 2MB');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function validate() {
|
function validate() {
|
||||||
var rowcount = $("#txtRowCount").val();
|
var rowcount = $("#txtRowCount").val();
|
||||||
var isOpenOrder = parseInt($("#hiddenIsOpenOrder").val(), 2);
|
var isOpenOrder = parseInt($("#hiddenIsOpenOrder").val(), 2);
|
||||||
@ -471,19 +422,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
|
||||||
$(function() {
|
|
||||||
$('#Inwardgateregistertable').DataTable({
|
|
||||||
"paging": false,
|
|
||||||
"lengthChange": false,
|
|
||||||
"searching": false,
|
|
||||||
"ordering": false,
|
|
||||||
"info": false,
|
|
||||||
"autoWidth": false
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// $(function() {
|
// $(function() {
|
||||||
function removeHidden() {
|
function removeHidden() {
|
||||||
@ -506,7 +444,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#PONO').change(function() {
|
$('#PONO1').change(function() {
|
||||||
removeHidden();
|
removeHidden();
|
||||||
$("#IGRappend").empty();
|
$("#IGRappend").empty();
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
@ -540,7 +478,9 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data: { id: id },
|
data: {
|
||||||
|
id: id
|
||||||
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>GetIGRLineItemDetails",
|
url: "<?php echo base_url() ?>GetIGRLineItemDetails",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
@ -564,7 +504,7 @@
|
|||||||
'<td name="PendingQuantity' + i + '" id="PendingQuantity' + i + '">' + ((isOpenOrder === 0 || isNaN(isOpenOrder)) ? item.PendingQty : 0) + '</td>' +
|
'<td name="PendingQuantity' + i + '" id="PendingQuantity' + i + '">' + ((isOpenOrder === 0 || isNaN(isOpenOrder)) ? item.PendingQty : 0) + '</td>' +
|
||||||
'<td data-name="sel" ><input type="text" onchange="validateReceivedQuantity(' + i + ')"id="QuantityAsPerInvoice' + i + '" name="QuantityAsPerInvoice' + i + '" value="" onkeypress="return isNumberKey(event);" autocomplete="off"></td>' +
|
'<td data-name="sel" ><input type="text" onchange="validateReceivedQuantity(' + i + ')"id="QuantityAsPerInvoice' + i + '" name="QuantityAsPerInvoice' + i + '" value="" onkeypress="return isNumberKey(event);" autocomplete="off"></td>' +
|
||||||
'<td><input type="text" id="Remark' + i + '" name="Remark' + i + '" class="form" onchange="SetRemarks(' + i + ')" autocomplete="off"> </td>' +
|
'<td><input type="text" id="Remark' + i + '" name="Remark' + i + '" class="form" onchange="SetRemarks(' + i + ')" autocomplete="off"> </td>' +
|
||||||
'<td><a target="_blank" data-toggle="modal" data-target="#WeightCalculator" title="Weight Calculator" data-index="' + i + '" data-material="' + item.MaterialName + '"><i class="fa fa-solid fa-truck" style="text-align: center;"></i></a> </td>' +
|
'<td><a target="_blank" data-toggle="modal" data-target="#weight-calc-modal" title="Weight Calculator" data-index="' + i + '" data-material="' + item.MaterialName + '"><i class="fa fa-solid fa-truck" style="text-align: center;"></i></a> </td>' +
|
||||||
'</tr>';
|
'</tr>';
|
||||||
$('#txtRowCount').val(i);
|
$('#txtRowCount').val(i);
|
||||||
|
|
||||||
@ -723,7 +663,8 @@
|
|||||||
$("#txtQuantityAsPerInvoice" + Rowid).val(InvoiceQty);
|
$("#txtQuantityAsPerInvoice" + Rowid).val(InvoiceQty);
|
||||||
// InvoiceQty
|
// InvoiceQty
|
||||||
return true;
|
return true;
|
||||||
}}else{
|
}
|
||||||
|
} else {
|
||||||
console.log(InvoiceQty + RecQty);
|
console.log(InvoiceQty + RecQty);
|
||||||
$('#PendingQuantity' + Rowid).text(0.00);
|
$('#PendingQuantity' + Rowid).text(0.00);
|
||||||
$('#txtPendingQty' + Rowid).val(0.00);
|
$('#txtPendingQty' + Rowid).val(0.00);
|
||||||
@ -734,49 +675,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
|
||||||
function isNumberKey(evt) {
|
|
||||||
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
|
||||||
if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function Save(status) {
|
|
||||||
if (validate()) {
|
|
||||||
$("#IGR").attr("method", "post");
|
|
||||||
$("#IGR").attr("enctype", "multipart/form-data");
|
|
||||||
$("#IGR").attr("action", "SaveIGR");
|
|
||||||
$('#IGR').submit();
|
|
||||||
} //validate if closed
|
|
||||||
} //save function closed
|
|
||||||
</script>
|
|
||||||
<script>
|
|
||||||
function filecheck(status) {
|
|
||||||
$('#hideIGRStatus').val(status);
|
|
||||||
Save(status);
|
|
||||||
}
|
|
||||||
|
|
||||||
function Copyfilenames(id) {
|
|
||||||
var size = $('input[name=' + id + ']')[0].files[0].size;
|
|
||||||
if (size > 2100000) {
|
|
||||||
alert('Sorry Your File is Large To 2MB');
|
|
||||||
} else {
|
|
||||||
var name = $('input[name=' + id + ']')[0].files[0].name;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<script>
|
<script>
|
||||||
function validateTareWeight(element) {
|
function validateTareWeight(element) {
|
||||||
var grossWeight = parseFloat(document.getElementById('GrossWeight').value);
|
var grossWeight = parseFloat($('#GrossWeight').val());
|
||||||
var tareWeight = parseFloat(document.getElementById('TareWeight').value);
|
var tareWeight = parseFloat($('#TareWeight').val());
|
||||||
|
|
||||||
if (tareWeight > grossWeight) {
|
if (tareWeight > grossWeight) {
|
||||||
alert("Tare Weight must be less than or equal to Gross Weight.");
|
alert("Tare Weight must be less than or equal to Gross Weight.");
|
||||||
document.getElementById('TareWeight').value = '';
|
$('#GrossWeight').val('');
|
||||||
document.getElementById('TareWeightDate').value = '';
|
$('#TareWeightDate').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
WeightDiffer(element)
|
WeightDiffer(element)
|
||||||
@ -793,11 +700,12 @@
|
|||||||
const seconds = now.getSeconds().toString().padStart(2, '0');
|
const seconds = now.getSeconds().toString().padStart(2, '0');
|
||||||
const dateString = todaydate + '-' + month + '-' + year;
|
const dateString = todaydate + '-' + month + '-' + year;
|
||||||
const timeString = hours + ":" + minutes + ":" + seconds;
|
const timeString = hours + ":" + minutes + ":" + seconds;
|
||||||
document.getElementById('clock').textContent = dateString + " " + timeString;
|
$('#clock').text(dateString + " " + timeString);
|
||||||
document.getElementById('wizard_clock').textContent = dateString + " " + timeString;
|
$('#wizard_clock').text(dateString + " " + timeString);
|
||||||
}
|
}
|
||||||
setInterval(updateTime, 1000);
|
setInterval(updateTime, 1000);
|
||||||
updateTime();
|
updateTime();
|
||||||
|
|
||||||
function WeightDiffer(element) {
|
function WeightDiffer(element) {
|
||||||
var v1 = $("#GrossWeight").val();
|
var v1 = $("#GrossWeight").val();
|
||||||
var v2 = $("#TareWeight").val();
|
var v2 = $("#TareWeight").val();
|
||||||
@ -814,7 +722,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
$("#WeightCalculator").on("shown.bs.modal", function(e) {
|
$("#weight-calc-modal").on("shown.bs.modal", function(e) {
|
||||||
var inx = $(e.relatedTarget).data('index');
|
var inx = $(e.relatedTarget).data('index');
|
||||||
var material = $(e.relatedTarget).data('material');
|
var material = $(e.relatedTarget).data('material');
|
||||||
|
|
||||||
@ -906,7 +814,7 @@
|
|||||||
$("#WeightFile").val('');
|
$("#WeightFile").val('');
|
||||||
|
|
||||||
// Close the modal
|
// Close the modal
|
||||||
$("#WeightCalculator").modal('hide');
|
$("#weight-calc-modal").modal('hide');
|
||||||
} else {
|
} else {
|
||||||
console.log("Saving values for index: " + inx + " undefined");
|
console.log("Saving values for index: " + inx + " undefined");
|
||||||
}
|
}
|
||||||
@ -915,18 +823,18 @@
|
|||||||
<script>
|
<script>
|
||||||
function appendFilesFileds(data) {
|
function appendFilesFileds(data) {
|
||||||
var newRowHtml = `
|
var newRowHtml = `
|
||||||
<div class="col-md-12 pad">
|
<div class="form-row pad">
|
||||||
<div class="col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<span for="file_name">File name</span>
|
<label class="col-form-label">File name</label>
|
||||||
<input type="text" id="file_name" name="file_name[]" maxlength="255" class="form-control" value="${data != null && data != '' ? data.file_name : ''}">
|
<input type="text" id="file_name" name="file_name[]" maxlength="255" class="form-control" value="${data != null && data != '' ? data.file_name : ''}">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<span for="emp_file">File</span>
|
<label class="col-form-label">File</label>
|
||||||
<input type="file" name="emp_file[]" class="form-control">
|
<input type="file" name="emp_file[]" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4" style="margin-top: 23px;">
|
<div class="form-group col-md-4 p-4">
|
||||||
<button type="button" class="btn btn-danger btn-sm" onclick="removeContact(this)">Remove</button>
|
<button type="button" class="btn btn-danger waves-effect btn-sm" onclick="removeContact(this)">Remove</button>
|
||||||
<button type="button" class="btn btn-primary btn-sm a1" onclick="appendFilesFileds()">Add</button>
|
<button type="button" class="btn btn-primary waves-effect btn-sm a1" onclick="appendFilesFileds()">Add</button>
|
||||||
</div>
|
</div>
|
||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
@ -942,11 +850,21 @@ function removeContact(button) {
|
|||||||
var len = $('#filesContainer .pad:last .a1')
|
var len = $('#filesContainer .pad:last .a1')
|
||||||
var length = len.length;
|
var length = len.length;
|
||||||
if (length == 0) {
|
if (length == 0) {
|
||||||
$('#day').show()
|
$('#additionalfilebtn').show()
|
||||||
} else {
|
} else {
|
||||||
$('#day').hide()
|
$('#additionalfilebtn').hide()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
</script>
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
$('#Inwardgateregistertable').DataTable({
|
||||||
|
"paging": false,
|
||||||
|
"lengthChange": false,
|
||||||
|
"searching": false,
|
||||||
|
"ordering": false,
|
||||||
|
"info": false,
|
||||||
|
"autoWidth": false
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
@ -1,99 +1,101 @@
|
|||||||
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
<div class="content-wrapper">
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
<section class="content">
|
<!-- start page title -->
|
||||||
<div>
|
|
||||||
<center><h3 id="title">Reports</h3></center>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<legend></legend>
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-12">
|
||||||
<div class="col-xs-3">
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<h4><?= "Reports"; ?></h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- end page title -->
|
||||||
|
<!-- Form row -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-search-plus"> Requisition </span></h4>
|
<h4><span class="fa fa-search-plus"> Requisition </span></h4>
|
||||||
<a href="<?php echo base_url(); ?>reportpending" target="_blank" >Reportpending<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text uk-margin-remove">Pending</p>
|
||||||
<a href="<?php echo base_url(); ?>releasedpo" target="_blank" > Order Value - Released<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text uk-margin-remove">Order Value - Released</p>
|
||||||
<a href="<?php echo base_url(); ?>openOrder" target="_blank" >Open Orders - Pending <p class="uk-text-meta uk-margin-remove"></p></a>
|
<p class="uk-text uk-margin-remove">Open Orders - Pending </p>
|
||||||
<a href="<?php echo base_url(); ?>TotalOrder" target="_blank" > Total Orders<p class="uk-text-meta uk-margin-remove"></p></a>
|
<p class="uk-text uk-margin-remove">Total Orders</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-shopping-cart"> Purchase </span></h4>
|
<h4><span class="fa fa-shopping-cart"> Purchase </span></h4>
|
||||||
<a href="<?php echo base_url(); ?>Report_purchase" target="_blank" >Purchase<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Purchase</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_year_wise" target="_blank" >Year Wise<p class="uk-text-meta uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Year Wise</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_supplier" target="_blank" >Purchase Supplier - Wise<p class="uk-text uk-margin-remove"></p></a>
|
<a href="<?php echo base_url(); ?>Report_pending_purchase" target="_blank"><p class="uk-text uk-margin-remove">Pending</p></a>
|
||||||
<a href="<?php echo base_url(); ?>Report_consolidate" target="_blank" >Consolidate Report<p class="uk-text-meta uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Purchase Supplier - Wise</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_cumulative" target="_blank" >Cumulative Report<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Consolidate Report</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_pending_purchase" target="_blank" >Purchase Order Pending<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Cumulative Report</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-codepen"> Material Master </span></h4>
|
<h4><span class="fa fa-layer-group"> Material Master </span></h4>
|
||||||
<a href="<?php echo base_url(); ?>Report_Material_Supplier" target="_blank" ><p class="uk-text uk-margin-remove">Material Master - supplier wise</p></a>
|
<p class="uk-text uk-margin-remove">Material Master - supplier wise</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_Material_Item" target="_blank" ><p class="uk-text uk-margin-remove">Material Master - Item wise</p></a>
|
<p class="uk-text uk-margin-remove">Material Master - Item wise</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_Material_ReceiptValue" target="_blank" ><p class="uk-text uk-margin-remove">Material Master - Receipt Value</p></a>
|
<p class="uk-text uk-margin-remove">Material Master - Receipt Value</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-truck"> Inward</span></h4>
|
<h4><span class="fa fa-truck"> Inward</span></h4>
|
||||||
<a href="<?php echo base_url(); ?>Report_purchase_inward" target="_blank" >Inward Details<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Inward Details</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_purchase_attach" target="_blank" >Inward Summary<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Inward Summary</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_year_wise_inward" target="_blank" >Year Wise-Inward<p class="uk-text-meta uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Year Wise-Inward</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_supplier_inward" target="_blank" >Inward-Supplier Wise<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Inward-Supplier Wise</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_consolidate_inward" target="_blank" >Consolidate Report-Inward<p class="uk-text-meta uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Consolidate Report-Inward</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_cumulative_inward" target="_blank" >Cumulative Report-Inward<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Cumulative Report-Inward</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_cumulative_raw" target="_blank" >Cumulative Report - Category Wise-Inward<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Cumulative Report - Category Wise-Inward</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_consolidate_category" target="_blank" >Consolidate Report - Category Wise-Inward<p class="uk-text-meta uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Consolidate Report - Category Wise-Inward</p>
|
||||||
|
<p class="uk-text-meta uk-margin-remove">Report - DeliveryPerformance</p>
|
||||||
<a href="<?php echo base_url(); ?>DeliveryPerformance" target="_blank" > Report - DeliveryPerformance<p class="uk-text-meta uk-margin-remove"></p></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<legend></legend>
|
<hr>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-md-3">
|
||||||
<div class="col-xs-3">
|
<h4><span class="fa fa-money-bill-alt"> Finance Reports </span></h4>
|
||||||
<h4><span class="fa fa-money "> Finance Reports </span></h4>
|
<p class="uk-text uk-margin-remove">Cost Cente</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_costcenter" target="_blank" > Cost Center <p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text uk-margin-remove">Production Salary Cost</p>
|
||||||
|
|
||||||
<a href="<?php echo base_url(); ?>productionsalary" target="_blank" > Production Salary Cost <p class="uk-text uk-margin-remove"></p></a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-inr"> Cashbook </span></h4>
|
<h4><span class="fa fa-rupee-sign"> Cashbook </span></h4>
|
||||||
<a href="<?php echo base_url(); ?>cashbookreport" target="_blank" >Cashbook Reports<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text uk-margin-remove">Cashbook Reports</p>
|
||||||
<a href="<?php echo base_url(); ?>cashbookcumulativereport" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Cumulative Reports</p></a>
|
<p class="uk-text uk-margin-remove">Cashbook Cumulative Reports</p>
|
||||||
<a href="<?php echo base_url(); ?>cashbookcumulativemonthreport" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Cumulative Month Reports</p></a>
|
<p class="uk-text uk-margin-remove">Cashbook Cumulative Month Reports</p>
|
||||||
<!--<a href="<?php echo base_url(); ?>cashbookmonthlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Monthly Expenses</p></a>
|
<!--<a href="<?php echo base_url(); ?>cashbookmonthlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Monthly Expenses</p></a>
|
||||||
<a href="<?php echo base_url(); ?>cashbookyearlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Yearly Expenses</p></a>-->
|
<a href="<?php echo base_url(); ?>cashbookyearlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Yearly Expenses</p></a>-->
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-3">
|
|
||||||
<h4><span class="fa fa-money "> GST Reports </span></h4>
|
|
||||||
<a href="<?php echo base_url(); ?>Report_monthly_gst" target="_blank" > Monthly GST Summary Report <p class="uk-text uk-margin-remove"></p></a>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<h4><span class="fa fa-mail-bulk "> GST Reports </span></h4>
|
||||||
|
<p class="uk-text uk-margin-remove" target="_blank"> Monthly GST Summary Report </p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<h4><span class="fa fa-newspaper"> Sales Reports </span></h4>
|
||||||
|
<a href="<?php echo base_url(); ?>sales_invoice" target="_blank"><p class="uk-text uk-margin-remove">Invoice Report</p></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<legend></legend>
|
</div>
|
||||||
|
<hr>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-md-3">
|
||||||
<div class="col-xs-3">
|
<h4><span class="fa fa-credit-card"> PayRoll </span></h4>
|
||||||
<h4><span class="fa fa-credit-card-alt"> PayRoll </span></h4>
|
|
||||||
<p class="uk-text uk-margin-remove" target="_blank">Employee Payroll</p>
|
<p class="uk-text uk-margin-remove" target="_blank">Employee Payroll</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-calendar"> Attendance </span></h4>
|
<h4><span class="fa fa-calendar"> Attendance </span></h4>
|
||||||
<p class="uk-text uk-margin-remove" target="_blank">Employee Attendance</p>
|
<p class="uk-text uk-margin-remove" target="_blank">Employee Attendance</p>
|
||||||
|
<p class="uk-text uk-margin-remove" target="_blank">Employee Performance</p>
|
||||||
<a href="<?php echo base_url(); ?>Empperform" target="_blank">Employee Performance<p class="uk-text uk-margin-remove"></p></a>
|
<a href="<?php echo base_url(); ?>leavereports" target="_blank"><p class="uk-text uk-margin-remove">Leave Report</p></a>
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
<legend></legend>
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</section>
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
@ -47,7 +47,7 @@ if (!empty($Emp)) {
|
|||||||
$RequestByOpt[$EID->EmpID] = $EID->Full_Name;
|
$RequestByOpt[$EID->EmpID] = $EID->Full_Name;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('EmpID', $RequestByOpt, set_value('EmpID'), 'id="EmpID" class = "form-control" data-toggle="select2" required="true"');
|
echo form_dropdown('EmpID', $RequestByOpt, set_value('EmpID'), 'id="EmpID" class = "form-control searchabledropdown" data-toggle="select2" required="true"');
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
@ -59,7 +59,7 @@ if (!empty($Emp)) {
|
|||||||
$options[$RID->ConfigValue] = $RID->ConfigValue;
|
$options[$RID->ConfigValue] = $RID->ConfigValue;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('RequestType', $options, set_value('ConfigValue'), 'id="RequestType" class = "form-control" data-toggle="select2"', 'required="true"');
|
echo form_dropdown('RequestType', $options, set_value('ConfigValue'), 'id="RequestType" class = "form-control searchabledropdown" data-toggle="select2"', 'required="true"');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -92,7 +92,7 @@ if (!empty($Emp)) {
|
|||||||
'CostCenter',
|
'CostCenter',
|
||||||
$Costs,
|
$Costs,
|
||||||
set_value('CostCenter'),
|
set_value('CostCenter'),
|
||||||
'class="form-control" id="CostCenter" data-toggle="select2"'
|
'class="form-control searchabledropdown" id="CostCenter" data-toggle="select2"'
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ if (!empty($Emp)) {
|
|||||||
$SchType[$Sch] = $Sch;
|
$SchType[$Sch] = $Sch;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('ScheduleType', $SchType, set_value('ScheduleType'), 'id="ScheduleType"', 'class = "form-control"', 'data-toggle="select2"');
|
echo form_dropdown('ScheduleType', $SchType, set_value('ScheduleType'), 'id="ScheduleType"', 'class = "form-control searchabledropdown"', 'data-toggle="select2"');
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3" id="ServicePeriodOption" style="display:none;">
|
<div class="form-group col-md-3" id="ServicePeriodOption" style="display:none;">
|
||||||
@ -117,7 +117,7 @@ if (!empty($Emp)) {
|
|||||||
$ServiceOptions[$SerOption->ConfigValue] = $SerOption->ConfigValue;
|
$ServiceOptions[$SerOption->ConfigValue] = $SerOption->ConfigValue;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('ServiceOptions', $ServiceOptions, set_value('ServiceOptions'), 'id="ServiceOptions"', 'class = "form-control"', 'data-toggle="select2"');
|
echo form_dropdown('ServiceOptions', $ServiceOptions, set_value('ServiceOptions'), 'id="ServiceOptions"', 'class = "form-control searchabledropdown"', 'data-toggle="select2"');
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3" id="DisplayScheduleDiv" style="display:none;">
|
<div class="form-group col-md-3" id="DisplayScheduleDiv" style="display:none;">
|
||||||
@ -191,7 +191,7 @@ if (!empty($Emp)) {
|
|||||||
$options[$MID->MaterialCode] = $MID->MaterialCode . ' ' . ' - ' . ' ' . $MID->MaterialName;
|
$options[$MID->MaterialCode] = $MID->MaterialCode . ' ' . ' - ' . ' ' . $MID->MaterialName;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('MaterialCode', $options, set_value('MaterialCode'), 'id="MaterialCode" class="form-control select2" ');
|
echo form_dropdown('MaterialCode', $options, set_value('MaterialCode'), 'id="MaterialCode" class="form-control searchabledropdown" ');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -350,12 +350,7 @@ if (!empty($Emp)) {
|
|||||||
|
|
||||||
|
|
||||||
//Initialize Select2 Elements
|
//Initialize Select2 Elements
|
||||||
$(".select2").select2();
|
$(".searchabledropdown").select2();
|
||||||
$("#CostCenter").select2();
|
|
||||||
$("#RequestType").select2();
|
|
||||||
$("#MaterialCode").select2();
|
|
||||||
$("#EmpID").select2();
|
|
||||||
$("#ScheduleType").select2();
|
|
||||||
|
|
||||||
$('#CostCenter').change(function() {
|
$('#CostCenter').change(function() {
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -1,36 +1,44 @@
|
|||||||
<style>
|
<style>
|
||||||
.modal
|
.modal {
|
||||||
{
|
|
||||||
padding-right: 25% ! important;
|
padding-right: 25% ! important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.num {
|
.num {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
.modal-content
|
|
||||||
{
|
.modal-content {
|
||||||
width: 800px ! important;
|
width: 800px ! important;
|
||||||
}
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Date-filter-form {
|
.Date-filter-form {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px; /* Adjust the gap as needed */
|
gap: 10px;
|
||||||
|
/* Adjust the gap as needed */
|
||||||
}
|
}
|
||||||
.Date-filter-form input, .Date-filter-form button {
|
|
||||||
|
.Date-filter-form input,
|
||||||
|
.Date-filter-form button {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Date-filter-form button {
|
.Date-filter-form button {
|
||||||
background-color: #007bff;
|
background-color: #007bff;
|
||||||
color: white;
|
color: white;
|
||||||
border: none;
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Date-filter-form button:hover {
|
.Date-filter-form button:hover {
|
||||||
background-color: #0056b3;
|
background-color: #0056b3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-button {
|
.icon-button {
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
@ -38,13 +46,14 @@
|
|||||||
color: #007bff;
|
color: #007bff;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-button:hover {
|
.icon-button:hover {
|
||||||
color: #0056b3;
|
color: #0056b3;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
|
th,
|
||||||
th, td {
|
td {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -54,9 +63,11 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_wrapper .dataTables_length {
|
.dataTables_wrapper .dataTables_length {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .dataTables_wrapper .dt-buttons,
|
/* .dataTables_wrapper .dt-buttons,
|
||||||
.dataTables_wrapper .dataTables_filter {
|
.dataTables_wrapper .dataTables_filter {
|
||||||
float: right;
|
float: right;
|
||||||
@ -85,7 +96,10 @@
|
|||||||
$("#Invoice_Date , #MaterialRcvdDate").datepicker({
|
$("#Invoice_Date , #MaterialRcvdDate").datepicker({
|
||||||
minDate: new Date(year - SIAStartYear, 1, 1),
|
minDate: new Date(year - SIAStartYear, 1, 1),
|
||||||
maxDate: 'now',
|
maxDate: 'now',
|
||||||
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
|
dateFormat: 'dd-mm-yy',
|
||||||
|
changeMonth: true,
|
||||||
|
changeYear: true,
|
||||||
|
yearRange: '-100:+0'
|
||||||
});
|
});
|
||||||
$('#Driver_Name').autocomplete({
|
$('#Driver_Name').autocomplete({
|
||||||
|
|
||||||
@ -176,10 +190,10 @@ var data = suggestion.DriverMobileNumber;
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
if(!empty($IGR))
|
if (!empty($IGR)) {
|
||||||
{ $index = 0;
|
$index = 0;
|
||||||
foreach($IGR as $record)
|
foreach ($IGR as $record) {
|
||||||
{ $index = $index +1;
|
$index = $index + 1;
|
||||||
$createddate = new DateTime($record->CreatedDate);
|
$createddate = new DateTime($record->CreatedDate);
|
||||||
$datewithtime = $createddate->format('d-m-Y h:i A');
|
$datewithtime = $createddate->format('d-m-Y h:i A');
|
||||||
$date = $createddate->format('d-m-Y');
|
$date = $createddate->format('d-m-Y');
|
||||||
@ -202,14 +216,6 @@ var data = suggestion.DriverMobileNumber;
|
|||||||
<i class="fa fa-download" style="text-align: center;"></i>
|
<i class="fa fa-download" style="text-align: center;"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<?php if (!empty($record->FilePath)) { ?>
|
|
||||||
<!-- <a target="_blank" data-toggle="modal" data-target="#Fileshow" data-id="<%=index%>" title="Files" data-igrno="<?php echo $record->IGRNO ?>" data-pono="<?php echo $record->PONO ?>"><i class="fa fa-clone" style="text-align: center;"></i></a> -->
|
|
||||||
<?php } else if (!empty($record->file)) { ?>
|
|
||||||
<!-- <a target="_blank" data-toggle="modal" data-target="#Fileshow" data-id="<%=index%>" title="Files" data-igrno="<?php echo $record->IGRNO ?>" data-pono="<?php echo $record->PONO ?>"><i class="fa fa-clone" style="text-align: center;"></i></a> -->
|
|
||||||
<?php } else { ?>
|
|
||||||
<!-- <a target="_blank" data-toggle="modal" data-target="#Fileshow" data-id="<%=index%>" title="Files" data-igrno="<?php echo $record->IGRNO ?>" data-pono="<?php echo $record->PONO ?>"><i class="fa fa-clone" style="text-align: center;"></i></a> -->
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<a target="_blank" data-toggle="modal" data-target="#Historyshow" data-id="<%=index%>" title="IGR History" data-igrno="<?php echo $record->IGRNO ?>" data-pono="<?php echo $record->PONO ?>">
|
<a target="_blank" data-toggle="modal" data-target="#Historyshow" data-id="<%=index%>" title="IGR History" data-igrno="<?php echo $record->IGRNO ?>" data-pono="<?php echo $record->PONO ?>">
|
||||||
<i class="fa fa-history" style="text-align: center;"></i>
|
<i class="fa fa-history" style="text-align: center;"></i>
|
||||||
</a>
|
</a>
|
||||||
@ -235,20 +241,26 @@ var data = suggestion.DriverMobileNumber;
|
|||||||
</div>
|
</div>
|
||||||
<!-- box closed here -->
|
<!-- box closed here -->
|
||||||
<!-- Igr modal fade -->
|
<!-- Igr modal fade -->
|
||||||
<div class="modal fade" id="Igrshow" role="dialog">
|
<div id="Igrshow" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<!-- Modal content-->
|
|
||||||
<form>
|
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
<h4 class="modal-title">Inward Gate Register Details <span id="IgrshowTitle"></span></h4>
|
||||||
<center><h4>Inward Gate Register Details <span id="IgrshowTitle"></span></h4></center> <!-- IGR number should display here-->
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-12">
|
<div class="modal-body p-4">
|
||||||
|
<div class="pull-right hidden-xs">
|
||||||
|
<b>
|
||||||
|
<div id="clock"></div>
|
||||||
|
</b>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div style="display: flex; justify-content: space-between; align-items: center;">
|
<div class="form-group">
|
||||||
<label>Purchase Order Number </label>
|
<div class="d-flex justify-content-between align-items-center">
|
||||||
|
<label class="col-form-label">Purchase Order Number <span class="text-danger">*</span></label>
|
||||||
<a id="printLink" data-toggle="tooltip" href="" target="new" style="text-align: right;">
|
<a id="printLink" data-toggle="tooltip" href="" target="new" style="text-align: right;">
|
||||||
<i class="fa fa-print" data-toggle="tooltip" title="Click here to Print the Purchase Order details"></i>
|
<i class="fa fa-print" data-toggle="tooltip" title="Click here to Print the Purchase Order details"></i>
|
||||||
</a>
|
</a>
|
||||||
@ -257,49 +269,62 @@ var data = suggestion.DriverMobileNumber;
|
|||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
<span class="help-block"></span>
|
<span class="help-block"></span>
|
||||||
<input type="hidden" name="hiddenIsOpenOrder" id="hiddenIsOpenOrder" />
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label>Supplier Name </label>
|
<div class="form-group">
|
||||||
|
<label class="col-form-label">Supplier Name <span class="text-danger">*</span></label>
|
||||||
|
|
||||||
<?php $data = array('name' => 'SupplierName', 'value' => set_value('SupplierName'), 'id' => 'Supplier', 'class' => 'form-control', 'required=>"true"', 'readonly' => 'true');
|
<?php $data = array('name' => 'SupplierName', 'value' => set_value('SupplierName'), 'id' => 'Supplier', 'class' => 'form-control', 'required=>"true"', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" id="IGRNO1" name="IGRNumber" readonly>
|
|
||||||
<input type="hidden" id="PONO1" name="PONumber" readonly>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12" style="margin: 10px 0;">
|
</div>
|
||||||
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<label>Invoice Number <span class="requiredsymbol" style="color:red; font-size: 15px;">*</span></label>
|
<div class="form-group">
|
||||||
|
<label class="col-form-label">Invoice Number <span class="text-danger">*</span></label>
|
||||||
<?php $data = array('name' => 'InvoiceNO', 'value' => set_value('InvoiceNO'), 'id' => 'Invoice_No', 'class' => 'form-control', 'required=>"true"');
|
<?php $data = array('name' => 'InvoiceNO', 'value' => set_value('InvoiceNO'), 'id' => 'Invoice_No', 'class' => 'form-control', 'required=>"true"');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<label>Invoice Date <span class="requiredsymbol" style="color:red; font-size: 15px;">*</span></label>
|
<div class="form-group">
|
||||||
|
<label class="col-form-label">Invoice Date <span class="text-danger">*</span></label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'InvoiceDate', 'value' => set_value('InvoiceDate'), 'id' => 'Invoice_Date', 'class' => 'form-control', 'required=>"true"');
|
$data = array('name' => 'InvoiceDate', 'value' => set_value('InvoiceDate'), 'id' => 'Invoice_Date', 'class' => 'form-control', 'required=>"true"');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<label>Material Received Date <span class="requiredsymbol" style="color:red; font-size: 15px;">*</span> </label>
|
<div class="form-group">
|
||||||
|
<label class="col-form-label">Material Received Date <span class="text-danger">*</span></label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'MaterialRcvdDate', 'value' => set_value('MaterialRcvdDate'), 'id' => 'MaterialRcvdDate', 'class' => 'form-control');
|
$data = array('name' => 'MaterialRcvdDate', 'value' => set_value('MaterialRcvdDate'), 'id' => 'MaterialRcvdDate', 'class' => 'form-control');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12" style="margin: 10px 0;">
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label>Vehicle Number </label>
|
<div class="form-group">
|
||||||
|
<label class="col-form-label">Vehicle Number </label>
|
||||||
<?php $data = array('name' => 'VehicleNo', 'value' => set_value('VehicleNo'), 'id' => 'Vehicle_No', 'class' => 'form-control');
|
<?php $data = array('name' => 'VehicleNo', 'value' => set_value('VehicleNo'), 'id' => 'Vehicle_No', 'class' => 'form-control');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label>Transporter Name</label>
|
<div class="form-group">
|
||||||
|
<label class="col-form-label">Transporter Name</label>
|
||||||
<?php
|
<?php
|
||||||
$dropdown = '<select name="TransporterId" id="Transporter_Id" class="form-control select2">';
|
$dropdown = '<select name="TransporterId" id="Transporter_Id" class="form-control select2">';
|
||||||
$dropdown .= '<option value=0>Transporter Name</option>';
|
$dropdown .= '<option value=0>Transporter Name</option>';
|
||||||
@ -316,25 +341,29 @@ var data = suggestion.DriverMobileNumber;
|
|||||||
echo $dropdown;
|
echo $dropdown;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label>Driver Name </label>
|
<div class="form-group">
|
||||||
|
<label class="col-form-label">Driver Name </label>
|
||||||
<?php $data = array('name' => 'DriverName', 'value' => set_value('DriverName'), 'id' => 'Driver_Name', 'class' => 'form-control');
|
<?php $data = array('name' => 'DriverName', 'value' => set_value('DriverName'), 'id' => 'Driver_Name', 'class' => 'form-control');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label>Driver Mobile Number </label>
|
<div class="form-group">
|
||||||
|
<label class="col-form-label">Driver Mobile Number </label>
|
||||||
<?php $data = array('name' => 'DriverMobileNumber', 'value' => set_value('DriverMobileNumber'), 'id' => 'DriverMobileNumber', 'class' => 'form-control');
|
<?php $data = array('name' => 'DriverMobileNumber', 'value' => set_value('DriverMobileNumber'), 'id' => 'DriverMobileNumber', 'class' => 'form-control');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
<!-- Table to show the line item of po -->
|
<div class="table-responsive">
|
||||||
<div id="content" > </div>
|
<table id="Inwardgateregistertable1" class="table table-striped table-hover mb-0 editabletable IGR_Line" style="font-size:12px;">
|
||||||
<table class="table table-bordered" id="Inwardgateregistertable1 table-hover" style="background-color:#fff; font-size:12px;">
|
|
||||||
<thead style="background-color:#ddd !important">
|
<thead style="background-color:#ddd !important">
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 50px;">SNo</th>
|
<th style="width: 50px;">SNo</th>
|
||||||
@ -360,58 +389,65 @@ var data = suggestion.DriverMobileNumber;
|
|||||||
</tr> -->
|
</tr> -->
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- <a class="btn btn-primary" id="update" value="Update">Update</a> -->
|
</div>
|
||||||
<div class="col-md-4 col-md-offset-8">
|
<div class="row text-right">
|
||||||
<input type="file" name="MasterFile" id="MasterFile" onchange="Copyfilenames(this.name); ">
|
<br>
|
||||||
|
<div class="form-group col-md-12">
|
||||||
|
<input type="file" name="MasterFile" id="MasterFile" onchange="filenames(this.name); ">
|
||||||
<label id="MasterFileLabel" style="display:none;">
|
<label id="MasterFileLabel" style="display:none;">
|
||||||
<a><span></span><small></small></a>
|
<a><span></span><small></small></a>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="files">
|
<div class="files">
|
||||||
<div class="col-md-4 col-md-offset-8" style="padding: 15px 0px;">
|
<div class="form-row float-right">
|
||||||
<button type="button" class="btn btn-primary btn-sm a1"
|
<div class="form-group">
|
||||||
onclick="appendFilesFileds()" id="day">
|
<button type="button" class="btn btn-primary waves-effect btn-sm a1"
|
||||||
|
onclick="appendFilesFileds()" id="additionalfilebtn">
|
||||||
Add Additional File
|
Add Additional File
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div id="existingContainer"></div>
|
<div id="existingContainer"></div>
|
||||||
<div id="filesContainer"></div>
|
<div id="filesContainer"></div>
|
||||||
</div><br>
|
</div><br>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<input type="hidden" name="hiddenIsOpenOrder" id="hiddenIsOpenOrder" />
|
||||||
|
<input type="hidden" id="IGRNO1" name="IGRNumber" readonly>
|
||||||
|
<input type="hidden" id="PONO1" name="PONumber" readonly>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<div class="buttonContainer">
|
<div class="buttonContainer">
|
||||||
<a class="btn btn-cancel" data-dismiss="modal" value="Close">Close</a>
|
<a class="btn btn-secondary" data-dismiss="modal" value="Close">Close</a>
|
||||||
<a class="btn btn-primary" id="generateIGR" value="generateIGR">Generate IGR</a>
|
<a class="btn btn-primary" id="generateIGR" value="generateIGR">Generate IGR</a>
|
||||||
<a class="btn btn-primary" id="draftIGR" value="draftIGR">Save as Draft IGR</a>
|
<a class="btn btn-primary" id="draftIGR" value="draftIGR">Save as Draft IGR</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Igr modal fade closed-->
|
<!-- /.modal Igr modal fade closed-->
|
||||||
<!-- WeightCalculator modal fade -->
|
<!-- WeightCalculator modal fade -->
|
||||||
<div class="modal fade" id="WeightCalculator" role="dialog">
|
<div id="WeightCalculator" class="modal fade" tabindex="-1" role="dialog"
|
||||||
<div class="modal-dialog modal_style">
|
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||||
<!-- Modal content-->
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
<h4 class="modal-title">Weight Calculator <span id="WeightTitle"></span></h4>
|
||||||
<center>
|
<button type="button" class="close" data-dismiss="modal"
|
||||||
<h4>Weight Calculator <span id="WeightTitle"></span></h4>
|
aria-hidden="true">×</button>
|
||||||
</center>
|
|
||||||
<div class="pull-right hidden-xs">
|
|
||||||
<b><div id="clock"></div></b>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="modal-body p-4">
|
||||||
|
<div class="text-right">
|
||||||
|
<b>
|
||||||
|
<div id="clock"></div>
|
||||||
|
</b>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12"> <br/>
|
|
||||||
|
|
||||||
<!-- <center><label style="font-size:40px;">Default</label> </center> -->
|
|
||||||
<!-- <div class="container"> -->
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label for="GrossWeight" class="col-md-2 col-form-label">Gross Weight</label>
|
<label for="GrossWeight" class="col-md-2 col-form-label">Gross Weight</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
@ -461,143 +497,69 @@ var data = suggestion.DriverMobileNumber;
|
|||||||
<a><span></span><small></small></a>
|
<a><span></span><small></small></a>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- </div> -->
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<center>
|
<button type="button" class="btn btn-secondary waves-effect"
|
||||||
<a class="btn btn-primary" onclick="modalSave()" id="modalsave"> <span class="bold">Save</span>
|
data-dismiss="modal" value="Cancel">Cancel</button>
|
||||||
<a class="btn btn-cancel" data-dismiss="modal" value="Close">Close</a>
|
<button type="button"
|
||||||
</center>
|
class="btn btn-info waves-effect waves-light" onclick="modalSave()">Save</button>
|
||||||
</div><!-- footer div closed -->
|
|
||||||
</div><!-- modal content div closed-->
|
|
||||||
</div><!-- modal content closed-->
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><!-- /.modal -->
|
||||||
<!-- WeightCalculator modal fade closed-->
|
<!-- WeightCalculator modal fade closed-->
|
||||||
<!-- History modal fade -->
|
<div id="Historyshow" class="modal fade" tabindex="-1" role="dialog"
|
||||||
<div class="modal fade" id="Historyshow" role="dialog">
|
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<!-- Modal content -->
|
<div class="modal-content">
|
||||||
<div class="modal-content" style="width:800px;">
|
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
<h4 class="modal-title">IGR History Details <span id="HisTitle"></span></h4>
|
||||||
<center>
|
<button type="button" class="close" data-dismiss="modal"
|
||||||
<h4>IGR History Details <span id="HisTitle"></span></h4>
|
aria-hidden="true">×</button>
|
||||||
</center>
|
|
||||||
</div>
|
</div>
|
||||||
<div style="margin:20px;" id="HisStatement"></div>
|
<div class="modal-body p-4">
|
||||||
<div style="text-align: right; margin:5px;">
|
<div class="row">
|
||||||
<a class="btn btn-cancel" data-dismiss="modal" value="Close">Close</a>
|
<div class="col-md-12">
|
||||||
</div>
|
<div id="HisStatement"></div>
|
||||||
<br />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-secondary waves-effect"
|
||||||
|
data-dismiss="modal" value="Close">Close</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><!-- /.modal -->
|
||||||
<!-- History modal fade closed-->
|
<!-- History modal fade closed-->
|
||||||
<!-- CostCenter modal fade -->
|
<div id="CostCentershow" class="modal fade" tabindex="-1" role="dialog"
|
||||||
<div class="modal fade" id="CostCentershow" role="dialog">
|
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<!-- Modal content-->
|
<div class="modal-content">
|
||||||
<div class="modal-content" style="width:800px;">
|
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
<h4 class="modal-title">Cost Center List <span id="CCTitle"></span></h4>
|
||||||
<center>
|
<button type="button" class="close" data-dismiss="modal"
|
||||||
<h4>Cost Center List <span id="CCTitle"></span></h4>
|
aria-hidden="true">×</button>
|
||||||
</center> <!-- IGR number should display here-->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="margin:20px;" id="CCStatement"></div>
|
|
||||||
<div style="text-align: right; margin:5px;">
|
|
||||||
<a class="btn btn-cancel" data-dismiss="modal" value="Close">Close</a>
|
|
||||||
</div>
|
|
||||||
<br />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- CostCenter modal fade closed-->
|
|
||||||
<!-- File modal -->
|
|
||||||
<div class="modal fade" id="Fileshow" role="dialog">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<!-- Modal content-->
|
|
||||||
<form id="igrfileform">
|
|
||||||
<div class="modal-content" style="width:800px;">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
||||||
<center>
|
|
||||||
<h4>Inward Gate File Details</h4>
|
|
||||||
</center> <!-- IGR number should display here-->
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="modal-body p-4">
|
||||||
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div style="text-align: right; margin:10px;">
|
<div id="CCStatement"></div>
|
||||||
<input type="button" class="btn btn-primary" id="addmorebutton" value=" ADD FILES..">
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="newdiv"></div>
|
|
||||||
<input type="hidden" name="hidecounter" id="hidecounter" value="0" />
|
|
||||||
<input type="hidden" name="hidegrandcounter" id="hidegrandcounter" value="0" />
|
|
||||||
<input type="hidden" name="hiddenIGRNO" id="hiddenIGRNO" />
|
|
||||||
<input type="hidden" name="hiddenPONO" id="hiddenPONO" />
|
|
||||||
</div>
|
</div>
|
||||||
<div id="contents"> </div>
|
|
||||||
<table class="table table-bordered" id="Inwardgateregisterfile" style="background-color:#fff;font-size:12px;">
|
|
||||||
<thead style="background-color:#ddd;">
|
|
||||||
<tr>
|
|
||||||
<th>SNo</th>
|
|
||||||
<th>BillNO</th>
|
|
||||||
<th>PONO</th>
|
|
||||||
<th>FileName</th>
|
|
||||||
<th>Action</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody id="tblefile">
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a class="btn btn-cancel" data-dismiss="modal" value="close">Close</a>
|
<button type="button" class="btn btn-secondary waves-effect"
|
||||||
|
data-dismiss="modal" value="Close">Close</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div><!-- /.modal -->
|
||||||
<!-- File modal fade closed -->
|
<!-- History modal fade closed-->
|
||||||
<!-- Bill modal fade -->
|
|
||||||
<div class="modal fade" id="billModel" role="dialog" data-backdrop-limit="1" aria-labelledby="myModalLabel">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
|
|
||||||
|
|
||||||
<div class="modal-content" style="width:950px;">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h4 class="modal-title">Update Bill Details</h4>
|
|
||||||
</div>
|
|
||||||
<form class="tagForm" id="tag-form" method="post" enctype="multipart/form-data">
|
|
||||||
<div class="modal-body" style="padding:0px;">
|
|
||||||
|
|
||||||
<div class="col-md-12">
|
|
||||||
<div class="col-md-5">
|
|
||||||
|
|
||||||
<!-- onChange="filecheck();" -->
|
|
||||||
<input type="file" size="20" input accept=".docx,.pdf,.doc.JPG,.PNG,.jpg" id="billimag" name="images" />
|
|
||||||
<label for="images">Select file <br /><small>(only .pdf,.excel,.doc,.png,.jpg)</small></label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<input type="hidden" name="hideoldfile" id="hideoldfile" class="form-control" readonly>
|
|
||||||
<input type="hidden" name="hidebillno" id="hidebillno" class="form-control" readonly>
|
|
||||||
|
|
||||||
</div><!-- /.modal body -->
|
|
||||||
|
|
||||||
<div class="modal-footer">
|
|
||||||
<div class="col-md-12 text-right">
|
|
||||||
<div class="col-md-4 col-md-offset-8">
|
|
||||||
<a class="btn btn-success" onclick="fileupdate()"> <span class="bold">Update</span>
|
|
||||||
<a class="btn btn-success" data-dismiss="modal" value="Close">Close</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.modal footer -->
|
|
||||||
</form>
|
|
||||||
</div><!-- /.modal content -->
|
|
||||||
</div><!-- /.modal dialog -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$("#Igrshow").on("shown.bs.modal", function(e) {
|
$("#Igrshow").on("shown.bs.modal", function(e) {
|
||||||
@ -652,7 +614,9 @@ var data = suggestion.DriverMobileNumber;
|
|||||||
$('#content').loader('show');
|
$('#content').loader('show');
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data: { id: igr },
|
data: {
|
||||||
|
id: igr
|
||||||
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>ViewIGRDetails",
|
url: "<?php echo base_url() ?>ViewIGRDetails",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
@ -863,7 +827,11 @@ var data = suggestion.DriverMobileNumber;
|
|||||||
var inv_date = $("#Invoice_Date").val();
|
var inv_date = $("#Invoice_Date").val();
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data:{igr:igrno,mrc:materialrcv_date,invdate:inv_date},
|
data: {
|
||||||
|
igr: igrno,
|
||||||
|
mrc: materialrcv_date,
|
||||||
|
invdate: inv_date
|
||||||
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>UpdateIGR",
|
url: "<?php echo base_url() ?>UpdateIGR",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
@ -1005,7 +973,9 @@ var data = suggestion.DriverMobileNumber;
|
|||||||
|
|
||||||
if (igr !== "") {
|
if (igr !== "") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data: { igr: igr },
|
data: {
|
||||||
|
igr: igr
|
||||||
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>ViewIGRHistory",
|
url: "<?php echo base_url() ?>ViewIGRHistory",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
@ -1041,7 +1011,9 @@ var data = suggestion.DriverMobileNumber;
|
|||||||
|
|
||||||
if (pono !== "") {
|
if (pono !== "") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data: { pono: pono },
|
data: {
|
||||||
|
pono: pono
|
||||||
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>getCostCenterData",
|
url: "<?php echo base_url() ?>getCostCenterData",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
@ -1097,178 +1069,6 @@ function constructSentence(record) {
|
|||||||
$('#billimag').val('');
|
$('#billimag').val('');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function fileupdate() {
|
|
||||||
var formData = new FormData();
|
|
||||||
|
|
||||||
|
|
||||||
//var file = document.getElementById('billimag').files[0];
|
|
||||||
|
|
||||||
var file = $("#billimag").prop('files')[0];
|
|
||||||
|
|
||||||
var param1 = $('#hidebillno').val();
|
|
||||||
// alert(param1);
|
|
||||||
|
|
||||||
var param2 = $('#hideoldfile').val();
|
|
||||||
// alert(param2);
|
|
||||||
|
|
||||||
// var filename = $("#billimag").val();
|
|
||||||
// filename = filename.split('\\');
|
|
||||||
formData.append('file', file);
|
|
||||||
formData.append('param1', param1);
|
|
||||||
formData.append('param2', param2);
|
|
||||||
|
|
||||||
$('.content').loader('show');
|
|
||||||
$.ajax({
|
|
||||||
data: formData,
|
|
||||||
type: "POST",
|
|
||||||
url: "<?php echo base_url() ?>inwardgateregister/edituploadfile",
|
|
||||||
cache: false,
|
|
||||||
contentType: false,
|
|
||||||
processData: false,
|
|
||||||
success: function(data) {
|
|
||||||
if (data) {
|
|
||||||
alert(data);
|
|
||||||
$('.content').loader('hide');
|
|
||||||
$('#billModel').modal('hide');
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
|
||||||
|
|
||||||
$("#Fileshow").on("shown.bs.modal", function(e) {
|
|
||||||
|
|
||||||
var id = $(this).attr('id');
|
|
||||||
|
|
||||||
var igr = $(e.relatedTarget).data('igrno');
|
|
||||||
var po = $(e.relatedTarget).data('pono');
|
|
||||||
|
|
||||||
$("#hiddenIGRNO").val(igr);
|
|
||||||
$("#hiddenPONO").val(po);
|
|
||||||
|
|
||||||
|
|
||||||
if (igr != "" && po != "") {
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
data: {
|
|
||||||
id: igr,
|
|
||||||
id1: po
|
|
||||||
},
|
|
||||||
type: "POST",
|
|
||||||
url: "<?php echo base_url() ?>ViewIGRfile",
|
|
||||||
success: function(file) {
|
|
||||||
|
|
||||||
$("#hidegrandcounter").val(JSON.parse(file).length);
|
|
||||||
|
|
||||||
var trFileHTML = '';
|
|
||||||
var FilePath = '';
|
|
||||||
var Filename = '';
|
|
||||||
var PONO = '';
|
|
||||||
var BillNO = '';
|
|
||||||
$.each(JSON.parse(file), function(i, item) {
|
|
||||||
if (item.file == null) {
|
|
||||||
if (item.Remarks == null) {
|
|
||||||
PONO = item.PONO;
|
|
||||||
BillNO = item.BillNo;
|
|
||||||
Filename = item.FilePath;
|
|
||||||
FilePath = "<?php echo base_url() ?>public/uploads/Igrfiles/" + item.FilePath;
|
|
||||||
} else {
|
|
||||||
Filename = "BillDetails";
|
|
||||||
PONO = item.PONO;
|
|
||||||
BillNO = item.BillNo;
|
|
||||||
FilePath = item.FilePath;
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
Filename = item.file;
|
|
||||||
PONO = item.pono;
|
|
||||||
BillNO = '-';
|
|
||||||
|
|
||||||
FilePath = item.file;
|
|
||||||
}
|
|
||||||
if (Filename != null) {
|
|
||||||
i = i + 1;
|
|
||||||
trFileHTML += '<tr id="row' + i + '">' +
|
|
||||||
'<td align="right">' + i + '</td>' +
|
|
||||||
'<td id="billno' + i + '">' + BillNO + '</td>' +
|
|
||||||
'<td>' + PONO + '</td>' +
|
|
||||||
'<td id="file' + i + '"><a target="_blank" href="' + FilePath + '" title="download">' + Filename + '</a></td>' +
|
|
||||||
'<td>' +
|
|
||||||
|
|
||||||
'<a href="#" onclick="openbillmodel(' + i + ')">' +
|
|
||||||
'<i class="fa fa-edit" style="margin-right: 10px;"></i>' +
|
|
||||||
'</a>' +
|
|
||||||
'<a href="#" onclick="deleteBill(' + BillNO + ',' + i + ')">' +
|
|
||||||
'<i class="fa fa-trash"></i>' +
|
|
||||||
'</a>' +
|
|
||||||
'</td>' +
|
|
||||||
'</tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
$("#tblefile").empty();
|
|
||||||
if (trFileHTML == '') {
|
|
||||||
trFileHTML = '<tr><td colspan="5" style="text-align: center;">NO FILE</td></tr>';
|
|
||||||
}
|
|
||||||
$("#tblefile").append(trFileHTML);
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function openbillmodel(i) {
|
|
||||||
|
|
||||||
// alert(i);
|
|
||||||
// return false;
|
|
||||||
var igr = $("#tblefile").find('tr').find('td').eq(2).text();
|
|
||||||
|
|
||||||
// alert(igr);
|
|
||||||
var Billno = $("#billno" + i).text();
|
|
||||||
// alert(Billno);
|
|
||||||
var file = $("#file" + i).text();
|
|
||||||
//alert(file);
|
|
||||||
|
|
||||||
|
|
||||||
$("#billModel").modal("show");
|
|
||||||
$("#bill").text(Billno);
|
|
||||||
$("#hideoldfile").val(file);
|
|
||||||
$("#hidebillno").val(Billno);
|
|
||||||
}
|
|
||||||
function deleteBill(Billno,i){
|
|
||||||
$.ajax({
|
|
||||||
data: {
|
|
||||||
id: Billno,
|
|
||||||
},
|
|
||||||
type: "POST",
|
|
||||||
url: "<?php echo base_url() ?>deleteAdditionalFile",
|
|
||||||
success: function(data) {
|
|
||||||
if (data) {
|
|
||||||
alert(data);
|
|
||||||
$('#row' + counter).remove();
|
|
||||||
$('.content').loader('hide');
|
|
||||||
$('#billModel').modal('hide');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
function validateTareWeight(element) {
|
function validateTareWeight(element) {
|
||||||
@ -1284,6 +1084,7 @@ function deleteBill(Billno,i){
|
|||||||
WeightDiffer(element)
|
WeightDiffer(element)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateTime() {
|
function updateTime() {
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
const year = now.getFullYear();
|
const year = now.getFullYear();
|
||||||
@ -1299,8 +1100,7 @@ function deleteBill(Billno,i){
|
|||||||
|
|
||||||
setInterval(updateTime, 1000); // Update every second
|
setInterval(updateTime, 1000); // Update every second
|
||||||
updateTime(); // Initial call to display time immediately
|
updateTime(); // Initial call to display time immediately
|
||||||
function WeightDiffer(element)
|
function WeightDiffer(element) {
|
||||||
{
|
|
||||||
// console.log(element);
|
// console.log(element);
|
||||||
var v1 = $("#GrossWeight").val();
|
var v1 = $("#GrossWeight").val();
|
||||||
var v2 = $("#TareWeight").val();
|
var v2 = $("#TareWeight").val();
|
||||||
@ -1437,8 +1237,7 @@ function deleteBill(Billno,i){
|
|||||||
contentType: false, // Don't set content type header
|
contentType: false, // Don't set content type header
|
||||||
processData: false,
|
processData: false,
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
if(data)
|
if (data) {
|
||||||
{
|
|
||||||
alert(data);
|
alert(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1458,8 +1257,6 @@ function deleteBill(Billno,i){
|
|||||||
console.log("Saving values for index: " + inx + " undefined");
|
console.log("Saving values for index: " + inx + " undefined");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
function formatDateTime(dateString, flag) {
|
function formatDateTime(dateString, flag) {
|
||||||
@ -1581,11 +1378,11 @@ function deleteBill(Billno,i){
|
|||||||
div.className = "row";
|
div.className = "row";
|
||||||
div.innerHTML = '<div class="col-md-12">' +
|
div.innerHTML = '<div class="col-md-12">' +
|
||||||
'<div class="col-md-3">' +
|
'<div class="col-md-3">' +
|
||||||
'<label><br></label>' +
|
'<label class="col-form-label"><br></label>' +
|
||||||
'<input type="file" name="browseFiles" id="images' + counter + '" ><br>' +
|
'<input type="file" name="browseFiles" id="images' + counter + '" ><br>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div class="col-md-2">' +
|
'<div class="col-md-2">' +
|
||||||
'<label><br><br></label>' +
|
'<label class="col-form-label"><br><br></label>' +
|
||||||
'<button class="btn btn-success" type ="button" id="addbtn" onclick="addRow(' + counter + ')">ADD</button></div>' +
|
'<button class="btn btn-success" type ="button" id="addbtn" onclick="addRow(' + counter + ')">ADD</button></div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>';
|
'</div>';
|
||||||
@ -1642,6 +1439,7 @@ function deleteBill(Billno,i){
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function addToTable(counter, billNo, fileName) {
|
function addToTable(counter, billNo, fileName) {
|
||||||
var hidecounter = $("#hidecounter").val();
|
var hidecounter = $("#hidecounter").val();
|
||||||
var file_count = $("#hidegrandcounter").val();
|
var file_count = $("#hidegrandcounter").val();
|
||||||
@ -1661,7 +1459,8 @@ function deleteBill(Billno,i){
|
|||||||
'</tr>';
|
'</tr>';
|
||||||
$('#tblefile').append(newRow);
|
$('#tblefile').append(newRow);
|
||||||
}
|
}
|
||||||
function Copyfilenames(id) {
|
|
||||||
|
function filenames(id) {
|
||||||
var size = $('input[name=' + id + ']')[0].files[0].size;
|
var size = $('input[name=' + id + ']')[0].files[0].size;
|
||||||
if (size > 2100000) {
|
if (size > 2100000) {
|
||||||
alert('Sorry Your File is Large To 2MB');
|
alert('Sorry Your File is Large To 2MB');
|
||||||
@ -1669,7 +1468,6 @@ function deleteBill(Billno,i){
|
|||||||
var name = $('input[name=' + id + ']')[0].files[0].name;
|
var name = $('input[name=' + id + ']')[0].files[0].name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
|
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/2.3.4/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/2.3.4/js/dataTables.buttons.min.js"></script>
|
||||||
@ -1706,8 +1504,7 @@ $(document).ready(function() {
|
|||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
"buttons": [
|
"buttons": [{
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
extend: 'excelHtml5',
|
||||||
text: 'Export to Excel',
|
text: 'Export to Excel',
|
||||||
title: 'Inward Gate Register',
|
title: 'Inward Gate Register',
|
||||||
@ -1722,7 +1519,8 @@ $(document).ready(function() {
|
|||||||
exportOptions: {
|
exportOptions: {
|
||||||
columns: ':visible:not(:last-child)' // Exclude first and last columns
|
columns: ':visible:not(:last-child)' // Exclude first and last columns
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -1812,18 +1610,19 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
$('#existingContainer').append(newRowHtml);
|
$('#existingContainer').append(newRowHtml);
|
||||||
}
|
}
|
||||||
|
|
||||||
function appendFilesFileds(data) {
|
function appendFilesFileds(data) {
|
||||||
var newRowHtml = `
|
var newRowHtml = `
|
||||||
<div class="col-md-12 pad">
|
<div class="form-row pad">
|
||||||
<div class="col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<span for="file_name">File name</span>
|
<label class="col-form-label">File name</label>
|
||||||
<input type="text" id="file_name" name="file_name[]" maxlength="255" class="form-control" value="${data != null && data != '' ? data.file_name : ''}">
|
<input type="text" id="file_name" name="file_name[]" maxlength="255" class="form-control" value="${data != null && data != '' ? data.file_name : ''}">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<span for="emp_file">File</span>
|
<span for="emp_file">File</span>
|
||||||
<input type="file" id="emp_file" name="emp_file[]" class="form-control">
|
<input type="file" id="emp_file" name="emp_file[]" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4" style="margin-top: 23px;">
|
<div class="form-group col-md-4 p-4">
|
||||||
<button type="button" class="btn btn-danger btn-sm" onclick="removeContact(this)">Remove</button>
|
<button type="button" class="btn btn-danger btn-sm" onclick="removeContact(this)">Remove</button>
|
||||||
<button type="button" class="btn btn-primary btn-sm a1" onclick="appendFilesFileds()">Add</button>
|
<button type="button" class="btn btn-primary btn-sm a1" onclick="appendFilesFileds()">Add</button>
|
||||||
</div>
|
</div>
|
||||||
@ -1870,9 +1669,9 @@ function removeContact(button) {
|
|||||||
var len = $('#filesContainer .pad:last .a1')
|
var len = $('#filesContainer .pad:last .a1')
|
||||||
var length = len.length;
|
var length = len.length;
|
||||||
if (length == 0) {
|
if (length == 0) {
|
||||||
$('#day').show()
|
$('#additionalfilebtn').show()
|
||||||
} else {
|
} else {
|
||||||
$('#day').hide()
|
$('#additionalfilebtn').hide()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1883,9 +1682,14 @@ $(document).ready(function() {
|
|||||||
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
|
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
|
||||||
],
|
],
|
||||||
pageLength: 10, // Default rows per page
|
pageLength: 10, // Default rows per page
|
||||||
lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] ], // Rows per page options
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
|
[10, 20, 30, 50, "All"]
|
||||||
|
], // Rows per page options
|
||||||
responsive: true, // Responsive table
|
responsive: true, // Responsive table
|
||||||
order: [[0, 'desc']], // Default ordering (column index 0, ascending)
|
order: [
|
||||||
|
[0, 'desc']
|
||||||
|
], // Default ordering (column index 0, ascending)
|
||||||
language: {
|
language: {
|
||||||
paginate: {
|
paginate: {
|
||||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
@ -1894,5 +1698,4 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user