Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Create/Update/Delete Scheduling Master Schedule (SMS) (#43)
* Basic structure for Add-AeriesSchedulingSection * Basic structure for Edit-AeriesSchedulingSection * Implement Remove-AeriesSchedulingSection * Implement DELETE SchedulingSection * Wrote out parameters for function, next is implementation * Simplify by doing our own check for UsingSectionStaff * Create class for SectionStaffMembers * Add ScriptsToProcess to register the Class as valid * Finalize Add-AeriesSchedulingSection * Finalize Edit-AeriesSchedulingSection
- Loading branch information
Showing
5 changed files
with
1,705 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
class SectionStaffMember { | ||
[ValidateRange(1, [int]::MaxValue)] | ||
[int] | ||
$StaffID | ||
|
||
[ValidateLength(1, 1)] | ||
[bool] | ||
$IsPrimaryTeacher | ||
|
||
[ValidateLength(1, 3)] | ||
[string] | ||
$StaffRoleCode | ||
|
||
[ValidateLength(1, 3)] | ||
[string] | ||
$TeacherPositionCode | ||
|
||
[ValidateSet("Y","N")] | ||
[string] | ||
$AttendancePermission = "N" | ||
|
||
[ValidateSet("Y","N")] | ||
[string] | ||
$GradebookPermissionCode = "N" | ||
|
||
[ValidateSet("Y","N")] | ||
[string] | ||
$GradeReportingAccess = "N" | ||
|
||
[ValidateSet("Y","N")] | ||
[string] | ||
$StudentAccess = "N" | ||
|
||
[ValidateSet("Y","N")] | ||
[string] | ||
$IncludeInStateReporting = "N" | ||
|
||
[System.Nullable[datetime]] | ||
$StartDate = $null | ||
|
||
[System.Nullable[datetime]] | ||
$EndDate = $null | ||
|
||
[ValidateLength(1, 1)] | ||
[string] | ||
$InactiveStatusCode | ||
|
||
SectionStaffMember([int]$StaffID) { | ||
<# With a constructor defined, this means it can't be made blank. We want to require at least Staff ID #> | ||
$this.StaffID = $StaffID | ||
} | ||
} |
Oops, something went wrong.