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';
|
|
|
|
|
|
2023-09-09 18:33:37 +08:00
|
|
|
class CheckingInSetWorkTimeState{
|
2023-11-03 13:58:41 +08:00
|
|
|
// final getKeyInfosData = LockListInfoItemEntity().obs;
|
2023-09-15 16:04:11 +08:00
|
|
|
final checkingInSetInfo = CheckingInSetInfo().obs;
|
|
|
|
|
final companyId = "".obs;
|
|
|
|
|
|
2023-09-09 18:33:37 +08:00
|
|
|
var beginTime = "".obs;// 开始时间
|
|
|
|
|
var endTime = "".obs;// 结束时间
|
|
|
|
|
var beginTimeTimestamp = "".obs;// 开始时间时间戳
|
|
|
|
|
var endTimeTimestamp = "".obs;// 结束时间时间戳
|
|
|
|
|
|
2023-09-15 16:04:11 +08:00
|
|
|
var pushType = "".obs;// 2考勤设置信息选择时间
|
|
|
|
|
|
|
|
|
|
CheckingInSetWorkTimeState() {
|
|
|
|
|
Map map = Get.arguments;
|
|
|
|
|
pushType.value = map["pushType"];
|
2023-11-03 13:58:41 +08:00
|
|
|
// getKeyInfosData.value = map["getKeyInfosData"];
|
2023-09-15 16:04:11 +08:00
|
|
|
companyId.value = map["companyId"];
|
|
|
|
|
checkingInSetInfo.value = map["checkingInSetInfo"];
|
2023-10-25 16:18:27 +08:00
|
|
|
if(pushType.value != "0"){
|
|
|
|
|
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
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-09 18:33:37 +08:00
|
|
|
}
|