Completed saving and loading Gateway...

This commit is contained in:
safan
2011-02-15 13:21:37 +00:00
parent e3c152cad7
commit f458ccf78e
4 changed files with 96 additions and 8 deletions

View File

@@ -1462,7 +1462,7 @@ class processMap {
try {
$oGateway = new Gateway ( );
$aData = array();
$aData['PRO_UID'] = $oData->pro_uid;
$aData['PRO_UID'] = $oData->pro_uid;
$aData['GAT_X'] = $oData->position->x;
$aData['GAT_Y'] = $oData->position->y;
$aData['GAT_TYPE'] = $oData->gat_type;
@@ -1472,6 +1472,8 @@ class processMap {
$sGat_uid = $oGateway->create($aData);
}else{
$aData['GAT_UID'] = $sGat_uid;
$aData['TAS_UID'] = $oData->tas_from;
$aData['GAT_NEXT_TASK'] = $oData->tas_to;
$oGateway->update($aData);
}
$oEncode->uid = $sGat_uid;