📄 homebs.cs
字号:
using System;
using HouseBE;
using HouseDA;
using System.Data;
using System.Collections;
namespace HouseBS
{
/// <summary>
/// HomeBS 的摘要说明。
/// </summary>
public class HomeBS:CommonBS
{
private DataSet _ds;
private HouseBE.Home _home;
private HomeDA _homes;
private ArrayList list;
public Home home
{
set
{
this._home=value;
}
get
{
return this._home;
}
}
public HomeBS()
{
//
// TODO: 在此处添加构造函数逻辑
//
this._ds=new DataSet();
this._homes=new HomeDA();
}
#region CommonBS 成员
public void insert()
{
// TODO: 添加 HomeBS.insert 实现
try
{
this._homes.home=this._home;
this._homes.insert();
}
catch(Exception ex)
{
throw ex;
}
}
public void update()
{
// TODO: 添加 HomeBS.update 实现
try
{
this._homes.home=this._home;
this._homes.update();
}
catch(Exception ex)
{
throw ex;
}
}
public void delete()
{
// TODO: 添加 HomeBS.delete 实现
try
{
this._homes.home=this._home;
this._homes.delete();
}
catch(Exception ex)
{
throw ex;
}
}
public DataSet select()
{
// TODO: 添加 HomeBS.select 实现
try
{
this._ds=this._homes.select();
}
catch(Exception ex)
{
throw ex;
}
return this._ds;
}
#endregion
public DataSet selectByTag(string tag)
{
this._ds=this._homes.selectByTag(tag);
return this._ds;
}
public void NotDesine()
{
this._homes.home=this._home;
try
{
this._homes.NotDesine();
}
catch(Exception ex)
{
throw ex;
}
}
//预定的方法
public void Sale(string EmployeeName,string HouseNO,string ClientName)
{
try
{
this._homes.Sale(EmployeeName,HouseNO,ClientName);
}
catch(Exception ex)
{
throw ex;
}
}
//销售的方法
public void SaleHouse(string EmployeeName,string ClientName,string BargainNO,string SellFashion,string SellDate,string TotalMoney,string HomeNO)
{
try
{
this._homes.SaleHouse(EmployeeName,ClientName,BargainNO,SellFashion,SellDate,TotalMoney,HomeNO);
}
catch(Exception ex)
{
throw ex;
}
}
public DataSet selectID(string house)
{
this._ds=this._homes.selectID(house);
return this._ds;
}
//查处所有的信息
public ArrayList GetMessage()
{
this.list=new ArrayList();
try
{
this.list=this._homes.getMes();
}
catch(Exception ex)
{
Console.WriteLine(ex.Message);
throw ex;
}
return this.list;
}
//根据房间查询状态
public DataSet SelectSateByTag(string house)
{
this._ds=new DataSet();
this._ds=this._homes.SelectSateByTag(house);
return this._ds;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -