34 lines
1.2 KiB
Dart
34 lines
1.2 KiB
Dart
|
|
import 'package:get/get.dart';
|
|
import '../../../../tools/dateTool.dart';
|
|
import '../../../lockMian/entity/lockListInfo_entity.dart';
|
|
import '../checkingInSet/checkingInSet_entity.dart';
|
|
|
|
class CheckingInSetWorkTimeState{
|
|
// final getKeyInfosData = LockListInfoItemEntity().obs;
|
|
final checkingInSetInfo = CheckingInSetInfo().obs;
|
|
final companyId = "".obs;
|
|
|
|
var beginTime = "".obs;// 开始时间
|
|
var endTime = "".obs;// 结束时间
|
|
var beginTimeTimestamp = "".obs;// 开始时间时间戳
|
|
var endTimeTimestamp = "".obs;// 结束时间时间戳
|
|
|
|
var pushType = "".obs;// 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"){
|
|
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();
|
|
}
|
|
|
|
}
|
|
|
|
} |