INPROCESS ISSUES FIXED

This commit is contained in:
velz2020 2018-02-24 13:06:23 +05:30
parent 76d1a11019
commit bb340935e0
5 changed files with 39 additions and 7 deletions

View File

@ -299,10 +299,17 @@ class inprocess extends BaseController
if(!empty($_FILES['rfile']['name']))
{
if(!empty($document)){
$file = getcwd()."\\uploads\INPROCESS\\".$document;
if(unlink($file)){ echo "sucess";}else{ echo "Failed";}
if(unlink($file)){
//echo "sucess";
}else{
//echo "Failed";
}
}
$fs = $this->uploadFile();
$document = $fs;
@ -753,6 +760,14 @@ function updateNissanInprocessTestReportData()
{
if(!empty($document)){
$file = getcwd()."\\uploads\INPROCESS\\".$document;
if(unlink($file)){ //echo "success";
}else{// echo "Failed";
}
}
$fs = $this->uploadFile();
$document = $fs;

View File

@ -716,9 +716,10 @@ function calculateMaster1(id,pid)
var firsttimecallingloi = 0;
function calculateLOI(pid,cid,cvalue)
{
var cid = cid;
var cvalue = cvalue;
var pid = pid;
@ -776,7 +777,10 @@ function calculateMaster1(id,pid)
for(var i=1;i<=8;i++)
{
var id = 'loicoatedsand'+ i;
document.getElementById(id).style.backgroundColor = 'white';
if(firsttimecallingloi == 0)
{
document.getElementById(id).style.backgroundColor = 'white';
}
document.getElementById(id).contentEditable = "false";
}
@ -856,6 +860,7 @@ function calculateMaster1(id,pid)
//FOR BACKGROUND COLOR CHANGE IN TESTREPORT1 TABLE COATED SAND LOI FINAL VALUE
}
firsttimecallingloi++;
}

View File

@ -1082,7 +1082,7 @@ function calculateMaster1(id,pid)
var firsttimecallingloi = 0;
function calculateLOI(pid,cid,cvalue)
{
var cid = cid;
@ -1142,7 +1142,10 @@ function calculateMaster1(id,pid)
for(var i=1;i<=8;i++)
{
var id = 'loicoatedsand'+ i;
document.getElementById(id).style.backgroundColor = 'white';
if(firsttimecallingloi == 0)
{
document.getElementById(id).style.backgroundColor = 'white';
}
document.getElementById(id).contentEditable = "false";
}
@ -1222,6 +1225,7 @@ function calculateMaster1(id,pid)
//FOR BACKGROUND COLOR CHANGE IN TESTREPORT1 TABLE COATED SAND LOI FINAL VALUE
}
firsttimecallingloi++;
}

View File

@ -852,7 +852,7 @@ function calculateMaster1(id,pid)
var firsttimecallingloi = 0;
function calculateLOI(pid,cid,cvalue)
{
var cid = cid;
@ -912,7 +912,10 @@ function calculateMaster1(id,pid)
for(var i=1;i<=8;i++)
{
var id = 'loicoatedsand'+ i;
if(firsttimecallingloi == 0)
{
document.getElementById(id).style.backgroundColor = 'white';
}
document.getElementById(id).contentEditable = "false";
}
@ -992,6 +995,7 @@ function calculateMaster1(id,pid)
//FOR BACKGROUND COLOR CHANGE IN TESTREPORT1 TABLE COATED SAND LOI FINAL VALUE
}
firsttimecallingloi++;
}

View File

@ -1112,7 +1112,7 @@ function calculateMaster1(id,pid)
var firsttimecallingloi = 0;
function calculateLOI(pid,cid,cvalue)
{
var cid = cid;
@ -1172,7 +1172,10 @@ function calculateMaster1(id,pid)
for(var i=1;i<=8;i++)
{
var id = 'loicoatedsand'+ i;
if(firsttimecallingloi == 0)
{
document.getElementById(id).style.backgroundColor = 'white';
}
document.getElementById(id).contentEditable = "false";
}
@ -1252,6 +1255,7 @@ function calculateMaster1(id,pid)
//FOR BACKGROUND COLOR CHANGE IN TESTREPORT1 TABLE COATED SAND LOI FINAL VALUE
}
firsttimecallingloi++;
}