资源简介
这是一个课程设计,是连锁店管理系统,c#做的,有数据库,很不错哦~~
代码片段和文件信息
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 WindowsFormsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender EventArgs e)
{
textBox1.Text = ““;
string cm1=““;
//string cn = “Data Source=LT-PC\\SQLEXPRESS;AttachDbFilename=D:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\Data\\chainstoreMSys.mdf;Persist Security Info=True;User ID=taoer;Password=147258“;
string cn = “Data Source=LT-PC\\SQLEXPRESS;AttachDbFilename=E:\\chainstoreMSys.mdf;Persist Security Info=True;User ID=depstore;Password=147258“;
SqlConnection con = new SqlConnection(cn);
SqlDataAdapter da = new SqlDataAdapter();
if (!(textBox2.Text == ““) && (textBox3.Text == ““) && (textBox4.Text == ““))
cm1 = “select * from clerk where Snum=\‘“ + textBox2.Text + “\‘“;
else if ((textBox2.Text == ““) && !(textBox3.Text == ““) && (textBox4.Text == ““))
cm1 = “select * from clerk where Cnum=\‘“ + textBox3.Text + “\‘“;
else if ((textBox2.Text == ““) && (textBox3.Text == ““) && !(textBox4.Text == ““))
cm1 = “select * from clerk where Cname=\‘“ + textBox4.Text + “\‘“;
else if (!(textBox2.Text == ““) && !(textBox3.Text == ““) && (textBox4.Text == ““))
cm1 = “select * from clerk where Snum=\‘“ + textBox2.Text + “\‘ and Cnum=\‘“ + textBox3.Text + “\‘“;
else if ((textBox2.Text == ““) && !(textBox3.Text == ““) && !(textBox4.Text == ““))
cm1 = “select * from clerk where Cnum=\‘“ + textBox3.Text + “\‘ and Cname=\‘“ + textBox4.Text + “\‘“;
else if (!(textBox2.Text == ““) && (textBox3.Text == ““) && !(textBox4.Text == ““))
cm1 = “select * from clerk where Snum=\‘“ + textBox2.Text + “\‘ and Cname=\‘“ + textBox4.Text + “\‘“;
else if (!(textBox2.Text == ““) && !(textBox3.Text == ““) && !(textBox4.Text == ““))
cm1 = “select * from clerk where Snum=\‘“ + textBox2.Text + “\‘ and Cname=\‘“ + textBox3.Text + “\‘ and Cname=\‘“ + textBox4.Text + “\‘“;
else if ((textBox2.Text == ““) && (textBox3.Text == ““) && (textBox4.Text == ““))
cm1 = “select * from clerk“;
SqlCommand com1 = new SqlCommand(cm1 con);
da.SelectCommand = com1;
DataSet ds = new DataSet();
da.Fill(ds “clerk“);
foreach (DataTable dt in ds.Tables)
{
foreach (DataRow dr in dt.Rows)
{
for (int i = 0; i < dt.Columns.Count; i++)
{
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1632 2009-07-01 17:16 WindowsFormsApplication2\bin\Release\WindowsFormsApplication2.application
文件 69632 2009-07-01 17:16 WindowsFormsApplication2\bin\Release\WindowsFormsApplication2.exe
文件 3619 2009-07-01 17:16 WindowsFormsApplication2\bin\Release\WindowsFormsApplication2.exe.manifest
文件 161280 2009-07-01 17:16 WindowsFormsApplication2\bin\Release\WindowsFormsApplication2.pdb
文件 1632 2009-07-01 17:16 WindowsFormsApplication2\bin\Release\WindowsFormsApplication2.vshost.application
文件 14328 2009-07-01 17:17 WindowsFormsApplication2\bin\Release\WindowsFormsApplication2.vshost.exe
文件 8873 2009-07-01 16:40 WindowsFormsApplication2\Form1.cs
文件 18402 2009-07-01 16:40 WindowsFormsApplication2\Form1.Designer.cs
文件 5814 2009-07-01 16:40 WindowsFormsApplication2\Form1.resx
文件 4056 2009-07-01 17:14 WindowsFormsApplication2\Form10.cs
文件 9564 2009-07-01 17:04 WindowsFormsApplication2\Form10.Designer.cs
文件 5814 2009-07-01 17:04 WindowsFormsApplication2\Form10.resx
文件 2831 2009-07-01 17:07 WindowsFormsApplication2\Form11.cs
文件 9503 2009-07-01 17:06 WindowsFormsApplication2\Form11.Designer.cs
文件 5814 2009-07-01 17:06 WindowsFormsApplication2\Form11.resx
文件 3090 2009-07-01 17:08 WindowsFormsApplication2\Form12.cs
文件 8971 2009-07-01 17:08 WindowsFormsApplication2\Form12.Designer.cs
文件 5814 2009-07-01 17:08 WindowsFormsApplication2\Form12.resx
文件 1286 2009-07-01 17:08 WindowsFormsApplication2\Form13.cs
文件 4086 2009-07-01 15:24 WindowsFormsApplication2\Form13.Designer.cs
文件 5814 2009-07-01 15:24 WindowsFormsApplication2\Form13.resx
文件 494 2009-07-01 15:16 WindowsFormsApplication2\Form14.cs
文件 2629 2009-07-01 15:16 WindowsFormsApplication2\Form14.Designer.cs
文件 5814 2009-07-01 15:16 WindowsFormsApplication2\Form14.resx
文件 6661 2009-07-01 16:43 WindowsFormsApplication2\Form2.cs
文件 15187 2009-07-01 16:43 WindowsFormsApplication2\Form2.Designer.cs
文件 5814 2009-07-01 16:43 WindowsFormsApplication2\Form2.resx
文件 6538 2009-07-01 16:47 WindowsFormsApplication2\Form3.cs
文件 13752 2009-07-01 16:47 WindowsFormsApplication2\Form3.Designer.cs
文件 5814 2009-07-01 16:47 WindowsFormsApplication2\Form3.resx
............此处省略64个文件信息
- 上一篇:104电力规约的c#部分功能实现
- 下一篇:C#引用Visa读取示波器数据
相关资源
- C#解析HL7消息的库135797
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- 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#自定义控件
川公网安备 51152502000135号
评论
共有 条评论