app-starlock/lib/main/lockDetail/checkingIn/checkingInSetWorkTime/checkingInSetWorkTime_state.dart
魏少阳 fe7cb98cf9 1、修改关于时间的3点讨论结果
a,领锁,点击+号时,如果获取网络时间失败,不进入下一页,提示必须联网
b. 开锁时:有网络时间则同步,无网络则不同步时间
c. 同步时间功能:必须有网才同步时间,确定和通通锁不一致
2、修改登录、注册、修改密码选择跟当前ip不是用一个国家的时候,弹窗提示
2024-06-07 10:53:24 +08:00

33 lines
1.3 KiB
Dart
Executable File

import 'package:get/get.dart';
import '../../../../tools/dateTool.dart';
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'){
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;
}