Completed saving Gateway position on drag and drop.............

This commit is contained in:
girish
2011-01-13 14:48:41 +00:00
parent 0d42fe61ef
commit 805a34651d
5 changed files with 56 additions and 12 deletions

View File

@@ -1528,6 +1528,28 @@ class processMap {
}
}
/*
* Save the gateways positions
* @param string $sGatewayUID
* @param integer $iX
* @param integer $iY
* @return integer
*/
function saveGatewayPosition($sGatewayUID = '', $iX = 0, $iY = 0) {
try {
$oGateway = new Gateway ( );
$aFields = $oGateway->load($sGatewayUID);
$aFields ['GAT_UID'] = $sGatewayUID;
$aFields ['GAT_X'] = $iX;
$aFields ['GAT_Y'] = $iY;
return $oGateway->update($aFields);
} catch (Exception $oError) {
throw ($oError);
}
}
/*
* Presents a small list of dynaforms of the process
* @param string $sProcessUID