update from old git

This commit is contained in:
2025-09-04 18:30:54 +08:00
parent af2c152ef6
commit 61502cb3bd
46 changed files with 6420 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Model
{
public partial class Room
{
public bool IsAvailable()
{
//判断当前房间是否可用,需要判断父区域是否可用,如果父区域不可用,则所有子区域都不可用
// 有值且是 false表示不可用
if (this.IsActive.HasValue && this.IsActive.Value == false)
return false;
return this.Region.IsAvailable();
//这里增加根据房间排程判定在指定时间段内房间是否可用
}
}
}
/// <summary>
/// Room 的摘要描述
/// </summary>