超市管理系统界面设计

2018-10-16  本文已影响0人  _狗老师

1,登陆界面效果

2,登陆界面实现的功能

管理人员和收银人员分类进行系统登陆

3,登陆界面控件

4,重要方法描述

// 点击“登录”按钮则登录系统

privatevoidbutton1_Click(object sender, EventArgs e){if(this.comboBox1.SelectedItem.ToString() =="收银员")

 {if(this.textBox1.Text =="123456"&&this.textBox2.Text =="654321") { MessageBox.Show("收银员登录成功"); }

else{ MessageBox.Show("用户名或密码错误","提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } }if(this.comboBox1.SelectedItem.ToString() =="库管员")

 {if(this.textBox1.Text =="654321"&&this.textBox2.Text =="123456") { MessageBox.Show("库管员登录成功"); }

else{ MessageBox.Show("用户名或密码错误","提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }

//设置默认角色为管理员

private void Form1_Lord(object sender, EventArgs e)

{

   this.comboBox1.Selecetedindex=0;

5 .需完善的功能

应增加注册,修改帐号信息初始功能

上一篇 下一篇

猜你喜欢

热点阅读