資源簡介
內含編碼和數據庫,可以運行成功,另外含有一個小組三篇設計報告論文。

代碼片段和文件信息
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;
using?System.Data.OleDb;
using?System.Data.Odbc;
namespace?Supermarket_JTC
{
????public?partial?class?Form1?:?Form
????{
????????public?string?conStr?=?@“Data?Source=.\SQLEXPRESS;AttachDbFilename=E:\Supermarket_JTC\Supermarket_JTC\S-JTC.mdf;Integrated?Security=True;User?Instance=True“;
????????
????????public?int?flag?=?0;
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????????????
????????????int?flag=?1;
????????????string?pass?=?null;
????????????if?(comboBox1.Text==?““?||?textBox1.Text==?““?||?textBox2.Text==?““)
????????????????label4.Visible?=?true;
?????????????else
????????????{
????????????????label4.Visible?=?false;
????????????????
????????????????SqlConnection?con?=?new?SqlConnection();
????????????????con.ConnectionString?=?conStr;
????????????????string?SQL?=?“select?*?from?Password?“;
????????????????con.Open();
????????????????DataSet?ds?=?new?DataSet();
????????????????SqlDataAdapter?da?=?new?SqlDataAdapter(SQL?con);
????????????????da.Fill(ds“table_1“);
????????????????con.Close();
????????????????DataTable?table=ds.Tables[“table_1“];
????????????????for(int?i=0;i ????????????????{
????????????????????string?str1=(string)ds.Tables[“table_1“].Rows[i][“Wna“];//職稱
????????????????????string?str2=(string)ds.Tables[“table_1“].Rows[i][“Wno“];//工號
????????????????????string?str3=comboBox1?.Text;??//身份
????????????????????string?str4=textBox1.Text;????//賬戶
???????????????????
????????????????????if(str1.Substring(03)==str3&&str2==str4)
????????????????????{
??????????????????????????????????????????
????????????????????????pass=(string)ds.Tables[“table_1“].Rows[i][“password“];????????????????????????
????????????????????????flag=0;
????????????????????????
????????????????????}
????????????????}
????????????????if(pass==null)
???????????????????MessageBox.Show(“工號或職稱輸入錯誤“?“Error“);????????????????????
?????????????????else
????????????????????if?(pass?==?textBox2.Text?&&?comboBox1.Text?==?“管理員“)
????????????????????{
????????????????????????Form2?child?=?new?Form2(conStr?textBox1.Text);
????????????????????????textBox2.Text?=?““;
????????????????????????child.Show();
????????????????????}
????????????????????else
????????????????????????if?(pass?==?textBox2.Text?&&?comboBox1.Text?==?“收銀員“)
????????????????????????{
????????????????????????????Form3?child?=?new?Form3(conStr?textBox1.Text);
????????????????????????????child.Show();
????????????????????????}
????????????????????????else
?????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????347190??2013-12-25?16:42??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\BackgroundPictures\01.jpg
?????文件??????23843??2013-12-30?22:19??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\BackgroundPictures\02.jpg
?????文件??????12269??2013-12-30?22:23??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\BackgroundPictures\03.jpg
?????文件??????11994??2014-01-01?11:35??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\BackgroundPictures\04.jpg
?????文件??????16731??2014-01-01?22:56??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\BackgroundPictures\05.jpg
?????文件??????48092??2013-12-31?17:30??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\BackgroundPictures\06.jpg
?????文件?????139266??2013-12-31?17:30??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\BackgroundPictures\09.jpg
?????文件??????48025??2013-12-31?17:29??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\BackgroundPictures\10.jpg
?????文件?????134258??2014-01-02?18:27??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\BackgroundPictures\11.jpg
?????文件????3145728??2014-01-03?10:45??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\bin\Debug\S-JTC.mdf
?????文件????1048576??2014-01-03?10:45??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\bin\Debug\S-JTC_log.ldf
?????文件?????622080??2014-01-03?11:34??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\bin\Debug\Supermarket_JTC.exe
?????文件?????130560??2014-01-03?11:34??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\bin\Debug\Supermarket_JTC.pdb
?????文件??????14328??2014-01-03?11:37??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\bin\Debug\Supermarket_JTC.vshost.exe
?????文件????????490??2009-06-11?05:14??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\bin\Debug\Supermarket_JTC.vshost.exe.manifest
?????文件???????4123??2014-01-02?23:04??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\Form1.cs
?????文件??????11219??2014-01-02?23:04??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\Form1.Designer.cs
?????文件?????593861??2014-01-02?23:04??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\Form1.resx
?????文件??????30072??2014-01-03?01:16??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\Form2.cs
?????文件?????103940??2014-01-03?01:16??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\Form2.Designer.cs
?????文件?????121024??2014-01-03?01:16??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\Form2.resx
?????文件??????15488??2014-01-03?12:39??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\Form3.cs
?????文件??????25930??2014-01-01?23:17??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\Form3.Designer.cs
?????文件??????74769??2014-01-01?23:17??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\Form3.resx
?????文件???????4523??2014-01-02?16:38??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\Form4.cs
?????文件???????9537??2014-01-02?16:38??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\Form4.Designer.cs
?????文件??????31235??2014-01-02?16:38??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\Form4.resx
?????文件???????8683??2014-01-02?14:46??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\Form7.cs
?????文件??????30324??2014-01-02?14:46??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\Form7.Designer.cs
?????文件???????5814??2014-01-02?14:46??C#課程設計-超市管理系統\Supermarket_JTC\Supermarket_JTC\Form7.resx
............此處省略51個文件信息
- 上一篇:C#編程思想(清晰版)
- 下一篇:asp.net 旅游網站
評論
共有 條評論