資源簡介
一個小型的在線訂餐管理系統源碼,采用三層模式開發,代碼注釋詳細
前臺可以進行用戶注冊、菜單管理及訂餐
后臺管理員可以進行菜單管理、新聞管理、菜肴管理、用戶管理操作
數據庫采用的是Sql2005(由于數據庫在App_Data下,如果裝了Sql2005數據庫會自動配置)
默認超級管理員帳號/密碼:51aspx/51aspx

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
using?Model;
using?IDDal;
/************菜肴的業務邏輯層***********
?*?關于菜肴的增加刪除修改查詢
?*?類設計者:魏瑩
?*?設計時間5月30日
?***************************************/
namespace?Business
{
????///?
????///?菜肴操作的業務邏輯層
????///?
????public?class?BItem
????{
????????ItemDal- ?itemop?=?new?ImpDDal.ImpItemDal();
????????///?
????????///?增加一個菜肴
????????///?
????????///?菜肴對象
????????///?1成功增加0增加失敗
????????public?int?AddItem(Item?item)
????????{
????????????try
????????????{
????????????????
????????????????return?itemop.AddItem(item);
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????throw?new?Exception(ex.Message);
????????????}
????????}
????????///?
????????///?修改一個菜肴信息
????????///?
????????///?菜肴對象
????????///?1成功修改0修改失敗
????????public?int?ModifyItem(Item?item)
????????{
????????????try
????????????{???
????????????????return?itemop.EditItem(item);
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????throw?new?Exception(ex.Message);
????????????}
????????}
????????///?
????????///?修改一個菜肴的分類信息
????????///?
????????///?菜肴對象
????????///?1成功修改0修改失敗
????????public?int?ModifyItemType(Item?item)
????????{
????????????try
????????????{
????????????????return?itemop.EditItemType(item);
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????throw?new?Exception(ex.Message);
????????????}
????????}
????????///?
????????///?刪除一個菜肴
????????///?
????????///?菜肴對象
????????///?1成功刪除0刪除失敗
????????public?int?DeleteItem(Item?item)
????????{
????????????try
????????????{
????????????????return?itemop.DeleteItem(item);
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????throw?new?Exception(ex.Message);
????????????}
????????}
????????///?
????????///?根據菜肴類別查詢菜肴
????????///?
????????///?類別編號
????????///?菜肴集合
????????public?IList- ?Select(int?type)
????????{
????????????try
????????????{
????????????????return?itemop.SelectItem(type);
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????throw?new?Exception(ex.Message);
????????????}
????????}
????????///?
????????///?根據菜肴名模糊查詢
????????///?
????????///?菜肴名稱
????????///?菜肴集合
????????public?IList- ?Select(string?itemName)
????????{
????????????try
????????????{
????????????????return?itemop.SelectItem(itemName);
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????throw?new?Exception(ex.Message);
???????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4707??2008-06-30?08:16??TestProject1\AuthoringTests.txt
?????文件????????268??2008-06-01?23:27??Business\obj\Business.csproj.FileList.txt
?????文件????????829??2008-06-26?14:01??Business\obj\Business.csproj.FileListAbsolute.txt
?????文件????????410??2002-12-30?01:40??chinaz.com.txt
?????文件????????126??2008-05-31?14:36??IDDal\obj\IDDal.csproj.FileList.txt
?????文件????????366??2008-06-26?14:02??IDDal\obj\IDDal.csproj.FileListAbsolute.txt
?????文件????????218??2008-06-04?23:30??ImpDDal\obj\ImpDDal.csproj.FileList.txt
?????文件????????668??2008-06-29?12:08??ImpDDal\obj\ImpDDal.csproj.FileListAbsolute.txt
?????文件????????126??2008-06-08?21:37??Model\obj\Model.csproj.FileList.txt
?????文件????????366??2008-06-26?08:54??Model\obj\Model.csproj.FileListAbsolute.txt
?????文件????????411??2008-06-30?13:50??WebConvert\obj\WebConvert.csproj.FileListAbsolute.txt
?????文件????????330??2008-07-23?15:00??程序說明.txt
?????文件???????3247??2009-11-06?16:24??說明.htm
?????文件???????3508??2008-06-26?15:55??OnlineDinnerWeb\Customer\UserInfo.html
?????文件??????65536??2005-07-25?18:29??OnlineDinnerWeb\Bin\Ajax.dll
?????文件??????16384??2008-06-24?17:35??Business\obj\Debug\Refactor\Business.dll
?????文件??????24576??2008-06-26?14:01??Business\bin\Debug\Business.dll
?????文件??????24576??2008-06-26?14:01??Business\obj\Debug\Business.dll
?????文件??????24576??2008-06-26?14:01??OnlineDinnerWeb\Bin\Business.dll
?????文件??????16384??2008-06-26?13:54??Business\bin\Debug\IDDal.dll
?????文件??????16384??2008-06-26?14:02??IDDal\bin\Debug\IDDal.dll
?????文件??????16384??2008-06-26?14:02??IDDal\obj\Debug\IDDal.dll
?????文件??????16384??2008-06-24?17:35??IDDal\obj\Debug\Refactor\IDDal.dll
?????文件??????16384??2008-06-26?14:02??ImpDDal\bin\Debug\IDDal.dll
?????文件??????16384??2008-06-26?14:02??OnlineDinnerWeb\Bin\IDDal.dll
?????文件??????20480??2008-06-24?17:35??ImpDDal\obj\Debug\Refactor\ImpDDal.dll
?????文件??????49152??2008-06-26?13:54??Business\bin\Debug\ImpDDal.dll
?????文件??????49152??2008-06-29?12:08??ImpDDal\bin\Debug\ImpDDal.dll
?????文件??????49152??2008-06-29?12:08??ImpDDal\obj\Debug\ImpDDal.dll
?????文件??????49152??2008-06-29?12:08??OnlineDinnerWeb\Bin\ImpDDal.dll
............此處省略344個文件信息
評論
共有 條評論