diff --git a/create.sql b/create.sql index 3bcd21a58..cb0b9d0ec 100644 --- a/create.sql +++ b/create.sql @@ -896,8 +896,8 @@ CREATE TABLE IF NOT EXISTS fac_ElectricalMeasurePoint ( EnergyTypeID int(11) NOT NULL, Category ENUM('none', 'IT', 'Cooling', 'Other Mechanical', 'UPS Input', 'UPS Output', 'Energy Reuse') NOT NULL, UPSPowered TINYINT(1) NOT NULL, - PowerMultiplier ENUM('0.1','1','10','100') NOT NULL, - EnergyMultiplier ENUM('0.1','1','10','100') NOT NULL, + PowerMultiplier ENUM('0.01','0.1','1','10','100') NOT NULL, + EnergyMultiplier ENUM('0.01','0.1','1','10','100') NOT NULL, UNIQUE KEY MPID(MPID), KEY DataCenterID (DataCenterID) )ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; diff --git a/datacenter.php b/datacenter.php index a5a35d70e..44a0f7ffd 100644 --- a/datacenter.php +++ b/datacenter.php @@ -32,10 +32,13 @@ $dc->Name=trim($_POST['name']); $dc->SquareFootage=$_POST['squarefootage']; $dc->DeliveryAddress=$_POST['deliveryaddress']; + $dc->CreationDate=$_POST['creationdate']; $dc->Administrator=$_POST['administrator']; $dc->DrawingFileName=$_POST['drawingfilename']; $dc->MaxkW=$_POST['maxkw']; $dc->ContainerID=$_POST['container']; + $dc->PUELevel=$_POST['puelevel']; + $dc->PUEFrequency=$_POST['puefrequency']; $dc->MapX=$_POST['x']; $dc->MapY=$_POST['y']; @@ -54,10 +57,13 @@ $dc->Name=trim($_POST['name']); $dc->SquareFootage=$_POST['squarefootage']; $dc->DeliveryAddress=$_POST['deliveryaddress']; + $dc->CreationDate=$_POST['creationdate']; $dc->Administrator=$_POST['administrator']; $dc->DrawingFileName=$_POST['drawingfilename']; $dc->MaxkW=$_POST['maxkw']; $dc->ContainerID=$_POST['container']; + $dc->PUELevel=$_POST['puelevel']; + $dc->PUEFrequency=$_POST['puefrequency']; if ($dc->ContainerID==0){ $dc->MapX=0; $dc->MapY=0; @@ -259,6 +265,10 @@ function cambio_container(){
+
+
+
+
@@ -286,6 +296,36 @@ function cambio_container(){ echo '
+
+
+
+
+
+
+
+
X
diff --git a/db-4.1-to-PUE_DCEM.sql b/db-4.1-to-PUE_DCEM.sql index cf7dfcc8d..664efd248 100644 --- a/db-4.1-to-PUE_DCEM.sql +++ b/db-4.1-to-PUE_DCEM.sql @@ -21,8 +21,8 @@ CREATE TABLE IF NOT EXISTS fac_ElectricalMeasurePoint ( EnergyTypeID int(11) NOT NULL, Category ENUM('none', 'IT', 'Cooling', 'Other Mechanical', 'UPS Input', 'UPS Output', 'Energy Reuse') NOT NULL, UPSPowered TINYINT(1) NOT NULL, - PowerMultiplier ENUM('0.1','1','10','100') NOT NULL, - EnergyMultiplier ENUM('0.1','1','10','100') NOT NULL, + PowerMultiplier ENUM('0.01','0.1','1','10','100') NOT NULL, + EnergyMultiplier ENUM('0.01','0.1','1','10','100') NOT NULL, UNIQUE KEY MPID(MPID), KEY DataCenterID (DataCenterID) )ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; diff --git a/elec_measure_point.php b/elec_measure_point.php index 8cf31dd0c..5ad95066e 100644 --- a/elec_measure_point.php +++ b/elec_measure_point.php @@ -202,7 +202,7 @@