calendarbs.cs

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

CS
101
字号

using System;
using HouseBE;
using HouseDA;
using System.Data;

namespace HouseBS
{
	/// <summary>
	/// CalendarBS 的摘要说明。
	/// </summary>
	public class CalendarBS:CommonBS
	{
		private DataSet _ds;
		private HouseBE.Calendar _calendar;
		private HouseDA.CalendarDA _calendars;
		public HouseBE.Calendar calendar
		{
			set
			{
			this._calendar=value;
			}
			get
			{
			return this._calendar;
			}
		}
		public CalendarBS()
		{
			//
			// TODO: 在此处添加构造函数逻辑
			//
			this._calendars=new CalendarDA();
			this._ds=new DataSet();
		}
		#region CommonBS 成员

		public void insert()
		{
			// TODO:  添加 CalendarBS.insert 实现
			this._calendars.calendar=this._calendar;
			try
			{
			  this._calendars.insert();
			}
			catch(Exception ex)
			{
			  Console.WriteLine(ex.Message);
			  throw ex;
			}
		}

		public void update()
		{
			// TODO:  添加 CalendarBS.update 实现
			this._calendars.calendar=this._calendar;
			try
			{
			   this._calendars.update();
			}
			catch(Exception ex)
			{
			  Console.WriteLine(ex.Message);
			  throw ex;
			}
		}

		public void delete()
		{
			// TODO:  添加 CalendarBS.delete 实现
			this._calendars.calendar=this._calendar;
			try
			{
				this._calendars.delete();
			}
			catch(Exception ex)
			{
				Console.WriteLine(ex.Message);
				throw ex;
			}
		}

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

		#endregion
	}
}

⌨️ 快捷键说明

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