-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2eccbe
commit 6fc58b7
Showing
20 changed files
with
507 additions
and
88 deletions.
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,7 @@ | ||
namespace wsmcbl.front.Controllers; | ||
|
||
public class ApiResponse | ||
{ | ||
public bool Success { get; set; } | ||
public string Message { get; set; } | ||
} |
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 |
---|---|---|
|
@@ -125,4 +125,7 @@ public void setStudent(StudentEntity studentEntity) | |
{ | ||
cashier.setStudent(studentEntity); | ||
} | ||
|
||
|
||
|
||
} |
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
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,2 @@ | ||
@inherits wsmcbl.front.Secretary.SchoolYears.NewSchoolYear_razor; | ||
|
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 |
---|---|---|
@@ -1,27 +1,18 @@ | ||
using System.Runtime.InteropServices; | ||
using Microsoft.AspNetCore.Components; | ||
using wsmcbl.front.Controllers; | ||
using wsmcbl.front.dto.input; | ||
using wsmcbl.front.model.Secretary.Input; | ||
|
||
namespace wsmcbl.front.Secretary.SchoolYears; | ||
|
||
public class ListSchoolYears_razor : ComponentBase | ||
{ | ||
protected List<SchoolYearEntity>? SchoolYear; | ||
|
||
protected override async void OnInitialized() | ||
{ | ||
SchoolYear = await GetSchoolYear(); | ||
} | ||
|
||
private Task<List<SchoolYearEntity>> GetSchoolYear() | ||
protected List<SchoolYearDto>? SchoolYear; | ||
[Inject] protected SecretaryController controller { get; set; } = null!; | ||
|
||
protected override async Task OnParametersSetAsync() | ||
{ | ||
var years = new SchoolYearEntity() | ||
{ | ||
SchoolYearId = "001", | ||
Label = "2023", | ||
StartDate = new DateOnly(2023, 1, 1), | ||
DeadLine = new DateOnly(2023,12,31), | ||
IsActive = false, | ||
}; | ||
return Task.FromResult(new List<SchoolYearEntity> { years }); | ||
SchoolYear = await controller.GetSchoolYears(); | ||
} | ||
} |
Oops, something went wrong.