Ejemplo n.º 1
0
 /// <summary>
 /// 是否此实验已经预约过。
 /// </summary>
 /// <param name="student"></param>
 /// <param name="package"></param>
 /// <returns></returns>
 protected bool IsBooked(StudentInfo student, CoursePackage package)
 {
     PackageBookInfo info = LabDB.PackageBookInfo.FirstOrDefault(d => d.StudentInfo == student && d.PackageArrange.CoursePackage == package);
     if (info != null)
         return true;
     else return false;
 }
Ejemplo n.º 2
0
		private void detach_CoursePackage(CoursePackage entity)
		{
			this.SendPropertyChanging();
			entity.TeacherInfo = null;
		}
Ejemplo n.º 3
0
 partial void DeleteCoursePackage(CoursePackage instance);
Ejemplo n.º 4
0
 partial void UpdateCoursePackage(CoursePackage instance);
Ejemplo n.º 5
0
 partial void InsertCoursePackage(CoursePackage instance);
Ejemplo n.º 6
0
		private void attach_CoursePackage(CoursePackage entity)
		{
			this.SendPropertyChanging();
			entity.ExperimentInfo = this;
		}