-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from aninarafath6/admin
batch functions :- admin 🔢
- Loading branch information
Showing
24 changed files
with
797 additions
and
489 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
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
39 changes: 39 additions & 0 deletions
39
arnhss-app/lib/features/users/admin/admission/model/batch_model.dart
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,39 @@ | ||
// ignore_for_file: non_constant_identifier_names | ||
|
||
import 'package:cloud_firestore/cloud_firestore.dart'; | ||
|
||
class Batch { | ||
final String id; | ||
late final String code; | ||
final String name; | ||
final DateTime startDate; | ||
final DateTime endDate; | ||
|
||
Batch({ | ||
required this.name, | ||
required this.code, | ||
required this.id, | ||
required this.endDate, | ||
required this.startDate, | ||
}); | ||
|
||
Map<String, dynamic> toMap() => { | ||
"code": code.toUpperCase(), | ||
"name": name, | ||
"start_date": Timestamp.fromDate(startDate), | ||
"end_date": Timestamp.fromDate(endDate), | ||
}; | ||
|
||
factory Batch.fromMap(Map<String, dynamic> batchMap) { | ||
Timestamp _startDate = batchMap["start_date"] as Timestamp; | ||
Timestamp _endDate = batchMap["end_date"] as Timestamp; | ||
|
||
return Batch( | ||
id: batchMap["id"], | ||
name: batchMap["name"].toString().toUpperCase(), | ||
code: batchMap["code"].toString(), | ||
startDate: _startDate.toDate(), | ||
endDate: _endDate.toDate(), | ||
); | ||
} | ||
} |
30 changes: 0 additions & 30 deletions
30
arnhss-app/lib/features/users/admin/admission/model/course_model 2.dart
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
arnhss-app/lib/features/users/admin/admission/repo/admission_service 2.dart
This file was deleted.
Oops, something went wrong.
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
115 changes: 0 additions & 115 deletions
115
arnhss-app/lib/features/users/admin/admission/view_model/admission_view_model 2.dart
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.