资源简介
餐饮管理系统源码
源码描述:
(1)密码修改:普通用户和管理员可以根据需要修改个人密码。
(2)主界面:普通用户和管理员可在主界面进行查询、开台、点菜、消费查询、结账操作。
(3)桌台信息:管理员可以对桌台进行增、删、改、查操作。
(4)菜单信息:管理员可以对菜单以及菜单分类进行增、删、改、查操作。
(5)职员信息:管理员可以对职员进行增、删、改、查操作。
(6)按日进行统计:管理员和普通用户可对营业额进行按日期统计。
(7)按月进行统计:管理员和普通用户可对营业额进行按月份统计。
(8)按年进行统计:管理员和普通用户可对营业额进行按年份统计。
(9)用户管理:管理员可以对用户进行增删改操作。
(10)系统设置:管理员可以对数据库进行备份、还原、初始化操作。

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
using System.Data.SqlClient;
using System.Data;
namespace Restaurant
{
public static class DbHelperSQL
{
private static string connectionString = ConfigurationManager.AppSettings[“ConnectionString“];
#region 公用方法
///
/// 判断是否存在该查询结果
///
/// SQL语句
/// bool型
public static bool Exists(string strSql)
{
object obj = GetSingle(strSql);
int cmdresult;
if ((object.Equals(obj null)) || (object.Equals(obj System.DBNull.Value)))
{
cmdresult = 0;
}
else
{
cmdresult = int.Parse(obj.ToString());
}
if (cmdresult == 0)
{
return false;
}
else
{
return true;
}
}
#endregion
#region 执行简单SQL语句
///
/// 执行SQL语句,返回影响的记录数
///
/// SQL语句
/// 影响的记录数
public static int ExecuteSql(string SQLString)
{
using (SqlConnection connection = new SqlConnection(connectionString))
{
using (SqlCommand cmd = new SqlCommand(SQLString connection))
{
try
{
connection.Open();
int rows = cmd.ExecuteNonQuery();
return rows;
}
catch (System.Data.SqlClient.SqlException e)
{
connection.Close();
throw e;
}
}
}
}
///
/// 执行多条SQL语句,实现数据库事务。
///
/// 多条SQL语句
public static int ExecuteSqlTran(List SQLStringList)
{
using (SqlConnection conn = new SqlConnection(connectionString))
{
conn.Open();
SqlCommand cmd = new SqlCommand();
cmd.Connection = conn;
SqlTransaction tx = conn.BeginTransaction();
cmd.Transaction = tx;
try
{
int count = 0;
for (int n = 0; n < SQLStringList.Count; n++)
{
string strsql = SQLStringList[n];
if (strsql.Trim().Length > 1)
{
cmd.CommandText = strsql;
count += cmd.ExecuteNonQuery();
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-05-17 18:18 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\
目录 0 2013-03-22 15:45 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\DB\
目录 0 2014-03-19 10:12 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\DB\MDF\
文件 3145728 2014-03-19 10:11 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\DB\MDF\Restaurant.mdf
文件 1048576 2014-03-19 10:11 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\DB\MDF\Restaurant_log.ldf
目录 0 2013-03-22 15:45 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\DB\备份\
文件 1724928 2013-03-25 12:52 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\DB\备份\back.bak
目录 0 2013-03-22 15:50 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\DB\脚本\
文件 9428 2013-03-25 12:53 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\DB\脚本\Restaurant.sql
目录 0 2014-03-19 09:55 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\
文件 920 2013-03-29 20:41 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant.sln
目录 0 2014-03-19 09:55 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\App_Data\
目录 0 2014-03-19 10:00 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\bin\
文件 7168 2009-08-27 20:32 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\bin\FusionCharts.dll
文件 54272 2014-03-19 10:00 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\bin\Restaurant.dll
文件 155136 2014-03-19 10:00 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\bin\Restaurant.pdb
目录 0 2014-03-19 09:54 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\css\
文件 16527 2013-03-16 18:25 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\css\css.css
文件 833 2013-03-17 11:33 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\css\rightmenu.css
目录 0 2014-03-19 09:54 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\data\
文件 1724928 2013-03-25 12:52 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\data\back.bak
文件 5542 2013-03-22 11:16 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\DbHelperSQL.cs
目录 0 2014-03-19 09:54 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\DB_51aspx\
文件 3145728 2014-03-18 15:35 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\DB_51aspx\Restaurant.mdf
文件 1048576 2014-03-18 15:35 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\DB_51aspx\Restaurant_log.LDF
文件 4848 2013-03-25 08:43 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\Default.aspx
文件 1620 2014-03-18 15:27 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\Default.aspx.cs
文件 3335 2013-03-16 16:39 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\Default.aspx.designer.cs
目录 0 2014-03-19 09:54 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\files\
文件 6890 2013-03-25 11:13 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\files\addfood.aspx
文件 6167 2013-03-25 11:13 LORepast_01d7ad45-88bb-4e07-a6a1-aefe4b71d728\Restaurant\files\addfood.aspx.cs
............此处省略103个文件信息
- 上一篇:基于web投票系统(20131112
- 下一篇:高校宿舍管理系统源码20140428
相关资源
- 数据库系统基础教程答案第三版机械
- 酒店管理系统基于Qt Creator5)
- 软考数据库系统工程师复习资料(完
- 设备管理系统源码
- 价值2k的H漫画小说系统
- DV泵加罗茨泵独立控制系统PID.smart
- 基于ACCESS的生产管理信息系统.mdb
- 电力系统潮流计算程序集合
- layui后台管理模板
- 联想扬天电脑用户手册
- 三星笔记本电源管理软件 v2.1.4.3 官方
- 升腾Win终端系统升级方法新版.doc
- 批处理获取系统版本及位数
- CAD中插入带坐标的正射影像——Inse
- Uninstall_Cortana_WINCLIENT.CN.rar
-
大数据。基于Hba
se的网站日志分析系 - 益和注册机
- ManageEngine_OpManager_12.3安装手册+管理员
- Python全栈学习笔记面向对象大作业:
- TCL-S1916 ,1924交换机管理程序
- 一个超简单的企业管理系统(带ACCE
- PowerBuilder*图书馆管理系统*需求分析
- B/S 网上订餐系统
- Linux任务管理器
- 加密软件漏洞评测系统 V8.9
- 交通咨询模拟系统完整代码
- 数据库课设:图书管理系统报告
- 用汇编实现的学生成绩档案管理系统
- VC 获得文件属性 获取文件的创建时
- 网上拍卖系统完整源代码
评论
共有 条评论