import 'package:get/get.dart'; import 'package:star_lock/app_settings/app_settings.dart'; import '../../../../tools/commonDataManage.dart'; class AddICCardState{ // 0永久 1显示 2循环 AddICCardState() { Map map = Get.arguments; lockId.value = map['lockId']; addType.value = map['addType']; cardName.value = map['cardName']; cardNumber.value = map['cardNumber']; cardType.value = map['cardType']; 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 cardName = ''.obs; final RxString cardNumber = ''.obs; final RxString cardType = ''.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; }