changed equipent and combined equipment associated points name to parameters name in reports API
parent
043dacfe24
commit
d4e4b7af3f
|
@ -226,7 +226,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_combined_equipments e, tbl_combined_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.combined_equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -169,7 +169,7 @@ class Reporting:
|
|||
# Step 3: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_combined_equipments e, tbl_combined_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.combined_equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -226,7 +226,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_combined_equipments e, tbl_combined_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.combined_equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -230,7 +230,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_combined_equipments e, tbl_combined_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.combined_equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -226,7 +226,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_combined_equipments e, tbl_combined_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.combined_equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -226,7 +226,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_combined_equipments e, tbl_combined_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.combined_equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -226,7 +226,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_combined_equipments e, tbl_combined_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.combined_equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -239,7 +239,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_combined_equipments e, tbl_combined_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.combined_equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -226,7 +226,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_combined_equipments e, tbl_combined_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.combined_equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -218,7 +218,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_equipments e, tbl_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -159,7 +159,7 @@ class Reporting:
|
|||
# Step 3: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_equipments e, tbl_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -218,7 +218,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_equipments e, tbl_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -222,7 +222,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_equipments e, tbl_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -218,7 +218,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_equipments e, tbl_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -218,7 +218,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_equipments e, tbl_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -218,7 +218,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_equipments e, tbl_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -231,7 +231,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_equipments e, tbl_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
|
@ -218,7 +218,7 @@ class Reporting:
|
|||
# Step 4: query associated points
|
||||
################################################################################################################
|
||||
point_list = list()
|
||||
cursor_system.execute(" SELECT p.id, p.name, p.units, p.object_type "
|
||||
cursor_system.execute(" SELECT p.id, ep.name, p.units, p.object_type "
|
||||
" FROM tbl_equipments e, tbl_equipments_parameters ep, tbl_points p "
|
||||
" WHERE e.id = %s AND e.id = ep.equipment_id AND ep.parameter_type = 'point' "
|
||||
" AND ep.point_id = p.id "
|
||||
|
|
Loading…
Reference in New Issue