Changeset 18045


Ignore:
Timestamp:
12/29/14 23:14:42 (10 years ago)
Author:
Daniela Dorner
Message:
changed column names of the table Measurement for consistency when switching to real DB
Location:
trunk/FACT++/www/schedule
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/schedule/load.php

    r17707 r18045  
    5454query("SELECT DISTINCT(DATE(ADDTIME(fStart, '-12:00'))) AS 'd' FROM Schedule");
    5555query("SELECT fSourceKEY AS 'key', fSourceName AS 'val' FROM Source WHERE fSourceTypeKEY=1");
    56 query("SELECT fMeasurementKEY AS 'key', fMeasurement AS 'val' FROM Measurement");
     56query("SELECT fMeasurementTypeKEY AS 'key', fMeasurementTypeName AS 'val' FROM MeasurementType");
    5757query("SELECT * FROM Schedule WHERE DATE(ADDTIME(fStart, '-12:00:00')) = '".$_POST['n']."'".$cut."ORDER BY fScheduleID ASC, fMeasurementID ASC");
    5858
  • trunk/FACT++/www/schedule/save.php

    r18044 r18045  
    141141    die(mysql_error());
    142142
    143 $query = "SELECT * FROM Measurement";
     143$query = "SELECT * FROM MeasurementType";
    144144
    145145$sql = mysql_query($query);
     
    149149$measurements = array();
    150150while($row = mysql_fetch_assoc($sql))
    151     $measurements[$row['fMeasurementKey']] = $row;
     151    $measurements[$row['fMeasurementTypeKey']] = $row;
    152152
    153153// ----------------------------------------------------------------
     
    192192    {
    193193        if ($measurements[$m]['fIsUnlimited']==true)
    194             die("Unlimited task '".$measurements[$m]['fMeasurement']."' detected before end of observation\n[".$last."|".($id-1)."]");
     194            die("Unlimited task '".$measurements[$m]['fMeasurementTypeName']."' detected before end of observation\n[".$last."|".($id-1)."]");
    195195    }
    196196
     
    206206    // Check if task need source or must not have a source
    207207    if ($measurements[$m]['fNeedsSource']==true && $s==0)
    208         die("Task '".$measurements[$m]['fMeasurement']."' needs source.\n[".$t."|".$id."]");
     208        die("Task '".$measurements[$m]['fMeasurementTypeName']."' needs source.\n[".$t."|".$id."]");
    209209    if ($measurements[$m]['fNeedsSource']!=true && $s>0)
    210         die("Task '".$measurements[$m]['fMeasurement']."' must not have source.\n[".$t."|".$id."]");
     210        die("Task '".$measurements[$m]['fMeasurementTypeName']."' must not have source.\n[".$t."|".$id."]");
    211211
    212212    // Compile query
Note: See TracChangeset for help on using the changeset viewer.