getdata(sql);
}
}
private void getdata(string sql)
{
DataSet result = new DataSet();
result = new Class1().hsggetdata(sql);
if (result != null)
{
if (result.Tables[0].Rows.Count > 0)
{
int k = 0;
for (k = 0; k < result.Tables[0].Rows.Count; k++)
{
bh.Items.Add(result.Tables[0].Rows[k]["bh"].ToString().Trim());
}
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string sql;
sql = "select * from kucun where bh='"+bh.SelectedItem.ToString().Trim()+"'";
DataSet result = new DataSet();
result = new Class1().hsggetdata(sql);
if (result != null)
{
if (result.Tables[0].Rows.Count > 0)
{
sql = "update kucun set shuliang=shuliang+"+shuliang.Text.ToString().Trim()+" where bh='"+bh.SelectedItem.ToString().Trim()+"'";