|
@@ -442,6 +442,7 @@ namespace TEAMModelOS.Controllers.Common
|
|
|
}
|
|
|
jointEventSchedule.name = schedule.name;
|
|
|
jointEventSchedule.type = schedule.type;
|
|
|
+ jointEventSchedule.joinType = (schedule.type.Equals("join")) ? schedule.joinType : null;
|
|
|
jointEventSchedule.examType = (schedule.type.Equals("join")) ? null : schedule.examType;
|
|
|
jointEventSchedule.examOverwrite = schedule.examOverwrite;
|
|
|
long startTimeOld = jointEventSchedule.startTime;
|
|
@@ -696,6 +697,7 @@ namespace TEAMModelOS.Controllers.Common
|
|
|
string provinceName = (request.TryGetProperty("provinceName", out JsonElement _provinceName)) ? _provinceName.ToString() : string.Empty;
|
|
|
string cityId = (request.TryGetProperty("cityId", out JsonElement _cityId)) ? _cityId.ToString() : string.Empty;
|
|
|
string cityName = (request.TryGetProperty("cityName", out JsonElement _cityName)) ? _cityName.ToString() : string.Empty;
|
|
|
+ string joinType = (request.TryGetProperty("joinType", out JsonElement _joinType)) ? _joinType.ToString() : "pre";
|
|
|
string scope = (request.TryGetProperty("scope", out JsonElement _scope)) ? _scope.ToString() : string.Empty;
|
|
|
List<JointEventGroupBase.JointEventGroupCourse> courseLists = (request.TryGetProperty("courseLists", out JsonElement _courseLists)) ? _courseLists.ToObject<List<JointEventGroupBase.JointEventGroupCourse>>() : null;
|
|
|
if (string.IsNullOrWhiteSpace(jointEventId) || string.IsNullOrWhiteSpace(jointGroupId) || string.IsNullOrWhiteSpace(creatorId) || courseLists == null || string.IsNullOrWhiteSpace(scope))
|
|
@@ -747,7 +749,7 @@ namespace TEAMModelOS.Controllers.Common
|
|
|
jointCourse.provinceName = provinceName;
|
|
|
jointCourse.cityId = cityId;
|
|
|
jointCourse.cityName = cityName;
|
|
|
- jointCourse.type = "regular"; //教師報名名單
|
|
|
+ jointCourse.type = (joinType.Equals("pre")) ? "pre" : "regular"; //regular:教師正式報名名單 pre:預報名名單
|
|
|
//courseLists修正:防止course的重複生成
|
|
|
List<JointEventGroupBase.JointEventGroupCourse> courseListsFix = new List<JointEventGroupBase.JointEventGroupCourse>();
|
|
|
foreach (JointEventGroupBase.JointEventGroupCourse courseInfo in courseLists)
|