'Newscreenaddedandissuefixed'
This commit is contained in:
parent
e600ef34d8
commit
9ba8c46c51
@ -322,6 +322,7 @@ $(function() {
|
||||
<div class="col-md-3 col-md-offset-9" align = "right">
|
||||
<input type="hidden" name="txtRowCount" id="txtRowCount" />
|
||||
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
||||
<input type="hidden" name="txtDepCode" id="txtDepCode" value="<?php echo $DEPCode;?>" />
|
||||
<input type="hidden" name="txtStatus" id="txtStatus" />
|
||||
<!--<a class="btn btn-primary Save" ID="Save" onclick="Save()" > <span class="bold">Save</span></a> -->
|
||||
|
||||
@ -675,7 +676,7 @@ else
|
||||
$.ajax({
|
||||
data:$('.requistion').serialize(),
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>storerequisitionlist/addNewRequistion?ID="+id+"&RequestedBy="+RequestedBy+"&CostCenter="+CostCenter+"&DEPCode="+DEPCode+"&txtRowCount="+txtRowCount,
|
||||
url:"<?php echo base_url() ?>storerequisitionlist/addNewRequistion",
|
||||
|
||||
success:function(data) {
|
||||
if(data)
|
||||
@ -685,7 +686,7 @@ else
|
||||
$('#txtRowCount').val('');
|
||||
$('#txtDeletedRow').val('');
|
||||
|
||||
window.location = "addstorerequisitionlist";
|
||||
window.location = "addstore";
|
||||
|
||||
}
|
||||
else
|
||||
|
||||
@ -15,68 +15,7 @@
|
||||
|
||||
echo form_open($this->config->base_url().'storerequisitionlist/SearchRequistLists',$attributes); ?>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Store Requisition Status</label>
|
||||
<div>
|
||||
|
||||
<select class="form-control required" id="RequisitionStatus" name="RequisitionStatus" >
|
||||
<option value="-1" >Select Status</option>
|
||||
<?php
|
||||
if(!empty($Status))
|
||||
{
|
||||
foreach ($Status as $DEP)
|
||||
{
|
||||
$StatusCode = $DEP->StatusCode;
|
||||
|
||||
if ($_POST['RequisitionStatus'] == $StatusCode)
|
||||
{
|
||||
|
||||
echo "<option value=\"".$StatusCode."\" selected=\"selected\">".$StatusCode.' - '. $DEP->StatusName."</option>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<option value=\"".$StatusCode."\">".$StatusCode.' - '. $DEP->StatusName ."</option>";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label>Date range:</label>
|
||||
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon">
|
||||
<i class="fa fa-calendar"></i>
|
||||
</div>
|
||||
<input type="text" class="form-control pull-right" id="SearchDate" value="<?php echo isset($_POST['SearchDate']) ? $_POST['SearchDate'] : '' ?>" name="SearchDate">
|
||||
</div>
|
||||
<!-- /.input group -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label> </label>
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="FromDate" id="FromDate" />
|
||||
<input type="hidden" name="ToDate" id="ToDate" />
|
||||
<input type="submit" class="btn btn-primary" >
|
||||
<!-- <input type="Reset" class="btn btn-primary" >
|
||||
|
||||
<!-- <button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<!--<a class="btn btn-info" onclick="Search()" >Search</a> -->
|
||||
<a class="btn btn-primary" onclick="Reset()" >Clear</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@ -90,7 +29,7 @@
|
||||
<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> Store Requisition Details - STORE REQNo</h4></center>
|
||||
<center><h4> Store Requisition Details - REQNo</h4></center>
|
||||
</div>
|
||||
<div align="left">
|
||||
|
||||
@ -272,20 +211,7 @@
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><a data-toggle="modal" data-target="#StoreReq" >STREQ0001</a></td>
|
||||
<td>Kasiraman</td>
|
||||
<td>20/6/2017</td>
|
||||
<td>Pending Approval</td>
|
||||
<td>
|
||||
<select name="" id="">
|
||||
<option value="1">Select Action</option>
|
||||
<option value="2">Approve</option>
|
||||
<option value="3">Reject</option>
|
||||
</select>
|
||||
</td>
|
||||
<td contenteditable="true"></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
@ -312,12 +238,13 @@ function Reset()
|
||||
}
|
||||
$("#myModal").on("shown.bs.modal", function(e) {
|
||||
var ReqId = $(e.relatedTarget).data('userid');
|
||||
// alert(ReqId);
|
||||
$('#ReqNO').val(ReqId);
|
||||
$("#CostCenter").val('');
|
||||
$("#tbleAppend").empty();
|
||||
$("#Requestedby").val('');
|
||||
$("#ReqDate").val('');
|
||||
$("#ReqDate").val('');
|
||||
$("#Desigination").val('');
|
||||
$("#AvlBudgetAmount").val('');
|
||||
|
||||
$('#content').loader('show');
|
||||
$.ajax({
|
||||
data:{id:ReqId},
|
||||
@ -325,16 +252,18 @@ function Reset()
|
||||
dataType: 'json',
|
||||
url:"<?php echo base_url() ?>storerequisitionlist/ViewRequest",
|
||||
success:function(json) {
|
||||
//success:function(data) {
|
||||
$('#content').loader('hide');
|
||||
//alert();
|
||||
//alert(json.Requist);
|
||||
if(json.Requist != '')
|
||||
{
|
||||
//alert(json.Requist[0]['Requestedby']) ;
|
||||
$("#Requestedby").val(json.Requist[0]['Requestedby']);
|
||||
$("#ReqDate").val(json.Requist[0]['ReqDate']);
|
||||
$("#Desigination").val(json.Requist[0]['DepartmentName']);
|
||||
$("#CostCenter").val(json.Requist[0]['CostCenterName']);
|
||||
|
||||
//$("#AvlBudgetAmount").val(json.Requist[0]['BudgetAmount']);
|
||||
$("#AvlBudgetAmount").val(json.AvilBudAmount);
|
||||
$("#tbleAppend").append(json.Items);
|
||||
$("#tbleAppend").append(json.Items);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -346,36 +275,28 @@ function Reset()
|
||||
function saveToDatabase(ReqId,Index,option,com)
|
||||
{
|
||||
|
||||
// alert(ReqId);
|
||||
|
||||
// alert(Index);
|
||||
// alert(option);
|
||||
// alert(com);
|
||||
var newcomments=document.getElementById('newcomments'+Index+'').innerHTML;
|
||||
var id=ReqId;
|
||||
var Status= '';
|
||||
//alert(newcomments);
|
||||
if (option == -1 )
|
||||
if (option == -1 )
|
||||
{
|
||||
alert("Please Select Option");
|
||||
|
||||
|
||||
alert("Please Select Approve/Reject option");
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
else if (option == 1 )
|
||||
{
|
||||
alert(' The Approval ');
|
||||
Status='<?php echo STORE_APPROVAL ?>' ;
|
||||
// alert(' The Approval ');
|
||||
Status='<?php echo STORE_APPROVAL;?>';
|
||||
var strMsg='Do YOu want to Approve this requisition?';
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('The Rejects' );
|
||||
|
||||
|
||||
Status='<?php echo STORE_REJECT ?>' ;
|
||||
|
||||
Status='<?php echo STORE_REJECT;?>';
|
||||
var strMsg='Do You want to Reject this requisition?';
|
||||
|
||||
}
|
||||
@ -393,7 +314,7 @@ function saveToDatabase(ReqId,Index,option,com)
|
||||
{
|
||||
$('#content').loader('hide');
|
||||
alert(data);
|
||||
window.location = "storerequisitionlisting";
|
||||
location.reload();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
414
application/views/issueStoreRequistion.php
Normal file
414
application/views/issueStoreRequistion.php
Normal file
@ -0,0 +1,414 @@
|
||||
<?php
|
||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||
$CurrentDate = $dt->format('d-m-y');
|
||||
|
||||
// print_r($cost);die();
|
||||
|
||||
|
||||
|
||||
|
||||
$CostCenterCode='';
|
||||
$CostCenterName='';
|
||||
$StoreReqNo='';
|
||||
$ReqDate='';
|
||||
$DepartmentName='';
|
||||
$DEPCode = '';
|
||||
$RowCount = 0;
|
||||
if(!empty($ReqListDetails))
|
||||
{
|
||||
foreach ($ReqListDetails as $Req ) {
|
||||
|
||||
$CostCenterCode = $Req->CostCenterCode;
|
||||
$CostCenterName=$Req->CostCenterName;
|
||||
$StoreReqNo=$Req->StoreReqNo;
|
||||
$dt = new DateTime($Req->ReqDate);
|
||||
$ReqDate = $dt->format('d-m-y');
|
||||
$DEPCode = $Req->DEPCode;
|
||||
$DepartmentName=$Req->DepartmentName;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
//Initialize Select2 Elements
|
||||
|
||||
$("#MaterialCode").select2();
|
||||
|
||||
|
||||
$("#Date").datepicker({
|
||||
// minDate : 'now',
|
||||
maxDate : 'now',
|
||||
dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
<style type="text/css">
|
||||
.num{
|
||||
text-align:right;
|
||||
}
|
||||
.select2
|
||||
{
|
||||
width: 100% ! important;
|
||||
}
|
||||
.dataTables_wrapper {
|
||||
padding-bottom: 0px ! important;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper" style="min-height: 500px ! important;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<center>Siddharth Industries - Store Requisition - <?php echo $StoreReqNo; ?></center>
|
||||
|
||||
</h1>
|
||||
</section>
|
||||
<section class="content">
|
||||
<div class="row" style="border:2px dotted; padding:2% 5%">
|
||||
<?php
|
||||
$attributes = array('class' => 'form-label-left requistion ','name' => 'requistion','id' => 'requistion');
|
||||
|
||||
echo form_open($this->config->base_url().'storerequisitionlist/UpdateIssueRequistion',$attributes);
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<!-- <form method="post" role="form" > -->
|
||||
<div class="row">
|
||||
<input type="hidden" name="txtReqNo" id="txtReqNo" value="<?php echo $StoreReqNo?>"/>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Requested By</label>
|
||||
<?php
|
||||
$data = array('name' => 'RequestedBy','value' => set_value('RequestedBy',$name), 'id'=>'RequestedBy','class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Department Name</label>
|
||||
<?php
|
||||
$data = array('name' => 'DepartmentName','value' => set_value('DepartmentName',$DEPCode . " - ".$DepartmentName), 'id'=>'DepartmentName','class' => 'form-control ' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Requested Date</label>
|
||||
<?php
|
||||
$data = array('name' => 'Date','value' => set_value('Date',$ReqDate), 'id' =>"Date", 'class' => 'form-control num' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Cost Center</label>
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'CostCenter','value' => set_value('CostCenter',$CostCenterCode . " - ".$CostCenterName),'id'=>"CostCenter", 'class' => 'form-control','readonly' => 'true' );
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<table id="Items" class="table table-bordered table-hover editableTable" style="background-color:#fff;font-size:12px;">
|
||||
<thead style="background-color: #CFCFCF;">
|
||||
<th>SNO</th>
|
||||
<th>Item Code</th>
|
||||
<th>Description</th>
|
||||
<th>UOM</th>
|
||||
<th>Requested Quantity</th>
|
||||
<th>Requester Remarks</th>
|
||||
<th>Issued Quantity</th>
|
||||
<th>Comments</th>
|
||||
</thead>
|
||||
<tbody id='mytab'>
|
||||
|
||||
<?php
|
||||
if(!empty($ReqItem))
|
||||
{ //alert();
|
||||
$index = 0;
|
||||
foreach($ReqItem as $record)
|
||||
{
|
||||
//print_r($record);
|
||||
$index = $index + 1;
|
||||
?>
|
||||
<tr id="<?php echo $index ; ?>">
|
||||
<td align="left"><?php echo $index ; ?></td>
|
||||
<!-- <input type="hidden" name="<?php echo 'te'.$index ?>" id="<?php echo 'te'.$index ?>" value="<?php echo $record->MaterialCode ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'te'.$index ?>" id="<?php echo 'tes'.$index ?>" value="<?php echo $record->QuantityRequired ; ?>" /> -->
|
||||
|
||||
<td align="left"><?php echo $record->MaterialCode ?></td>
|
||||
<td align="left"><?php echo $record->MaterialName ?></td>
|
||||
|
||||
<td align="left"><?php echo $record->UOM ?></td>
|
||||
|
||||
<td align="right"><?php echo $record->QuantityRequired ?></td>
|
||||
<td align="left"><?php echo $record->Remarks ?></td>
|
||||
<td align="left"> <input type="text" onchange="SaveIssueQuantity(<?php echo $index ?>)" id="<?php echo 'issuedQuantity'.$index ?>" name="<?php echo 'issuedQuantity'.$index ?>" class="form required" onkeypress="return isNumberKey(event);"value="<?php echo $record->QuantityIssued; ?>">
|
||||
</td>
|
||||
|
||||
|
||||
<td align="left"><input type="text" onchange="SaveRemarks(<?php echo $index ?>)" id="<?php echo 'Comments'.$index ?>" name="<?php echo 'Comments'.$index ?>" class="form required" value="<?php echo $record->StoreComments; ?>" >
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<?php $RowCount = $index; }
|
||||
?>
|
||||
|
||||
<?php
|
||||
}?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
<div class="col-md-3 col-md-offset-9" align = "right">
|
||||
<input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php echo $RowCount;?>" />
|
||||
|
||||
<input type="hidden" name="txtStatus" id="txtStatus" />
|
||||
<!--<a class="btn btn-primary Save" ID="Save" onclick="Save()" > <span class="bold">Save</span></a> -->
|
||||
|
||||
<!-- <a class="btn btn-primary Save" ID="Save" onclick="Save(0)" > <span class="bold">Save</span></a>
|
||||
|
||||
|
||||
<a class="btn btn-primary Submit" ID="Submit" onclick="Save(1)" > <span class="bold">Submit</span></a>
|
||||
|
||||
<input type="Submit" class="btn btn-info" />-->
|
||||
|
||||
<input type="submit" class="btn btn-primary Submit" value="Update"/ >
|
||||
|
||||
<input type="reset" class="btn btn-primary Submit" value="Cancel" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="tempList">
|
||||
<tr id="<%=index%>">
|
||||
<td align="left"><%=index%></td>
|
||||
<td align="left"><%=MaterialCode%></td>
|
||||
|
||||
<td align="left"><%=MaterialName%></td>
|
||||
|
||||
<td align="left"><%=UOM%></td>
|
||||
|
||||
<td align="left"><%=Quantity%></td>
|
||||
<td><%=Remarks%></td>
|
||||
<td align="left"></td> <!-- Issued Quantity -->
|
||||
|
||||
<td></td> <!-- Comments -->
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!--copy script-->
|
||||
<script>
|
||||
var j =0;
|
||||
var isExceed = 0;
|
||||
$(function() {
|
||||
var ReqLineItem = <?php echo json_encode($ReqItem, JSON_PRETTY_PRINT) ?>;
|
||||
$.each(ReqLineItem, function(idx, obj) {
|
||||
|
||||
//$("#SupAddress").val(obj.Address);
|
||||
j= j +1 ;
|
||||
$('<input>').attr({
|
||||
type: 'hidden',
|
||||
id: 'MaterialCode' + j,
|
||||
name: 'MaterialCode'+ j,
|
||||
value:obj.MaterialCode
|
||||
|
||||
}).appendTo('form');
|
||||
|
||||
$('<input>').attr({
|
||||
type: 'hidden',
|
||||
id: 'txtIssuedQuantity' + j,
|
||||
name: 'txtIssuedQuantity'+ j,
|
||||
}).appendTo('form');
|
||||
|
||||
|
||||
$('<input>').attr({
|
||||
type: 'hidden',
|
||||
id: 'txtRemarks' + j,
|
||||
name: 'txtRemarks'+ j,
|
||||
}).appendTo('form');
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
function isNumberKey(evt)
|
||||
{
|
||||
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
||||
if (charCode != 46 && charCode > 31
|
||||
&& (charCode < 48 || charCode > 57))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
var index = '1';
|
||||
var userid = '';
|
||||
|
||||
function SaveIssueQuantity(RowId)
|
||||
{
|
||||
var qty = $("#issuedQuantity"+RowId).val();
|
||||
//alert(qty);
|
||||
if( qty != '')
|
||||
{
|
||||
$("#txtIssuedQuantity"+RowId).val(qty);
|
||||
}
|
||||
}
|
||||
function SaveRemarks(RowId)
|
||||
{
|
||||
var remks = $("#Comments"+RowId).val();
|
||||
if( remks != '')
|
||||
{
|
||||
$("#txtRemarks"+RowId).val(remks);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function Save(status)
|
||||
{
|
||||
|
||||
//alert($(json.stringify(MaterialCode).val());
|
||||
var txtRowCount= $('#txtRowCount').val();
|
||||
//var mat = $('#MaterialCode'+txtRowCount).val();
|
||||
|
||||
if(status == '0')
|
||||
{
|
||||
stat = '<?php echo STORE_DRAFT; ?>';
|
||||
}
|
||||
else
|
||||
{
|
||||
stat = '<?php echo STORE_PENDINGAPPROVAL; ?>';
|
||||
}
|
||||
|
||||
$('#txtStatus').val(stat);
|
||||
|
||||
|
||||
var id=$('#txtStatus').val();
|
||||
|
||||
|
||||
var RequestedBy=$('#RequestedBy').val();
|
||||
var CostCenter=$('#CostCenter').val();
|
||||
var splitDepCode= $('#DepartmentName').val();
|
||||
DEPCode = splitDepCode.split('-')[0];
|
||||
|
||||
if (validate())
|
||||
{
|
||||
if(document.getElementById('mytable').rows.length < 0)
|
||||
{
|
||||
alert('Please Select Line item to Store Requisition');
|
||||
$('#Deliverydt').focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
console.log($('.requistion').serialize());
|
||||
|
||||
$('#content').loader('show');
|
||||
$.ajax({
|
||||
data:$('.requistion').serialize(),
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>storerequisitionlist/EditStoreRequisitions?ID="+id+"&RequestedBy="+RequestedBy+"&CostCenter="+CostCenter+"&DEPCode="+DEPCode+"&txtRowCount="+txtRowCount,
|
||||
|
||||
success:function(data) {
|
||||
if(data)
|
||||
{
|
||||
$('#content').loader('hide');
|
||||
alert(data);
|
||||
$('#txtRowCount').val('');
|
||||
$('#txtDeletedRow').val('');
|
||||
|
||||
//window.location = "storerequisitionlist";
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("Error");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
function validate()
|
||||
{
|
||||
|
||||
if($("option:selected", $("#CostCenter")).val() == '-1')
|
||||
{
|
||||
alert('Please Select CostCenter');
|
||||
return false;
|
||||
}
|
||||
|
||||
else if($("option:selected", $("#MaterialCode")).val() == '-1')
|
||||
{
|
||||
alert('Please Select MaterialCode');
|
||||
return false;
|
||||
}
|
||||
|
||||
else if(document.getElementById('mytable').rows.length < 1)
|
||||
{
|
||||
alert('Please Add Line Item');
|
||||
return false;
|
||||
}
|
||||
else if(isExceed == 1)
|
||||
{
|
||||
alert('You dont have Budget and You cant Raise New StoreRequisition');
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<script>
|
||||
|
||||
$(function () {
|
||||
$('#Items').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": true
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@ -30,53 +30,24 @@ span.highlight {
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Store Requisition Status</label>
|
||||
|
||||
<div>
|
||||
|
||||
<select class="form-control required" id="RequisitionStatus" name="RequisitionStatus" >
|
||||
|
||||
|
||||
|
||||
<!-- <?php
|
||||
$attributes = array('class' => 'form-label-left requistion ','name' => 'requistion','id' => 'requistion');
|
||||
<?php
|
||||
$attributes = array('class' => 'form-label-left Storerequistion ','name' => 'Storerequistion','id' => 'Storerequistion');
|
||||
|
||||
echo form_open($this->config->base_url().'storerequisitionlist
|
||||
/ addstorerequisitionlist',$attributes); ?> -->
|
||||
/ addstorerequisitionlist',$attributes); ?>
|
||||
|
||||
<option value="-1" >Select Status</option>
|
||||
<?php
|
||||
if(!empty($Status))
|
||||
{
|
||||
foreach ($Status as $DEP)
|
||||
{
|
||||
$StatusCode = $DEP->StatusCode;
|
||||
|
||||
if ($_POST['RequisitionStatus'] == $StatusCode)
|
||||
{
|
||||
|
||||
echo "<option value=\"".$StatusCode."\" selected=\"selected\">".$StatusCode.' - '. $DEP->StatusName."</option>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<option value=\"".$StatusCode."\">".$StatusCode.' - '. $DEP->StatusName ."</option>";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label>Date range:</label>
|
||||
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon">
|
||||
<i class="fa fa-calendar"></i>
|
||||
</div>
|
||||
<input type="text" class="form-control pull-right" id="SearchDate" value="<?php echo isset($_POST['SearchDate']) ? $_POST['SearchDate'] : '' ?>" name="SearchDate">
|
||||
</div>
|
||||
<!-- /.input group -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -85,12 +56,12 @@ span.highlight {
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="FromDate" id="FromDate" />
|
||||
<input type="hidden" name="ToDate" id="ToDate" />
|
||||
<input type="submit" class="btn btn-primary" >
|
||||
|
||||
<!-- <input type="Reset" class="btn btn-primary" >
|
||||
|
||||
<!-- <button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<!--<a class="btn btn-info" onclick="Search()" >Search</a> -->
|
||||
<a class="btn btn-primary" onclick="Reset()" >Clear</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@ -105,18 +76,27 @@ span.highlight {
|
||||
<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> Store Requisition Details - REQ No</h4></center>
|
||||
<center><h4> Store Requisition Number Details </h4></center>
|
||||
</div>
|
||||
<div align="left">
|
||||
|
||||
<div class="col-md-12">
|
||||
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-3">
|
||||
<label>Requistion No</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ReqNO','value' => set_value('ReqNO'),'id'=>'ReqNO', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Requested By</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Requestedby','value' => set_value('Requestedby'),'id'=>'Requestedby', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'ReqBy','value' => set_value('ReqBy'),'id'=>'ReqBy', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -181,7 +161,8 @@ span.highlight {
|
||||
<th>Item Code</th>
|
||||
<th>Item Description</th>
|
||||
<th>UOM</th>
|
||||
<th>Quantity</th>
|
||||
<th>Requested Quantity</th>
|
||||
<th>Issued Quantity</th>
|
||||
<th>Remarks</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -217,9 +198,9 @@ span.highlight {
|
||||
<thead style="background-color:#ddf">
|
||||
<tr>
|
||||
<th>Store Requisition No</th>
|
||||
<th>Requested Date</th>
|
||||
<th>Requested Quantity</th>
|
||||
<th>Issued Quantity</th>
|
||||
<th>Requested Department</th>
|
||||
<th>Requested By</th>
|
||||
<th>Requested Date</th>
|
||||
<th>Status</th>
|
||||
<th>Requester Comments</th>
|
||||
|
||||
@ -238,15 +219,16 @@ span.highlight {
|
||||
$index = $index +1;
|
||||
?>
|
||||
<tr id="<?php echo $index ?>" >
|
||||
<td><a data-toggle="modal" data-target="#storereqdetail" data-id="<%=index%>" data-userid="<?php echo $record->StoreReqNo ?>" ><u><?php echo $record->StoreReqNo ?></u></a></td>
|
||||
|
||||
|
||||
<td><a data-toggle="tooltip" href="<?php echo base_url().'storerequisitionlist/issuestorerequisition?ReqNo='.$record->StoreReqNo; ?>" title="<?php echo $record->StoreReqNo; ?> - Click here to view store Requisition details" ><u><?php echo $record->StoreReqNo ?></u></a>
|
||||
</td>
|
||||
<td><?php echo $record->DepartmentName ?></td>
|
||||
<td><?php echo $record->Requestedby ?></td>
|
||||
<td align="right"><?php
|
||||
$rdate = new DateTime($record->ReqDate) ;
|
||||
$ReqDate = $rdate->format('d-m-Y');
|
||||
echo $ReqDate; ?></td>
|
||||
<td align="right"><?php echo $record->QuantityRequired ?></td>
|
||||
<td contenteditable="true" align="right"><?php echo $record->QuantityIssued ?></td>
|
||||
|
||||
|
||||
|
||||
<td><?php echo $record->StatusName ?></td>
|
||||
<td> <?php echo $record->Remarks ?></td>
|
||||
@ -263,6 +245,7 @@ span.highlight {
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="content"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -274,6 +257,25 @@ span.highlight {
|
||||
var startDate = '';
|
||||
var endDate = '';
|
||||
|
||||
function SaveIssueQuantity(rowid)
|
||||
{
|
||||
var IssueQty = $("#IssuedQuantity"+RowId).val();
|
||||
|
||||
if( IssueQty != '')
|
||||
{
|
||||
$('#content').loader('show');
|
||||
$.ajax({
|
||||
data:{id:IssueQty},
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>storerequisitionlist/SaveIssuedQuantity",
|
||||
success:function(data) {
|
||||
$('#content').loader('hide');
|
||||
alert(data);
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
function Reset()
|
||||
{
|
||||
$('#RequisitionStatus').val("-1");
|
||||
@ -281,29 +283,27 @@ function Reset()
|
||||
}
|
||||
$("#storereqdetail").on("shown.bs.modal", function(e) {
|
||||
var ReqId = $(e.relatedTarget).data('userid');
|
||||
$('#ReqNO').val(ReqId);
|
||||
$("#CostCenter").val('');
|
||||
$("#tbleAppend").empty();
|
||||
$("#Requestedby").val('');
|
||||
$("#ReqDate").val('');
|
||||
$("#ReqDate").val('');
|
||||
$("#Desigination").val('');
|
||||
$("#AvlBudgetAmount").val('');
|
||||
//$('#content').loader('show');
|
||||
|
||||
$('#content').loader('show');
|
||||
$.ajax({
|
||||
data:{id:ReqId},
|
||||
type:"POST",
|
||||
dataType: 'json',
|
||||
url:"<?php echo base_url() ?>storerequisitionlist/ViewRequest",
|
||||
success:function(json) {
|
||||
// success:function(data) {
|
||||
$('#content').loader('hide');
|
||||
//alert();
|
||||
$("#Requestedby").val(json.Requist[0]['Requestedby']);
|
||||
// alert(data) ;
|
||||
$("#ReqBy").val(json.Requist[0]['Requestedby']);
|
||||
$("#ReqDate").val(json.Requist[0]['ReqDate']);
|
||||
$("#Desigination").val(json.Requist[0]['DepartmentName']);
|
||||
$("#CostCenter").val(json.Requist[0]['CostCenterName']);
|
||||
|
||||
//$("#AvlBudgetAmount").val(json.Requist[0]['BudgetAmount']);
|
||||
$("#AvlBudgetAmount").val(json.AvilBudAmount);
|
||||
$("#tbleAppend").append(json.Items);
|
||||
$("#tbleAppend").append(json.Items);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -13,10 +13,119 @@
|
||||
<section class="content">
|
||||
<center><b><h2>Siddharth Industries - Stock Details </h2></b></center>
|
||||
<div class="container-fluid">
|
||||
<div align="right">
|
||||
<!-- Trigger the modal with a button to add Item-->
|
||||
<button type="button" class="btn btn-info" data-toggle="modal" data-target="#AddItemModel">Add Item</button>
|
||||
</div>
|
||||
<!-- Start of Modal -->
|
||||
<div id="AddItemModel" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4>Add Item </h4></center>
|
||||
</div>
|
||||
<div align="left">
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>Material Code</label>
|
||||
<div >
|
||||
<?php
|
||||
$options = array("0"=>'Material Code');
|
||||
//print_r( $options);
|
||||
|
||||
if(!empty($MaterialList))
|
||||
{
|
||||
|
||||
foreach ($MaterialList as $MID):
|
||||
|
||||
|
||||
$options[$MID->MaterialCode] = $MID->MaterialCode.' '.' - '.' '.$MID->MaterialName;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('AddMaterialCode', $options,set_value('AddMaterialCode'),'id="AddMaterialCode"' ,'class="form-control"');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>Description</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AddDescription','value' => set_value('AddDescription'),'id'=>'AddDescription', 'class' => 'form-control','readonly' => 'true' );
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>UOM</label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'AddUOM','value' => set_value('AddUOM'),'id'=>'AddUOM', 'class' => 'form-control','readonly' => 'true' );
|
||||
echo form_input($data);
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Available Stock</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AddAvailableStock','value' => set_value('AddAvailableStock'),'id'=>'AddAvailableStock', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event)','maxlength'=>'20');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Stock Availablity</label>
|
||||
<div >
|
||||
<?php
|
||||
$options = array("0"=>'Selct Stock Availablity');
|
||||
//print_r( $options);
|
||||
|
||||
if(!empty($StockAvail))
|
||||
{
|
||||
|
||||
foreach ($MaterialList as $MID):
|
||||
|
||||
|
||||
$options[$MID->StockAvail] = $MID->StockAvail.' '.' - '.' '.$MID->StockAvail;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('StockAvail', $options,set_value('StockAvail'),'id="StockAvail"' ,'class="form-control num"');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Remarks</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AddRemarks','value' => set_value('AddRemarks'),'id'=>'AddRemarks', 'class' => 'form-control');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-info font EditItem" ID="EditItem" ><i class="fa fa-plus"></i> <span class="bold">Add</span></a>
|
||||
<a class="btn btn-info" data-dismiss="modal" value="Cancel">cancel</a>
|
||||
</div>
|
||||
</div></div>
|
||||
</div>
|
||||
<!-- End of Model -->
|
||||
<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">
|
||||
@ -32,86 +141,40 @@
|
||||
</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);
|
||||
?>
|
||||
<?php if(!empty($Stock))
|
||||
{
|
||||
$index = 0;
|
||||
foreach($Stock as $record)
|
||||
{
|
||||
$index = $index + 1;
|
||||
?>
|
||||
|
||||
<tr id="<?php echo $index ; ?>">
|
||||
<td align="left"><?php echo $index ; ?></td>
|
||||
<td align="left"><?php echo $record->MaterialCode ; ?></td>
|
||||
<td align="left"><?php echo $record->MaterialName ; ?></td>
|
||||
<td align="left"><?php echo $record->UOM ; ?></td>
|
||||
<td align="right"><input type="text" name="<?php echo 'AvalQuantity'.$index ?>" id="<?php echo 'AvalQuantity'.$index ?>" value="<?php echo $record->Quantity ; ?>" onkeypress="return isNumberKey(event);" />
|
||||
|
||||
</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 align="left"><?php $St = 'In Stock'; if($record->Status == 1 ) {
|
||||
$St = 'Out of Stock';
|
||||
} echo $St ; ?></td>
|
||||
<td align="right"><?php
|
||||
|
||||
$dt = new DateTime($record->updatedOn );
|
||||
$updatedOn = $dt->format('d-m-y');
|
||||
echo $updatedOn ; ?></td>
|
||||
<td><input type="text" name="<?php echo 'Remarks'.$index ?>" id="<?php echo 'Remarks'.$index ?>" value="<?php echo $record->Remarks ; ?>" />
|
||||
|
||||
</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>
|
||||
<?php }
|
||||
?>
|
||||
|
||||
<?php
|
||||
}?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
@ -119,7 +182,7 @@
|
||||
|
||||
<div align="right" style="padding-right:10px">
|
||||
|
||||
<button type="button" class="btn btn-primary">Update Availability</button></a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -128,6 +191,15 @@
|
||||
</section>
|
||||
</div>
|
||||
<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 () {
|
||||
|
||||
$('#storestatuslisting').DataTable({
|
||||
|
||||
242
application/views/viewIGRDetails.php
Normal file
242
application/views/viewIGRDetails.php
Normal file
@ -0,0 +1,242 @@
|
||||
|
||||
|
||||
<style>
|
||||
.modal
|
||||
{
|
||||
padding-right:25% ! important;
|
||||
}
|
||||
.num{
|
||||
text-align:right;
|
||||
}
|
||||
.modal-content
|
||||
{
|
||||
width:950px ! important;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<center>Siddharth Industries - View Inward Gate Register </center>
|
||||
</h1>
|
||||
</section>
|
||||
<section class="content"><br/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<table id="Inwardgateregistertable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
|
||||
<thead style="background-color:#ddf">
|
||||
<tr>
|
||||
<th>S.NO</th>
|
||||
<th>IGR No</th>
|
||||
<th>PO NO</th>
|
||||
<th>Supplier name</th>
|
||||
<th>Invoice No</th>
|
||||
<th>Date of Invoice</th>
|
||||
<th>Vechicle No</th>
|
||||
<th>CourierNo</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
if(!empty($IGR))
|
||||
{ $index = 0;
|
||||
foreach($IGR as $record)
|
||||
{
|
||||
|
||||
$index = $index +1;
|
||||
?>
|
||||
<tr id="<?php echo $index ?>" >
|
||||
<td align="right"><?php echo $index?></td>
|
||||
<td><a data-toggle="modal" data-target="#Igrshow" data-id="<%=index%>" data-userid="<?php echo $record->IGRNO ?>" > <u><?php echo $record->IGRNO ?></u></a></td>
|
||||
<td><?php echo $record->PONO ?></a></td>
|
||||
<td><?php echo $record->SupplierName ?></td>
|
||||
<td><?php echo $record->DeliveryChellanOrInvoiceNo ?></td>
|
||||
<td align="right"><?php
|
||||
$date = new DateTime($record->DeliveryChellanDate);
|
||||
echo $date->format('d/m/Y'); ?></td>
|
||||
<td><?php echo $record->VehicleNo ?></td>
|
||||
<td><?php echo $record->CourierNo ?></td>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
//$SNo++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="Igrshow" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<form>
|
||||
<div class="modal-content" style="width:900px;">
|
||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4>Inward Gate Register Details</h4></center> <!-- IGR number should display here-->
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>IGR Number :</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input type="text" id="IGRNO1" readonly>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label> Purchase Order Number:</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input type="text" id="PONo" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Delivery Challan/Invoice NO :</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input type="text" id="Invoice_No" readonly>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Delivery Challan / Invoice Date:</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input type="text" id="Invoice_Date" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Supplier and Address :</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input type="text" id="Supplier" readonly>
|
||||
<textarea rows="3" cols="21" id="Add1" readonly>
|
||||
</textarea><br/>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Comments Of Special Instructions :</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<textarea rows="4" cols="21" id="ser" readonly>
|
||||
</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Table to show the line item of po -->
|
||||
<div id="content" > </div>
|
||||
<table class="table table-bordered" id="Inwardgateregistertable1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>SNo</th>
|
||||
<th>Item Code</th>
|
||||
<th>Item Description</th>
|
||||
<th>UOM</th>
|
||||
<th>Ordred Quantity</th>
|
||||
<th>Received Quantity</th>
|
||||
<th>Remarks</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbleAppend1">
|
||||
<!-- <tr>
|
||||
<td>1</td>
|
||||
<td>RM002</td>
|
||||
<td>Raw sand</td>
|
||||
<td>Kgs</td>
|
||||
<td>10000</td>
|
||||
<td>10000</td>
|
||||
<td>Received</td>
|
||||
</tr>-->
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-info" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
<!-- script for table , It works under the datatable plugin-->
|
||||
$(function () {
|
||||
$('#Inwardgateregistertable').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": true
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
$("#Igrshow").on("shown.bs.modal", function(e) {
|
||||
var igr = $(e.relatedTarget).data('userid');
|
||||
|
||||
|
||||
$('#content').loader('show');
|
||||
$.ajax({
|
||||
data:{id:igr},
|
||||
type:"POST",
|
||||
//dataType: 'json',
|
||||
url:"<?php echo base_url() ?>inwardgateregister/ViewIGR",
|
||||
success:function(data) {
|
||||
// success:function(data) {
|
||||
$('#content').loader('hide');
|
||||
var trHTML = '';
|
||||
|
||||
$.each(JSON.parse(data), function (i, item) {
|
||||
if(igr == item.IGRNO)
|
||||
{
|
||||
|
||||
$("#IGRNO1").val(item.IGRNO);
|
||||
//alert(item.IGRNO);
|
||||
$("#PONo").val(item.PONO);
|
||||
$("#Supplier").val(item.SupplierName);
|
||||
$("#Add1").val(item.Address);
|
||||
$("#Invoice_No").val(item.DeliveryChellanOrInvoiceNo);
|
||||
//alert(item.DeliveryChellanDate);
|
||||
var dcd = new Date(item.DeliveryChellanDate);
|
||||
//alert(dcd.getDate()+ '.' + (dcd.getMonth() + 1)+ '.' + dcd.getFullYear());
|
||||
var dcd2 = (dcd.getDate()+ '/' + (dcd.getMonth() + 1)+ '/' + dcd.getFullYear());
|
||||
$("#Invoice_Date").val(dcd2);
|
||||
$("#ser").val(item.ServiceDescription);
|
||||
|
||||
|
||||
i=i+1;
|
||||
trHTML += '<tr>' +
|
||||
'<td align="right">' + i + '</td>' +
|
||||
'<td name="MaterialName" id="MaterialCode" onchange="test('+i+')">' + item.MaterialCode + '</td>' +
|
||||
'<td>' + item.MaterialName + '</td>' +
|
||||
'<td name="UOM">' + item.UOM + '</td>' +
|
||||
'<td align="right" name="Quantity">' + item.Quantity + '</td>' +
|
||||
'<td align="right" data-name="sel" >'+item.QuantityAsPerInvoice+'</td>' +
|
||||
'<td>'+ item.Remarks+ '</td>' +
|
||||
'</tr>';
|
||||
//alert(item.QuantityAsPerInvoice);
|
||||
}
|
||||
|
||||
});
|
||||
$("#tbleAppend1").empty();
|
||||
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
Add Comment
|
||||
403
application/views/viewmrirforbilling.php
Normal file
403
application/views/viewmrirforbilling.php
Normal file
@ -0,0 +1,403 @@
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
// For table
|
||||
(function(l,q){var e=function(b,c){b.extend(!0,c.defaults,{dom:"<'row'<'col-sm-9'l><'col-sm-3'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-9'i><'col-sm-3'p>>",renderer:"bootstrap"});b.extend(c.ext.classes,{sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm"});c.ext.renderer.pageButton.bootstrap=function(g,e,r,s,i,m){var t=new c.Api(g),u=g.oClasses,j=g.oLanguage.oPaginate,d,f,n=0,p=function(c,e){var k,h,o,a,l=function(a){a.preventDefault();
|
||||
b(a.currentTarget).hasClass("disabled")||t.page(a.data.action).draw(!1)};k=0;for(h=e.length;k<h;k++)if(a=e[k],b.isArray(a))p(c,a);else{f=d="";switch(a){case "ellipsis":d="…";f="disabled";break;case "first":d=j.sFirst;f=a+(0<i?"":" disabled");break;case "previous":d=j.sPrevious;f=a+(0<i?"":" disabled");break;case "next":d=j.sNext;f=a+(i<m-1?"":" disabled");break;case "last":d=j.sLast;f=a+(i<m-1?"":" disabled");break;default:d=a+1,f=i===a?"active":""}d&&(o=b("<li>",{"class":u.sPageButton+" "+
|
||||
f,id:0===r&&"string"===typeof a?g.sTableId+"_"+a:null}).append(b("<a>",{href:"#","aria-controls":g.sTableId,"data-dt-idx":n,tabindex:g.iTabIndex}).html(d)).appendTo(c),g.oApi._fnBindAction(o,{action:a},l),n++)}},h;try{h=b(q.activeElement).data("dt-idx")}catch(l){}p(b(e).empty().html('<ul class="pagination"/>').children("ul"),s);h&&b(e).find("[data-dt-idx="+h+"]").focus()};c.TableTools&&(b.extend(!0,c.TableTools.classes,{container:"DTTT btn-group",buttons:{normal:"btn btn-default",disabled:"disabled"},
|
||||
collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:"disabled"}},print:{info:"DTTT_print_info"},select:{row:"active"}}),b.extend(!0,c.TableTools.DEFAULTS.oTags,{collection:{container:"ul",button:"li",liner:"a"}}))};"function"===typeof define&&define.amd?define(["jquery","datatables"],e):"object"===typeof exports?e(require("jquery"),require("datatables")):jQuery&&e(jQuery,jQuery.fn.dataTable)})(window,document);
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.modal
|
||||
{
|
||||
padding-right:25% ! important;
|
||||
}
|
||||
.num{
|
||||
text-align:right;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<center>Siddharth Industries - Billing For MRIR</center>
|
||||
</h1>
|
||||
</section>
|
||||
<section class="content"><br/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<table id="MRIRtable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
|
||||
<thead style="background-color:#ddf">
|
||||
<tr>
|
||||
<th>IGR NO</th>
|
||||
<th>MRIR NO</th>
|
||||
<th>PONO</th>
|
||||
<th>Department</th>
|
||||
<th>Material Code</th>
|
||||
<th>Material Name</th>
|
||||
<th>UOM</th>
|
||||
<th>Received Quantity</th>
|
||||
<th>Accepted Quantity</th>
|
||||
<th>Status of MRIR</th>
|
||||
<th>Remarks</th>
|
||||
<th>Quality Incharge</th>
|
||||
<th>Store Incharge</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
if(!empty($mrirdatas2))
|
||||
{
|
||||
$Index=0;
|
||||
foreach($mrirdatas2 as $d)
|
||||
{
|
||||
$Index= $Index+1;
|
||||
?>
|
||||
|
||||
<tr id="<?php echo $Index ?>">
|
||||
|
||||
<td><?php echo $d->IGRNO ?></td>
|
||||
<td><a data-toggle="modal" data-target="#materialreport" data-userid="<?php echo $d->MRIRNO ?>" data-id="<%=Index%>" data-dismiss="modal" ><?php echo $d->MRIRNO ?> </a></td>
|
||||
|
||||
<td><?php echo $d->PONO ?></td>
|
||||
<td></td><!-- Department --->
|
||||
<td></td><!-- Material Code --->
|
||||
<td></td><!-- Material Name --->
|
||||
<td></td><!-- UOM --->
|
||||
<td></td><!-- Received Quantity --->
|
||||
<td></td><!--Accepted Quantity --->
|
||||
<td></td><!-- Status of MRIR --->
|
||||
<td></td><!-- Remarks --->
|
||||
<td><?php echo $d->QualityInchargeID ?></td>
|
||||
<td><?php echo $d->StoreInchargeID ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content1">
|
||||
<div class="modal fade" id="materialreport" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<form>
|
||||
<div class="modal-content" style="width:900px;">
|
||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4>Material Recepit And Inspection Report Details</h4></center>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>IGR Number :</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<?php
|
||||
|
||||
$data = array('name' => 'IGRNO','value' => set_value('IGRNO'),'id'=>'IGRNO', 'class' => 'form-control','readonly'=>'true');
|
||||
echo form_input($data);echo"<br>";
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label> Purchase Order Number:</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<?php
|
||||
|
||||
$data = array('name' => 'PONO','value' => set_value('PONO'),'id'=>'PONO', 'class' => 'form-control','readonly'=>'true');
|
||||
echo form_input($data);echo"<br>";
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Invoice Number :</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<?php
|
||||
|
||||
$data = array('name' => 'DeliveryChellanOrInvoiceNo','value' => set_value('DeliveryChellanOrInvoiceNo'),'id'=>'DeliveryChellanOrInvoiceNo', 'class' => 'form-control','readonly'=>'true');
|
||||
echo form_input($data);echo"<br>";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Invoice Date:</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<?php
|
||||
|
||||
$data = array('name' => 'DeliveryChellanDate','value' => set_value('DeliveryChellanDate'),'id'=>'DeliveryChellanDate', 'class' => 'form-control','readonly'=>'true');
|
||||
echo form_input($data);echo"<br>";
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Vechicle Number :</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<?php
|
||||
$data = array('name' => 'VehicleNo','value' => set_value('VehicleNo'),'id'=>'VehicleNo', 'class' => 'form-control','readonly'=>'true');
|
||||
echo form_input($data);echo"<br>";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Delivery Date :</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<?php
|
||||
$data = array('name' => 'DeliveryDate','value' => set_value('DeliveryDate'),'id'=>'DeliveryDate', 'class' => 'form-control','readonly'=>'true');
|
||||
echo form_input($data);echo"<br>";
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Supplier and Address :</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<?php
|
||||
$data = array('name' => 'SupplierName','value' => set_value('SupplierName'),'id'=>'SupplierName', 'class' => 'form-control','readonly'=>'true');
|
||||
echo form_input($data); echo"<br>";
|
||||
$data = array('name' => 'Address','value' => set_value('Address'),'id'=>'Address','class' =>'form-control','rows' => '4','cols' => '50','style' => 'width:100%' ,'readonly'=>'true');
|
||||
echo form_textarea($data); echo"<br>";
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Comments Of Special Instructions :</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<?php
|
||||
$data = array('name' => 'Remarks','value' => set_value('Remarks'),'id'=>'Remarks', 'class' => 'form-control','readonly'=>'true');
|
||||
echo form_input($data); echo"<br>";
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<!-- Table to show the line item of po -->
|
||||
<table class="table table-bordered" id="mytable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>SNo</th>
|
||||
<th>Item Code</th>
|
||||
<th>Item Description</th>
|
||||
<th>UOM</th>
|
||||
<th>Ordred Quantity</th>
|
||||
<th>Received Quantity as per the Challan</th>
|
||||
<th>Received Quantity</th>
|
||||
<th>Accepted Quantity</th>
|
||||
<th>Rejected Quantity</th>
|
||||
<th>Remarks</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbleAppend">
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
<label>Store Incharge :</label>
|
||||
<?php
|
||||
$data = array('name' => 'StoreIncharge1','value' => set_value('StoreInchargeID'),'id'=>'StoreIncharge', 'class' => 'form-control','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<!--<label>Quality Incharge :</label>-->
|
||||
<?php
|
||||
$data = array('name' => 'QualityIncharge1','value' => set_value('QualityInchargeID'),'id'=>'QualityIncharge', 'class' => 'form-control','readonly'=>'true');
|
||||
echo form_hidden($data);
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<!--<label>Plant Incharge :</label>-->
|
||||
<?php
|
||||
$data = array('name' => 'PlantIncharge1','value' => set_value('PlantInchargeID'),'id'=>'PlantIncharge', 'class' => 'form-control','readonly'=>'true');
|
||||
echo form_hidden($data);
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-info" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--id div closed-->
|
||||
|
||||
</section>
|
||||
</div>
|
||||
<script>
|
||||
<!-- script for table , It works under the datatable plugin-->
|
||||
$(function () {
|
||||
$('#MRIRtable').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": true
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
$("#materialreport").on("shown.bs.modal", function(e) {
|
||||
alert("inside model popup");
|
||||
|
||||
var MRIRNO = $(e.relatedTarget).data('userid');
|
||||
|
||||
alert(MRIRNO);
|
||||
//$('#content1').loader('show');
|
||||
$("#IGRNO").val('');
|
||||
$("#PONO").val('');
|
||||
$("#DeliveryChellanOrInvoiceNo").val('');
|
||||
$("#DeliveryChellanDate").val('');
|
||||
$("#VehicleNo").val('');
|
||||
//$("#CourierNo").val('');
|
||||
$('#DeliveryDate').val('');
|
||||
$("#SupplierName").val('');
|
||||
$("#Address").val('');
|
||||
$('#Remarks1').val('');
|
||||
$("#tableid").empty();
|
||||
$("#StoreIncharge").val('');
|
||||
$("#PlantIncharge").val('');
|
||||
$("#QualityIncharge").val('');
|
||||
|
||||
|
||||
// //alert("HAI");
|
||||
// // $("#content").load('show');
|
||||
|
||||
$.ajax({
|
||||
data:{mrirno:MRIRNO},
|
||||
type:"POST",
|
||||
//datatype:"json",
|
||||
url:"<?php echo base_url() ?>MRIRscreen/displaying_MRIRvalues",
|
||||
|
||||
success:function(data){
|
||||
alert(data);
|
||||
|
||||
// var obj = $.parseJSON(data);
|
||||
// alert(obj.IGRNO);
|
||||
|
||||
// var data = $.parseJSON(json);
|
||||
// alert(JSON.stringify(data));
|
||||
// alert(json);
|
||||
|
||||
|
||||
// $("#IGRNO").val(data)
|
||||
// $("#IGRNO").val(data.result[0]['IGRNO']);
|
||||
|
||||
// alert(data.result[0]['IGRNO']);
|
||||
// $("#PONO").val(json.data[0][])
|
||||
// $("#IGRNO").val(json.other[0]['IGRNO']);
|
||||
|
||||
|
||||
// $("#PONO").val(data.result[0]['PONO']);
|
||||
// $("#VehicleNo").val(data.result[0]['VehicleNo']);
|
||||
// $("#CourierNo").val(data.result[0]['CourierNo']);
|
||||
// $("#DeliveryChellanOrInvoiceNo").val(data.result[0]['DeliveryChellanOrInvoiceNo']);
|
||||
// $("#SupplierName").val(data.result[0]['SupplierName']);
|
||||
// $("#DeliveryChellanDate").val(data.result[0]['DeliveryChellanDate']);
|
||||
// $("#Address").val(data.result[0]['Address']);
|
||||
// $("#DeliveryDate").val(data.result[0]['DeliveryDate']);
|
||||
// $('#Remarks1').val(data.result[0]['ServiceDescription']);
|
||||
// $("#tbleAppend").val(data.result2[0]);
|
||||
// $("#StoreIncharge").val(data.result[0]['StoreInchargeID']);
|
||||
// $("#PlantIncharge").val(data.result[0]['PlantInchargeID']);
|
||||
// $("#QualityIncharge").val(data.result[0]['QualityInchargeID']);
|
||||
// $("#tbleAppend").val(data.result2);
|
||||
// alert(data.result2[0]['MaterialCode']);
|
||||
// var tb="<tr><td>SAMPLE</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>5</td><td>6</td><td>7</td><td>8</td></tr>";
|
||||
var tble='';
|
||||
//var obj=JSON.stringify(data);
|
||||
var obj = $.parseJSON(data);
|
||||
//var obj = JSON.parse(data);
|
||||
|
||||
alert(obj);
|
||||
|
||||
// $("#DeliveryDate").val(new DateTime(item.DeliveryDate)->format('d.m.Y'));
|
||||
//alert(tb);
|
||||
//var dt = new DateTime(item.DeliveryDate);
|
||||
var d;
|
||||
|
||||
var dout;
|
||||
$.each(obj,function (i,item) {
|
||||
alert("inside each");
|
||||
//var dt = new DateTime(item.DeliveryDate);
|
||||
//alert(dt);
|
||||
//d = item.DeliveryDate;
|
||||
//dout = Date.parse(d);
|
||||
//$("#date").text();
|
||||
|
||||
|
||||
$("#IGRNO").val(item.IGRNO);
|
||||
//alert(item.IGRNO);
|
||||
$("#PONO").val(item.PONO);
|
||||
//alert(PONO);
|
||||
$("#DeliveryChellanOrInvoiceNo").val(item.DeliveryChellanOrInvoiceNo);
|
||||
var dcd = new Date(item.DeliveryChellanDate);
|
||||
alert(dcd.getDate()+ '.' + (dcd.getMonth() + 1)+ '.' + dcd.getFullYear());
|
||||
var dcd2 = (dcd.getDate()+ '.' + (dcd.getMonth() + 1)+ '.' + dcd.getFullYear());
|
||||
$("#DeliveryChellanDate").val(dcd2);
|
||||
$("#VehicleNo").val(item.VehicleNo);
|
||||
//$("#CourierNo").val(item.CourierNo);
|
||||
var ddate = new Date(item.DeliveryDate);
|
||||
//alert(dd.getDate()+ '.' + (dd.getMonth() + 1)+ '.' + dd.getFullYear());
|
||||
var ddate2 = (ddate.getDate()+ '.' + (ddate.getMonth() + 1)+ '.' + ddate.getFullYear());
|
||||
//$("#DeliveryDate").val(dout.toString('M-d-yyyy'));
|
||||
$("#DeliveryDate").val(ddate2);
|
||||
$("#SupplierName").val(item.SupplierName);
|
||||
$("#Address").val(item.Address);
|
||||
$('#Remarks').val(item.ServiceDescription);
|
||||
$("#StoreIncharge").val(item.StoreInchargeID);
|
||||
$("#PlantIncharge").val(item.PlantInchargeID);
|
||||
$("#QualityIncharge").val(item.QualityInchargeID);
|
||||
|
||||
i=i+1;
|
||||
|
||||
tble += '<tr><td>'+i+
|
||||
'</td><td>'+item.MaterialCode+
|
||||
'</td><td>'+item.MaterialName+
|
||||
'</td><td>'+item.UOM+
|
||||
'</td><td>'+item.Quantity+
|
||||
'</td><td>'+item.ReceivedQuantity+
|
||||
'</td><td>'+item.ActualQuantityReceived+
|
||||
'</td><td>'+item.QuantityAccepted+
|
||||
'</td><td>'+item.QuantityRejected+
|
||||
'</td><td>'+item.Remarks1+
|
||||
'</td></tr>';
|
||||
|
||||
|
||||
});//each loop closed
|
||||
$("#tbleAppend").empty();
|
||||
|
||||
$("#mytable > tbody").append(tble);
|
||||
}// function closed
|
||||
});//ajax closed
|
||||
});//modal closed
|
||||
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user