string str = "server=NO1;database=SuperMarket;integrated security=true";
SqlConnection con = new SqlConnection(str);
con.Open();
SqlDataAdapter ad = new SqlDataAdapter("select * from food where foodid='" + bh + "'", con);
DataSet set = new DataSet();
ad.Fill(set, "n1");
int kucun = Convert.ToInt32(set.Tables["n1"].Rows[0]["foodnum"]);
int mon = Convert.ToInt32(set.Tables["n1"].Rows[0]["foodvalue"]);
string str = "server=NO1;database=SuperMarket;integrated security=true";