/// <summary> /// 判断顾客是否可升级为会员,如果可以则确定后升级成为会员 /// </summary> private void OverFirst() { SqlConnection connect = InitConnect.GetConnection(); connect.Open(); SqlCommand cmd = new SqlCommand("select vipstyle_request from vip_style where vipstyle_level=(select min(vipstyle_level) from vip_style)", connect); decimal upmoney = decimal.Parse(cmd.ExecuteScalar().ToString()); connect.Close(); if (decimal.Parse(this.money.Text.Trim()) >= upmoney) { if (MessageBox.Show("该顾客可升级成为会员,确定升级成为会员吗?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1) == DialogResult.OK) { FmVip vip = new FmVip(); vip.MdiParent = this.MdiParent; vip.Show(); } } }
private void 会员信息管理ToolStripMenuItem_Click(object sender, EventArgs e) { FmVip vip = new FmVip(); this.ReForm(vip.Text, vip); }