resinbatchcard changes
This commit is contained in:
parent
4f5da582a0
commit
617e139bcf
@ -64,7 +64,7 @@ class resinbatchcard extends BaseController
|
||||
|
||||
function saveTestReportData()
|
||||
{
|
||||
|
||||
//echo "system soft";
|
||||
|
||||
date_default_timezone_get('Asia/Kolkata');
|
||||
$productid = $this->input->post('param1');
|
||||
@ -89,6 +89,14 @@ class resinbatchcard extends BaseController
|
||||
$resinname = $this->input->post('param13');
|
||||
$oplist = $this->input->post('param14');
|
||||
$oplist = json_decode($oplist);
|
||||
$operator = $this->input->post('param15');
|
||||
$sandigrnos = $this->input->post('param16');
|
||||
$Resinigrnos = $this->input->post('param17');
|
||||
$Hexamineigrnos = $this->input->post('param18');
|
||||
$CSigrnos = $this->input->post('param19');
|
||||
$Catalystigrno = $this->input->post('param20');
|
||||
$bagsigrnos = $this->input->post('param21');
|
||||
$tonigrnos= $this->input->post('param22');
|
||||
|
||||
|
||||
if(!empty($_FILES['rfile']['name']))
|
||||
@ -122,9 +130,41 @@ class resinbatchcard extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
$masterreportdata = array('productid'=>$productid,'customerid'=>$customerid,'batchdate'=>$batchdate,'plantname'=>$plantname,'resinname'=>$resinname,'machinecode'=>$macinecode,'trpbatchcardno'=>$trpbatchcard,'igrno'=>$igrnos,'igrlineno'=>$igrlinenos,'remarks'=>$remarks,'createdby'=>$createby,'approvedby'=>$approvedby,'document'=>$document,'sandtotal'=>$sandtotal,'resintotal'=>$resintotal,'hextotal'=>$hextotal,'cstotal'=>$cstotal,'catalysttotal'=>$catalysttotal,'bags50total'=>$bags50total,'ton1bagstotal'=>$ton1bagstotal,'producitonloss'=>$producitonloss,'finishedproduct'=>$finishedproduct);
|
||||
|
||||
$masterreportdata = array('productid'=>$productid,
|
||||
'customerid'=>$customerid,
|
||||
'batchdate'=>$batchdate,
|
||||
'plantname'=>$plantname,
|
||||
'resinname'=>$resinname,
|
||||
'machinecode'=>$macinecode,
|
||||
'trpbatchcardno'=>$trpbatchcard,
|
||||
'igrno'=>$igrnos,
|
||||
'igrlineno'=>$igrlinenos,
|
||||
'remarks'=>$remarks,
|
||||
'createdby'=>$createby,
|
||||
'approvedby'=>$approvedby,
|
||||
'document'=>$document,
|
||||
'sandtotal'=>$sandtotal,
|
||||
'resintotal'=>$resintotal,
|
||||
'hextotal'=>$hextotal,
|
||||
'cstotal'=>$cstotal,
|
||||
'catalysttotal'=>$catalysttotal,
|
||||
'bags50total'=>$bags50total,
|
||||
'ton1bagstotal'=>$ton1bagstotal,
|
||||
'producitonloss'=>$producitonloss,
|
||||
'finishedproduct'=>$finishedproduct,
|
||||
'operatedby'=>$operator,
|
||||
'igrno_for_sand'=>$sandigrnos,
|
||||
'igrno_for_resin'=>$Resinigrnos,
|
||||
'igrno_for_haxamine'=>$Hexamineigrnos,
|
||||
'igrno_for_cs'=>$CSigrnos,
|
||||
'igrno_for_catalyst'=>$Catalystigrno,
|
||||
'igrno_for_bags'=>$bagsigrnos,
|
||||
'igrno_for_tonbags'=>$tonigrnos
|
||||
);
|
||||
|
||||
|
||||
// print_r($masterreportdata);
|
||||
// die();
|
||||
$MASTERID = $this->quality_model->saveResinBatchCardMasterTestData($masterreportdata);
|
||||
// echo $MASTERID;die();
|
||||
//$MASTERID = 56;
|
||||
@ -170,7 +210,6 @@ class resinbatchcard extends BaseController
|
||||
$trpbatchcard = $this->input->post('param6');
|
||||
$igrnos = $this->input->post('param7');
|
||||
$igrlinenos = $this->input->post('param8');
|
||||
|
||||
$remarks = $this->input->post('param9');
|
||||
$approvedby = $this->input->post('param10');
|
||||
|
||||
@ -183,6 +222,14 @@ class resinbatchcard extends BaseController
|
||||
$MASTERID = $this->input->post('param14');
|
||||
$opstoinsert = $this->input->post('param15');
|
||||
$opstodelete = $this->input->post('param16');
|
||||
$operatedby = $this->input->post('param17');
|
||||
$sandigrnos = $this->input->post('param18');
|
||||
$Resinigrnos = $this->input->post('param19');
|
||||
$Hexamineigrnos = $this->input->post('param20');
|
||||
$CSigrnos = $this->input->post('param21');
|
||||
$Catalystigrno = $this->input->post('param22');
|
||||
$bagsigrnos = $this->input->post('param23');
|
||||
$tonigrnos= $this->input->post('param24');
|
||||
|
||||
$opstoinsert = json_decode($opstoinsert);
|
||||
$opstodelete = json_decode($opstodelete);
|
||||
@ -232,7 +279,14 @@ class resinbatchcard extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
$masterreportdata = array('remarks'=>$remarks,'updatedby'=>$createby,'approvedby'=>$approvedby,'document'=>$document,'sandtotal'=>$sandtotal,'resintotal'=>$resintotal,'hextotal'=>$hextotal,'cstotal'=>$cstotal,'catalysttotal'=>$catalysttotal,'bags50total'=>$bags50total,'ton1bagstotal'=>$ton1bagstotal,'producitonloss'=>$producitonloss,'finishedproduct'=>$finishedproduct);
|
||||
$masterreportdata = array('remarks'=>$remarks,'updatedby'=>$createby,'approvedby'=>$approvedby,'document'=>$document,'sandtotal'=>$sandtotal,'resintotal'=>$resintotal,'hextotal'=>$hextotal,'cstotal'=>$cstotal,'catalysttotal'=>$catalysttotal,'bags50total'=>$bags50total,'ton1bagstotal'=>$ton1bagstotal,'producitonloss'=>$producitonloss,'finishedproduct'=>$finishedproduct,'operatedby'=>$operatedby,
|
||||
'igrno_for_sand'=>$sandigrnos,
|
||||
'igrno_for_resin'=>$Resinigrnos,
|
||||
'igrno_for_haxamine'=>$Hexamineigrnos,
|
||||
'igrno_for_cs'=>$CSigrnos,
|
||||
'igrno_for_catalyst'=>$Catalystigrno,
|
||||
'igrno_for_bags'=>$bagsigrnos,
|
||||
'igrno_for_tonbags'=>$tonigrnos);
|
||||
//print_r($masterreportdata);
|
||||
|
||||
$this->quality_model->updateResinBatchCardMasterTestData($masterreportdata,$MASTERID);
|
||||
@ -366,6 +420,10 @@ class resinbatchcard extends BaseController
|
||||
$data['emplist'] = $this->quality_model->getEmplistforReport();
|
||||
$data['records'] = $this->quality_model->getResinBatchCardDetails($rbcid);
|
||||
//print_r($data['records']);
|
||||
$data['machinelist'] = $this->quality_model->getMachineList();
|
||||
$data['igrno'] = $this->quality_model->getIGRNos();
|
||||
$data['igrlineitem'] = $this->quality_model->getIGRItemNos();
|
||||
$data['trpbatchcardnos'] = $this->quality_model->getTRPBatchcardNos();
|
||||
$data['operatorslist'] = $this->quality_model->getOperatorsListforReport();
|
||||
$data['existoperatorslist'] = $this->quality_model->getExistOperatorsListforReport($rbcid);
|
||||
//print_r($data['records']);die();
|
||||
@ -379,10 +437,6 @@ class resinbatchcard extends BaseController
|
||||
|
||||
function printResinBatchReport()
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
$rbcid = $this->uri->segment(3);
|
||||
$data['records'] = $this->quality_model->getResinBatchCardDetails($rbcid);
|
||||
//print_r( $data['records']);
|
||||
|
||||
@ -310,11 +310,13 @@ class Quality_model extends CI_Model
|
||||
|
||||
function getResinBatchCardTestMasterList()
|
||||
{
|
||||
$sql = 'Select resinbatch_id,productid,ip_products.product_name,ip_products.product_description,customerid,client_name,batchdate,igrno,igrlineno,T_ResinBatchCard_Master.createdby,approvedby,document,T_Employee_Details.FirstName from T_ResinBatchCard_Master
|
||||
$sql = 'Select resinbatch_id,productid,ip_products.product_name,ip_products.product_description,customerid,client_name,batchdate,igrno,igrlineno,operatedby,T_ResinBatchCard_Master.createdby,approvedby,document,ED.FirstName from T_ResinBatchCard_Master
|
||||
join ip_products on T_ResinBatchCard_Master.productid=ip_products.product_id
|
||||
join ip_clients on T_ResinBatchCard_Master.customerid=ip_clients.client_id
|
||||
join tbl_users on T_ResinBatchCard_Master.createdby = tbl_users.userId
|
||||
join T_Employee_Details on T_Employee_Details.EmpID = tbl_users.EmpID';
|
||||
join T_Employee_Details ED on ED.EmpID = T_ResinBatchCard_Master.operatedby
|
||||
join T_Employee_Details EmpDtl on EmpDtl.EmpID = tbl_users.EmpID';
|
||||
|
||||
$res = $this->db->query($sql);
|
||||
return $res->result();
|
||||
}
|
||||
@ -576,6 +578,12 @@ class Quality_model extends CI_Model
|
||||
$res = $this->db->query($sql);
|
||||
return $res->result();
|
||||
}
|
||||
function getIGRItemNos()
|
||||
{
|
||||
$sql = 'select IGRItemNo from T_IGR_Details order by IGRItemNo desc';
|
||||
$res = $this->db->query($sql);
|
||||
return $res->result();
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
@ -24,18 +24,47 @@ background-color:#ada5d2 ;
|
||||
<?php
|
||||
|
||||
$operators = array(-1=>'Select Employee');
|
||||
foreach($operatorslist as $re)
|
||||
{
|
||||
|
||||
$operators[$re->EmpID] = $re->EmpID.'-'.$re->FirstName.'-'.$re->LastName;
|
||||
}
|
||||
$newoperator = array(-1 => 'Select Operator');
|
||||
foreach($operatorslist as $re)
|
||||
{
|
||||
$operators[$re->EmpID] = $re->EmpID.'-'.$re->FirstName.'-'.$re->LastName;
|
||||
$newoperator[$re->EmpID] = $re->EmpID.'-'.$re->FirstName.'-'.$re->LastName;
|
||||
}
|
||||
$approvedby = array(-1=>'Select Approver Name');
|
||||
foreach($emplist as $r)
|
||||
foreach($emplist as $r)
|
||||
{
|
||||
$approvedby[$r->FirstName.' '.$r->LastName] = $r->FirstName.' '.$r->LastName.'-'.$r->shortName;
|
||||
}
|
||||
$machines = array(-1=>'Select Machine Name');
|
||||
|
||||
foreach($machinelist as $r)
|
||||
{
|
||||
$machines[$r->Machine_Code] = $r->Machine_Code.'-'.$r->Machine_Name;
|
||||
}
|
||||
|
||||
$igrnos = array(-1=>'Select IGRNO');
|
||||
$igrlinenos = array(-1=>'Select IGR Line Item');
|
||||
foreach($igrlineitem as $igrline)
|
||||
{
|
||||
$approvedby[$r->FirstName.' '.$r->LastName] = $r->FirstName.' '.$r->LastName.'-'.$r->shortName;
|
||||
$igrlinenos[$igrline->IGRItemNo] = $igrline->IGRItemNo;
|
||||
}
|
||||
foreach($igrno as $r)
|
||||
{
|
||||
$igrnos[$r->IGRNO] = $r->IGRNO;
|
||||
}
|
||||
$trpbatchnos = array(-1=>'Select TRP Batch Card No');
|
||||
foreach($trpbatchcardnos as $r)
|
||||
{
|
||||
$trpbatchnos[$r->dailyid] = $r->dailyid;
|
||||
}
|
||||
|
||||
|
||||
// echo $records['masterdata'][0]->igrno_for_sand;
|
||||
// echo $records['masterdata'][0]->igrno_for_resin;
|
||||
// echo $records['masterdata'][0]->igrno_for_haxamine;
|
||||
// echo $records['masterdata'][0]->igrno_for_cs;
|
||||
// echo $records['masterdata'][0]->igrno_for_catalyst;
|
||||
// echo $records['masterdata'][0]->igrno_for_bags;
|
||||
// echo $records['masterdata'][0]->igrno_for_tonbags;
|
||||
|
||||
?>
|
||||
<style>
|
||||
@ -113,33 +142,29 @@ th{
|
||||
|
||||
<div class="col-md-4">
|
||||
<label>Batch Date</label>
|
||||
<input type="text" id="batchdate" name="batchdate" class="form-control" readonly value="<?php echo date_format(date_create($records['masterdata'][0]->batchdate),'d-m-Y');?>">
|
||||
|
||||
<input type="text" id="batchdate" name="batchdate" class="form-control" value="<?php echo date_format(date_create($records['masterdata'][0]->batchdate),'d-m-Y');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
<label>Resin Name</label>
|
||||
<input type="text" id="resinname" name="resinname" class="form-control" readonly value="<?php echo $records['masterdata'][0]->resinname?>">
|
||||
|
||||
<input type="text" id="resinname" name="resinname" class="form-control" value="<?php echo $records['masterdata'][0]->resinname?>">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4">
|
||||
<label>Shift Name</label>
|
||||
<input type="text" id="plantname" name="plantname" class="form-control" readonly value="<?php echo $records['masterdata'][0]->plantname?>">
|
||||
|
||||
<input type="text" id="plantname" name="plantname" class="form-control" value="<?php echo $records['masterdata'][0]->plantname?>">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-md-4">
|
||||
<label>Machine Name</label>
|
||||
<input type="text" value="<?php echo $records['masterdata'][0]->machinecode;?>" class="form-control" readonly>
|
||||
|
||||
<?php echo form_dropdown('machines',$machines,set_value('machines',!empty($records['masterdata'][0]->machinecode)? $records['masterdata'][0]->machinecode : $machines[-1] ),'id="machines"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@ -149,24 +174,126 @@ th{
|
||||
|
||||
<div class="col-md-4">
|
||||
<label>TRP Batch No(For TRP Sand)</label>
|
||||
<input type="text" value="<?php echo $records['masterdata'][0]->trpbatchcardno;?>" class="form-control" readonly>
|
||||
<!-- <input type="text" value="<?php echo $records['masterdata'][0]->trpbatchcardno;?>" class="form-control" readonly> -->
|
||||
<?php echo form_dropdown('trpbatchnos',$trpbatchnos,set_value('trpbatchnos',!empty($records['masterdata'][0]->trpbatchcardno) ? $records['masterdata'][0]->trpbatchcardno : $trpbatchnos[-1]), 'id="trpbatchnos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>IGR No(For Fresh Sand)</label>
|
||||
<input type="text" value="<?php echo $records['masterdata'][0]->igrno;?>" class="form-control" readonly>
|
||||
|
||||
<!-- <input type="text" id="igrnos" value="" class="form-control" readonly> -->
|
||||
<?php $sandigrno = $records['masterdata'][0]->igrno_for_sand;
|
||||
$sandigr = explode("-",$sandigrno);
|
||||
echo form_dropdown('igrnos',$igrnos,set_value('igrnos',!empty($sandigr[0]) ? $sandigr[0] : $igrnos[-1]),'id="igrnos"' ,'class="form-control','style="text-align:center;"');?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label>IGR Line Item No</label>
|
||||
<input type="text" value="<?php echo $records['masterdata'][0]->igrlineno;?>" class="form-control" readonly>
|
||||
<!-- <input type="text" id="igrlinenos" value="<?php $val = $records['masterdata'][0]->igrno_for_sand;
|
||||
$val1 = explode("-",$val); echo $val1[1];?>" class="form-control" readonly> -->
|
||||
<?php echo form_dropdown('igrlinenos',$igrlinenos,set_value('igrlinenos',!empty($sandigr[1]) ? $sandigr[1] : $igrlinenos[-1]),'id="igrlinenos"' ,'class="form-control','style="text-align:center;"');?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>IGR No(For Resin)</label>
|
||||
<!-- <input type="text" id="Resinigrnos" value="" class="form-control" readonly> -->
|
||||
<?php $resinigrnos = $records['masterdata'][0]->igrno_for_resin;
|
||||
$resinigr = explode("-",$resinigrnos);
|
||||
echo form_dropdown('Resinigrnos',$igrnos,set_value('Resinigrnos',!empty($resinigr[0]) ? $resinigr[0] : $igrnos[-1]),'id="Resinigrnos"' ,'class="form-control','style="text-align:center;"');?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>IGR Line Item No</label>
|
||||
<!-- <input type="text" id="Resinigrlinenos" value="" class="form-control" readonly> -->
|
||||
<?php echo form_dropdown('Resinigrlinenos',$igrlinenos,set_value('Resinigrlinenos',!empty($resinigr[1]) ? $resinigr[1] : $igrlinenos[-1]),'id="Resinigrlinenos"' ,'class="form-control','style="text-align:center;"');?>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>IGR No(For Hexamine)</label>
|
||||
<!-- <input type="text" id="Hexamineigrnos" value="" class="form-control" readonly> -->
|
||||
<?php $hexaigrnos = $records['masterdata'][0]->igrno_for_haxamine;
|
||||
$hexaigr = explode("-",$hexaigrnos);
|
||||
echo form_dropdown('Hexamineigrnos',$igrnos,set_value('Hexamineigrnos',!empty($hexaigr[0]) ? $hexaigr[0] : $igrnos[-1] ),'id="Hexamineigrnos"' ,'class="form-control','style="text-align:center;"','onchange="getComboA(this)"');?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>IGR Line Item No</label>
|
||||
<!-- <input type="text" id="Hexamineigrlinenos" value=" " class="form-control" readonly> -->
|
||||
<?php echo form_dropdown('Hexamineigrlinenos',$igrlinenos,set_value('Hexamineigrlinenos',!empty($hexaigr[1]) ? $hexaigr[1] : $igrlinenos[-1]),'id="Hexamineigrlinenos"' ,'class="form-control','style="text-align:center;"');?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>IGR No(For CS)</label>
|
||||
<!-- <input type="text" id="CSigrnos" value="" class="form-control" readonly> -->
|
||||
<?php $csigrnos = $records['masterdata'][0]->igrno_for_cs;
|
||||
$csigr = explode("-",$csigrnos);
|
||||
echo form_dropdown('CSigrnos',$igrnos,set_value('CSigrnos',!empty($csigr[0]) ? $csigr[0] : $igrnos[-1]),'id="CSigrnos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>IGR Line Item No</label>
|
||||
<!-- <input type="text" id="CSigrlinenos" value="" class="form-control" readonly> -->
|
||||
<?php echo form_dropdown('CSigrlinenos',$igrlinenos,set_value('CSigrlinenos',!empty($csigr[1]) ? $csigr[1] : $igrlinenos[-1]),'id="CSigrlinenos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-2">
|
||||
<label>IGR No(For Catalyst)</label>
|
||||
<!-- <input type="text" id="Catalystigrnos" value="" class="form-control" readonly> -->
|
||||
<?php $catalystigrnos = $records['masterdata'][0]->igrno_for_catalyst;
|
||||
$catalystigr = explode("-",$catalystigrnos);
|
||||
echo form_dropdown('Catalystigrnos',$igrnos,set_value('Catalystigrnos',!empty($catalystigr[0]) ? $catalystigr[0] : $igrlinenos[-1]),'id="Catalystigrnos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>IGR Line Item No</label>
|
||||
<!-- <input type="text" id="Catalystigrlinenos" value="" class="form-control" readonly> -->
|
||||
<?php echo form_dropdown('Catalystigrlinenos',$igrlinenos,set_value('Catalystigrlinenos',!empty($catalystigr[1]) ? $catalystigr[1] : $igrlinenos[-1]),'id="Catalystigrlinenos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>IGR No(For 50 Bags)</label>
|
||||
<!-- <input type="text" id="bagsigrnos" value="" class="form-control" readonly> -->
|
||||
<?php $bagsigrnos = $records['masterdata'][0]->igrno_for_bags;
|
||||
$bagsigr = explode("-",$bagsigrnos);
|
||||
echo form_dropdown('bagsigrnos',$igrnos,set_value('bagsigrnos',!empty($bagsigr[0]) ? $bagsigr[0] : $igrnos[-1]),'id="bagsigrnos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>IGR Line Item No</label>
|
||||
<!-- <input type="text" id="bagsigrlinenos" value="" class="form-control" readonly> -->
|
||||
<?php echo form_dropdown('bagsigrlinenos',$igrlinenos,set_value('bagsigrlinenos',!empty($bagsigr[1]) ? $bagsigr[1] : $igrlinenos[-1]),'id="bagsigrlinenos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>IGR No(For 1 ton Bag)</label>
|
||||
<!-- <input type="text" id="tonigrnos" value="" class="form-control" readonly> -->
|
||||
<?php $tonigrnos = $records['masterdata'][0]->igrno_for_tonbags;
|
||||
$tonigr = explode("-",$tonigrnos);
|
||||
echo form_dropdown('tonigrnos',$igrnos,set_value('tonigrnos',!empty($tonigr[0]) ? $tonigr[0] : $igrlinenos[-1]),'id="tonigrnos"' ,'class="form-control','style="text-align:center;"');?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>IGR Line Item No</label>
|
||||
<!-- <input type="text" id="tonigrlinenos" value="" class="form-control" readonly> -->
|
||||
<?php echo form_dropdown('tonigrlinenos',$igrlinenos,set_value('tonigrlinenos',!empty($tonigr[1]) ? $tonigr[1] : $igrlinenos[-1]),'id="tonigrlinenos"' ,'class="form-control','style="text-align:center;"');?>
|
||||
|
||||
</div>
|
||||
|
||||
<p> </p>
|
||||
</div><br>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<br/>
|
||||
<p> </p>
|
||||
<table id="testreport" class="table table-bordered" style="background-color:#fff;font-size:12px;text-align:center;">
|
||||
<thead style="background-color:#ddf;">
|
||||
<tr id="firstrowheader"><th>SNO</th><th>Time</th></tr>
|
||||
@ -257,7 +384,7 @@ th{
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Operators:</label>
|
||||
<label>Helpers:</label>
|
||||
<select name="listops" id="listops" multiple>
|
||||
<?php
|
||||
foreach($existoperatorslist as $ex)
|
||||
@ -279,12 +406,16 @@ th{
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Created By :</label>
|
||||
<input type="text" id="inspector" class="form-control" value="<?php echo $this->session->userdata ( 'name' );?>" readonly>
|
||||
<!-- <label>Created By :</label> -->
|
||||
<!-- <input type="text" id="inspector" class="form-control" value="<?php echo $this->session->userdata ( 'name' );?>" readonly> -->
|
||||
<label>Select Operator :</label>
|
||||
<?php
|
||||
echo form_dropdown('newoperator',$newoperator,set_value('newoperator', !empty($records['masterdata'][0]->operatedby))?$records['masterdata'][0]->operatedby : $newoperator[-1],'id="newoperator"' ,'class="form-control select2', 'style="text-align:center;"');?>
|
||||
|
||||
<input type="hidden" value="<?php echo $this->session->userdata ( 'userId' );?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Select Operators :</label>
|
||||
<label>Select Helpers :</label>
|
||||
<?php echo form_dropdown('operators',$operators,set_value('operators',$operators[-1]),'id="operators"' ,'class="form-control select2', 'style="text-align:center;"');?>
|
||||
</div>
|
||||
<div class="col-md-3 col-md-offset-3 ">
|
||||
@ -314,7 +445,7 @@ th{
|
||||
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/common.js" charset="utf-8"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
|
||||
|
||||
$('#monthlylisting').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
@ -345,14 +476,17 @@ $(document).ready(function(){
|
||||
var c = "<?php echo $records['masterdata'][0]->customerid;?>";
|
||||
getAllSpec(p,c);
|
||||
|
||||
|
||||
|
||||
$('#approvedby').val('<?php echo $records['masterdata'][0]->approvedby?>');
|
||||
$('#operators').select2();
|
||||
$('#newoperator').select2();
|
||||
$('#batchdate').datepicker({
|
||||
//minDate : 'year+16',
|
||||
maxDate : 'now',
|
||||
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '0:+10'
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}); // End of document on ready funciton
|
||||
|
||||
@ -651,7 +785,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('sandtotal'))
|
||||
{
|
||||
document.getElementById('sandtotal').textContent = parseFloat(totalsandqty);
|
||||
document.getElementById('sandtotal').textContent = parseFloat(totalsandqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
else if(ide2 == 'sand')
|
||||
@ -671,7 +805,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('sandtotal'))
|
||||
{
|
||||
document.getElementById('sandtotal').textContent = parseFloat(totalsandqty);
|
||||
document.getElementById('sandtotal').textContent = parseFloat(totalsandqty).toFixed(2);
|
||||
}
|
||||
|
||||
}
|
||||
@ -695,7 +829,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('hextotal'))
|
||||
{
|
||||
document.getElementById('hextotal').textContent = parseFloat(totalhexqty);
|
||||
document.getElementById('hextotal').textContent = parseFloat(totalhexqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
else if(ide2 == 'hexamine')
|
||||
@ -715,7 +849,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('hextotal'))
|
||||
{
|
||||
document.getElementById('hextotal').textContent = parseFloat(totalhexqty);
|
||||
document.getElementById('hextotal').textContent = parseFloat(totalhexqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
|
||||
@ -736,7 +870,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('catalysttotal'))
|
||||
{
|
||||
document.getElementById('catalysttotal').textContent = parseFloat(totalsandqty);
|
||||
document.getElementById('catalysttotal').textContent = parseFloat(totalsandqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
else if(ide2 == 'catalyst')
|
||||
@ -756,7 +890,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('catalysttotal'))
|
||||
{
|
||||
document.getElementById('catalysttotal').textContent = parseFloat(totalsandqty);
|
||||
document.getElementById('catalysttotal').textContent = parseFloat(totalsandqty).toFixed(2);
|
||||
}
|
||||
|
||||
}
|
||||
@ -782,7 +916,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('resintotal'))
|
||||
{
|
||||
document.getElementById('resintotal').textContent = parseFloat(totalresinqty);
|
||||
document.getElementById('resintotal').textContent = parseFloat(totalresinqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
else if(ide2 == 'resin')
|
||||
@ -802,7 +936,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('resintotal'))
|
||||
{
|
||||
document.getElementById('resintotal').textContent = parseFloat(totalresinqty);
|
||||
document.getElementById('resintotal').textContent = parseFloat(totalresinqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
|
||||
@ -826,7 +960,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('cstotal'))
|
||||
{
|
||||
document.getElementById('cstotal').textContent = parseFloat(totalcsqty);
|
||||
document.getElementById('cstotal').textContent = parseFloat(totalcsqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
else if(ide2 == 'cs')
|
||||
@ -846,7 +980,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('cstotal'))
|
||||
{
|
||||
document.getElementById('cstotal').textContent = parseFloat(totalcsqty);
|
||||
document.getElementById('cstotal').textContent = parseFloat(totalcsqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
|
||||
@ -904,8 +1038,21 @@ console.log(listopsforstore+'-'+oldops);
|
||||
var approvedby = $('#approvedby').val();
|
||||
var olddoc = $('#olddoc').val();
|
||||
var MASTERID = $('#MASTERID').val();
|
||||
var operatedby = $('#newoperator').val();
|
||||
var Resinigrnos = $('#Resinigrnos').val();
|
||||
var Resinigrlinenos = $('#Resinigrlinenos').val();
|
||||
var Hexamineigrnos = $('#Hexamineigrnos').val();
|
||||
var Hexamineigrlinenos = $('#Hexamineigrlinenos').val();
|
||||
var CSigrnos = $('#CSigrnos').val();
|
||||
var CSigrlinenos = $('#CSigrlinenos').val();
|
||||
var Catalystigrnos = $('#Catalystigrnos').val();
|
||||
var Catalystigrlinenos = $('#Catalystigrlinenos').val();
|
||||
var bagsigrnos = $('#bagsigrnos').val();
|
||||
var bagsigrlinenos = $('#bagsigrlinenos').val();
|
||||
var tonigrnos = $('#tonigrnos').val();
|
||||
var tonigrlinenos = $('#tonigrlinenos').val();
|
||||
|
||||
if(approvedby == -1 || listopsforstore.length == 0)
|
||||
if(approvedby == -1 || listopsforstore.length == 0 || operatedby == -1)
|
||||
{
|
||||
alert('Please Enter All Master Details..!');
|
||||
return false;
|
||||
@ -936,7 +1083,7 @@ console.log(listopsforstore+'-'+oldops);
|
||||
|
||||
var param1 = productid;
|
||||
var param2 = customerid;
|
||||
var param3= batchdate;
|
||||
var param3 = batchdate;
|
||||
var param4 = plantname;
|
||||
var param5 = macinecode;
|
||||
var param6 = trpbatchcard;
|
||||
@ -950,6 +1097,15 @@ console.log(listopsforstore+'-'+oldops);
|
||||
var param14 = MASTERID;
|
||||
var param15 = JSON.stringify(opstoinsert);
|
||||
var param16 = JSON.stringify(opstodelete);
|
||||
var param17 = operatedby;
|
||||
var param18 = igrnos+'-'+igrlinenos;
|
||||
var param19 = Resinigrnos+'-'+Resinigrlinenos;
|
||||
var param20 = Hexamineigrnos+'-'+Hexamineigrlinenos
|
||||
var param21 = CSigrnos+'-'+CSigrlinenos ;
|
||||
var param22 = Catalystigrnos+'-'+Catalystigrlinenos;
|
||||
var param23 = bagsigrnos+'-'+bagsigrlinenos;
|
||||
var param24 = tonigrnos+'-'+tonigrlinenos;
|
||||
|
||||
|
||||
|
||||
formData.append('param1',param1);
|
||||
@ -968,6 +1124,15 @@ console.log(listopsforstore+'-'+oldops);
|
||||
formData.append('param14',param14);
|
||||
formData.append('param15',param15);
|
||||
formData.append('param16',param16);
|
||||
formData.append('param17',param17);
|
||||
formData.append('param18',param18);
|
||||
formData.append('param19',param19);
|
||||
formData.append('param20',param20);
|
||||
formData.append('param21',param21);
|
||||
formData.append('param22',param22);
|
||||
formData.append('param23',param23);
|
||||
formData.append('param24',param24);
|
||||
|
||||
|
||||
|
||||
$('.content').loader('show');
|
||||
@ -1007,7 +1172,7 @@ console.log(listopsforstore+'-'+oldops);
|
||||
//alert(value);
|
||||
if(value == val)
|
||||
{
|
||||
alert('Operator Already Added..!Choose Another One.!');
|
||||
alert('Helper Already Added..!Choose Another One.!');
|
||||
brea();
|
||||
}
|
||||
|
||||
@ -1090,13 +1255,244 @@ console.log(listopsforstore+'-'+oldops);
|
||||
$('#printPDF').submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$('#igrnos').change(function(){
|
||||
var html = '<option value = -1>Select IGRItemNo</option>';
|
||||
var igrno = $('#igrnos').val();
|
||||
|
||||
$('.content').loader('show');
|
||||
$.ajax({
|
||||
data:{param1:igrno},
|
||||
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>resinbatchcard/getIGRLineNo",
|
||||
success:function(data) {
|
||||
|
||||
$('.content').loader('hide');
|
||||
// alert(data);
|
||||
|
||||
data = JSON.parse(data);
|
||||
if(data != ''){
|
||||
|
||||
$.each(data,function(index,value){
|
||||
html+='<option value='+value.IGRItemNo+'>'+value.IGRItemNo+'</option>';
|
||||
});
|
||||
$('#igrlinenos').find('option').remove();
|
||||
$('#igrlinenos').append(html);
|
||||
}
|
||||
else{
|
||||
alert('No Line Item Available');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#Resinigrnos').change(function(){
|
||||
//alert("entered in this fuunction");
|
||||
var html = '<option value = -1>Select IGRItemNo</option>';
|
||||
var igrno = $('#Resinigrnos').val();
|
||||
|
||||
//alert(igrno);
|
||||
$('.content').loader('show');
|
||||
$.ajax({
|
||||
data:{param1:igrno},
|
||||
//dataType:"json",
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>resinbatchcard/getIGRLineNo",
|
||||
success:function(data) {
|
||||
|
||||
$('.content').loader('hide');
|
||||
// alert(data);
|
||||
|
||||
data = JSON.parse(data);
|
||||
if(data != ''){
|
||||
|
||||
$.each(data,function(index,value){
|
||||
html+='<option value='+value.IGRItemNo+'>'+value.IGRItemNo+'</option>';
|
||||
});
|
||||
$('#Resinigrlinenos').find('option').remove();
|
||||
$('#Resinigrlinenos').append(html);
|
||||
}
|
||||
else{
|
||||
alert('No Line Item Available');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#Hexamineigrnos').change(function(){
|
||||
var html = '<option value = -1>Select IGRItemNo</option>';
|
||||
var igrno = $('#Hexamineigrnos').val();
|
||||
|
||||
//alert(igrno);
|
||||
$('.content').loader('show');
|
||||
$.ajax({
|
||||
data:{param1:igrno},
|
||||
//dataType:"json",
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>resinbatchcard/getIGRLineNo",
|
||||
success:function(data) {
|
||||
|
||||
$('.content').loader('hide');
|
||||
// alert(data);
|
||||
|
||||
data = JSON.parse(data);
|
||||
if(data != ''){
|
||||
|
||||
$.each(data,function(index,value){
|
||||
html+='<option value='+value.IGRItemNo+'>'+value.IGRItemNo+'</option>';
|
||||
});
|
||||
$('#Hexamineigrlinenos').find('option').remove();
|
||||
$('#Hexamineigrlinenos').append(html);
|
||||
}
|
||||
else{
|
||||
alert('No Line Item Available');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#CSigrnos').change(function(){
|
||||
var html = '<option value = -1>Select IGRItemNo</option>';
|
||||
var igrno = $('#CSigrnos').val();
|
||||
|
||||
//alert(igrno);
|
||||
$('.content').loader('show');
|
||||
$.ajax({
|
||||
data:{param1:igrno},
|
||||
//dataType:"json",
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>resinbatchcard/getIGRLineNo",
|
||||
success:function(data) {
|
||||
|
||||
$('.content').loader('hide');
|
||||
// alert(data);
|
||||
|
||||
data = JSON.parse(data);
|
||||
if(data != ''){
|
||||
|
||||
$.each(data,function(index,value){
|
||||
html+='<option value='+value.IGRItemNo+'>'+value.IGRItemNo+'</option>';
|
||||
});
|
||||
$('#CSigrlinenos').find('option').remove();
|
||||
$('#CSigrlinenos').append(html);
|
||||
}
|
||||
else{
|
||||
alert('No Line Item Available');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#Catalystigrnos').change(function(){
|
||||
var html = '<option value = -1>Select IGRItemNo</option>';
|
||||
var igrno = $('#Catalystigrnos').val();
|
||||
|
||||
//alert(igrno);
|
||||
$('.content').loader('show');
|
||||
$.ajax({
|
||||
data:{param1:igrno},
|
||||
//dataType:"json",
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>resinbatchcard/getIGRLineNo",
|
||||
success:function(data) {
|
||||
|
||||
$('.content').loader('hide');
|
||||
// alert(data);
|
||||
|
||||
data = JSON.parse(data);
|
||||
if(data != ''){
|
||||
|
||||
$.each(data,function(index,value){
|
||||
html+='<option value='+value.IGRItemNo+'>'+value.IGRItemNo+'</option>';
|
||||
});
|
||||
$('#Catalystigrlinenos').find('option').remove();
|
||||
$('#Catalystigrlinenos').append(html);
|
||||
}
|
||||
else{
|
||||
alert('No Line Item Available');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#bagsigrnos').change(function(){
|
||||
var html = '<option value = -1>Select IGRItemNo</option>';
|
||||
var igrno = $('#bagsigrnos').val();
|
||||
|
||||
//alert(igrno);
|
||||
$('.content').loader('show');
|
||||
$.ajax({
|
||||
data:{param1:igrno},
|
||||
//dataType:"json",
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>resinbatchcard/getIGRLineNo",
|
||||
success:function(data) {
|
||||
|
||||
$('.content').loader('hide');
|
||||
// alert(data);
|
||||
|
||||
data = JSON.parse(data);
|
||||
if(data != ''){
|
||||
|
||||
$.each(data,function(index,value){
|
||||
html+='<option value='+value.IGRItemNo+'>'+value.IGRItemNo+'</option>';
|
||||
});
|
||||
$('#bagsigrlinenos').find('option').remove();
|
||||
$('#bagsigrlinenos').append(html);
|
||||
}
|
||||
else{
|
||||
alert('No Line Item Available');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#tonigrnos').change(function(){
|
||||
var html = '<option value = -1>Select IGRItemNo</option>';
|
||||
var igrno = $('#tonigrnos').val();
|
||||
|
||||
//alert(igrno);
|
||||
$('.content').loader('show');
|
||||
$.ajax({
|
||||
data:{param1:igrno},
|
||||
//dataType:"json",
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>resinbatchcard/getIGRLineNo",
|
||||
success:function(data) {
|
||||
|
||||
$('.content').loader('hide');
|
||||
// alert(data);
|
||||
|
||||
data = JSON.parse(data);
|
||||
if(data != ''){
|
||||
|
||||
$.each(data,function(index,value){
|
||||
html+='<option value='+value.IGRItemNo+'>'+value.IGRItemNo+'</option>';
|
||||
});
|
||||
$('#tonigrlinenos').find('option').remove();
|
||||
$('#tonigrlinenos').append(html);
|
||||
}
|
||||
else{
|
||||
alert('No Line Item Available');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
@ -27,10 +27,12 @@ background-color:#ada5d2 ;
|
||||
//print_r($operatorslist);
|
||||
|
||||
$operators = array(-1=>'Select Employee');
|
||||
$newoperator = array(-1=>'Select Operator');
|
||||
foreach($operatorslist as $re)
|
||||
{
|
||||
|
||||
$operators[$re->EmpID] = $re->EmpID.'-'.$re->FirstName.'-'.$re->LastName;
|
||||
$newoperator[$re->EmpID] = $re->EmpID.'-'.$re->FirstName.'-'.$re->LastName;
|
||||
}
|
||||
|
||||
$products = array(-1=>'Select Product');
|
||||
@ -64,7 +66,6 @@ foreach($machinelist as $r)
|
||||
{
|
||||
$machines[$r->Machine_Code] = $r->Machine_Code.'-'.$r->Machine_Name;
|
||||
}
|
||||
|
||||
foreach($trpbatchcardnos as $r)
|
||||
{
|
||||
$trpbatchnos[$r->dailyid] = $r->dailyid;
|
||||
@ -167,24 +168,74 @@ th{
|
||||
</br>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
<label>TRP Batch No(For TRP Sand)</label>
|
||||
<?php echo form_dropdown('trpbatchnos',$trpbatchnos,set_value('trpbatchnos',$trpbatchnos[-1]), 'id="trpbatchnos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
<label>TRP Batch No(For TRP Sand)</label>
|
||||
<?php echo form_dropdown('trpbatchnos',$trpbatchnos,set_value('trpbatchnos',$trpbatchnos[-1]), 'id="trpbatchnos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>IGR No(For Fresh Sand)</label>
|
||||
<?php echo form_dropdown('igrnos',$igrnos,set_value('igrnos',$igrnos[-1]),'id="igrnos"' ,'class="form-control select2','style="text-align:center;"','onChange="some_function();"');?>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>IGR Line Item No</label>
|
||||
<?php echo form_dropdown('igrlinenos',$igrlinenos,set_value('igrlinenos',$igrlinenos[-1]),'id="igrlinenos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
</div>
|
||||
</br>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-2">
|
||||
<label>IGR No(For Resin )</label>
|
||||
<?php echo form_dropdown('Resinigrnos',$igrnos,set_value('Resinigrnos',$igrnos[-1]),'id="Resinigrnos"' ,'class="form-control select2','style="text-align:center;"','onchange="getComboA()"');?>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label>IGR Line Item No</label>
|
||||
<?php echo form_dropdown('Resinigrlinenos',$igrlinenos,set_value('Resinigrlinenos',$igrlinenos[-1]),'id="Resinigrlinenos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>IGR No(For Hexamine)</label>
|
||||
<?php echo form_dropdown('Hexamineigrnos',$igrnos,set_value('Hexamineigrnos',$igrnos[-1]),'id="Hexamineigrnos"' ,'class="form-control select2','style="text-align:center;"','onchange="getComboA(this)"');?>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label>IGR Line Item No</label>
|
||||
<?php echo form_dropdown('Hexamineigrlinenos',$igrlinenos,set_value('Hexamineigrlinenos',$igrlinenos[-1]),'id="Hexamineigrlinenos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label>IGR No(For Fresh Sand)</label>
|
||||
<?php echo form_dropdown('igrnos',$igrnos,set_value('igrnos',$igrnos[-1]),'id="igrnos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
<div class="col-md-2">
|
||||
<label>IGR No(For CS)</label>
|
||||
<?php echo form_dropdown('CSigrnos',$igrnos,set_value('CSigrnos',$igrnos[-1]),'id="CSigrnos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label>IGR Line Item No</label>
|
||||
<?php echo form_dropdown('CSigrlinenos',$igrlinenos,set_value('CSigrlinenos',$igrlinenos[-1]),'id="CSigrlinenos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label>IGR Line Item No</label>
|
||||
<?php echo form_dropdown('igrlinenos',$igrlinenos,set_value('igrlinenos',$igrlinenos[-1]),'id="igrlinenos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</br>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-2">
|
||||
<label>IGR No(For Catalyst)</label>
|
||||
<?php echo form_dropdown('Catalystigrnos',$igrnos,set_value('Catalystigrnos',$igrnos[-1]),'id="Catalystigrnos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label>IGR Line Item No</label>
|
||||
<?php echo form_dropdown('Catalystigrlinenos',$igrlinenos,set_value('Catalystigrlinenos',$igrlinenos[-1]),'id="Catalystigrlinenos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label>IGR No(For 50 Bags)</label>
|
||||
<?php echo form_dropdown('bagsigrnos',$igrnos,set_value('bagsigrnos',$igrnos[-1]),'id="bagsigrnos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label>IGR Line Item No</label>
|
||||
<?php echo form_dropdown('bagsigrlinenos',$igrlinenos,set_value('bagsigrlinenos',$igrlinenos[-1]),'id="bagsigrlinenos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label>IGR No(For 1 ton Bag)</label>
|
||||
<?php echo form_dropdown('tonigrnos',$igrnos,set_value('tonigrnos',$igrnos[-1]),'id="tonigrnos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label>IGR Line Item No</label>
|
||||
<?php echo form_dropdown('tonigrlinenos',$igrlinenos,set_value('tonigrlinenos',$igrlinenos[-1]),'id="tonigrlinenos"' ,'class="form-control select2','style="text-align:center;"');?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p> </p>
|
||||
<table id="testreport" class="table table-bordered" style="background-color:#fff;font-size:12px;text-align:center;">
|
||||
<thead style="background-color:#ddf;">
|
||||
@ -245,12 +296,9 @@ th{
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Operators:</label>
|
||||
<label>Helpers:</label>
|
||||
<select name="listops" id="listops" multiple>
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Remarks:</label>
|
||||
@ -262,12 +310,14 @@ th{
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Created By :</label>
|
||||
<input type="text" id="inspector" class="form-control" value="<?php echo $this->session->userdata ( 'name' );?>" readonly>
|
||||
<!-- <label>Created By :</label>
|
||||
<input type="text" id="inspector" class="form-control" value="<?php echo $this->session->userdata ( 'name' );?>" readonly> -->
|
||||
<label>Select Operator :</label>
|
||||
<?php echo form_dropdown('newoperator',$newoperator,set_value('newoperator',$newoperator[-1]),'id="newoperator"' ,'class="form-control select2', 'style="text-align:center;"');?>
|
||||
<input type="hidden" value="<?php echo $this->session->userdata ( 'userId' );?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Select Operators :</label>
|
||||
<label>Select Helpers :</label>
|
||||
<?php echo form_dropdown('operators',$operators,set_value('operators',$operators[-1]),'id="operators"' ,'class="form-control select2', 'style="text-align:center;"');?>
|
||||
</div>
|
||||
|
||||
@ -339,7 +389,20 @@ $(document).ready(function(){
|
||||
$('#trpbatchnos').select2();
|
||||
$('#approvedby').select2();
|
||||
$('#igrlinenos').select2();
|
||||
$('#Resinigrnos').select2();
|
||||
$('#Resinigrlinenos').select2();
|
||||
$('#Hexamineigrnos').select2();
|
||||
$('#Hexamineigrlinenos').select2();
|
||||
$('#CSigrnos').select2();
|
||||
$('#CSigrlinenos').select2();
|
||||
$('#Catalystigrnos').select2();
|
||||
$('#Catalystigrlinenos').select2();
|
||||
$('#bagsigrnos').select2();
|
||||
$('#bagsigrlinenos').select2();
|
||||
$('#tonigrnos').select2();
|
||||
$('#tonigrlinenos').select2();
|
||||
$('#operators').select2();
|
||||
$('#newoperator').select2();
|
||||
|
||||
//show_hide_column(13,false);
|
||||
|
||||
@ -391,9 +454,44 @@ var flag = 0;
|
||||
var totalcells = 0;
|
||||
var overallrows = 0;
|
||||
|
||||
|
||||
$('#igrnos').change(function(){
|
||||
var html = '<option value = -1>Select IGRItemNo</option>';
|
||||
var igrno = $('#igrnos').val();
|
||||
var igrno = $('#igrnos').val();
|
||||
|
||||
$('.content').loader('show');
|
||||
$.ajax({
|
||||
data:{param1:igrno},
|
||||
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>resinbatchcard/getIGRLineNo",
|
||||
success:function(data) {
|
||||
|
||||
$('.content').loader('hide');
|
||||
// alert(data);
|
||||
|
||||
data = JSON.parse(data);
|
||||
if(data != ''){
|
||||
|
||||
$.each(data,function(index,value){
|
||||
html+='<option value='+value.IGRItemNo+'>'+value.IGRItemNo+'</option>';
|
||||
});
|
||||
$('#igrlinenos').find('option').remove();
|
||||
$('#igrlinenos').append(html);
|
||||
}
|
||||
else{
|
||||
alert('No Line Item Available');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#Resinigrnos').change(function(){
|
||||
var html = '<option value = -1>Select IGRItemNo</option>';
|
||||
var igrno = $('#Resinigrnos').val();
|
||||
|
||||
//alert(igrno);
|
||||
$('.content').loader('show');
|
||||
$.ajax({
|
||||
@ -412,8 +510,179 @@ $('#igrnos').change(function(){
|
||||
$.each(data,function(index,value){
|
||||
html+='<option value='+value.IGRItemNo+'>'+value.IGRItemNo+'</option>';
|
||||
});
|
||||
$('#igrlinenos').find('option').remove();
|
||||
$('#igrlinenos').append(html);
|
||||
$('#Resinigrlinenos').find('option').remove();
|
||||
$('#Resinigrlinenos').append(html);
|
||||
}
|
||||
else{
|
||||
alert('No Line Item Available');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#Hexamineigrnos').change(function(){
|
||||
var html = '<option value = -1>Select IGRItemNo</option>';
|
||||
var igrno = $('#Hexamineigrnos').val();
|
||||
|
||||
//alert(igrno);
|
||||
$('.content').loader('show');
|
||||
$.ajax({
|
||||
data:{param1:igrno},
|
||||
//dataType:"json",
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>resinbatchcard/getIGRLineNo",
|
||||
success:function(data) {
|
||||
|
||||
$('.content').loader('hide');
|
||||
// alert(data);
|
||||
|
||||
data = JSON.parse(data);
|
||||
if(data != ''){
|
||||
|
||||
$.each(data,function(index,value){
|
||||
html+='<option value='+value.IGRItemNo+'>'+value.IGRItemNo+'</option>';
|
||||
});
|
||||
$('#Hexamineigrlinenos').find('option').remove();
|
||||
$('#Hexamineigrlinenos').append(html);
|
||||
}
|
||||
else{
|
||||
alert('No Line Item Available');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#CSigrnos').change(function(){
|
||||
var html = '<option value = -1>Select IGRItemNo</option>';
|
||||
var igrno = $('#CSigrnos').val();
|
||||
|
||||
//alert(igrno);
|
||||
$('.content').loader('show');
|
||||
$.ajax({
|
||||
data:{param1:igrno},
|
||||
//dataType:"json",
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>resinbatchcard/getIGRLineNo",
|
||||
success:function(data) {
|
||||
|
||||
$('.content').loader('hide');
|
||||
// alert(data);
|
||||
|
||||
data = JSON.parse(data);
|
||||
if(data != ''){
|
||||
|
||||
$.each(data,function(index,value){
|
||||
html+='<option value='+value.IGRItemNo+'>'+value.IGRItemNo+'</option>';
|
||||
});
|
||||
$('#CSigrlinenos').find('option').remove();
|
||||
$('#CSigrlinenos').append(html);
|
||||
}
|
||||
else{
|
||||
alert('No Line Item Available');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#Catalystigrnos').change(function(){
|
||||
var html = '<option value = -1>Select IGRItemNo</option>';
|
||||
var igrno = $('#Catalystigrnos').val();
|
||||
|
||||
//alert(igrno);
|
||||
$('.content').loader('show');
|
||||
$.ajax({
|
||||
data:{param1:igrno},
|
||||
//dataType:"json",
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>resinbatchcard/getIGRLineNo",
|
||||
success:function(data) {
|
||||
|
||||
$('.content').loader('hide');
|
||||
// alert(data);
|
||||
|
||||
data = JSON.parse(data);
|
||||
if(data != ''){
|
||||
|
||||
$.each(data,function(index,value){
|
||||
html+='<option value='+value.IGRItemNo+'>'+value.IGRItemNo+'</option>';
|
||||
});
|
||||
$('#Catalystigrlinenos').find('option').remove();
|
||||
$('#Catalystigrlinenos').append(html);
|
||||
}
|
||||
else{
|
||||
alert('No Line Item Available');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#bagsigrnos').change(function(){
|
||||
var html = '<option value = -1>Select IGRItemNo</option>';
|
||||
var igrno = $('#bagsigrnos').val();
|
||||
|
||||
//alert(igrno);
|
||||
$('.content').loader('show');
|
||||
$.ajax({
|
||||
data:{param1:igrno},
|
||||
//dataType:"json",
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>resinbatchcard/getIGRLineNo",
|
||||
success:function(data) {
|
||||
|
||||
$('.content').loader('hide');
|
||||
// alert(data);
|
||||
|
||||
data = JSON.parse(data);
|
||||
if(data != ''){
|
||||
|
||||
$.each(data,function(index,value){
|
||||
html+='<option value='+value.IGRItemNo+'>'+value.IGRItemNo+'</option>';
|
||||
});
|
||||
$('#bagsigrlinenos').find('option').remove();
|
||||
$('#bagsigrlinenos').append(html);
|
||||
}
|
||||
else{
|
||||
alert('No Line Item Available');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#tonigrnos').change(function(){
|
||||
var html = '<option value = -1>Select IGRItemNo</option>';
|
||||
var igrno = $('#tonigrnos').val();
|
||||
|
||||
//alert(igrno);
|
||||
$('.content').loader('show');
|
||||
$.ajax({
|
||||
data:{param1:igrno},
|
||||
//dataType:"json",
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>resinbatchcard/getIGRLineNo",
|
||||
success:function(data) {
|
||||
|
||||
$('.content').loader('hide');
|
||||
// alert(data);
|
||||
|
||||
data = JSON.parse(data);
|
||||
if(data != ''){
|
||||
|
||||
$.each(data,function(index,value){
|
||||
html+='<option value='+value.IGRItemNo+'>'+value.IGRItemNo+'</option>';
|
||||
});
|
||||
$('#tonigrlinenos').find('option').remove();
|
||||
$('#tonigrlinenos').append(html);
|
||||
}
|
||||
else{
|
||||
alert('No Line Item Available');
|
||||
@ -650,24 +919,28 @@ function timeCheck(id,val)
|
||||
|
||||
function masterCalculationCheck(id,val)
|
||||
{
|
||||
//console.log(id+'-'+val);
|
||||
// console.log(id+'-'+val);
|
||||
//console.log(val);
|
||||
console.log(id);
|
||||
//alert("sdaf");
|
||||
var totalsandqty = 0;
|
||||
var totalhexqty = 0;
|
||||
var totalresinqty = 0;
|
||||
var totalcsqty = 0;
|
||||
var ide = id.substr(1);
|
||||
|
||||
var ide = id.substr(1)
|
||||
var ide2 = id.substr(2);
|
||||
console.log(ide+'-'+ide2);
|
||||
//console.log(ide+'-'+ide2);
|
||||
//For Total Sand Calculation
|
||||
if(ide == 'sand')
|
||||
{
|
||||
|
||||
for(i=1;i<=overallrows;i++)
|
||||
{
|
||||
var tid = i+''+ide;
|
||||
if(document.getElementById(tid))
|
||||
{
|
||||
var currentvalue = document.getElementById(tid).textContent;
|
||||
console.log("if "+parseFloat(currentvalue));
|
||||
if(isNaN(currentvalue) || currentvalue == '')
|
||||
{
|
||||
currentvalue = 0.00;
|
||||
@ -677,11 +950,12 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('sandtotal'))
|
||||
{
|
||||
document.getElementById('sandtotal').textContent = parseFloat(totalsandqty);
|
||||
document.getElementById('sandtotal').textContent = parseFloat(totalsandqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
else if(ide2 == 'sand')
|
||||
{
|
||||
|
||||
for(i=1;i<=overallrows;i++)
|
||||
{
|
||||
var tid = i+''+ide2;
|
||||
@ -697,7 +971,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('sandtotal'))
|
||||
{
|
||||
document.getElementById('sandtotal').textContent = parseFloat(totalsandqty);
|
||||
document.getElementById('sandtotal').textContent = parseFloat(totalsandqty).toFixed(2);
|
||||
}
|
||||
|
||||
}
|
||||
@ -721,7 +995,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('hextotal'))
|
||||
{
|
||||
document.getElementById('hextotal').textContent = parseFloat(totalhexqty);
|
||||
document.getElementById('hextotal').textContent = parseFloat(totalhexqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
else if(ide2 == 'hexamine')
|
||||
@ -741,7 +1015,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('hextotal'))
|
||||
{
|
||||
document.getElementById('hextotal').textContent = parseFloat(totalhexqty);
|
||||
document.getElementById('hextotal').textContent = parseFloat(totalhexqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
|
||||
@ -763,7 +1037,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('catalysttotal'))
|
||||
{
|
||||
document.getElementById('catalysttotal').textContent = parseFloat(totalsandqty);
|
||||
document.getElementById('catalysttotal').textContent = parseFloat(totalsandqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
else if(ide2 == 'catalyst')
|
||||
@ -783,7 +1057,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('catalysttotal'))
|
||||
{
|
||||
document.getElementById('catalysttotal').textContent = parseFloat(totalsandqty);
|
||||
document.getElementById('catalysttotal').textContent = parseFloat(totalsandqty).toFixed(2);
|
||||
}
|
||||
|
||||
}
|
||||
@ -809,7 +1083,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('resintotal'))
|
||||
{
|
||||
document.getElementById('resintotal').textContent = parseFloat(totalresinqty);
|
||||
document.getElementById('resintotal').textContent = parseFloat(totalresinqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
else if(ide2 == 'resin')
|
||||
@ -829,7 +1103,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('resintotal'))
|
||||
{
|
||||
document.getElementById('resintotal').textContent = parseFloat(totalresinqty);
|
||||
document.getElementById('resintotal').textContent = parseFloat(totalresinqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
|
||||
@ -853,7 +1127,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('cstotal'))
|
||||
{
|
||||
document.getElementById('cstotal').textContent = parseFloat(totalcsqty);
|
||||
document.getElementById('cstotal').textContent = parseFloat(totalcsqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
else if(ide2 == 'cs')
|
||||
@ -873,7 +1147,7 @@ function masterCalculationCheck(id,val)
|
||||
}
|
||||
if(document.getElementById('cstotal'))
|
||||
{
|
||||
document.getElementById('cstotal').textContent = parseFloat(totalcsqty);
|
||||
document.getElementById('cstotal').textContent = parseFloat(totalcsqty).toFixed(2);
|
||||
}
|
||||
}
|
||||
|
||||
@ -889,11 +1163,10 @@ function masterCalculationCheck(id,val)
|
||||
|
||||
|
||||
|
||||
var listopsforstore = []; //This one for Geeting all operators list
|
||||
function getAllData()
|
||||
{
|
||||
//alert("inside function");
|
||||
|
||||
|
||||
if(flag != 1)
|
||||
{
|
||||
alert('Cannot Save');
|
||||
@ -912,14 +1185,26 @@ var listopsforstore = []; //This one for Geeting all operators list
|
||||
var plantname = $('#plantname').val();
|
||||
var resinname = $('#resinname').val();
|
||||
var macinecode = $('#machines').val();
|
||||
|
||||
var trpbatchcard = $('#trpbatchnos').val();
|
||||
var igrnos = $('#igrnos').val();
|
||||
var igrlinenos = $('#igrlinenos').val();
|
||||
var Resinigrnos = $('#Resinigrnos').val();
|
||||
var Resinigrlinenos = $('#Resinigrlinenos').val();
|
||||
var Hexamineigrnos = $('#Hexamineigrnos').val();
|
||||
var Hexamineigrlinenos = $('#Hexamineigrlinenos').val();
|
||||
var CSigrnos = $('#CSigrnos').val();
|
||||
var CSigrlinenos = $('#CSigrlinenos').val();
|
||||
var Catalystigrnos = $('#Catalystigrnos').val();
|
||||
var Catalystigrlinenos = $('#Catalystigrlinenos').val();
|
||||
var bagsigrnos = $('#bagsigrnos').val();
|
||||
var bagsigrlinenos = $('#bagsigrlinenos').val();
|
||||
var tonigrnos = $('#tonigrnos').val();
|
||||
var tonigrlinenos = $('#tonigrlinenos').val();
|
||||
var remarks = $('#remarks').val();
|
||||
var approvedby = $('#approvedby').val();
|
||||
var operatorby = $('#newoperator').val();
|
||||
|
||||
if(productid == -1 || customerid == -1 || batchdate == '' || plantname == '' || macinecode == -1 || approvedby == -1 || listopsforstore.length == 0 || resinname == '')
|
||||
if(productid == -1 || customerid == -1 || batchdate == '' || plantname == '' || macinecode == -1 || approvedby == -1 || listopsforstore.length == 0 || resinname == '' || operatorby == -1 )
|
||||
{
|
||||
alert('Please Enter All Master Details..!');
|
||||
return false;
|
||||
@ -972,7 +1257,7 @@ var listopsforstore = []; //This one for Geeting all operators list
|
||||
|
||||
var param1 = productid;
|
||||
var param2 = customerid;
|
||||
var param3= batchdate;
|
||||
var param3 = batchdate;
|
||||
var param4 = plantname;
|
||||
var param5 = macinecode;
|
||||
var param6 = trpbatchcard;
|
||||
@ -984,6 +1269,14 @@ var listopsforstore = []; //This one for Geeting all operators list
|
||||
var param12 = finaltable;
|
||||
var param13 = resinname;
|
||||
var param14 = listopsforstore;
|
||||
var param15 = operatorby;
|
||||
var param16 = igrnos+'-'+igrlinenos;
|
||||
var param17 = Resinigrnos+'-'+Resinigrlinenos;
|
||||
var param18 = Hexamineigrnos+'-'+Hexamineigrlinenos
|
||||
var param19 = CSigrnos+'-'+CSigrlinenos ;
|
||||
var param20 = Catalystigrnos+'-'+Catalystigrlinenos;
|
||||
var param21 = bagsigrnos+'-'+bagsigrlinenos;
|
||||
var param22 = tonigrnos+'-'+tonigrlinenos;
|
||||
|
||||
|
||||
formData.append('param1',param1);
|
||||
@ -1000,7 +1293,15 @@ var listopsforstore = []; //This one for Geeting all operators list
|
||||
formData.append('param12',param12);
|
||||
formData.append('param13',param13);
|
||||
formData.append('param14',param14);
|
||||
|
||||
formData.append('param15',param15);
|
||||
formData.append('param16',param16);
|
||||
formData.append('param17',param17);
|
||||
formData.append('param18',param18);
|
||||
formData.append('param19',param19);
|
||||
formData.append('param20',param20);
|
||||
formData.append('param21',param21);
|
||||
formData.append('param22',param22);
|
||||
|
||||
|
||||
$('.content').loader('show');
|
||||
$.ajax({
|
||||
@ -1040,7 +1341,7 @@ var listopsforstore = []; //This one for Geeting all operators list
|
||||
//alert(value);
|
||||
if(value == val)
|
||||
{
|
||||
alert('Operator Already Added..!Choose Another One.!');
|
||||
alert('Helper Already Added..!Choose Another One.!');
|
||||
brea();
|
||||
}
|
||||
|
||||
@ -1064,16 +1365,4 @@ var listopsforstore = []; //This one for Geeting all operators list
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
@ -44,7 +44,6 @@
|
||||
<th>Customer</th>
|
||||
<th>Grade</th>
|
||||
<th>Batch Date</th>
|
||||
<th>IGR Details</th>
|
||||
<th>Operated By</th>
|
||||
<th>Production In Charge</th>
|
||||
|
||||
@ -57,6 +56,8 @@
|
||||
<?php
|
||||
if(!empty($records))
|
||||
{
|
||||
//print_r($records);
|
||||
|
||||
|
||||
foreach($records as $data)
|
||||
{
|
||||
@ -67,8 +68,9 @@
|
||||
<?php if(!empty($data->document)){?>
|
||||
<a target="_blank" href="<?php echo base_url()?>uploads/QAD/<?php echo $data->document ?>"><span class="fa fa-file-o"></span></a>
|
||||
<?php }?>
|
||||
</td> <td><?php echo $data->client_name?></td> <td><?php echo $data->product_name;?></td><td style="text-align:right;"><?php echo date_format(date_create($data->batchdate),'d-m-Y');?></td><td><?php echo $data->igrno.'-'.$data->igrlineno;?></td>
|
||||
<td><?php echo $data->FirstName;?></td><td><?php echo $data->approvedby;?></td>
|
||||
</td> <td><?php echo $data->client_name?></td> <td><?php echo $data->product_name;?></td><td style="text-align:right;"><?php echo date_format(date_create($data->batchdate),'d-m-Y');?></td>
|
||||
<td><?php echo $data->FirstName;?></td>
|
||||
<td><?php echo $data->approvedby;?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user