setting.dart 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. import 'package:fis_i18n/types.dart';
  2. /// 设置模块
  3. class SettingModule extends ModuleBase {
  4. SettingModule._({
  5. required this.switchingLanguage,
  6. required this.FullfillServerUrl,
  7. required this.FullfillServerPort,
  8. required this.serverUrlFormatValidation,
  9. required this.serverPortFormatValidation,
  10. required this.serverUrlExistValidation,
  11. required this.serverUrlNotExistValidation,
  12. required this.serverUrlNotChangedValidation,
  13. required this.SelectOrAddServerUrl,
  14. required this.serverUrl,
  15. required this.serverPort,
  16. required this.serverUrlExample,
  17. required this.serverPortExample,
  18. required this.generalConfiguration,
  19. required this.detectionAssistant,
  20. required this.currency,
  21. required this.startUpAutomatically,
  22. required this.autoPopupLabel,
  23. required this.enableSecondWindow,
  24. required this.language,
  25. required this.networkSettings,
  26. required this.selectServer,
  27. required this.aboutFlyinsono,
  28. required this.productVersion,
  29. required this.runLog,
  30. required this.downloadMobileApp,
  31. required this.exportLog,
  32. required this.checkForUpdates,
  33. required this.feedback,
  34. required this.addServer,
  35. required this.automaticUpdate,
  36. required this.remindMeOfNewVersion,
  37. required this.automaticallyPopupTag,
  38. required this.secondWindowConfigStatement,
  39. required this.electronicSignature,
  40. required this.switchCurrentServerRestartClient,
  41. required this.currentVersion,
  42. required this.lastOneDay,
  43. required this.lastOneWeek,
  44. required this.lastOneMonth,
  45. required this.exportingLogs,
  46. required this.failedExportLog,
  47. required this.currentServerAddressInUse,
  48. required this.personalization,
  49. required this.myAssistant,
  50. required this.assistantPhysician,
  51. required this.chooseAssistant,
  52. required this.chooseAssistantTip,
  53. required this.chooseAssistantPhysician,
  54. required this.chooseAssistantPhysicianTip,
  55. required this.consultationSettings,
  56. required this.confirmDeletion,
  57. required this.deviceError,
  58. required this.deviceNormal,
  59. required this.searchingForDevice,
  60. required this.noAvailableDevice,
  61. required this.micInput,
  62. required this.speakerOutput,
  63. required this.cameraTest,
  64. required this.speakerTest,
  65. required this.micTest,
  66. required this.seeImage,
  67. required this.hearMusic,
  68. required this.seeVolumeBar,
  69. required this.camera,
  70. required this.mic,
  71. required this.speaker,
  72. required this.video,
  73. required this.audio,
  74. required this.detectAllDevices,
  75. required this.upgradeNow,
  76. required this.upgradeLater,
  77. required this.upgrading,
  78. required this.newVersion,
  79. required this.latestVersionTip,
  80. required this.vBoxSetting,
  81. required this.networkConnectionUtility,
  82. required this.configuration,
  83. required this.wiredNetworkConnection,
  84. required this.wirelessNetworkConnection,
  85. required this.refreshDNS,
  86. required this.properties,
  87. required this.connect,
  88. required this.disconnect,
  89. required this.forgetPassword,
  90. required this.enableDHCP,
  91. required this.ipAddress,
  92. required this.subnetMask,
  93. required this.defaultGateway,
  94. required this.preferredDNS,
  95. required this.standbyDNS,
  96. required this.macAddress,
  97. required this.speakerDetection,
  98. required this.cameraDetection,
  99. required this.microphoneDetection,
  100. required this.sonopostDetetion,
  101. required this.cameraTestSuccessTip,
  102. required this.cameraTestErrorTip,
  103. required this.fixCameraTip,
  104. required this.speakerTestSuccessTip,
  105. required this.speakerTestErrorTip,
  106. required this.fixSpeakerTip,
  107. required this.micphoneTestSuccessTip,
  108. required this.micphoneTestErrorTip,
  109. required this.fixMicphoneTip,
  110. required this.termianlTestTip,
  111. required this.skip,
  112. required this.nextTest,
  113. required this.recheck,
  114. required this.ultrasoundImageNotVisible,
  115. required this.ultrasoundImageIsVisible,
  116. required this.nothingInTerminalTip,
  117. required this.refreshDNSFailed,
  118. required this.wirelessNetworkCardNotFound,
  119. required this.confirmDNSRefresh,
  120. required this.connecting,
  121. required this.welcomeToFlyinsono,
  122. required this.welcomeTipOne,
  123. required this.welcomeTipTwo,
  124. required this.ultrasoundStatusNormal,
  125. required this.start,
  126. required this.switching,
  127. required this.switchingSecondWindowSuccess,
  128. required this.speakerVolume,
  129. });
  130. static const ModuleName = "setting";
  131. factory SettingModule(Map<String, dynamic> map) {
  132. return SettingModule._(
  133. switchingLanguage: map.pick("switchingLanguage"),
  134. FullfillServerUrl: map.pick("FullfillServerUrl"),
  135. FullfillServerPort: map.pick("FullfillServerPort"),
  136. serverUrlFormatValidation: map.pick("serverUrlFormatValidation"),
  137. serverPortFormatValidation: map.pick("serverPortFormatValidation"),
  138. serverUrlExistValidation: map.pick("serverUrlExistValidation"),
  139. serverUrlNotExistValidation: map.pick("serverUrlNotExistValidation"),
  140. serverUrlNotChangedValidation: map.pick("serverUrlNotChangedValidation"),
  141. SelectOrAddServerUrl: map.pick("SelectOrAddServerUrl"),
  142. serverUrl: map.pick("serverUrl"),
  143. serverPort: map.pick("serverPort"),
  144. serverUrlExample: map.pick("serverUrlExample"),
  145. serverPortExample: map.pick("serverPortExample"),
  146. generalConfiguration: map.pick("generalConfiguration"),
  147. detectionAssistant: map.pick("detectionAssistant"),
  148. currency: map.pick("currency"),
  149. startUpAutomatically: map.pick("startUpAutomatically"),
  150. autoPopupLabel: map.pick("autoPopupLabel"),
  151. enableSecondWindow: map.pick("enableSecondWindow"),
  152. language: map.pick("language"),
  153. networkSettings: map.pick("networkSettings"),
  154. selectServer: map.pick("selectServer"),
  155. aboutFlyinsono: map.pick("aboutFlyinsono"),
  156. productVersion: map.pick("productVersion"),
  157. runLog: map.pick("runLog"),
  158. downloadMobileApp: map.pick("downloadMobileApp"),
  159. exportLog: map.pick("exportLog"),
  160. checkForUpdates: map.pick("checkForUpdates"),
  161. feedback: map.pick("feedback"),
  162. addServer: map.pick("addServer"),
  163. automaticUpdate: map.pick("automaticUpdate"),
  164. remindMeOfNewVersion: map.pick("remindMeOfNewVersion"),
  165. automaticallyPopupTag: map.pick("automaticallyPopupTag"),
  166. secondWindowConfigStatement: map.pick("secondWindowConfigStatement"),
  167. electronicSignature: map.pick("electronicSignature"),
  168. switchCurrentServerRestartClient:
  169. map.pick("switchCurrentServerRestartClient"),
  170. currentVersion: map.pick("currentVersion"),
  171. lastOneDay: map.pick("lastOneDay"),
  172. lastOneWeek: map.pick("lastOneWeek"),
  173. lastOneMonth: map.pick("lastOneMonth"),
  174. exportingLogs: map.pick("exportingLogs"),
  175. failedExportLog: map.pick("failedExportLog"),
  176. currentServerAddressInUse: map.pick("currentServerAddressInUse"),
  177. personalization: map.pick("personalization"),
  178. myAssistant: map.pick("myAssistant"),
  179. assistantPhysician: map.pick("assistantPhysician"),
  180. chooseAssistant: map.pick("chooseAssistant"),
  181. chooseAssistantTip: map.pick("chooseAssistantTip"),
  182. chooseAssistantPhysician: map.pick("chooseAssistantPhysician"),
  183. chooseAssistantPhysicianTip: map.pick("chooseAssistantPhysicianTip"),
  184. consultationSettings: map.pick("consultationSettings"),
  185. confirmDeletion: map.pick("confirmDeletion"),
  186. deviceError: map.pick("deviceError"),
  187. deviceNormal: map.pick("deviceNormal"),
  188. searchingForDevice: map.pick("searchingForDevice"),
  189. noAvailableDevice: map.pick("noAvailableDevice"),
  190. micInput: map.pick("micInput"),
  191. speakerOutput: map.pick("speakerOutput"),
  192. cameraTest: map.pick("cameraTest"),
  193. speakerTest: map.pick("speakerTest"),
  194. micTest: map.pick("micTest"),
  195. seeImage: map.pick("seeImage"),
  196. hearMusic: map.pick("hearMusic"),
  197. seeVolumeBar: map.pick("seeVolumeBar"),
  198. camera: map.pick("camera"),
  199. mic: map.pick("mic"),
  200. speaker: map.pick("speaker"),
  201. video: map.pick("video"),
  202. audio: map.pick("audio"),
  203. detectAllDevices: map.pick("detectAllDevices"),
  204. upgradeNow: map.pick("upgradeNow"),
  205. upgradeLater: map.pick("upgradeLater"),
  206. upgrading: map.pick("upgrading"),
  207. newVersion: map.pick("newVersion"),
  208. latestVersionTip: map.pick("latestVersionTip"),
  209. vBoxSetting: map.pick("vBoxSetting"),
  210. networkConnectionUtility: map.pick("networkConnectionUtility"),
  211. configuration: map.pick("configuration"),
  212. wiredNetworkConnection: map.pick("wiredNetworkConnection"),
  213. wirelessNetworkConnection: map.pick("wirelessNetworkConnection"),
  214. refreshDNS: map.pick("refreshDNS"),
  215. properties: map.pick("properties"),
  216. connect: map.pick("connect"),
  217. disconnect: map.pick("disconnect"),
  218. forgetPassword: map.pick("forgetPassword"),
  219. enableDHCP: map.pick("enableDHCP"),
  220. ipAddress: map.pick("ipAddress"),
  221. subnetMask: map.pick("subnetMask"),
  222. defaultGateway: map.pick("defaultGateway"),
  223. preferredDNS: map.pick("preferredDNS"),
  224. standbyDNS: map.pick("standbyDNS"),
  225. macAddress: map.pick("macAddress"),
  226. speakerDetection: map.pick("speakerDetection"),
  227. cameraDetection: map.pick("cameraDetection"),
  228. microphoneDetection: map.pick("microphoneDetection"),
  229. sonopostDetetion: map.pick("sonopostDetetion"),
  230. cameraTestSuccessTip: map.pick("cameraTestSuccessTip"),
  231. cameraTestErrorTip: map.pick("cameraTestErrorTip"),
  232. fixCameraTip: map.pick("fixCameraTip"),
  233. speakerTestSuccessTip: map.pick("speakerTestSuccessTip"),
  234. speakerTestErrorTip: map.pick("speakerTestErrorTip"),
  235. fixSpeakerTip: map.pick("fixSpeakerTip"),
  236. micphoneTestSuccessTip: map.pick("micphoneTestSuccessTip"),
  237. micphoneTestErrorTip: map.pick("micphoneTestErrorTip"),
  238. fixMicphoneTip: map.pick("fixMicphoneTip"),
  239. termianlTestTip: map.pick("termianlTestTip"),
  240. skip: map.pick("skip"),
  241. nextTest: map.pick("nextTest"),
  242. recheck: map.pick("recheck"),
  243. ultrasoundImageNotVisible: map.pick("ultrasoundImageNotVisible"),
  244. ultrasoundImageIsVisible: map.pick("ultrasoundImageIsVisible"),
  245. nothingInTerminalTip: map.pick("nothingInTerminalTip"),
  246. refreshDNSFailed: map.pick("refreshDNSFailed"),
  247. wirelessNetworkCardNotFound: map.pick("wirelessNetworkCardNotFound"),
  248. confirmDNSRefresh: map.pick("confirmDNSRefresh"),
  249. connecting: map.pick("connecting"),
  250. welcomeToFlyinsono: map.pick("welcomeToFlyinsono"),
  251. welcomeTipOne: map.pick("welcomeTipOne"),
  252. welcomeTipTwo: map.pick("welcomeTipTwo"),
  253. ultrasoundStatusNormal: map.pick("ultrasoundStatusNormal"),
  254. start: map.pick("start"),
  255. switching: map.pick("switching"),
  256. switchingSecondWindowSuccess: map.pick("switchingSecondWindowSuccess"),
  257. speakerVolume: map.pick("speakerVolume"),
  258. );
  259. }
  260. /// 正在切换语言...
  261. final FTrStr switchingLanguage;
  262. /// 请填写服务地址
  263. final FTrStr FullfillServerUrl;
  264. /// 请填写端口
  265. final FTrStr FullfillServerPort;
  266. /// 请输入正确的服务器地址
  267. final FTrStr serverUrlFormatValidation;
  268. /// 无效的端口号(端口号范围 0-65535)
  269. final FTrStr serverPortFormatValidation;
  270. /// 此服务地址已存在
  271. final FTrStr serverUrlExistValidation;
  272. /// 服务器不存在
  273. final FTrStr serverUrlNotExistValidation;
  274. /// 服务器未进行任何更改
  275. final FTrStr serverUrlNotChangedValidation;
  276. /// 请选择或添加服务器地址
  277. final FTrStr SelectOrAddServerUrl;
  278. /// 地址:
  279. final FTrStr serverUrl;
  280. /// 端口:
  281. final FTrStr serverPort;
  282. /// 示例 127.0.0.1
  283. final FTrStr serverUrlExample;
  284. /// 示例 8080
  285. final FTrStr serverPortExample;
  286. /// 通用配置
  287. final FTrStr generalConfiguration;
  288. /// 检测助手
  289. final FTrStr detectionAssistant;
  290. /// 通用
  291. final FTrStr currency;
  292. /// 开机自启动
  293. final FTrStr startUpAutomatically;
  294. /// 报告标签弹框自动弹出
  295. final FTrStr autoPopupLabel;
  296. /// 是否启用第二窗口
  297. final FTrStr enableSecondWindow;
  298. /// 语言
  299. final FTrStr language;
  300. /// 网络设置
  301. final FTrStr networkSettings;
  302. /// 选择服务器
  303. final FTrStr selectServer;
  304. /// 关于杏聆荟
  305. final FTrStr aboutFlyinsono;
  306. /// 产品版本
  307. final FTrStr productVersion;
  308. /// 运行日志
  309. final FTrStr runLog;
  310. /// 下载移动端
  311. final FTrStr downloadMobileApp;
  312. /// 导出日志
  313. final FTrStr exportLog;
  314. /// 检查更新
  315. final FTrStr checkForUpdates;
  316. /// 意见反馈
  317. final FTrStr feedback;
  318. /// 添加服务器
  319. final FTrStr addServer;
  320. /// 自动更新
  321. final FTrStr automaticUpdate;
  322. /// 有新版本提醒我
  323. final FTrStr remindMeOfNewVersion;
  324. /// 若开启,则提交报告时自动弹出添加标签弹窗
  325. final FTrStr automaticallyPopupTag;
  326. /// 具有录制功能的界面,始终保持第二窗口打开
  327. final FTrStr secondWindowConfigStatement;
  328. /// 电子签名
  329. final FTrStr electronicSignature;
  330. /// 切换当前服务器需要重启客户端,是否切换?
  331. final FTrStr switchCurrentServerRestartClient;
  332. /// 当前版本
  333. final FTrStr currentVersion;
  334. /// 最近一天
  335. final FTrStr lastOneDay;
  336. /// 最近一周
  337. final FTrStr lastOneWeek;
  338. /// 最近一个月
  339. final FTrStr lastOneMonth;
  340. /// 正在导出日志
  341. final FTrStr exportingLogs;
  342. /// 导出日志失败
  343. final FTrStr failedExportLog;
  344. /// 当前服务器地址正在使用,请更换服务器地址后再删除
  345. final FTrStr currentServerAddressInUse;
  346. /// 个性化设置
  347. final FTrStr personalization;
  348. /// 我的助理:
  349. final FTrStr myAssistant;
  350. /// 助理医师:
  351. final FTrStr assistantPhysician;
  352. /// 请选择要添加的助理
  353. final FTrStr chooseAssistant;
  354. /// 助理可在会诊前协助专家或医师分诊、会诊后协助专家或医师梳理患者资料导出数据
  355. final FTrStr chooseAssistantTip;
  356. /// 请选择要添加的助理医师
  357. final FTrStr chooseAssistantPhysician;
  358. /// 助理医师是具备诊断资质的医师,可全程参与会诊,协助专家或医师撰写报告
  359. final FTrStr chooseAssistantPhysicianTip;
  360. /// 会诊设置
  361. final FTrStr consultationSettings;
  362. /// 确认删除?
  363. final FTrStr confirmDeletion;
  364. /// 该设备异常
  365. final FTrStr deviceError;
  366. /// 该设备正常
  367. final FTrStr deviceNormal;
  368. /// 正在查找可用的设备
  369. final FTrStr searchingForDevice;
  370. /// 未能找到可用的设备
  371. final FTrStr noAvailableDevice;
  372. /// 麦克风输入:
  373. final FTrStr micInput;
  374. /// 扬声器输出:
  375. final FTrStr speakerOutput;
  376. /// 检测摄像头
  377. final FTrStr cameraTest;
  378. /// 检测扬声器
  379. final FTrStr speakerTest;
  380. /// 检测麦克风
  381. final FTrStr micTest;
  382. /// 是否能看到画面?
  383. final FTrStr seeImage;
  384. /// 是否能听到音乐?
  385. final FTrStr hearMusic;
  386. /// 是否能看到音量条变化?
  387. final FTrStr seeVolumeBar;
  388. /// 摄像头
  389. final FTrStr camera;
  390. /// 麦克风
  391. final FTrStr mic;
  392. /// 扬声器
  393. final FTrStr speaker;
  394. /// 视频
  395. final FTrStr video;
  396. /// 音频
  397. final FTrStr audio;
  398. /// 检测所有设备
  399. final FTrStr detectAllDevices;
  400. /// 现在升级
  401. final FTrStr upgradeNow;
  402. /// 以后再说
  403. final FTrStr upgradeLater;
  404. /// 正在更新中...
  405. final FTrStr upgrading;
  406. /// 新版本
  407. final FTrStr newVersion;
  408. /// 当前软件为最新版本
  409. final FTrStr latestVersionTip;
  410. /// 超声机设置
  411. final FTrStr vBoxSetting;
  412. /// 网络连接工具
  413. final FTrStr networkConnectionUtility;
  414. /// 配置
  415. final FTrStr configuration;
  416. /// 有线网络连接
  417. final FTrStr wiredNetworkConnection;
  418. /// 无线网络连接
  419. final FTrStr wirelessNetworkConnection;
  420. /// 刷新DNS
  421. final FTrStr refreshDNS;
  422. /// 属性
  423. final FTrStr properties;
  424. /// 连接
  425. final FTrStr connect;
  426. /// 断开连接
  427. final FTrStr disconnect;
  428. /// 忘记密码
  429. final FTrStr forgetPassword;
  430. /// 启用DHCP
  431. final FTrStr enableDHCP;
  432. /// IP地址
  433. final FTrStr ipAddress;
  434. /// 子网掩码
  435. final FTrStr subnetMask;
  436. /// 默认网关
  437. final FTrStr defaultGateway;
  438. /// 首选DNS
  439. final FTrStr preferredDNS;
  440. /// 备用DNS
  441. final FTrStr standbyDNS;
  442. /// 物理地址
  443. final FTrStr macAddress;
  444. /// 扬声器检测
  445. final FTrStr speakerDetection;
  446. /// 摄像头检测
  447. final FTrStr cameraDetection;
  448. /// 麦克风检测
  449. final FTrStr microphoneDetection;
  450. /// 超声机检测
  451. final FTrStr sonopostDetetion;
  452. /// 摄像头状态正常
  453. final FTrStr cameraTestSuccessTip;
  454. /// 摄像头状态异常
  455. final FTrStr cameraTestErrorTip;
  456. /// 请重新插拔摄像头,或换个设备
  457. final FTrStr fixCameraTip;
  458. /// 扬声器状态正常
  459. final FTrStr speakerTestSuccessTip;
  460. /// 扬声器状态异常
  461. final FTrStr speakerTestErrorTip;
  462. /// 请重新插拔扬声器,或换个设备
  463. final FTrStr fixSpeakerTip;
  464. /// 麦克风状态正常
  465. final FTrStr micphoneTestSuccessTip;
  466. /// 麦克风状态异常
  467. final FTrStr micphoneTestErrorTip;
  468. /// 请重新插拔麦克风,或换个设备
  469. final FTrStr fixMicphoneTip;
  470. /// 左侧画面即为会诊时看到的超声画面,请确认是否成功看到画面。
  471. final FTrStr termianlTestTip;
  472. /// 跳过
  473. final FTrStr skip;
  474. /// 请点击下一步进行其他测试
  475. final FTrStr nextTest;
  476. /// 重新检测
  477. final FTrStr recheck;
  478. /// 未看到超声画面
  479. final FTrStr ultrasoundImageNotVisible;
  480. /// 可以看到超声画面
  481. final FTrStr ultrasoundImageIsVisible;
  482. /// 请插拔如下图所示的超声机接口
  483. final FTrStr nothingInTerminalTip;
  484. /// 刷新DNS失败
  485. final FTrStr refreshDNSFailed;
  486. /// 未找到无线网卡
  487. final FTrStr wirelessNetworkCardNotFound;
  488. /// 刷新DNS之后设备会自动重启,是否确定?
  489. final FTrStr confirmDNSRefresh;
  490. /// 已连接
  491. final FTrStr connecting;
  492. /// 欢迎使用远程超声系统软件!
  493. final FTrStr welcomeToFlyinsono;
  494. /// 为了保障远程实时会诊顺利进行,强烈建议按照本向导的步骤对会诊中需要的各项设备进行测试。
  495. final FTrStr welcomeTipOne;
  496. /// 如确认设备没有问题,则可选择'跳过'直接进入软件主界面。
  497. final FTrStr welcomeTipTwo;
  498. /// 超声直播状态正常,检测已完成。
  499. final FTrStr ultrasoundStatusNormal;
  500. /// 开始
  501. final FTrStr start;
  502. /// 正在开启...
  503. final FTrStr switching;
  504. /// 第二窗口开启成功
  505. final FTrStr switchingSecondWindowSuccess;
  506. /// 扬声器音量
  507. final FTrStr speakerVolume;
  508. @override
  509. getProp(String propName) {
  510. // TODO: implement getProp
  511. throw UnimplementedError();
  512. }
  513. }