menu allignment and batchcard controller

This commit is contained in:
gandhimathi 2018-05-09 17:44:00 +05:30
parent bf0eca549a
commit 150844c113
11 changed files with 82 additions and 228 deletions

View File

@ -639,44 +639,44 @@ class batchcard extends BaseController
{ {
case 1: case 1:
$sn = '(ed_receipt - ed_issues) as lastmonthclosinged'; $sn = '(sum(ed_receipt) - sum(ed_issues)) as lastmonthclosinged';
$sd1 = 'ed_receipt'; $sd1 = 'ed_receipt';
$sd2 = 'ed_issues'; $sd2 = 'ed_issues';
break; break;
case 2: case 2:
$sn = '(rotary_input - rotary_output) as lastmonthclosingrotary'; $sn = '(sum(rotary_input) - sum(rotary_output)) as lastmonthclosingrotary';
$sd1 = 'rotary_input as ed_receipt'; $sd1 = 'rotary_input as ed_receipt';
$sd2 = 'rotary_output as ed_issues'; $sd2 = 'rotary_output as ed_issues';
break; break;
case 3: case 3:
$sn = '(diesel_dryer_receipt - diesel_dryer_consumption) as lastmonthclosingdryerdiesel'; $sn = '(sum(diesel_dryer_receipt) - sum(diesel_dryer_consumption)) as lastmonthclosingdryerdiesel';
$sd1 = 'diesel_dryer_receipt as ed_receipt'; $sd1 = 'diesel_dryer_receipt as ed_receipt';
$sd2 = 'diesel_dryer_consumption as ed_issues'; $sd2 = 'diesel_dryer_consumption as ed_issues';
break; break;
case 4: case 4:
$sn = '(diesel_receipt - diesel_consumption) as lastmonthclosingbull'; $sn = '(sum(diesel_receipt) - sum(diesel_consumption)) as lastmonthclosingbull';
$sd1 = 'diesel_receipt as ed_receipt'; $sd1 = 'diesel_receipt as ed_receipt';
$sd2 = 'diesel_consumption as ed_issues'; $sd2 = 'diesel_consumption as ed_issues';
break; break;
case 5: case 5:
$sn = '(trp_roughsand_receipt - trp_roughsand_issues) as lastmonthclosingrough'; $sn = '(sum(trp_roughsand_receipt) - sum(trp_roughsand_issues)) as lastmonthclosingrough';
$sd1 = 'trp_roughsand_receipt as ed_receipt'; $sd1 = 'trp_roughsand_receipt as ed_receipt';
$sd2 = 'trp_roughsand_issues as ed_issues'; $sd2 = 'trp_roughsand_issues as ed_issues';
break; break;
case 6: case 6:
$sn = '(trp_finesand_receipt - trp_finesand_issues) as lastmonthclosingfine'; $sn = '(sum(trp_finesand_receipt) - sum(trp_finesand_issues)) as lastmonthclosingfine';
$sd1 = 'trp_finesand_receipt as ed_receipt'; $sd1 = 'trp_finesand_receipt as ed_receipt';
$sd2 = 'trp_finesand_issues as ed_issues'; $sd2 = 'trp_finesand_issues as ed_issues';
break; break;
case 7: case 7:
$sn = '(gas_for_trip_receipt - gas_for_trip_consumption) as lastmonthclosinggas'; $sn = '(sum(gas_for_trip_receipt) - sum(gas_for_trip_consumption)) as lastmonthclosinggas';
$sd1 = 'gas_for_trip_receipt as ed_receipt'; $sd1 = 'gas_for_trip_receipt as ed_receipt';
$sd2 = 'gas_for_trip_consumption as ed_issues'; $sd2 = 'gas_for_trip_consumption as ed_issues';
break; break;
case 8: case 8:
$sn = '(water_receipt - water_consumption) as lastmonthclosingewater'; $sn = '(sum(water_receipt) - sum(water_consumption)) as lastmonthclosingewater';
$sd1 = 'water_receipt as ed_receipt'; $sd1 = 'water_receipt as ed_receipt';
$sd2 = 'water_consumption as ed_issues'; $sd2 = 'water_consumption as ed_issues';
break; break;

View File

@ -60,8 +60,8 @@ if(!empty($amountpaid))
<div class="content-wrapper"> <div class="content-wrapper">
<div class ="content"> <section class ="content">
<div class="row">
<!-- Left col --> <!-- Left col -->
<div class="col-md-12"> <div class="col-md-12">
@ -191,9 +191,8 @@ if(!empty($amountpaid))
</table> </table>
</div> </div>
</div> </div>
</div> </div></section></div>
</section>
</div>

View File

@ -263,10 +263,10 @@
</div> </div>
</div> </div>
</section>
<!-- /.box --> <!-- /.box -->
</div> </div>
</section>
</div>
<!-- /.col --> <!-- /.col -->
<div class="row"> <div class="row">
<div class="col-md-12" id="date1"></div> <div class="col-md-12" id="date1"></div>

View File

@ -62,7 +62,7 @@ if(!empty($debitmapping))
<div class="content-wrapper"> <div class="content-wrapper">
<section class="content"> <section class="content">
<div class="row">
<!-- Left col --> <!-- Left col -->
<div class="col-md-12" > <div class="col-md-12" >
<!-- TABLE: LATEST ORDERS --> <!-- TABLE: LATEST ORDERS -->
@ -124,52 +124,8 @@ if(!empty($debitmapping))
</div> </div>
</div> </div>
</div> </div>
<!--<div class="row">
<div class="col-md-3">
<label for="from_date">
<?php echo 'From Date'; ?>
</label>
<div class="input-group">
<input name="from_date" id="max-date" class="form-control datepicker">
<span class="input-group-addon">
<i class="fa fa-calendar fa-fw"></i>
</span>
</div>
</div> </div>
<div class="col-md-3">
<label for="to_date">
<?php echo 'To Date'; ?>
</label>
<div class="input-group">
<input name="to_date" id="min-date" class="form-control datepicker">
<span class="input-group-addon">
<i class="fa fa-calendar fa-fw"></i>
</span>
</div>
</div>
<div class="col-md-3" >
<label for="from_date">
<?php echo 'Customer'; ?>
</label>
<select class="form-control" id="SupplierName" name="SupplierName">
<option value="">Select Supplier</option>
<?php
foreach($supplier as $gs):
{?>
<option value="<?php echo $gs->SupplierName;?>"><?php echo $gs->SupplierName ; ?></option>
<?php } endforeach; ?>
</select>
</div>
</div>-->
</form> </form>
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;"> <table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
@ -326,6 +282,7 @@ if(!empty($debitmapping))
</div> </div>
</div> </div>
</div>
<!-- /.box --> <!-- /.box -->
</div> </div>
<!-- /.col --> <!-- /.col -->

View File

@ -59,7 +59,8 @@ if(!empty($debitmapping))
</div>--> </div>-->
<div class="content-wrapper">
<section class="content">
<!-- Left col --> <!-- Left col -->
@ -76,52 +77,7 @@ if(!empty($debitmapping))
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Bank PO settlement</b></p></h3></center> <center><h3 class="box-title"><p style="color:#3c8dbc"><b>Bank PO settlement</b></p></h3></center>
<div class="box-body"> <div class="box-body">
<!--<div class="row">
<div class="col-md-3">
<label for="from_date">
<?php echo 'From Date'; ?>
</label>
<div class="input-group">
<input name="from_date" id="max-date" class="form-control datepicker">
<span class="input-group-addon">
<i class="fa fa-calendar fa-fw"></i>
</span>
</div>
</div>
<div class="col-md-3">
<label for="to_date">
<?php echo 'To Date'; ?>
</label>
<div class="input-group">
<input name="to_date" id="min-date" class="form-control datepicker">
<span class="input-group-addon">
<i class="fa fa-calendar fa-fw"></i>
</span>
</div>
</div>
<div class="col-md-3" >
<label for="from_date">
<?php echo 'Customer'; ?>
</label>
<select class="form-control" id="SupplierName" name="SupplierName">
<option value="">Select Supplier</option>
<?php
foreach($supplier as $gs):
{?>
<option value="<?php echo $gs->SupplierName;?>"><?php echo $gs->SupplierName ; ?></option>
<?php } endforeach; ?>
</select>
</div>
</div>-->
</form> </form>
<br> <br>
<br> <br>
@ -219,7 +175,8 @@ if(!empty($debitmapping))
<!-- /.box --> <!-- /.box -->
</div> </div>
<!-- /.col --> <!-- /.col -->
</section>
</div>

View File

@ -63,6 +63,7 @@ if(!empty($mapping))
<div class="content-wrapper"> <div class="content-wrapper">
<section class="content"> <section class="content">
<div class="row">
<!-- Left col --> <!-- Left col -->
<div class="col-md-12"> <div class="col-md-12">
<!-- TABLE: LATEST ORDERS --> <!-- TABLE: LATEST ORDERS -->
@ -130,7 +131,7 @@ if(!empty($mapping))
</div> </div>
</div> </div>
</div> </div>
<!--<div class="row"> </div> <!--<div class="row">
<div class="col-md-3"> <div class="col-md-3">
<label for="from_date"> <label for="from_date">
<?php echo 'From Date'; ?> <?php echo 'From Date'; ?>
@ -332,51 +333,21 @@ if(!empty($mapping))
} }
?> ?>
</tbody> </tbody>
<!--<tfoot width="100%">
<tr>
<td style="text-align:left;"><strong>Total</strong></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td style="text-align:right"><strong>
<?php
{
echo number_format($ti,2,'.','');
}
?>
</strong>
</td>
<td style="text-align:right"><strong>
<?php
{
echo number_format($tvt,2,'.','');
}
?>
</strong>
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tfoot>-->
</table> </table>
</div> </div>
</div> </div>
</div>
</section>
<!-- /.box --> <!-- /.box -->
</div> </div>
<!-- /.col --> <!-- /.col -->
</section ></div>

View File

@ -55,6 +55,7 @@
</div>--> </div>-->
<div class="content-wrapper"> <div class="content-wrapper">
<section class="content" style="font-size: 12px;"> <section class="content" style="font-size: 12px;">
<div class="row" >
<div id="content"></div> <div id="content"></div>
@ -219,16 +220,7 @@
<tr> <tr>
<td align="left" id="bankid<?php echo $i ?>"><span><?php echo $t->ID?></span></td> <td align="left" id="bankid<?php echo $i ?>"><span><?php echo $t->ID?></span></td>
<!--<?php
// if($status=='CLOSE')
// {
// ?>
<td data-name="sell"><input type="hidden" onchange="checkamount(<?php echo $type ?>,<?php echo $i ?>) "id="checkboxcheckbox<?php echo $i ?>" name="checkbox<?php echo $i ?>" readonly;></td>
// <?php
// }
// else
// {
// ?>-->
<td data-name="sell"><input type="checkbox" onchange="checkamount(<?php echo $type ?>,<?php echo $i ?>) "id="checkboxcheckbox<?php echo $i ?>" name="checkbox<?php echo $i ?>";></td> <td data-name="sell"><input type="checkbox" onchange="checkamount(<?php echo $type ?>,<?php echo $i ?>) "id="checkboxcheckbox<?php echo $i ?>" name="checkbox<?php echo $i ?>";></td>
<!--<?php <!--<?php
@ -292,13 +284,6 @@
<td><?php echo $t->cstatus;?></td> <td><?php echo $t->cstatus;?></td>
</tr> </tr>
<?php <?php
$i++; $i++;
@ -308,46 +293,17 @@
?> ?>
</tbody> </tbody>
<!--<tfoot width="100%">
<tr>
<td style="text-align:left;"><strong>Total</strong></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td style="text-align:right"><strong>
<?php
{
echo number_format($ti,2,'.','');
}
?>
</strong>
</td>
<td style="text-align:right"><strong>
<?php
{
echo number_format($tvt,2,'.','');
}
?>
</strong>
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tfoot>-->
</table> </table>
</div> </div>
</div> </div>
</div> </div>
</div>
</section>
</div>
<!-- /.box --> <!-- /.box -->
<!-- </div> --> <!-- </div> -->
<!-- /.col --> <!-- /.col -->

View File

@ -151,7 +151,7 @@ foreach($financialyear as $item)
</strong> </strong>
</td> </td>
<td>&nbsp;</td> <!-- <td>&nbsp;</td> -->

View File

@ -51,11 +51,7 @@ th{
<script src="<?php echo base_url().'assets/jquery.timeentry.js'?>"></script> <script src="<?php echo base_url().'assets/jquery.timeentry.js'?>"></script>
<div class="content-wrapper"> <div class="content-wrapper">
<!-- Content Header (Page header) --> <!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<center>Edit In Process Inspection Report Screen</center>
</h1>
</section>
<section class="content"> <section class="content">
@ -63,6 +59,11 @@ th{
<div class="col-xs-12"> <div class="col-xs-12">
<div class="box"> <div class="box">
<div class="box-header"> <div class="box-header">
<section class="content-header">
<h1>
<center>Edit In Process Inspection Report Screen</center>
</h1>
</section>
<!--<center><h3 class="box-title">--> <!--<center><h3 class="box-title">-->
<div class="box-tools"> <div class="box-tools">
<div class="row"> <div class="row">
@ -493,12 +494,12 @@ $(document).ready(function(){
show_hide_column(16,false,'testreport2'); show_hide_column(16,false,'testreport2');
firstTimeValidateMastertable(); firstTimeValidateMastertable();
firstTimeValidateAFStable(); firstTimeValidateAFStable();
firstTimeValidateMastertable2(); firstTimeValidateMastertable2();
}); // End of document on ready funciton }); // End of document on ready funciton
function keyValidate(e) function keyValidate(e)
{ {
@ -1290,19 +1291,23 @@ function readURL(input) {
//Funciton for validate all values while data first time loading //Funciton for validate all values while data first time loading
function firstTimeValidateMastertable() function firstTimeValidateMastertable()
{ {
alert('MASTER');
// VALIDATE testreport Values // VALIDATE testreport Values
var ROWCOUNT = $('#testreport tr').length; var ROWCOUNT = $('#testreport tr').length;
//alert(ROWCOUNT);
for (x=1;x<14;x++){ alert(ROWCOUNT);
for (x=1;x<ROWCOUNT;x++){
var ROW = document.getElementById("testreport").rows[x].getElementsByTagName("td"); var ROW = document.getElementById("testreport").rows[x].getElementsByTagName("td");
min = parseFloat(ROW[2].innerText); min = parseFloat(ROW[2].innerText);
max = parseFloat(ROW[3].innerText); max = parseFloat(ROW[3].innerText);
var X1 = parseFloat(ROW[5].innerText); var X1 = parseFloat(ROW[5].innerText);
@ -1389,7 +1394,10 @@ function readURL(input) {
var ROWCOUNT = $('#afstable tr').length; var ROWCOUNT = $('#afstable tr').length;
//alert(ROWCOUNT); //alert(ROWCOUNT);
for (x=1;x<=11;x++){ for (x=1;x<=11;x++)
{
var ROW = document.getElementById("afstable").rows[x].getElementsByTagName("td"); var ROW = document.getElementById("afstable").rows[x].getElementsByTagName("td");
@ -1552,6 +1560,7 @@ function readURL(input) {
for (x=1;x<ROWCOUNT;x++){ for (x=1;x<ROWCOUNT;x++){
var ROW = document.getElementById("testreport2").rows[x].getElementsByTagName("td"); var ROW = document.getElementById("testreport2").rows[x].getElementsByTagName("td");

View File

@ -852,8 +852,13 @@ display: none;
<?php foreach($DepAccesslist as $dep){ $check1=0; <?php foreach($DepAccesslist as $dep){ $check1=0;
$assd= $dep->AssDep;?> $ch=0;
<?php if($assd == FINANCE || $DEPCode == FINANCE){ $check2=1; ?> $assd= $dep->AssDep;
?>
<?php if($assd == FINANCE || $DEPCode == FINANCE){ //$check2=1;
$ch=1; ?>
<li> <li>
<a href="<?php echo base_url(); ?>costListing" > <a href="<?php echo base_url(); ?>costListing" >
@ -871,7 +876,7 @@ display: none;
<?php }?> <?php }?>
<?php if($check2 == 1){break;} }?> <?php if($ch == 1){break;} }?>

View File

@ -119,7 +119,7 @@ th{
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label>Grade</label> <label>Grade&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
<?php echo form_dropdown('product',$products,set_value('product',$products[-1]),'id="product"' ,'class="form-control select2', 'style="text-align:center;"');?> <?php echo form_dropdown('product',$products,set_value('product',$products[-1]),'id="product"' ,'class="form-control select2', 'style="text-align:center;"');?>
</div> </div>