资源简介
基于VS2010+C#+SQL Server 2008 开发的网上银行自助系统(ATM) 附数据库设计截图 需要你自己建立 sql server 2008 此资源仅供学习!(增 删 改 查 功能都有)

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace atm
{
public partial class del : Form
{
public del()
{
InitializeComponent();
}
private void del_Load(object sender EventArgs e)
{
this.ControlBox = false;
SqlConnection conn = new SqlConnection(“server=“ + Form1.Pub.Server + “;database=“ + Form1.Pub.Database + “;uid=“ + Form1.Pub.Uid + “;pwd=“ + Form1.Pub.Pwd);
string select = “select username from admin where id=“ + Form1.Pub.id;
string select2 = “select money from admin where id=“ + Form1.Pub.id;
string select3 = “select phone from admin where id=“ + Form1.Pub.id;
conn.Open();
SqlCommand com = new SqlCommand(select conn);
SqlCommand comm = new SqlCommand(select2 conn);
SqlCommand commm = new SqlCommand(select3 conn);
string butUsername = com.ExecuteScalar().ToString();
string butMoney = comm.ExecuteScalar().ToString();
string butPhone = commm.ExecuteScalar().ToString();
com.Clone();
comm.Clone();
commm.Clone();
conn.Close();
username.Text = butUsername;
money.Text = butMoney;
phone.Text = butPhone;
}
private void button2_Click(object sender EventArgs e)
{
this.Close();
}
private void delbut_Click(object sender EventArgs e)
{
if(Convert.ToInt32(money.Text) != 0){
MessageBox.Show(“您的余额不为0,无法注销!“);
}
else{
DialogResult result = MessageBox.Show(“确定注销吗?““注销“MessageBoxButtons.YesNoMessageBoxIcon.Question);
if(result == DialogResult.Yes){
SqlConnection conn = new SqlConnection(“server=“ + Form1.Pub.Server + “;database=“ + Form1.Pub.Database + “;uid=“ + Form1.Pub.Uid + “;pwd=“ + Form1.Pub.Pwd);
string DelBut = “delete admin where id=“ + Form1.Pub.id;
conn.Open();
SqlCommand com = new SqlCommand(DelBut conn);
int res = com.ExecuteNonQuery();
if (res > 0)
{
MessageBox.Show(“注销账户成功!登录已退出!“);
this.Close();
Form1.Pub.id = 0;
}
com.Clone();
conn.Close();
}
else{
return;
}
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-06-11 00:17 C# 网上银行自助系统(ATM)\
目录 0 2018-12-07 12:43 C# 网上银行自助系统(ATM)\atm2\
目录 0 2018-12-07 12:43 C# 网上银行自助系统(ATM)\atm2\atm\
文件 851 2018-11-24 14:31 C# 网上银行自助系统(ATM)\atm2\atm.sln
文件 34304 2019-06-11 00:19 C# 网上银行自助系统(ATM)\atm2\atm.suo
文件 5479 2018-12-06 22:55 C# 网上银行自助系统(ATM)\atm2\atm\atm.csproj
目录 0 2018-12-07 12:38 C# 网上银行自助系统(ATM)\atm2\atm\bin\
目录 0 2018-12-07 12:43 C# 网上银行自助系统(ATM)\atm2\atm\bin\Debug\
文件 65024 2019-06-11 00:19 C# 网上银行自助系统(ATM)\atm2\atm\bin\Debug\atm.exe
文件 118272 2019-06-11 00:19 C# 网上银行自助系统(ATM)\atm2\atm\bin\Debug\atm.pdb
文件 11600 2019-06-11 00:19 C# 网上银行自助系统(ATM)\atm2\atm\bin\Debug\atm.vshost.exe
文件 490 2018-09-15 15:29 C# 网上银行自助系统(ATM)\atm2\atm\bin\Debug\atm.vshost.exe.manifest
文件 2972 2018-12-06 23:46 C# 网上银行自助系统(ATM)\atm2\atm\del.cs
文件 7174 2018-12-06 23:46 C# 网上银行自助系统(ATM)\atm2\atm\del.Designer.cs
文件 5817 2018-12-06 23:46 C# 网上银行自助系统(ATM)\atm2\atm\del.resx
文件 3954 2019-06-11 00:18 C# 网上银行自助系统(ATM)\atm2\atm\Form1.cs
文件 8203 2019-06-11 00:18 C# 网上银行自助系统(ATM)\atm2\atm\Form1.Designer.cs
文件 12742 2019-06-11 00:18 C# 网上银行自助系统(ATM)\atm2\atm\Form1.resx
文件 2807 2019-06-11 00:19 C# 网上银行自助系统(ATM)\atm2\atm\login.cs
文件 5151 2019-06-11 00:19 C# 网上银行自助系统(ATM)\atm2\atm\login.Designer.cs
文件 12549 2019-06-11 00:19 C# 网上银行自助系统(ATM)\atm2\atm\login.resx
文件 10618 2018-12-07 01:51 C# 网上银行自助系统(ATM)\atm2\atm\money.cs
文件 13474 2018-12-07 01:37 C# 网上银行自助系统(ATM)\atm2\atm\money.Designer.cs
文件 12549 2018-12-07 01:37 C# 网上银行自助系统(ATM)\atm2\atm\money.resx
目录 0 2018-12-07 12:38 C# 网上银行自助系统(ATM)\atm2\atm\obj\
目录 0 2018-12-07 12:38 C# 网上银行自助系统(ATM)\atm2\atm\obj\x86\
目录 0 2019-06-11 00:19 C# 网上银行自助系统(ATM)\atm2\atm\obj\x86\Debug\
文件 4653 2019-06-11 00:19 C# 网上银行自助系统(ATM)\atm2\atm\obj\x86\Debug\atm.csproj.FileListAbsolute.txt
文件 1321 2019-06-11 00:19 C# 网上银行自助系统(ATM)\atm2\atm\obj\x86\Debug\atm.csproj.GenerateResource.Cache
文件 9174 2018-11-24 20:48 C# 网上银行自助系统(ATM)\atm2\atm\obj\x86\Debug\atm.csprojResolveAssemblyReference.cache
文件 180 2018-12-06 23:46 C# 网上银行自助系统(ATM)\atm2\atm\obj\x86\Debug\atm.del.resources
............此处省略33个文件信息
相关资源
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- 超市进销存管理系统 Sqlserver 数据库文
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
评论
共有 条评论