Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            VIP     a  = new VIP();
            DataSet ds = new DataSet();

            ds = a.check_discount(user_ifms.ID, textBox1.Text, textBox2.Text);
            dataGridView1.DataSource = ds;
            dataGridView1.DataMember = "client_VIP natural join merchant_vip";
        }
Example #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            VIP a = new VIP();

            if (a.update_grade(user_ifms.ID, textBox5.Text, textBox6.Text, textBox7.Text))
            {
                MessageBox.Show("修改成功");
                DataSet ds = new DataSet();
                ds = a.check_discount(user_ifms.ID, textBox5.Text, textBox6.Text);
                dataGridView1.DataSource = ds;
                dataGridView1.DataMember = "client_VIP natural join merchant_vip";
            }
            else
            {
                MessageBox.Show("输入信息有误,请重新输入");
            }
        }