|
|
@@ -1206,7 +1206,48 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
public async Task<bool> AsyncModifyArrangeLessonDataByConditionNew(ArrangeLessonTermEntity entity) |
|
|
|
{ |
|
|
|
bool result = false; |
|
|
|
var db = BaseRepository("CollegeMIS"); |
|
|
|
try |
|
|
|
{ |
|
|
|
if (entity.SyncType == "1") |
|
|
|
{ |
|
|
|
|
|
|
|
db.BeginTrans(); |
|
|
|
db.ExecuteBySql( |
|
|
|
$"delete from ArrangeLessonTerm where F_SchoolId='{entity.F_SchoolId}' and AcademicYearNo='{entity.AcademicYearNo}' and Semester='{entity.Semester}' "); |
|
|
|
db.Commit(); |
|
|
|
result = true; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
db.BeginTrans(); |
|
|
|
db.ExecuteBySql( |
|
|
|
$"delete from TeachClass where F_SchoolId='{entity.F_SchoolId}' and AcademicYearNo='{entity.AcademicYearNo}' and Semester='{entity.Semester}' "); |
|
|
|
db.ExecuteBySql( |
|
|
|
$"delete from OpenLessonPlan where F_SchoolId='{entity.F_SchoolId}' and AcademicYearNo='{entity.AcademicYearNo}' and Semester='{entity.Semester}' "); |
|
|
|
db.ExecuteBySql( |
|
|
|
$"delete from StuSelectLessonList where F_SchoolId='{entity.F_SchoolId}' and AcademicYearNo='{entity.AcademicYearNo}' and Semester='{entity.Semester}' "); |
|
|
|
db.Commit(); |
|
|
|
result = true; |
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
db.Rollback(); |
|
|
|
if (ex is ExceptionEx) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
throw ExceptionEx.ThrowServiceException(ex); |
|
|
|
} |
|
|
|
} |
|
|
|
return result; |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 课程表 |
|
|
|
/// </summary> |
|
|
@@ -3057,7 +3098,9 @@ group by AcademicYearNo,Semester,DeptNo,MajorNo,LessonNo,TeachClassNo,EmpNo,Les |
|
|
|
/// </summary> |
|
|
|
public string ARemark { get; set; } |
|
|
|
|
|
|
|
public string LessonWeek { get { return LessonTime.Substring(0, 1); } } |
|
|
|
|
|
|
|
public string LessonNum { get { return LessonTime.Substring(1); } } |
|
|
|
} |
|
|
|
|
|
|
|
public class Common |
|
|
|