• 大小: 2.39MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-30
  • 语言: C#
  • 标签: c#  asp.net  3层  

资源简介

在线订餐系统,使用3层架构模式,AJAX,asp.net入门好材料,注释相当全

资源截图

代码片段和文件信息

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  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个文件信息

评论

共有 条评论