36 lines
941 B
Dart
Executable File
36 lines
941 B
Dart
Executable File
|
|
import 'package:get/get.dart';
|
|
|
|
import '../../../../lockMian/entity/lockListInfo_entity.dart';
|
|
import '../checkingInSetStaffList/checkingInStaffList_entity.dart';
|
|
|
|
class CheckingInStaffDetailState{
|
|
final getKeyInfosData = LockListInfoItemEntity().obs;
|
|
final companyId = "".obs;
|
|
|
|
final staffListItemData = CheckingInAddStaffListItemEntity().obs;
|
|
|
|
var attendanceType = "".obs;
|
|
|
|
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;
|
|
}
|
|
}
|
|
} |