Indexer in C# is the bracket, not the parenthesis. Moreover, you seem to try to affect a string variable to an integer variable.
Thus, said line should be
getStocksOnHand = int.Parse(dr[0].ToString());
Or a more robust way that would take care about wrong values:
int value;
if (int.TryParse(dr[0].ToString(), out value)) {
getStocksOnHand = value;
}
Hope this helps.