You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
801 B
Dart
25 lines
801 B
Dart
import 'package:doctor_app_flutter/config/config.dart';
|
|
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
|
// import 'package:doctor_app_flutter/models/dashboard/dashboard_model.dart';
|
|
|
|
class SickLeaveService extends BaseService {
|
|
Map get sickLeavestatisitics => _statistics;
|
|
Map _statistics = {};
|
|
Future getStatistics() async {
|
|
hasError = false;
|
|
await baseAppClient.post(
|
|
GET_SICKLEAVE_STATISTIC,
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
print(response);
|
|
_statistics = {};
|
|
_statistics = response['SickLeaveStatistics'];
|
|
},
|
|
onFailure: (String error, int statusCode) {
|
|
hasError = true;
|
|
super.error = error;
|
|
},
|
|
body: {"PatientMRN": 3120737, "AppointmentNo": 2016055008},
|
|
);
|
|
}
|
|
}
|