private static int WeekOfYear(DateTime curDay, DateTime startTime, DateTime endTime)
{
int firstdayofweek = Convert.ToInt32(startTime.DayOfWeek);
var startDate = DateTime.Parse(Common.CalculateFirstDateOfWeek(startTime).ToString("yyyy-MM-dd"));
int k = Convert.ToInt32(startTime.DayOfWeek);//得到开始时间的第一天是周几
int days = curDay.Subtract(startTime).Days;
//int days = curDay.DayOfYear;
int daysOutOneWeek = days - (14 - firstdayofweek);
if (daysOutOneWeek <= 0)
{
return 1;
}
else
{
int weeks = daysOutOneWeek / 14;
if (daysOutOneWeek % 14 != 0)
weeks++;
return weeks + 1;
}
public class TimeParameter
{
public string StartDate { get; set; }
public string EndDate { get; set; }
/// <summary>
/// 班级编号
/// </summary>
public string ClassNo { get; set; }
/// <summary>
/// 教师编号
/// </summary>
public string EmpNo { get; set; }
}
public class TimeTableData
{
public string AcademicYearNo { get; set; }
public string Semester { get; set; }
public string StartDate { get; set; }
public string EndDate { get; set; }
public List<ClassDataList> ClassDataList { get; set; }
}
public class ClassDataList
{
public string ClassNo { get; set; }
public string ClassName { get; set; }
public string LessonSortNo { get; set; }
public List<TwoDevelopment.EducationalAdministration.TimeTable> TimeTableList { get; set; }
}
}
}
public class TimeParameter
{
public string StartDate { get; set; }
public string EndDate { get; set; }
/// <summary>
/// 班级编号
/// </summary>
public string ClassNo { get; set; }
/// <summary>
/// 教师编号
/// </summary>
public string EmpNo { get; set; }
public string Description { get; set; }
public string Account { get; set; }
}
public class TimeTableData
{
public string AcademicYearNo { get; set; }
public string Semester { get; set; }
public string StartDate { get; set; }
public string EndDate { get; set; }
public List<ClassDataList> ClassDataList { get; set; }
}
public class ClassDataList
{
public string ClassNo { get; set; }
public string ClassName { get; set; }
public string LessonSortNo { get; set; }
public List<Learun.Application.TwoDevelopment.EducationalAdministration.TimeTable> TimeTableList { get; set; }
}
+ 18- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ArrangeLessonTerm/ArrangeLessonTermBLL.cs파일 보기
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ArrangeLessonTerm/ArrangeLessonTermIBLL.cs파일 보기
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ArrangeLessonTerm/ArrangeLessonTermService.cs파일 보기
@@ -2063,6 +2131,8 @@ group by AcademicYearNo,Semester,DeptNo,MajorNo,LessonNo,TeachClassNo,EmpNo,Les
{
public DateTime LessonDate { get; set; }
public string EnName { get; set; }
public string ALTId { get; set; }
public string AcademicYear { get; set; }
public string LessonNo { get; set; }
public string LessonName { get; set; }
+ 18- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SchoolCalendar/SchoolCalendarBLL.cs파일 보기
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SchoolCalendar/SchoolCalendarIBLL.cs파일 보기
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SchoolCalendar/SchoolCalendarService.cs파일 보기
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeaveBLL.cs파일 보기
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeaveIBLL.cs파일 보기
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeaveService.cs파일 보기