private void button1_Click(object sender, EventArgs e) { string cName = textBox1.Text; string sName = textBox2.Text; AdminCtrl.SearchTransaction(cName, sName, listView1); }
private void button1_Click(object sender, EventArgs e) { string a = textBox5.Text; string b = textBox6.Text; AdminCtrl.searchStore(a, b, listView1); }
private void button2_Click(object sender, EventArgs e) { Store s = new Store(); string sql = "select * from store where 1=1"; List <object[]> a = Utiles.execQuery(sql); s.storeId = (a.Count() + 1).ToString(); s.account = textBox1.Text; s.storeName = textBox2.Text; s.address = textBox3.Text; string pass = textBox7.Text; if (AdminCtrl.ValidAccount(s.account)) { AdminCtrl.saveStore(s, pass); MessageBox.Show("账号创建成功!"); } else { MessageBox.Show("账号已存在!"); } }
private void button1_Click(object sender, EventArgs e) { string name = textBox1.Text; AdminCtrl.SearchCustomer(name, listView1); }