bargainbs.cs

来自「实现房产销售的房屋管理 客户管理 并且在客户管理中实现了对预定客户和已购房客户的」· CS 代码 · 共 102 行

CS
102
字号
using System;
using System.Data;
using HouseBE;
using HouseDA;

namespace HouseBS
{
	/// <summary>
	/// BargainBS 的摘要说明。
	/// </summary>
	public class BargainBS:CommonBS
	{
		private HouseBE.Bargain _bargain;
		private HouseDA.BargainDA _bargains;
		private DataSet _ds;

		public HouseBE.Bargain bargain
		{
			set
			{
			 this._bargain=value;
			}
			get
			{
			 return this._bargain;
			}
		}
		public BargainBS()
		{
			//
			// TODO: 在此处添加构造函数逻辑
			//
			this._bargains=new BargainDA();
			this._ds=new DataSet();
		}
		#region CommonBS 成员

		public void insert()
		{
			// TODO:  添加 BargainBS.insert 实现
			this._bargains.bargain=this._bargain;
			try
			{
			  this._bargains.insert();
			}
			catch(Exception ex)
			{
			  throw ex;
			}
		}

		public void update()
		{
			// TODO:  添加 BargainBS.update 实现
			this._bargains.bargain=this._bargain;
			try
			{
				this._bargains.update();
			}
			catch(Exception ex)
			{
				throw ex;
			}
		}

		public void delete()
		{
			// TODO:  添加 BargainBS.delete 实现
			this._bargains.bargain=this._bargain;
			try
			{
				this._bargains.delete();
			}
			catch(Exception ex)
			{
				throw ex;
			}
		}

		public DataSet select()
		{
			// TODO:  添加 BargainBS.select 实现
			try
			{
				this._ds=this._bargains.select();
			}
			catch(Exception ex)
			{
			    throw ex;
			}
			return this._ds;
		}

		#endregion
		public DataSet selects(HouseBE.Bargain bargin)
		{
           this._ds=this._bargains.Selects(bargin);	
		   return this._ds;
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?