資源簡介
庫存管理系統主要由【貨物管理】、【基本檔案】、【查詢統計】、【系統維護】和【幫助】等模塊組成。進入該系統后,用戶可以對系統中的一些基本信息進行添加、修改和刪除等操作。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Data.SqlClient;
namespace?SMS
{
????public?partial?class?frmLogin?:?Form
????{
????????public?static?string?M_str_name;//記錄登錄用戶名字
????????public?static?string?M_str_pwd;//記錄登錄用戶密碼
????????public?static?string?M_str_right;//記錄登錄用戶的權限
????????baseClass.DataCon?datacon?=?new?SMS.baseClass.DataCon();
????????baseClass.DataOperate?doperate?=?new?SMS.baseClass.DataOperate();
????????public?frmLogin()
????????{
????????????InitializeComponent();
????????}
?
????????private?void?frmLogin_Load(object?sender?EventArgs?e)
????????{
????????????doperate.cboxBind(“select?UserName?from?tb_User“?“tb_User“?“UserName“?cboxUName);
????????}
????????private?void?btnLogin_Click(object?sender?EventArgs?e)
????????{
????????????int?P_int_returnValue?=?doperate.UserLogin(cboxUName.Text.Trim()?txtPwd.Text.Trim());
????????????if?(P_int_returnValue?==?100)
????????????{
????????????????M_str_name?=?cboxUName.Text;
????????????????M_str_pwd?=?txtPwd.Text.Trim();
????????????????frmMain?fmain?=?new?frmMain();
????????????????this.Hide();
????????????????fmain.Show();
????????????}
????????????if?(P_int_returnValue?==?-100)
????????????{
????????????????MessageBox.Show(“用戶名或密碼錯誤!“?“提示“?MessageBoxButtons.OK?MessageBoxIcon.Information);
????????????????txtPwd.Text?=?““;
????????????????cboxUName.Focus();
????????????}?
????????}
????????private?void?btnExit_Click(object?sender?EventArgs?e)
????????{
????????????Application.Exit();
????????}
????????private?void?cboxUName_SelectedIndexChanged(object?sender?EventArgs?e)
????????{
????????????SqlDataReader?sqlread?=?datacon.getread(“select?UserNameUserRight?from?tb_User?where?UserName=‘“?+?cboxUName.Text?+?“‘“);
????????????if?(sqlread.Read())
????????????{
????????????????labURight.Text?=?sqlread[“UserRight“].ToString();
????????????????M_str_right?=?labURight.Text;
????????????}
????????????sqlread.Close();
????????}
????????private?void?frmLogin_FormClosing(object?sender?FormClosingEventArgs?e)
????????{
????????????Application.Exit();
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????1393152??2006-11-08?16:14??SMS\SMS\Backup\data.bak
?????文件???????2393??2006-11-03?11:44??SMS\SMS\ba
?????文件??????21862??2006-11-21?10:51??SMS\SMS\ba
?????文件???????4297??2006-11-03?09:43??SMS\SMS\BasicInfo\frmGoodsInfo.cs
?????文件??????16614??2006-11-03?09:42??SMS\SMS\BasicInfo\frmGoodsInfo.Designer.cs
?????文件???????8546??2006-11-03?09:42??SMS\SMS\BasicInfo\frmGoodsInfo.resx
?????文件???????5787??2006-11-07?09:43??SMS\SMS\BasicInfo\frmPrInfo.cs
?????文件??????14426??2006-11-06?19:08??SMS\SMS\BasicInfo\frmPrInfo.Designer.cs
?????文件???????9355??2006-11-06?19:08??SMS\SMS\BasicInfo\frmPrInfo.resx
?????文件???????5442??2006-11-02?16:22??SMS\SMS\BasicInfo\frmStoreInfo.cs
?????文件??????14019??2006-11-01?10:29??SMS\SMS\BasicInfo\frmStoreInfo.Designer.cs
?????文件???????9156??2006-11-01?10:29??SMS\SMS\BasicInfo\frmStoreInfo.resx
?????文件????????408??2006-11-01?11:48??SMS\SMS\bin\Debug\AboutUs.txt
?????文件?????999424??2006-11-23?14:06??SMS\SMS\bin\Debug\SMS.exe
?????文件?????282112??2006-11-23?14:06??SMS\SMS\bin\Debug\SMS.pdb
?????文件???????5632??2005-11-11?22:25??SMS\SMS\bin\Debug\SMS.vshost.exe
?????文件???????2355??2006-11-20?14:23??SMS\SMS\bin\Debug\sum.jpg
?????文件????1376256??2006-12-21?20:12??SMS\SMS\Databa
?????文件????1048576??2006-12-21?20:12??SMS\SMS\Databa
?????文件????????657??2006-11-07?15:19??SMS\SMS\Databa
?????文件???????1423??2006-11-04?13:40??SMS\SMS\Databa
?????文件????????509??2006-11-04?13:40??SMS\SMS\Databa
?????文件????????559??2006-11-04?13:40??SMS\SMS\Databa
?????文件????????416??2006-11-04?13:39??SMS\SMS\Databa
?????文件????????284??2006-11-04?13:39??SMS\SMS\Databa
?????文件????????261??2006-11-07?10:36??SMS\SMS\Databa
?????文件???????2308??2006-11-10?11:03??SMS\SMS\frmLogin.cs
?????文件???????7599??2006-11-10?11:03??SMS\SMS\frmLogin.Designer.cs
?????文件??????50480??2006-11-10?11:03??SMS\SMS\frmLogin.resx
?????文件??????10836??2006-11-10?11:51??SMS\SMS\frmMain.cs
............此處省略190個文件信息
- 上一篇:C#+sql圖書管理系統+源碼
- 下一篇:c#調用cpp的一個
評論
共有 條評論