資源簡(jiǎn)介
一個(gè)小型的在線訂餐管理系統(tǒng)源碼,采用三層模式開發(fā),代碼注釋詳細(xì)
前臺(tái)可以進(jìn)行用戶注冊(cè)、菜單管理及訂餐
后臺(tái)管理員可以進(jìn)行菜單管理、新聞管理、菜肴管理、用戶管理操作
數(shù)據(jù)庫(kù)采用的是Sql2005(由于數(shù)據(jù)庫(kù)在App_Data下,如果裝了Sql2005數(shù)據(jù)庫(kù)會(huì)自動(dòng)配置)
默認(rèn)超級(jí)管理員帳號(hào)/密碼:51aspx/51aspx

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
using?Model;
using?IDDal;
/************菜肴的業(yè)務(wù)邏輯層***********
?*?關(guān)于菜肴的增加刪除修改查詢
?*?類設(shè)計(jì)者:魏瑩
?*?設(shè)計(jì)時(shí)間5月30日
?***************************************/
namespace?Business
{
????///?
????///?菜肴操作的業(yè)務(wù)邏輯層
????///?
????public?class?BItem
????{
????????ItemDal- ?itemop?=?new?ImpDDal.ImpItemDal();
????????///?
????????///?增加一個(gè)菜肴
????????///?
????????///?菜肴對(duì)象
????????///?1成功增加0增加失敗
????????public?int?AddItem(Item?item)
????????{
????????????try
????????????{
????????????????
????????????????return?itemop.AddItem(item);
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????throw?new?Exception(ex.Message);
????????????}
????????}
????????///?
????????///?修改一個(gè)菜肴信息
????????///?
????????///?菜肴對(duì)象
????????///?1成功修改0修改失敗
????????public?int?ModifyItem(Item?item)
????????{
????????????try
????????????{???
????????????????return?itemop.EditItem(item);
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????throw?new?Exception(ex.Message);
????????????}
????????}
????????///?
????????///?修改一個(gè)菜肴的分類信息
????????///?
????????///?菜肴對(duì)象
????????///?1成功修改0修改失敗
????????public?int?ModifyItemType(Item?item)
????????{
????????????try
????????????{
????????????????return?itemop.EditItemType(item);
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????throw?new?Exception(ex.Message);
????????????}
????????}
????????///?
????????///?刪除一個(gè)菜肴
????????///?
????????///?菜肴對(duì)象
????????///?1成功刪除0刪除失敗
????????public?int?DeleteItem(Item?item)
????????{
????????????try
????????????{
????????????????return?itemop.DeleteItem(item);
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????throw?new?Exception(ex.Message);
????????????}
????????}
????????///?
????????///?根據(jù)菜肴類別查詢菜肴
????????///?
????????///?類別編號(hào)
????????///?菜肴集合
????????public?IList- ?Select(int?type)
????????{
????????????try
????????????{
????????????????return?itemop.SelectItem(type);
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????throw?new?Exception(ex.Message);
????????????}
????????}
????????///?
????????///?根據(jù)菜肴名模糊查詢
????????///?
????????///?菜肴名稱
????????///?菜肴集合
????????public?IList- ?Select(string?itemName)
????????{
????????????try
????????????{
????????????????return?itemop.SelectItem(itemName);
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????throw?new?Exception(ex.Message);
???????
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????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??程序說(shuō)明.txt
?????文件???????3247??2009-11-06?16:24??說(shuō)明.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個(gè)文件信息
評(píng)論
共有 條評(píng)論