游泳池会员管理系统的设计与实现内容摘要:

form = new Form2()。 ()。 ()。 } else { (请确认身份。 )。 } } } else { (不存在该卡号。 )。 } } } 会员管理界面 会员管理系统的设计与实现 12 图 82 会员管理 界面 代码如下: private void toolStripButton2_Click(object sender, EventArgs e) { if ((确认退卡吗。 , 提示。 , , ) == ) { SqlConnection con = 连接 .create()。 ()。 SqlCommand cmd = ()。 = delete from 用户登录 where 卡号 =@mn。 (mn, )。 ()。 ()。 (退卡成功。 )。 } } 后台管理员界面 图 83 管理员登录界面 代码如下: private void button1_Click(object sender, EventArgs e) { SqlConnection con = 连接 .create()。 ()。 SqlCommand cmd = ()。 = update 会员资料 set 折扣 =@mn1,姓名 =@mn2,电话 =@mn3,身份证号 =@mn4 where 卡号 =@mn5 and 金额 =@mn6。 (mn1, )。 (mn2, )。 (mn3, )。 (mn4, )。 会员管理系统的设计与实现 13 (mn5, )。 (mn6, )。 ()。 ()。 (修改成功。 )。 } 密码修改界面 图 84 密码修改界面 代码如下: private void button1_Click(object sender, EventArgs e) { SqlConnection con = 连接 .create()。 ()。 SqlCommand cmd = ()。 = select * from 用户登录 where 卡号 =39。 + + 39。 SqlDataReader r = ()。 if (()) { t = (1).ToString().Trim()。 ()。 if (t != null amp。 amp。 t == ) { if ( == ) { SqlConnection con1 = 连接 .create()。 ()。 SqlCommand = ()。 = update 用户登录 set 密码 =39。 + + 39。 where 卡号 =39。 + + 39。 ()。 ()。 会员管理系统的设计与实现 14 (密码修改成功。 )。 } else { (两次输入不一样。 )。 } } else { (密码输入错误。 )。 } } 查询会员界面 图 85 单个查询会员界面 代码如下 : private void button1_Click(object sender, EventArgs e) { if ( == 卡号 ) { t = select * from 会员资料 where 卡号 =39。 + + 39。 } else if ( == 持卡人姓名 ) { t = select * from 会员资料 where 姓名 =39。 + + 39。 } else { (请选择查询方式。 )。 } if (t != null) { 会员管理系统的设计与实现 15 SqlConnection con = 连接 .create()。 SqlDataAdapter data = new SqlDataAdapter(t, con)。 DataTable table = new DataTable()。 (table)。 = table。 } else { (请选择查询方式。 )。 } } 会员充值界面 图 86 会员充值界面 代码如下: private void button1_Click(object sender, EventArgs e) { string t1=()。 double d=0。 SqlConnection con = 连接 .create()。 ()。 SqlCommand cmd = ()。 = select 会员资料 .*,类型 .* from 会员资料 ,类型 where 会员资料 .卡号 =@mn1 and 姓名 =@mn2 and 会员资料 .卡号 =类型 .卡号。 (mn1, )。 (mn2, )。 SqlDataReader r = ()。 if (() != false) { t = (7).ToString().Trim()。 if (t == 储值卡 ) { 会员管理系统的设计与实现 16 ()。 SqlConnection con1 = 连接 .create()。 ()。 SqlCommand cmd1 = ()。 = insert into 充值管理 values (@tn1,@tn2,@tn3)。 (tn1, )。 (tn2, t1)。 (tn3, )。 ()。 ()。 d。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。