《(职业经理人)可执行程序和代码》由会员分享,可在线阅读,更多相关《(职业经理人)可执行程序和代码(29页珍藏版)》请在金锄头文库上搜索。
1、河南经贸职业学院ATM系统源代码与可执行程序一、 模块总体设计:欢迎模块;登录模块;系统模块;窗体 控件模块;二、代码与可执行程序 private void label4_Click(object sender, EventArgs e) Adminform adminform = new Adminform(); adminform.Show(); this.Hide(); private void label4_Click(object sender, EventArgs e) Adminform adminform = new Adminform(); adminform.Show();
2、 this.Hide(); private void 退出ToolStripMenuItem_Click_1(object sender, EventArgs e) Application.Exit(); /*欢迎模块*/ Login login = new Login(); login.Show(); CustomerLogin customerLogin = new CustomerLogin(); customerLogin.Show(); /打开新的CustomerLogin窗体,对人工服务登录. BankManageSystem bankManageSystem = new Bank
3、ManageSystem(); bankManageSystem.Show(); About about = new About(); about.Show(); LianXi lianxi = new LianXi(); lianxi.Show(); Application.Exit(); /* 操作界面窗体设计 */ string strsql = Data Source=WIN-KOBGNACPI2KSQLEXPRESS;Initial Catalog=Bank;Integrated Security=True; sqlcon = new SqlConnection(strsql); C
4、ustomerLogin cl = new CustomerLogin(); cl.Show(); this.Hide(); /打开CustomerLogin窗体,并关闭Login窗体。 BankManageSystem bms = new BankManageSystem(); bms.Show(); this.Hide(); /* 连接数据库 */ private void button1_Click(object sender, EventArgs e) /db.Clogin(textBox1.Text, textBox2.Text); /CustomerOperatiom co = n
5、ew CustomerOperatiom(); /co.Show(); /this.Hide(); db = new DBManager(); string strsql=select * from Cardinfo; sqlds = db.seldemo(strsql); string cardid = this.textBox1.Text; string cardpwd = this.textBox2.Text; string tcardid = null; string tpwd = null; foreach (DataRow dr in sqlds.Tables0.Rows) tca
6、rdid = drcardid.ToString(); tpwd = drcardpwd.ToString(); if (tcardid.Equals(cardid) & tpwd.Equals(tpwd) MessageBox.Show(登录成功); this.Hide(); CustomerOperation cop = new CustomerOperation(); cop.Show(); else MessageBox.Show(卡号或密码错误); break; private void button2_Click(object sender, EventArgs e) textBo
7、x1.Clear(); textBox2.Clear(); textBox1.Focus(); /清除textBox文本框中的数据 private void button3_Click(object sender, EventArgs e) this.Close(); /* ATM登录界面窗体设计 */ private void button1_Click(object sender, EventArgs e) Transform tf = new Transform(); tf.Show(); this.Hide(); private void button2_Click(object se
8、nder, EventArgs e) Save save = new Save(); save.Show(); this.Hide(); /打开新Save窗体,并关闭CustomerOperation窗体 private void button3_Click(object sender, EventArgs e) Get get = new Get(); get.Show(); this.Hide(); private void button5_Click(object sender, EventArgs e) Amend amend = new Amend(); amend.Show();
9、this.Hide(); /修改密码 private void button4_Click(object sender, EventArgs e) Query query = new Query(); query.Show(); this.Hide(); private void button6_Click(object sender, EventArgs e) this.Hide(); /* ATM机操作界面窗体设计 */ private void button1_Click(object sender, EventArgs e) db = new DBManager(); string name = select usename from Cardinfo; string usename = 所汇账户的户主姓名为:+db.Alluseb(name)+,确定?; if (MessageBox.Show(usename, 信息, MessageBoxButtons.YesNo, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1) = D