home_page.dart 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. import 'package:fis_i18n/types.dart';
  2. /// 首页模块
  3. class HomePageModule extends ModuleBase {
  4. HomePageModule._({
  5. required this.homePage,
  6. required this.consultation,
  7. required this.organizationInfo,
  8. required this.reportTemplate,
  9. required this.organizationDevices,
  10. required this.organizationEntries,
  11. required this.signOut,
  12. required this.loginOutConfirm,
  13. required this.loginingOut,
  14. required this.ultrasoundComments,
  15. required this.diagnostics,
  16. required this.course,
  17. required this.message,
  18. required this.my,
  19. required this.notYet,
  20. required this.messageListener,
  21. required this.reportOpenVocPage,
  22. required this.enableMock,
  23. required this.swtichLanguageConfirm,
  24. required this.remoteDiagnosis,
  25. required this.dongleLoginError,
  26. });
  27. static const ModuleName = "homePage";
  28. factory HomePageModule(Map<String, dynamic> map) {
  29. return HomePageModule._(
  30. homePage: map.pick("homePage"),
  31. consultation: map.pick("consultation"),
  32. organizationInfo: map.pick("organizationInfo"),
  33. reportTemplate: map.pick("reportTemplate"),
  34. organizationDevices: map.pick("organizationDevices"),
  35. organizationEntries: map.pick("organizationEntries"),
  36. signOut: map.pick("signOut"),
  37. loginOutConfirm: map.pick("loginOutConfirm"),
  38. loginingOut: map.pick("loginingOut"),
  39. ultrasoundComments: map.pick("ultrasoundComments"),
  40. diagnostics: map.pick("diagnostics"),
  41. course: map.pick("course"),
  42. message: map.pick("message"),
  43. my: map.pick("my"),
  44. notYet: map.pick("notYet"),
  45. messageListener: map.pick("messageListener"),
  46. reportOpenVocPage: map.pick("reportOpenVocPage"),
  47. enableMock: map.pick("enableMock"),
  48. swtichLanguageConfirm: map.pick("swtichLanguageConfirm"),
  49. remoteDiagnosis: map.pick("remoteDiagnosis"),
  50. dongleLoginError: map.pick("dongleLoginError"),
  51. );
  52. }
  53. /// 首页
  54. final FTrStr homePage;
  55. /// 实时会诊
  56. final FTrStr consultation;
  57. /// 医院信息
  58. final FTrStr organizationInfo;
  59. /// 报告模板
  60. final FTrStr reportTemplate;
  61. /// 医院设备
  62. final FTrStr organizationDevices;
  63. /// 医院词条
  64. final FTrStr organizationEntries;
  65. /// 退出登录
  66. final FTrStr signOut;
  67. /// 确定退出登录?
  68. final FTrStr loginOutConfirm;
  69. /// 正在登出...
  70. final FTrStr loginingOut;
  71. /// 超声注释
  72. final FTrStr ultrasoundComments;
  73. /// 诊断
  74. final FTrStr diagnostics;
  75. /// 学园
  76. final FTrStr course;
  77. /// 消息
  78. final FTrStr message;
  79. /// 我的
  80. final FTrStr my;
  81. /// 暂无
  82. final FTrStr notYet;
  83. /// 消息监听
  84. final FTrStr messageListener;
  85. /// 报告打开词条页面
  86. final FTrStr reportOpenVocPage;
  87. /// 启用Mock
  88. final FTrStr enableMock;
  89. /// 切换当前语言需要重启客户端,是否切换?
  90. final FTrStr swtichLanguageConfirm;
  91. /// 分时诊断
  92. final FTrStr remoteDiagnosis;
  93. /// Dongle登录失败,请检查是否插入Dongle
  94. final FTrStr dongleLoginError;
  95. @override
  96. getProp(String propName) {
  97. // TODO: implement getProp
  98. throw UnimplementedError();
  99. }
  100. }