36 lines
1019 B
Dart
Raw Normal View History

import 'package:get/get.dart';
2023-11-01 17:28:59 +08:00
import '../../../../lockMian/entity/lockListInfo_entity.dart';
import '../checkingInSetStaffList/checkingInStaffList_entity.dart';
class CheckingInStaffDetailState{
CheckingInStaffDetailState() {
Map map = Get.arguments;
staffListItemData.value = map['staffListItem'];
getKeyInfosData.value = map['getKeyInfosData'];
companyId.value = map['companyId'];
switch(staffListItemData.value.attendanceType){
case 1:
attendanceType.value = 'APP';
break;
case 2:
attendanceType.value = '密码'.tr;
break;
case 3:
attendanceType.value = ''.tr;
break;
case 4:
attendanceType.value = '指纹'.tr;
break;
}
}
final Rx<LockListInfoItemEntity> getKeyInfosData = LockListInfoItemEntity().obs;
final RxString companyId = ''.obs;
final Rx<CheckingInAddStaffListItemEntity> staffListItemData = CheckingInAddStaffListItemEntity().obs;
RxString attendanceType = ''.obs;
}