資源簡介
在線訂餐系統(tǒng),使用3層架構(gòu)模式,AJAX,asp.net入門好材料,注釋相當(dāng)全

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
using?Model;
using?IDDal;
/************菜肴的業(yè)務(wù)邏輯層***********
?*?關(guān)于菜肴的增加刪除修改查詢
?*?類設(shè)計(jì)者:魏瑩
?*?設(shè)計(jì)時間5月30日
?***************************************/
namespace?Business
{
????///?
????///?菜肴操作的業(yè)務(wù)邏輯層
????///?
????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);
????????????}
????????}
????????///?
????????///?根據(jù)菜肴類別查詢菜肴
????????///?
????????///?類別編號
????????///?菜肴集合
????????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);
???????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4707??2008-06-30?08:16??OnlineDinner\TestProject1\AuthoringTests.txt
?????文件????????268??2008-06-01?23:27??OnlineDinner\Business\obj\Business.csproj.FileList.txt
?????文件????????829??2008-06-26?14:01??OnlineDinner\Business\obj\Business.csproj.FileListAbsolute.txt
?????文件????????126??2008-05-31?14:36??OnlineDinner\IDDal\obj\IDDal.csproj.FileList.txt
?????文件????????366??2008-06-26?14:02??OnlineDinner\IDDal\obj\IDDal.csproj.FileListAbsolute.txt
?????文件????????218??2008-06-04?23:30??OnlineDinner\ImpDDal\obj\ImpDDal.csproj.FileList.txt
?????文件????????668??2008-06-29?12:08??OnlineDinner\ImpDDal\obj\ImpDDal.csproj.FileListAbsolute.txt
?????文件????????126??2008-06-08?21:37??OnlineDinner\Model\obj\Model.csproj.FileList.txt
?????文件????????366??2008-06-26?08:54??OnlineDinner\Model\obj\Model.csproj.FileListAbsolute.txt
?????文件????????411??2008-06-30?13:50??OnlineDinner\WebConvert\obj\WebConvert.csproj.FileListAbsolute.txt
?????文件???????3508??2008-06-26?15:55??OnlineDinner\OnlineDinnerWeb\Customer\UserInfo.html
?????文件??????65536??2005-07-25?18:29??OnlineDinner\OnlineDinnerWeb\Bin\Ajax.dll
?????文件??????16384??2008-06-24?17:35??OnlineDinner\Business\obj\Debug\Refactor\Business.dll
?????文件??????24576??2008-06-26?14:01??OnlineDinner\Business\bin\Debug\Business.dll
?????文件??????24576??2008-06-26?14:01??OnlineDinner\Business\obj\Debug\Business.dll
?????文件??????24576??2008-06-26?14:01??OnlineDinner\OnlineDinnerWeb\Bin\Business.dll
?????文件??????16384??2008-06-26?13:54??OnlineDinner\Business\bin\Debug\IDDal.dll
?????文件??????16384??2008-06-26?14:02??OnlineDinner\IDDal\bin\Debug\IDDal.dll
?????文件??????16384??2008-06-26?14:02??OnlineDinner\IDDal\obj\Debug\IDDal.dll
?????文件??????16384??2008-06-24?17:35??OnlineDinner\IDDal\obj\Debug\Refactor\IDDal.dll
?????文件??????16384??2008-06-26?14:02??OnlineDinner\ImpDDal\bin\Debug\IDDal.dll
?????文件??????16384??2008-06-26?14:02??OnlineDinner\OnlineDinnerWeb\Bin\IDDal.dll
?????文件??????20480??2008-06-24?17:35??OnlineDinner\ImpDDal\obj\Debug\Refactor\ImpDDal.dll
?????文件??????49152??2008-06-26?13:54??OnlineDinner\Business\bin\Debug\ImpDDal.dll
?????文件??????49152??2008-06-29?12:08??OnlineDinner\ImpDDal\bin\Debug\ImpDDal.dll
?????文件??????49152??2008-06-29?12:08??OnlineDinner\ImpDDal\obj\Debug\ImpDDal.dll
?????文件??????49152??2008-06-29?12:08??OnlineDinner\OnlineDinnerWeb\Bin\ImpDDal.dll
?????文件??????20480??2008-06-24?17:35??OnlineDinner\Model\obj\Debug\Refactor\Model.dll
?????文件??????24576??2008-06-26?08:54??OnlineDinner\Business\bin\Debug\Model.dll
?????文件??????24576??2008-06-26?08:54??OnlineDinner\ImpDDal\bin\Debug\Model.dll
............此處省略340個文件信息
評論
共有 條評論