index.dart 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. import 'package:get/get.dart';
  2. import 'package:vitalapp/managers/account.dart';
  3. import 'package:vitalapp/managers/ai_manager.dart';
  4. import 'package:vitalapp/managers/cachedRecord.dart';
  5. import 'package:vitalapp/managers/contract.dart';
  6. import 'package:vitalapp/managers/contract_template.dart';
  7. import 'package:vitalapp/managers/data_sync.dart';
  8. import 'package:vitalapp/managers/device.dart';
  9. import 'package:vitalapp/managers/diagnosis.dart';
  10. import 'package:vitalapp/managers/dictionary.dart';
  11. import 'package:vitalapp/managers/doctor.dart';
  12. import 'package:vitalapp/managers/entry_manager.dart';
  13. import 'package:vitalapp/managers/exam.dart';
  14. import 'package:vitalapp/managers/follow_up.dart';
  15. import 'package:vitalapp/managers/excel_data_manager.dart';
  16. import 'package:vitalapp/managers/health_check_record.dart';
  17. import 'package:vitalapp/managers/interfaces/account.dart';
  18. import 'package:vitalapp/managers/interfaces/ai_manager.dart';
  19. import 'package:vitalapp/managers/interfaces/cachedRecord.dart';
  20. import 'package:vitalapp/managers/interfaces/contract.dart';
  21. import 'package:vitalapp/managers/interfaces/data_convert.dart';
  22. import 'package:vitalapp/managers/interfaces/data_sync.dart';
  23. import 'package:vitalapp/managers/interfaces/device.dart';
  24. import 'package:vitalapp/managers/interfaces/diagnosis.dart';
  25. import 'package:vitalapp/managers/interfaces/dictionary.dart';
  26. import 'package:vitalapp/managers/interfaces/doctor.dart';
  27. import 'package:vitalapp/managers/interfaces/entry.dart';
  28. import 'package:vitalapp/managers/interfaces/exam.dart';
  29. import 'package:vitalapp/managers/interfaces/follow_up.dart';
  30. import 'package:vitalapp/managers/interfaces/health_check_record.dart';
  31. import 'package:vitalapp/managers/interfaces/label.dart';
  32. import 'package:vitalapp/managers/interfaces/organization.dart';
  33. import 'package:vitalapp/managers/interfaces/patient.dart';
  34. import 'package:vitalapp/managers/interfaces/permission.dart';
  35. import 'package:vitalapp/managers/interfaces/prescription.dart';
  36. import 'package:vitalapp/managers/interfaces/registration.dart';
  37. import 'package:vitalapp/managers/interfaces/service_pack.dart';
  38. import 'package:vitalapp/managers/interfaces/system_setting.dart';
  39. import 'package:vitalapp/managers/interfaces/template.dart';
  40. import 'package:vitalapp/managers/interfaces/upgrade.dart';
  41. import 'package:vitalapp/managers/label.dart';
  42. import 'package:vitalapp/managers/organization.dart';
  43. import 'package:vitalapp/managers/patient.dart';
  44. import 'package:vitalapp/managers/permission.dart';
  45. import 'package:vitalapp/managers/prescription.dart';
  46. import 'package:vitalapp/managers/registration.dart';
  47. import 'package:vitalapp/managers/interfaces/remedical.dart';
  48. import 'package:vitalapp/managers/remedical_Manager.dart';
  49. import 'package:vitalapp/managers/service_pack.dart';
  50. import 'package:vitalapp/managers/system_setting.dart';
  51. import 'package:vitalapp/managers/template.dart';
  52. import 'package:vitalapp/managers/upgrade.dart';
  53. import 'application.dart';
  54. import 'appointment.dart';
  55. import 'cache.dart';
  56. import 'data_convert.dart';
  57. import 'interfaces/application.dart';
  58. import 'interfaces/appointment.dart';
  59. import 'interfaces/base.dart';
  60. import 'interfaces/cache.dart';
  61. import 'interfaces/contract_template.dart';
  62. import 'interfaces/excelData.dart';
  63. import 'interfaces/language.dart';
  64. import 'interfaces/record_data_cache.dart';
  65. import 'interfaces/report.dart';
  66. import 'interfaces/report_template.dart';
  67. import 'interfaces/share.dart';
  68. import 'language_config_manager.dart';
  69. import 'record_data_cache_manager.dart';
  70. import 'report_manager.dart';
  71. import 'report_template_manager.dart';
  72. import 'share_manager.dart';
  73. abstract class ManagerCenter {
  74. static void load() {
  75. Get.put<IApplicationManager>(ApplicationManager());
  76. Get.put<ISystemSettingManager>(SystemSettingManager());
  77. Get.put<IDeviceManager>(DeviceManager());
  78. Get.put<IDataConvertManager>(DataConvertManager());
  79. Get.put<IAccountManager>(AccountManager());
  80. Get.put<ILabelManager>(LabelManager());
  81. Get.put<IPatientManager>(PatientManager());
  82. Get.put<IRecordDataCacheManager>(RecordDataCacheManager());
  83. Get.put<IDoctorManager>(DoctorManager());
  84. Get.put<IServicePackManager>(ServicePackManager());
  85. Get.put<IContractTemplateManager>(ContractTemplateManager());
  86. Get.put<IContractManager>(ContractManager());
  87. Get.put<IExcelDataManager>(ExcelDataManager());
  88. Get.put<IExamManager>(ExamManager());
  89. Get.put<IFollowUpManager>(FollowUpManager());
  90. Get.put<ITemplateManager>(TemplateManager());
  91. Get.put<IHealthCehckRecordManager>(HealthCheckRecordManager());
  92. Get.put<IPermissionManager>(PermissionManager());
  93. Get.put<ICachedRecordManager>(CachedRecordManager());
  94. Get.put<IDiagnosisManager>(DiagnosisManager());
  95. Get.put<IDictionaryManager>(DictionaryManager());
  96. Get.put<ICacheManager>(CacheManager());
  97. Get.put<IOrganizationManager>(OrganizationManager());
  98. Get.put<IDataSyncManager>(DataSyncManager());
  99. Get.put<IUpgradeManager>(UpgradeManager());
  100. Get.put<IAIManager>(AIManager());
  101. Get.put<IEntryManager>(EntryManager());
  102. Get.put<ILanguageConfigManager>(LanguageConfigManager());
  103. Get.put<IRemedicalManager>(RemedicalManager());
  104. Get.put<IReportManager>(ReportManager());
  105. Get.put<IReportTemplateManager>(ReportTemplateManager());
  106. Get.put<IShareManager>(ShareManager());
  107. Get.put<IAppointmentManager>(AppointmentManager());
  108. Get.put<IRegistrationManager>(RegistrationManager());
  109. Get.put<IPrescriptionManager>(PrescriptionManager());
  110. }
  111. static T find<T extends IManager>() {
  112. return Get.find<T>();
  113. }
  114. }