Author: shankar
Date: Wed May 6 07:00:28 2009
New Revision: 772074
URL: http://svn.apache.org/viewvc?rev=772074&view=rev
Log:
Fixing market summery display
Modified:
incubator/stonehenge/trunk/stocktrader/php/business_service/business_processor.php
Modified:
incubator/stonehenge/trunk/stocktrader/php/business_service/business_processor.php
URL:
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/business_service/business_processor.php?rev=772074&r1=772073&r2=772074&view=diff
==============================================================================
---
incubator/stonehenge/trunk/stocktrader/php/business_service/business_processor.php
(original)
+++
incubator/stonehenge/trunk/stocktrader/php/business_service/business_processor.php
Wed May 6 07:00:28 2009
@@ -689,19 +689,19 @@
$response->getMarketSummaryReturn->topGainers->
QuoteDataBean[$rawNo]->symbol = $symbol;
$response->getMarketSummaryReturn->topGainers->
- QuoteDataBean[$rawNo]->companyName =
$db->GetSQLValue($result, 0, 1);
+ QuoteDataBean[$rawNo]->companyName =
$db->GetSQLValue($result, $rawNo, 1);
$response->getMarketSummaryReturn->topGainers->
- QuoteDataBean[$rawNo]->volume =
$db->GetSQLValue($result, 0, 2);
+ QuoteDataBean[$rawNo]->volume =
$db->GetSQLValue($result, $rawNo, 2);
$response->getMarketSummaryReturn->topGainers->
- QuoteDataBean[$rawNo]->price =
$db->GetSQLValue($result, 0, 3);
+ QuoteDataBean[$rawNo]->price =
$db->GetSQLValue($result, $rawNo, 3);
$response->getMarketSummaryReturn->topGainers->
- QuoteDataBean[$rawNo]->open =
$db->GetSQLValue($result, 0, 4);
+ QuoteDataBean[$rawNo]->open =
$db->GetSQLValue($result, $rawNo, 4);
$response->getMarketSummaryReturn->topGainers->
- QuoteDataBean[$rawNo]->low =
$db->GetSQLValue($result, 0, 5);
+ QuoteDataBean[$rawNo]->low =
$db->GetSQLValue($result, $rawNo, 5);
$response->getMarketSummaryReturn->topGainers->
- QuoteDataBean[$rawNo]->high =
$db->GetSQLValue($result, 0, 6);
+ QuoteDataBean[$rawNo]->high =
$db->GetSQLValue($result, $rawNo, 6);
$response->getMarketSummaryReturn->topGainers->
- QuoteDataBean[$rawNo]->change =
$db->GetSQLValue($result, 0, 7);
+ QuoteDataBean[$rawNo]->change =
$db->GetSQLValue($result, $rawNo, 7);
$rawNo = $rawNo + 1;
}
$result = null;
@@ -720,19 +720,19 @@
$response->getMarketSummaryReturn->topLosers->
QuoteDataBean[$rawNo]->symbol = $symbol;
$response->getMarketSummaryReturn->topLosers->
- QuoteDataBean[$rawNo]->companyName =
$db->GetSQLValue($result, 0, 1);
+ QuoteDataBean[$rawNo]->companyName =
$db->GetSQLValue($result, $rawNo, 1);
$response->getMarketSummaryReturn->topLosers->
- QuoteDataBean[$rawNo]->volume =
$db->GetSQLValue($result, 0, 2);
+ QuoteDataBean[$rawNo]->volume =
$db->GetSQLValue($result, $rawNo, 2);
$response->getMarketSummaryReturn->topLosers->
- QuoteDataBean[$rawNo]->price =
$db->GetSQLValue($result, 0, 3);
+ QuoteDataBean[$rawNo]->price =
$db->GetSQLValue($result, $rawNo, 3);
$response->getMarketSummaryReturn->topLosers->
- QuoteDataBean[$rawNo]->open =
$db->GetSQLValue($result, 0, 4);
+ QuoteDataBean[$rawNo]->open =
$db->GetSQLValue($result, $rawNo, 4);
$response->getMarketSummaryReturn->topLosers->
- QuoteDataBean[$rawNo]->low =
$db->GetSQLValue($result, 0, 5);
+ QuoteDataBean[$rawNo]->low =
$db->GetSQLValue($result, $rawNo, 5);
$response->getMarketSummaryReturn->topLosers->
- QuoteDataBean[$rawNo]->high =
$db->GetSQLValue($result, 0, 6);
+ QuoteDataBean[$rawNo]->high =
$db->GetSQLValue($result, $rawNo, 6);
$response->getMarketSummaryReturn->topLosers->
- QuoteDataBean[$rawNo]->change =
$db->GetSQLValue($result, 0, 7);
+ QuoteDataBean[$rawNo]->change =
$db->GetSQLValue($result, $rawNo, 7);
$rawNo = $rawNo + 1;
}
$result = null;