private void button1_Click(object sender, EventArgs e) { string pNo = textBox1.Text; string pName = textBox2.Text; Productctrl.loadProduct(pNo, pName, listView1); }
private void button1_Click(object sender, EventArgs e) { string wName = comboBox1.Text; string wNo = (string)hs[wName]; if (wNo == null) { MessageBox.Show("请选择仓库地址"); return; } int v = 0; Productctrl.loadProduct("", wNo, "", listView2, ref v); Productctrl.loadunproduct(wNo, listView1); label6.Text = v.ToString(); }
private void button2_Click(object sender, EventArgs e) { int v = 0; string add = comboBox1.Text; string wNo = (string)hs[add]; Productctrl.loadProduct("", wNo, "", listView2, ref v); if (comboBox1.Text != "") { label7.Text = v.ToString(); } else { label7.Text = ""; } }