189 lines
4.2 KiB
PHP
Executable File
189 lines
4.2 KiB
PHP
Executable File
|
|
|
|
|
|
<script>
|
|
$(document).ready(function(){
|
|
|
|
$("#PONO").select2();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<h1>
|
|
<center>Status Of Service Purchase Order</center>
|
|
</h1>
|
|
</section>
|
|
<section class="content"><br/>
|
|
<?php
|
|
$attributes = array('class' => 'form-label-left Status ','name' => 'Status','id' => 'Status');
|
|
|
|
echo form_open($this->config->base_url().'servicepurchaseorder/UpdateServiceStatus',$attributes); ?>
|
|
|
|
<div class="row" style="padding-bottom:1%">
|
|
<div id="content" > </div>
|
|
<div class="col-md-12">
|
|
<div class="col-md-3">
|
|
<?php
|
|
/* $attributes = array('class' => 'form-label-left ','name' => 'IGR','id' => ''); */
|
|
|
|
/* echo form_open($this->config->base_url().'/inwardgateregister/addNewigr/',$attributes); */?>
|
|
<label>Select Service Purchase Order NO </label>
|
|
<div>
|
|
<?php
|
|
$options = array("-1"=>'Purchase Order No');
|
|
|
|
if(!empty($PO))
|
|
{
|
|
//print_r($PO_NO);
|
|
foreach ($PO as $SI):
|
|
|
|
$options[$SI->PONO] = $SI->PONO ;
|
|
// $PONO = $SI->PONO;
|
|
|
|
endforeach;
|
|
|
|
}
|
|
|
|
echo form_dropdown('PONO', $options,set_value('PONO'),'id="PONO"' ,'class="form-control select2"' , 'required="true"');
|
|
|
|
?>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label>Work Status</label>
|
|
<div>
|
|
<?php
|
|
$options = array();
|
|
|
|
if(!empty($WorkStatus))
|
|
{
|
|
//print_r($PO_NO);
|
|
foreach ($WorkStatus as $SI):
|
|
|
|
$options[$SI->StatusCode] = $SI->StatusName ;
|
|
|
|
|
|
endforeach;
|
|
|
|
}
|
|
|
|
echo form_dropdown('WorkStatus', $options,set_value('WorkStatus'),'id="WorkStatus"' ,'class="form-control"' , 'required="true"');
|
|
|
|
?>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label>Remarks</label>
|
|
<div>
|
|
<?php
|
|
$data = array('name' => 'Remarks','value' => set_value('Remarks'),'id'=>'Remarks', 'class' => 'form-control' );
|
|
echo form_input($data);
|
|
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
<div class="col-md-1 col-md-offset-10">
|
|
|
|
<input type="submit" class="btn btn-primary">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<table id="StatusTable" class="table table-bordered table-hover editabletable IGR_Line" style="background-color:#fff;font-size:12px;">
|
|
<thead style="background-color:#ddf">
|
|
<tr>
|
|
<th>S.NO</th>
|
|
<th>ReqNo</th>
|
|
<th>Reqedby</th>
|
|
<th>ReqDate</th>
|
|
<th>SupplierName</th>
|
|
<th>Item Code</th>
|
|
<th>Description</th>
|
|
<th>UOM</th>
|
|
<th>Ordered Quantity</th>
|
|
<th>Rate</th>
|
|
|
|
<th>Work Status</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody id="tblAppend">
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
|
<input type="hidden" name="txtRowCount" id="txtRowCount" />
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<script>
|
|
$(function () {
|
|
$('#PONO').change(function() {
|
|
$("#tblAppend").empty();
|
|
|
|
var id = $('#PONO').val();
|
|
|
|
if(id != '-1')
|
|
{
|
|
|
|
$('#content').loader('show');
|
|
|
|
|
|
$.ajax({
|
|
data:{id:id},
|
|
type:"POST",
|
|
url:"<?php echo base_url() ?>servicepurchaseorder/getPODetails",
|
|
success:function(data) {
|
|
$('#content').loader('hide');
|
|
|
|
|
|
$("#tblAppend").empty();
|
|
|
|
|
|
$('#tblAppend').append(data);
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
else
|
|
{
|
|
alert('Please Select the Purchase Order Number to change the status');
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|
|
</section>
|
|
</div>
|
|
|