⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clientbs.cs

📁 实现房产销售的房屋管理 客户管理 并且在客户管理中实现了对预定客户和已购房客户的查询和修改
💻 CS
字号:
using System;
using System.Collections;
using System.Data;
using HouseBE;
using HouseDA;

namespace HouseBS
{
	/// <summary>
	/// ClientBS 的摘要说明。
	/// </summary>
	public class ClientBS:CommonBS
	{
		private HouseBE.Client _client;
		private HouseDA.ClientDA _clients;
		private DataSet _ds;
		private ArrayList list;

		public HouseBE.Client client
		{
			set
			{
			  this._client=value;
			}
			get
			{
			  return this._client;
			}
		}
		public ClientBS()
		{
			//
			// TODO: 在此处添加构造函数逻辑
			//
			this._clients=new ClientDA();
			this._ds=new DataSet();
		}
		#region CommonBS 成员

		public void insert()
		{
			// TODO:  添加 ClientBS.insert 实现
			this._clients.client=this._client;
			
			try
			{
			  this._clients.insert();
			}
			catch(Exception ex)
			{
			  Console.WriteLine(ex.Message);
			  throw ex;
			}
		}

		public void update()
		{
			// TODO:  添加 ClientBS.update 实现
			this._clients.client=this._client;
			try
			{
			  this._clients.update();
			}
			catch(Exception ex)
			{
			  Console.WriteLine(ex.Message);
			  throw ex;
			}
		}

		public void delete()
		{
			// TODO:  添加 ClientBS.delete 实现
		}

		public DataSet select()
		{
			// TODO:  添加 ClientBS.select 实现
			try
			{
				this._ds=this._clients.select();
			}
			catch(Exception ex)
			{
				Console.WriteLine(ex.Message);
				throw ex;
			}
			return this._ds;
		}
		
		public DataSet getNameSelect(string name)
		{
			try
			{
				this._ds=this._clients.getNameSelect(name);
			}
			catch(Exception ex)
			{
				Console.WriteLine(ex.Message);
				throw ex;
			}
			return this._ds;

		}
		#endregion
        //查询编号
		public DataSet selectID(string client)
		{
			this._ds=new DataSet();
			this._ds=this._clients.selectID(client);
			return this._ds;
		}
		//查询所有的预约信息
		public ArrayList GetMessage()
		{
            this.list=new ArrayList();
			try
			{
               this.list=this._clients.getMessage();
			}
			catch(Exception ex)
			{
				Console.WriteLine(ex.Message);
				throw ex;
			}
			return this.list;
		}

		public Client getMessage()
		{
			try
			{
				this._clients.client=this._client;
				this._client=new Client();
				this._client=this._clients.getClient();
			}
			catch(Exception ex)
			{
				Console.WriteLine(ex.Message);
				throw ex;
			}
			return this._client;
		}
	}
}

⌨️ 快捷键说明

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