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

            ds = a.check_merchantgrade(user_ifms.ID);
            dataGridView1.DataSource = ds;
            dataGridView1.DataMember = "merchant_vip";
        }
示例#2
0
        private void button2_Click(object sender, EventArgs e)
        {
            VIP a = new VIP();

            if (a.update_discount(user_ifms.ID, textBox3.Text, textBox4.Text))
            {
                MessageBox.Show("修改成功");

                DataSet ds = new DataSet();
                ds = a.check_merchantgrade(user_ifms.ID);
                dataGridView1.DataSource = ds;
                dataGridView1.DataMember = "merchant_vip";
            }
        }