|
|
|
|
@ -19,6 +19,7 @@ import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter_datetime_picker_plus/flutter_datetime_picker_plus.dart';
|
|
|
|
|
|
|
|
|
|
bool isAppArabic = false;
|
|
|
|
|
|
|
|
|
|
class ProjectViewModel extends BaseViewModel {
|
|
|
|
|
GAnalytics get analytics => locator<GAnalytics>();
|
|
|
|
|
|
|
|
|
|
@ -38,6 +39,7 @@ class ProjectViewModel extends BaseViewModel {
|
|
|
|
|
dynamic searchvalue;
|
|
|
|
|
bool isLogin = false;
|
|
|
|
|
bool _isAllAppointmentsLoaded = false;
|
|
|
|
|
|
|
|
|
|
bool get isAllAppointmentsLoaded => _isAllAppointmentsLoaded;
|
|
|
|
|
bool isPatientAdmitted = false;
|
|
|
|
|
bool patientHasAdmissionRequest = false;
|
|
|
|
|
@ -45,15 +47,17 @@ class ProjectViewModel extends BaseViewModel {
|
|
|
|
|
GetAdmissionInfoResponseModel getAdmissionInfoResponseModel = GetAdmissionInfoResponseModel();
|
|
|
|
|
GetAdmissionRequestInfoResponseModel getAdmissionRequestInfoResponseModel = GetAdmissionRequestInfoResponseModel();
|
|
|
|
|
|
|
|
|
|
bool isIndoorNavigationEnabled = false;
|
|
|
|
|
|
|
|
|
|
void setIsAllAppointmentsLoaded(bool value) {
|
|
|
|
|
_isAllAppointmentsLoaded = value;
|
|
|
|
|
notifyListeners();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RegisterInfoResponse _registerInfo = RegisterInfoResponse();
|
|
|
|
|
|
|
|
|
|
RegisterInfoResponse get registerInfo => _registerInfo;
|
|
|
|
|
|
|
|
|
|
dynamic get searchValue => searchvalue;
|
|
|
|
|
|
|
|
|
|
Locale get appLocal => _appLocale;
|
|
|
|
|
@ -70,7 +74,9 @@ class ProjectViewModel extends BaseViewModel {
|
|
|
|
|
List<ProjectDetailListModel> _projectDetailListModel = [];
|
|
|
|
|
|
|
|
|
|
List<PrivilegeModel> get privileges => isLoginChild ? privilegeChildUser : privilegeChildUser;
|
|
|
|
|
|
|
|
|
|
List<VidaPlusProjectListModel> get vidaPlusProjectList => _vidaPlusProjectListModel;
|
|
|
|
|
|
|
|
|
|
List<HMCProjectListModel> get hMCProjectListModel => _hMCProjectListModel;
|
|
|
|
|
|
|
|
|
|
List<ProjectDetailListModel> get projectDetailListModel => _projectDetailListModel;
|
|
|
|
|
@ -137,6 +143,11 @@ class ProjectViewModel extends BaseViewModel {
|
|
|
|
|
notifyListeners();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setIsIndoorNavigationEnabled(bool isEnabled) {
|
|
|
|
|
this.isIndoorNavigationEnabled = isEnabled;
|
|
|
|
|
notifyListeners();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setPatientHasAdmissionRequest(bool hasAdmissionRequest) {
|
|
|
|
|
this.patientHasAdmissionRequest = hasAdmissionRequest;
|
|
|
|
|
notifyListeners();
|
|
|
|
|
@ -200,8 +211,6 @@ class ProjectViewModel extends BaseViewModel {
|
|
|
|
|
notifyListeners();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool havePrivilege(int id) {
|
|
|
|
|
bool isHavePrivilege = false;
|
|
|
|
|
try {
|
|
|
|
|
@ -222,7 +231,7 @@ class ProjectViewModel extends BaseViewModel {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void dispose() {
|
|
|
|
|
if (subscription != null) subscription.cancel();
|
|
|
|
|
if (subscription != null) subscription.cancel();
|
|
|
|
|
super.dispose();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|