예제 #1
0
 /// <summary>
 /// 此课堂能否预约。
 /// </summary>
 /// <param name="arrange"></param>
 /// <param name="student"></param>
 /// <returns></returns>
 protected bool CanBeBooked(PackageArrange arrange, StudentInfo student)
 {
     if (student == null || arrange == null || arrange.Capacity <= arrange.PackageBookInfo.Count || IsBooked(student, arrange.CoursePackage))
         return false;
     else return true;
 }
예제 #2
0
 partial void DeletePackageArrange(PackageArrange instance);
예제 #3
0
 partial void InsertPackageArrange(PackageArrange instance);
예제 #4
0
 partial void UpdatePackageArrange(PackageArrange instance);
예제 #5
0
		private void detach_PackageArrange(PackageArrange entity)
		{
			this.SendPropertyChanging();
			entity.CoursePackage = null;
		}