示例#1
0
 /// <summary>
 /// 保存一条房源需求(求租和求购)
 /// </summary>
 /// <param name="model"></param>
 public void SaveHouseDemand(HouseDemandModel model)
 {
     DAL.HouseDemandDAL dal = new DAL.HouseDemandDAL();
     model.CreateTime = DateTime.Now;
     if (model.HouseDemandId == "")
     {
         model.HouseDemandId = TimeString.GetNow_ff();
         dal.Add(model);
     }
     else
     {
         dal.Update(model);
     }
 }
示例#2
0
 /// <summary>
 /// 获得房源信息的列表
 /// </summary>
 /// <param name="s"></param>
 /// <param name="c"></param>
 /// <returns></returns>
 public DataSet GetHouseDemandPageList(string s, int c)
 {
     DAL.HouseDemandDAL dal = new DAL.HouseDemandDAL();
     return(dal.GetPageList(s, c, 20));
 }
示例#3
0
 /// <summary>
 /// 根据主键ID取得房源需求
 /// </summary>
 /// <param name="HouseDemandId"></param>
 /// <returns></returns>
 public DataSet GetHouseDemandInfoById(string HouseDemandId)
 {
     DAL.HouseDemandDAL dal = new DAL.HouseDemandDAL();
     return(dal.GetHouseDemandInfoById(HouseDemandId));
 }