2023-09-09 18:33:37 +08:00
|
|
|
|
|
|
|
|
import 'package:get/get.dart';
|
2023-09-15 16:04:11 +08:00
|
|
|
import '../../../../tools/dateTool.dart';
|
2023-11-01 17:28:59 +08:00
|
|
|
import '../../../lockMian/entity/lockListInfo_entity.dart';
|
2023-09-15 16:04:11 +08:00
|
|
|
import '../checkingInSet/checkingInSet_entity.dart';
|
|
|
|
|
|
2024-06-07 10:53:24 +08:00
|
|
|
class CheckingInSetWorkTimeState{// 2考勤设置信息选择时间
|
2023-09-15 16:04:11 +08:00
|
|
|
|
|
|
|
|
CheckingInSetWorkTimeState() {
|
|
|
|
|
Map map = Get.arguments;
|
2024-06-07 10:53:24 +08:00
|
|
|
pushType.value = map['pushType'];
|
2023-11-03 13:58:41 +08:00
|
|
|
// getKeyInfosData.value = map["getKeyInfosData"];
|
2024-06-07 10:53:24 +08:00
|
|
|
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();
|
|
|
|
|
}
|
2023-09-15 16:04:11 +08:00
|
|
|
|
|
|
|
|
}
|
2024-06-07 10:53:24 +08:00
|
|
|
// 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;// 结束时间时间戳
|
2023-09-15 16:04:11 +08:00
|
|
|
|
2024-06-07 10:53:24 +08:00
|
|
|
RxString pushType = ''.obs;
|
2023-09-09 18:33:37 +08:00
|
|
|
}
|