資源簡介
C#收銀系統源碼

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?DevComponents.DotNetBar;
namespace?AppCash
{
????public?partial?class?frmLogin?:?Form
????{
????????public?frmLogin()
????????{
????????????InitializeComponent();
????????}
????????private?void?btnLogin_Click(object?sender?EventArgs?e)
????????{
????????????//登錄
????????????if?(tbPwd.Text?==?““?||?cbUserid.Text?==?““)
????????????{
????????????????MessageBoxEx.Show(“請輸入登錄口令!“?“錯誤“?MessageBoxButtons.OK?MessageBoxIcon.Error);
????????????????return;
????????????}
????????????Dong.BLL.OperInfo?bOper?=?new?Dong.BLL.OperInfo();
????????????if?(bOper.CheckUser(cbUserid.Text?tbPwd.Text))
????????????{
????????????????Dong.Model.GlobalsInfo.UserName?=?cbUserid.Text;
????????????????frmMain?frm?=?new?frmMain();
????????????????frm.Show();
????????????????this.Visible?=?false;
????????????}
????????????else
????????????{
????????????????MessageBoxEx.Show(“您輸入的口令不正確!“?“錯誤“?MessageBoxButtons.OK?MessageBoxIcon.Error);
????????????}
????????}
????????private?void?frmLogin_Load(object?sender?EventArgs?e)
????????{
????????????//初始化界面信息
????????????//提取用戶列表
????????????DataSet?ds?=?new?DataSet();
????????????Dong.BLL.OperInfo?mOper?=?new?Dong.BLL.OperInfo();
????????????ds?=?mOper.GetAllList();
????????????cbUserid.ValueMember?=?“Code“;
????????????cbUserid.DisplayMember?=?“Code“;
????????????cbUserid.DataSource?=?ds.Tables[0];
????????????//提取配置信息
????????????Dong.BLL.ShopInfo?bShop?=?new?Dong.BLL.ShopInfo();
????????????Dong.Model.ShopInfo?mShop?=?new?Dong.Model.ShopInfo();
????????????mShop?=?bShop.GetModel(1);
????????????Dong.Model.GlobalsInfo.shopName?=?mShop.Name;
????????????this.Text?=?this.Text?+?“?--【“?+?mShop.Name?+?“】“;
????????????Dong.Model.GlobalsInfo.shopAddr?=?mShop.Addr;
????????}
????????private?void?btnExit_Click(object?sender?EventArgs?e)
????????{
????????????Application.Exit();
????????}
????????protected?override?bool?ProcessCmdKey(ref?Message?msg?Keys?keyData)
????????{
????????????switch?(keyData)
????????????{
????????????????case?Keys.Escape:
????????????????????Application.Exit();
????????????????????return?true;
????????????????case?Keys.Enter:
????????????????????btnLogin_Click(null?null);
????????????????????return?true;
????????????????default:
????????????????????return?base.ProcessCmdKey(ref?msg?keyData);
????????????}
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????42373??2014-09-18?09:20??C#收銀系統源碼\圖片\1.png
?????文件??????16271??2014-09-18?09:20??C#收銀系統源碼\圖片\2.png
?????文件????????300??2013-11-13?11:52??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\app.config
?????文件??????27789??2013-12-25?16:57??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\AppCash.csproj
?????文件????4244992??2014-09-11?10:39??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\AppCash.exe
?????文件????????300??2013-11-13?11:52??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\AppCash.exe.config
?????文件?????505344??2014-09-11?10:39??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\AppCash.pdb
?????文件??????11608??2014-09-18?09:20??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\AppCash.vshost.exe
?????文件????????300??2013-11-13?11:52??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\AppCash.vshost.exe.config
?????文件????????490??2010-03-17?22:39??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\AppCash.vshost.exe.manifest
?????文件??????22016??2014-08-30?21:19??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\BLL.dll
?????文件??????81408??2014-08-30?21:19??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\BLL.pdb
?????文件??????15360??2011-03-02?12:25??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\COM.Excel.dll
?????文件??????41984??2014-08-30?21:19??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\DAL.dll
?????文件??????91648??2014-08-30?21:19??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\DAL.pdb
?????文件?????536576??2014-09-18?09:18??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\DB\MarketDB.mdb
?????文件????4332032??2013-11-11?16:48??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\DevComponents.DotNetBar2.dll
?????文件????1089536??2011-03-02?12:25??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\Excel.dll
?????文件???????8731??2012-12-11?11:41??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\Images\App?Drawer.png
?????文件??????10201??2012-12-11?23:06??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\Images\Blic.png
?????文件??????10881??2012-11-23?17:08??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\Images\Bluetooth.png
?????文件??????14073??2012-12-01?18:00??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\Images\Briefcase.png
?????文件??????16761??2012-11-30?20:19??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\Images\Calculator.png
?????文件??????12505??2012-11-25?15:58??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\Images\Calendar.png
?????文件??????12323??2012-11-23?17:50??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\Images\Camera.png
?????文件??????11537??2012-11-23?18:08??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\Images\CD.png
?????文件??????11797??2012-12-02?17:01??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\Images\Clock.png
?????文件???????9719??2012-11-23?19:24??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\Images\Contacts.png
?????文件???????9908??2012-12-02?17:04??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\Images\Dropbox.png
?????文件???????9622??2012-11-23?19:34??C#收銀系統源碼\源碼\C#收銀系統源碼\AppCash\bin\Debug\Images\eBuddy.png
............此處省略423個文件信息
- 上一篇:C#實現打字游戲功能齊全完成代碼
- 下一篇:C# 無損修改圖像色相、飽和度、亮度
評論
共有 條評論