1/39
0/100
您的浏览器不支持进度条
下载所得到的文件列表
ATM系统源代码与可执行程序文件.doc
文档介绍:
ATM系统源代码与可执行程序模块总体设计:欢迎模块;登录模块;系统模块;窗体控件模块;二、代码与可执行程序privatevoidlabel4_Click(objectsender,EventArgse){Adminformadminform=newAdminform();adminform.Show();this.Hide();}privatevoidlabel4_Click(objectsender,EventArgse){Adminformadminform=newAdminform();adminform.Show();this.Hide();}privatevoid退出ToolStripMenuItem_Click_1(objectsender,EventArgse){Application.Exit();}//*欢迎模块*/Loginlogin=newLogin();login.Show();CustomerLogincustomerLogin=newCustomerLogin();customerLogin.Show();//打开新的CustomerLogin窗体,对人工服务登录.BankManageSystembankManageSystem=newBankManageSystem();bankManageSystem.Show();Aboutabout=newAbout();about.Show();LianXilianxi=newLianXi();lianxi.Show();Application.Exit();//*操作界面窗体设计*/stringstrsql=@"DataSource=WIN-KOBGNACPI2K\SQLEXPRESS;InitialCatalog=Bank;IntegratedSecurity=True";sqlcon=newSqlConnection(strsql);CustomerLogincl=newCustomerLogin();cl.Show();this.Hide();//打开CustomerLogin窗体,并关闭Login窗体。BankManageSystembms=newBankManageSystem();bms.Show();this.Hide();//*连接数据库*/privatevoidbutton1_Click(objectsender,EventArgse){//db.Clogin(textBox1.Text,textBox2.Text);//CustomerOperatiomco=newCustomerOperatiom();//co.Show();//this.Hide();db=newDBManager();stringstrsql="select*fromCardinfo";sqlds=db.seldemo(strsql);stringcardid=this.textBox1.Text;stringcardpwd=this.textBox2.Text;stringtcardid=null;stringtpwd=null;foreach(DataRowdrinsqlds.Tables[0].Rows){tcardid=dr["cardid"].ToString();tpwd=dr["cardpwd"].ToString();if(tcardid.Equals(cardid)&&tpwd.Equals(tpwd)){MessageBox.Show("登录成功");this.Hide();CustomerOperationcop=newCustomerOperation();cop.Show();}else{MessageBox.Show("卡号或密码错误");break;}}privatevoidbutton2_Click(objectsender,EventArgse){textBox1.Clear();textBox2.Clear();textBox1.Focus();}//清除textBox文本框中的数据privatevoidbutton3_Click(objectsender,EventArgse){this.Close();//*ATM登录界面窗体设计*/}privatevoidbutton1_Click(objectsender,EventArgse){Transformtf=newTransform();tf.Show();this.Hide(); 内容来自淘豆网www.taodocs.com转载请标明出处.