51 lines
1.9 KiB
Dart
Executable File

import 'package:get/get.dart';
import '../../../../app_settings/app_settings.dart';
import '../../../../tools/commonDataManage.dart';
class AddPalmState {
AddPalmState() {
Map map = Get.arguments;
lockId.value = map['lockId'];
addType.value = map['addType'];
palmName.value = map['palmName'];
palmNumber.value = map['palmNumber'];
palmType.value = map['palmType'];
isCoerced.value = map['isCoerced'];
AppLog.log('1111-isCoerced.value:${isCoerced.value}');
isAdministrator.value = map['isAdministrator'];
startDate.value = map['startDate'];
weekDay.value = map['weekDay'];
fromType.value = map['fromType'];
effectiveDateTime.value = map['effectiveTime'];
failureDateTime.value = map['failureTime'];
selectType.value = map['selectType'];
//循环类型下,结束时间加一天
if (selectType.value == '2') {
endDate.value = "${int.parse(map["endDate"]) + CommonDataManage().dayLatestTime}";
} else {
endDate.value = map['endDate'];
}
}
RxBool ifConnectScuess = false.obs;
RxBool ifCurrentScreen = true.obs; // 是否是当前界面,用于判断是否需要针对当前界面进行展示
RxBool ifAddState = false.obs;// 是否是添加状态,如果是添加状态,返回上级界面发送取消添加指令
RxInt addFingerprintProcessNumber = 0.obs;
final RxInt lockId = 0.obs;
final RxString endDate = ''.obs;
final RxString addType = ''.obs;
final RxString palmName = ''.obs;
final RxString palmNumber = ''.obs;
final RxString palmType = ''.obs;
final RxString isCoerced = ''.obs;
final RxString isAdministrator = ''.obs;
final RxString startDate = ''.obs;
final RxList weekDay = [].obs;
final RxInt fromType = 0.obs;
final RxString effectiveDateTime = ''.obs; // 生效时间
final RxString failureDateTime = ''.obs; // 失效时间
final RxString selectType = '0'.obs;
final isClickAddPalm = false.obs;
}