edit page resin name issue fixed

This commit is contained in:
venbatechnologies 2018-04-17 12:32:51 +05:30
parent 739d6347fd
commit 86ea103ace
2 changed files with 9 additions and 7 deletions

View File

@ -85,6 +85,7 @@ class resinbatchcard extends BaseController
$totaldata = json_decode($totaldata,true); $totaldata = json_decode($totaldata,true);
$createby = $this->session->userdata ( 'userId' ); $createby = $this->session->userdata ( 'userId' );
$document = null; $document = null;
$resinname = $this->input->post('param13'); $resinname = $this->input->post('param13');
$oplist = $this->input->post('param14'); $oplist = $this->input->post('param14');
$oplist = json_decode($oplist); $oplist = json_decode($oplist);
@ -121,11 +122,11 @@ class resinbatchcard extends BaseController
} }
} }
$masterreportdata = array('productid'=>$productid,'customerid'=>$customerid,'batchdate'=>$batchdate,'plantname'=>$plantname,'resinname'=>$resinnname,'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);
$MASTERID = $this->quality_model->saveResinBatchCardMasterTestData($masterreportdata); $MASTERID = $this->quality_model->saveResinBatchCardMasterTestData($masterreportdata);
//echo $MASTERID;die(); echo $MASTERID;die();
//$MASTERID = 56; //$MASTERID = 56;
foreach($masterdata as $key => $mas) foreach($masterdata as $key => $mas)
{ {
@ -364,6 +365,7 @@ class resinbatchcard extends BaseController
//echo $rbcid; //echo $rbcid;
$data['emplist'] = $this->quality_model->getEmplistforReport(); $data['emplist'] = $this->quality_model->getEmplistforReport();
$data['records'] = $this->quality_model->getResinBatchCardDetails($rbcid); $data['records'] = $this->quality_model->getResinBatchCardDetails($rbcid);
//print_r($data['records']);
$data['operatorslist'] = $this->quality_model->getOperatorsListforReport(); $data['operatorslist'] = $this->quality_model->getOperatorsListforReport();
$data['existoperatorslist'] = $this->quality_model->getExistOperatorsListforReport($rbcid); $data['existoperatorslist'] = $this->quality_model->getExistOperatorsListforReport($rbcid);
//print_r($data['records']);die(); //print_r($data['records']);die();

View File

@ -79,9 +79,9 @@ th{
<!-- <td colspan=" 2" width="8%" >IGR Line Item No:<?php echo $records['masterdata'][0]->igrlineno;?></td> --> <!-- <td colspan=" 2" width="8%" >IGR Line Item No:<?php echo $records['masterdata'][0]->igrlineno;?></td> -->
<td colspan="1" width="8%">SAND: </td> <td colspan="1" width="8%">SAND: </td>
<td colspan="3" width="8%"><?php echo $records['masterdata'][0]->igrno;?></td> <td colspan="2" width="8%"><?php echo $records['masterdata'][0]->igrno;?></td>
<td colspan=" 1" width="8%">RESIN:</td> <td colspan=" 1" width="8%">RESIN:</td>
<td colspan=" 2" width="8%"><?php echo $records['masterdata'][0]->resinname?></td> <td colspan=" 3" width="8%"><?php echo $records['masterdata'][0]->resinname?></td>
</tr> </tr>
@ -294,8 +294,8 @@ th{
<hr> <hr>
<br> <br>
<table > <table >
<tr><td>Operator <tr><td>INSPECTOR NAME
:<?php echo $this->session->userdata ( 'name' );?></td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>Production In charge:<?php echo $records['masterdata'][0]->approvedby; ?></td></tr> :<?php echo $this->session->userdata ( 'name' );?></td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>APPROVED BY:<?php echo $records['masterdata'][0]->approvedby; ?></td></tr>
<tr><td colspan="2">&nbsp;</td></tr> <tr><td colspan="2">&nbsp;</td></tr>
<tr><td colspan="2">&nbsp;</td></tr> <tr><td colspan="2">&nbsp;</td></tr>