header changes and stock details screen
This commit is contained in:
parent
03adb2875c
commit
844333fcd7
@ -169,6 +169,11 @@ $route['EditPO'] = "purchaseorder/EditPurchaseOrder";
|
||||
$route['EditAmendPO'] = "amendmentpurchaseorder/EditAmendPurchaseOrder";
|
||||
$route['EmergencyPO'] = "emergencypurchaseorder/CreateEmergencyPO";
|
||||
|
||||
//<!-- Store Requisition Flow ---------------->
|
||||
$route['storerequisition']="storerequisitionlist/addstore";
|
||||
$route['approvalstorerequisitionslip']="storerequisitionlist/SearchRequistLists";
|
||||
$route['storerequisitionlisting']="storerequisitionlist/addstorerequisitionlist";
|
||||
$route['EditStoreRequisition'] = "storerequisitionlist/EditStoreRequistion";
|
||||
|
||||
//<-------------IGR page----------------->
|
||||
$route['Addigr'] = "inwardgateregister/addinwardgateregister";
|
||||
|
||||
63
application/controllers/storestatus.php
Normal file
63
application/controllers/storestatus.php
Normal file
@ -0,0 +1,63 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
require APPPATH . '/libraries/BaseController.php';
|
||||
|
||||
/**
|
||||
* Class : Supplier Controller (supplier)
|
||||
* User Class to control all user related operations.
|
||||
* @author : Saravana kumar
|
||||
* @version : 1.1
|
||||
* @since : 4 July 2017
|
||||
*/
|
||||
class storestatus extends BaseController
|
||||
{
|
||||
/**
|
||||
* This is default constructor of the class
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->model('assetdetails_model');
|
||||
$this->load->library('form_validation');
|
||||
|
||||
|
||||
$this->isLoggedIn();
|
||||
}
|
||||
/**
|
||||
* This function used to load the first screen of the user
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$this->global['pageTitle'] = 'Siddharth Industries : Store Status';
|
||||
|
||||
$this->loadViews("storestatus", $this->global, NULL , NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to load the Supplier list
|
||||
*/
|
||||
function storeavailability()
|
||||
{
|
||||
|
||||
//$this->load->model('supplier_model');
|
||||
|
||||
|
||||
//$data['userRecords'] = $this->supplier_model->supplierListing();
|
||||
|
||||
$this->global['pageTitle'] = 'Siddharth Industries : Store Status';
|
||||
|
||||
$this->loadViews("storestatus", $this->global, NULL);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function pageNotFound()
|
||||
{
|
||||
$this->global['pageTitle'] = 'Siddharth : 404 - Page Not Found';
|
||||
|
||||
$this->loadViews("404", $this->global, NULL, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@ -296,14 +296,15 @@
|
||||
|
||||
<?php
|
||||
//if(($DEPCode == FINANCE && $role == ROLE_MANAGER)|| ($(DEPCode == PURCHASE && $role == ROLE_EMPLOYEE)))
|
||||
if($DEPCode == FINANCE || $DEPCode == PURCHASE || $DEPCode == MANAGEMENT)
|
||||
//if($DEPCode == FINANCE || $DEPCode == PURCHASE || $DEPCode == MANAGEMENT)
|
||||
if($Designation != SECURITY )
|
||||
{
|
||||
?>
|
||||
|
||||
<li class="treeview">
|
||||
<span id="menu" data-toggle="dropdown"><i class="fa fa-first-order"></i> Purchase order<span class="caret"></span></span>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
|
||||
<!-- All User can create Emergency po -->
|
||||
<!-- All User can create Emergency po except Security -->
|
||||
<?php if($Designation != SECURITY ){ ?>
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>EmergencyPO">
|
||||
@ -311,13 +312,15 @@
|
||||
<span>Emergency Purchase Order </span>
|
||||
</a>
|
||||
</li>
|
||||
<?php if($DEPCode == PURCHASE ){ ?>
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>amendmentpurchaseorder">
|
||||
<i class="fa fa-ambulance"></i>
|
||||
<span>Amendment Purchase Order </span>
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
} ?>
|
||||
<?php
|
||||
//if($DEPCode == PURCHASE && $role == ROLE_EMPLOYEE)
|
||||
if($DEPCode == PURCHASE )
|
||||
@ -334,7 +337,7 @@
|
||||
?>
|
||||
<!-- For Finance Team for PO approval list-->
|
||||
<?php
|
||||
//if($DEPCode == FINANCE && $role == ROLE_MANAGER)
|
||||
|
||||
if($DEPCode == FINANCE && $role == ROLE_MANAGER)
|
||||
{
|
||||
?>
|
||||
@ -382,9 +385,35 @@
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if($DEPCode == STORE ) {
|
||||
|
||||
?>
|
||||
<li class="treeview">
|
||||
<span id="menu" data-toggle="dropdown" ><i class="fa fa-check-square-o"></i> Store Requisition<span class="caret"></span></span>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>storerequisition">
|
||||
<i class="fa fa-upload"></i>
|
||||
<span>Store Requisition</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>approvalstorerequisitionslip">
|
||||
<i class="fa fa-eye"></i>
|
||||
<span>Approve Store Requisition</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>storerequisitionlisting">
|
||||
<i class="fa fa-eye"></i>
|
||||
<span>Store Requisition Listing</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
if($DEPCode == FINANCE)
|
||||
{
|
||||
?>
|
||||
@ -473,7 +502,16 @@
|
||||
?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
if($DEPCode == STORE)
|
||||
{ ?>
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>storestatus/storeavailability">
|
||||
<i class="fa fa-dashboard"></i> <span>Stock Details</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<img src="<?php echo base_url(); ?>assets/dist/img/avatar.png" class="user-image" alt="User Image"/>
|
||||
|
||||
142
application/views/storestatus.php
Normal file
142
application/views/storestatus.php
Normal file
@ -0,0 +1,142 @@
|
||||
<style>
|
||||
.num {
|
||||
text-align :right;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="content-wrapper">
|
||||
<?php
|
||||
/* $attributes = array('class' => 'form-label-left RequisitionList ','name' => 'RequisitionList','id' => 'RequisitionList','method' => 'post','role' => 'form' );
|
||||
|
||||
echo form_open($this->config->base_url().'purchaseorderform/purchaseorder',$attributes); */?>
|
||||
|
||||
<section class="content">
|
||||
<center><b><h2>Siddharth Industries - Stock Details </h2></b></center>
|
||||
<div class="container-fluid">
|
||||
<table id="storestatuslisting" class="table table-bordered table-hover editableTable" style="font-size:12px;">
|
||||
|
||||
<!--- -cdd df df -->
|
||||
<!--- -cdd df df -->
|
||||
<div class="modal fade" role="dialog">
|
||||
|
||||
<thead style="background-color:#fff">
|
||||
<tr>
|
||||
<th>SNo.</th>
|
||||
<th>Material Code</th>
|
||||
<th>Material Name</th>
|
||||
<th>UOM</th>
|
||||
<th>Available Stock</th>
|
||||
<th>Stock Availablity</th>
|
||||
<th>Updated On</th>
|
||||
<th>Remarks</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>Sand001</td>
|
||||
<td>Dry Silica Sand</td>
|
||||
<td>Kgs</td>
|
||||
<td>
|
||||
<?php
|
||||
$data = array('name' => 'AvalQuantity','value' => set_value('AvalQuantity'),'id'=>'AvalQuantity', 'class' => 'form-control num' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</td>
|
||||
|
||||
<td data-name="sel">
|
||||
<select name="status">
|
||||
<option value="1">High</option>
|
||||
<option value="2">Mediam</option>
|
||||
<option value="3">Low</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>02/07/2017</td>
|
||||
<td>
|
||||
<?php
|
||||
$data = array('name' => 'Remarks','value' => set_value('Remarks'),'id'=>'Remarks', 'class' => 'form-control' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
<td>Sand002</td>
|
||||
<td>Wast Sand</td>
|
||||
<td>Kgs</td>
|
||||
<td><?php
|
||||
$data = array('name' => 'AvalQuantity','value' => set_value('AvalQuantity'),'id'=>'AvalQuantity', 'class' => 'form-control num' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</td>
|
||||
|
||||
<td data-name="sel">
|
||||
<select name="status">
|
||||
<option value="1">High</option>
|
||||
<option value="2">Mediam</option>
|
||||
<option value="3">Low</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>04/07/2017</td>
|
||||
<td>
|
||||
<?php
|
||||
$data = array('name' => 'Remarks','value' => set_value('Remarks'),'id'=>'Remarks', 'class' => 'form-control' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3</td>
|
||||
<td>Resin002</td>
|
||||
<td>Resin</td>
|
||||
<td>Liter</td>
|
||||
<td>
|
||||
<?php
|
||||
$data = array('name' => 'AvalQuantity','value' => set_value('AvalQuantity'),'id'=>'AvalQuantity', 'class' => 'form-control num' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</td>
|
||||
|
||||
<td data-name="sel">
|
||||
<select name="status">
|
||||
<option value="1">High</option>
|
||||
<option value="2">Mediam</option>
|
||||
<option value="3">Low</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>03/07/2017</td>
|
||||
<td>
|
||||
<?php
|
||||
$data = array('name' => 'Remarks','value' => set_value('Remarks'),'id'=>'Remarks', 'class' => 'form-control' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<div align="right" style="padding-right:10px">
|
||||
|
||||
<button type="button" class="btn btn-primary">Update Availability</button></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
|
||||
$('#storestatuslisting').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": false
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user