This file contains hidden or 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
@Component({ | |
selector: 'app-student-list', | |
templateUrl: './student-list.component.html', | |
styleUrls: ['./student-list.component.css'], | |
animations: [appModuleAnimation()] | |
}) | |
export class StudentListComponent extends PagedListingComponentBase<StudentListDto> { | |
students: StudentListDto[] | undefined; |
This file contains hidden or 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
// student list Dto starts here | |
export interface IStudentListDto { | |
firstName: string | undefined; | |
lastName: string | undefined; | |
middleName: string | undefined; | |
fatherName: string | undefined; | |
dateOfBirth: string | undefined; | |
guardianName: string | undefined; | |
gender: string | undefined; |
This file contains hidden or 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
GetSchoolStudents(schoolName: string): Observable<ListResultDtoOfStudentDto> { | |
let url_ = this.baseUrl + "/api/services/app/Student/GetSchoolStudents?"; | |
if (schoolName === undefined || schoolName === null) | |
throw new Error("The parameter 'schoolName' must be defined and cannot be null."); | |
else | |
url_ += "schoolName=" + encodeURIComponent("" + schoolName); | |
url_ = url_.replace(/[?&]$/, ""); | |
let options_: any = { | |
observe: "response", |
This file contains hidden or 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
<app-loading-spinner *ngIf="showSpinner"></app-loading-spinner> | |
<div *ngIf="!showSpinner" class="row clearfix" [@routerTransition]> | |
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> | |
<div class="card main-content"> | |
<div class="header"> | |
<h4 class="modal-title"> | |
<span>Students</span> | |
</h4> | |
<ul class="header-dropdown m-r--5"> | |
<i class="fa fa-spin fa-spinner" *ngIf="isTableLoading"></i> |