资源简介
本系是由C#语言开发的WinFrom应用程序采用SQL Server2005数据库,本系统采用三层架构抽象工厂模式开发,系统分为:人事管理,商品管理,
前台收银,销售记录查询 4大模块。本系统仅供交流学习使用!希望大家给出宝贵意见!

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.ComponentModel;
using System.IO;
namespace Common
{
public class ControlTool
{
//判断是否存在为空的文本框
public bool IsTextBoxNullOrEmpty(Control con)
{
foreach (Control child in con.Controls)
{
if (child is TextBox || child is ComboBox)
{
if (string.IsNullOrEmpty(child.Text))
{
return false;
}
}
}
return true;
}
public void clear(Control con)
{
foreach (Control child in con.Controls)
{
if (child is TextBox)
{
child.Text = null;
}
}
}
//判断当前用户是否具有权限
public void IsReadOnly(Control con)
{
foreach (Control child in con.Controls)
{
child.Enabled= false;
}
}
//判断格式是否正确
public static void IsYesOrNo(ErrorProvider errorProvider TextBox txtstring messageCancelEventArgs e)
{
if (message != null && message !=““)
{
errorProvider.SetIconAlignment((Control)txt ErrorIconAlignment.MiddleRight);
errorProvider.SetError((Control)txt message);
e.Cancel = true;
}
if (string.IsNullOrEmpty(txt.Text))
{
e.Cancel = false;
}
if(string.IsNullOrEmpty(message) && (txt.Text != null ||txt.Text !=““))
{
errorProvider.SetError((Control)txt ““);
}
}
//只能输入数字
public void NolyIsNumber(KeyPressEventArgs e)
{
if (e.KeyChar >= ‘0‘ && e.KeyChar <= ‘9‘)
{
}
else if (e.KeyChar == Convert.ToChar(Keys.Back))
{
}
else
{
e.Handled = true;
}
}
//数字和点
public void NolyIsNumberOrPoint(KeyPressEventArgs e)
{
if (e.KeyChar >= ‘0‘ && e.KeyChar <= ‘9‘)
{
}
else if (e.KeyChar == Convert.ToChar(Keys.Back) || e.KeyChar == Convert.ToChar(Keys.Delete))
{
}
else
{
e.Handled = true;
}
}
//电话号码验证
public void IsPhone(KeyPressEventArgs e)
{
if (e.KeyChar >= ‘0‘ && e.KeyChar <= ‘9‘||e.KeyChar==‘-‘)
{
}
else if (e.KeyChar == Convert.ToChar(Keys.Back))
{
}
else
{
e.Handled = true;
}
}
public
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 20480 2009-08-02 20:08 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\Common\bin\Debug\Common.dll
文件 26112 2009-08-02 20:08 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\Common\bin\Debug\Common.pdb
文件 2213 2009-08-01 16:50 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\Common\Common.csproj
文件 3604 2009-08-02 17:10 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\Common\ControlTool.cs
文件 2095 2009-08-01 16:22 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\Common\DBSqlConnection.cs
文件 130 2009-07-31 16:56 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\Common\obj\Common.csproj.FileList.txt
文件 1995 2010-07-17 01:56 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\Common\obj\Common.csproj.FileListAbsolute.txt
文件 20480 2009-08-02 20:08 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\Common\obj\Debug\Common.dll
文件 26112 2009-08-02 20:08 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\Common\obj\Debug\Common.pdb
文件 16384 2009-08-01 16:28 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\Common\obj\Debug\Refactor\Common.dll
文件 2866 2009-07-10 18:24 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\Common\PageTool.cs
文件 756 2009-07-01 03:17 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\Common\PanDuan.cs
文件 849 2009-07-16 17:44 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\Common\PictureTool.cs
文件 1307 2009-06-12 12:41 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\Common\Properties\AssemblyInfo.cs
文件 1197 2009-08-11 17:15 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\AbstractFactory.cs
文件 20480 2009-08-02 20:08 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\bin\Debug\Common.dll
文件 26112 2009-08-02 20:08 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\bin\Debug\Common.pdb
文件 20480 2009-08-11 17:15 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\bin\Debug\DALFactory.dll
文件 24064 2009-08-11 17:15 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\bin\Debug\DALFactory.pdb
文件 20480 2009-08-02 20:08 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\bin\Debug\IDAL.dll
文件 7680 2009-08-02 20:08 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\bin\Debug\IDAL.pdb
文件 40960 2009-08-02 20:08 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\bin\Debug\SuperMarktDAL.dll
文件 65024 2009-08-02 20:08 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\bin\Debug\SuperMarktDAL.pdb
文件 28672 2009-08-02 20:08 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\bin\Debug\SupermarktShuJu.dll
文件 81408 2009-08-02 20:08 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\bin\Debug\SupermarktShuJu.pdb
文件 2495 2009-06-15 12:57 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\DALFactory.csproj
文件 1941 2009-06-15 12:58 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\ElseFactory.cs
文件 350 2009-07-31 16:56 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\obj\DALFactory.csproj.FileList.txt
文件 5507 2010-07-17 01:56 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\obj\DALFactory.csproj.FileListAbsolute.txt
文件 20480 2009-08-11 17:15 HugeSoft超市管理系统\HugeSoft超市管理系统\Supermarkt\DALFactory\obj\Debug\DALFactory.dll
............此处省略464个文件信息
- 上一篇:C# windows窗体 招聘管理系统
- 下一篇:C#课程设计员工信息管理系统
相关资源
- C#解析HL7消息的库135797
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- Asp.net学生信息管理系统源码
- 超市进销存管理系统 Sqlserver 数据库文
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- ASP.NET实验室预约管理系统
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 020ASP.NET车辆综合管理系统.zip
- 智慧城市 智能家居 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#开发实例
评论
共有 条评论