12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- import 'package:fis_jsonrpc/rpc.dart';
- import 'package:get/get_rx/src/rx_types/rx_types.dart';
- import 'package:vitalapp/consts/rpc_enum_labels.dart';
- import 'package:vitalapp/pages/check/follow_up/models/select_model.dart';
- class FollowUpState {
- final Rx<DateTime?> _followUpTime = Rx(
- DateTime(
- DateTime.now().year,
- DateTime.now().month,
- DateTime.now().day,
- 23,
- 59,
- 59,
- ),
- );
- final Rx<DateTime?> _nextFollowUpTime = Rx(null);
- final Rx<FollowUpModeEnum?> _followUpMode = Rx(FollowUpModeEnum.Outpatient);
- final Rx<String?> _followUpPhoto = Rx('');
- final Rx<FollowUpChild3_6YearEnum?> _followUp3_6_Year =
- Rx(FollowUpChild3_6YearEnum.ThreeYear);
- DateTime? get followUpTime => _followUpTime.value;
- set followUpTime(DateTime? val) => _followUpTime.value = val;
- DateTime? get nextFollowUpTime => _nextFollowUpTime.value;
- set nextFollowUpTime(DateTime? val) => _nextFollowUpTime.value = val;
- FollowUpModeEnum? get followUpMode => _followUpMode.value;
- set followUpMode(FollowUpModeEnum? val) => _followUpMode.value = val;
- FollowUpChild3_6YearEnum? get followUp3_6_Year => _followUp3_6_Year.value;
- set followUp3_6_Year(FollowUpChild3_6YearEnum? val) =>
- _followUp3_6_Year.value = val;
- String? get followUpPhoto => _followUpPhoto.value;
- set followUpPhoto(String? val) => _followUpPhoto.value = val;
- final followUpModeEnumSelectList = [
- SelectModel<FollowUpModeEnum>(
- code: FollowUpModeEnum.Outpatient, name: '门诊'),
- SelectModel<FollowUpModeEnum>(code: FollowUpModeEnum.Visit, name: '家庭'),
- SelectModel<FollowUpModeEnum>(code: FollowUpModeEnum.Phone, name: '电话'),
- ];
- final followUpChild3_6YearSelectList = [
- SelectModel<FollowUpChild3_6YearEnum>(
- code: FollowUpChild3_6YearEnum.ThreeYear,
- name: '3岁',
- ),
- SelectModel<FollowUpChild3_6YearEnum>(
- code: FollowUpChild3_6YearEnum.FourYear,
- name: '4岁',
- ),
- SelectModel<FollowUpChild3_6YearEnum>(
- code: FollowUpChild3_6YearEnum.FiveYear,
- name: '5岁',
- ),
- SelectModel<FollowUpChild3_6YearEnum>(
- code: FollowUpChild3_6YearEnum.SixYear,
- name: '6岁',
- ),
- ];
- }
|