app-starlock/lib/main/lockDetail/checkingIn/checkingInSetWorkTime/checkingInSetWorkTime_state.dart

33 lines
1.3 KiB
Dart
Raw Normal View History

import 'package:get/get.dart';
import '../../../../tools/dateTool.dart';
2023-11-01 17:28:59 +08:00
import '../../../lockMian/entity/lockListInfo_entity.dart';
import '../checkingInSet/checkingInSet_entity.dart';
class CheckingInSetWorkTimeState{// 2考勤设置信息选择时间
CheckingInSetWorkTimeState() {
Map map = Get.arguments;
pushType.value = map['pushType'];
// getKeyInfosData.value = map["getKeyInfosData"];
companyId.value = map['companyId'];
checkingInSetInfo.value = map['checkingInSetInfo'];
if(pushType.value != '0'){
2023-10-25 16:18:27 +08:00
beginTime.value = DateTool().dateToHNString(checkingInSetInfo.value.workStartTime.toString());
endTime.value = DateTool().dateToHNString(checkingInSetInfo.value.workEndTime.toString());
beginTimeTimestamp.value = checkingInSetInfo.value.workStartTime.toString();
endTimeTimestamp.value = checkingInSetInfo.value.workEndTime.toString();
}
}
// final getKeyInfosData = LockListInfoItemEntity().obs;
final Rx<CheckingInSetInfo> checkingInSetInfo = CheckingInSetInfo().obs;
final RxString companyId = ''.obs;
RxString beginTime = ''.obs;// 开始时间
RxString endTime = ''.obs;// 结束时间
RxString beginTimeTimestamp = ''.obs;// 开始时间时间戳
RxString endTimeTimestamp = ''.obs;// 结束时间时间戳
RxString pushType = ''.obs;
}