import 'package:get/get.dart'; import '../../../lockMian/entity/lockListInfo_entity.dart'; import '../checkingInSet/checkingInSet_entity.dart'; class CheckingInSetWorkdaySetState{ var isCustom = true.obs; // 自定义 var isSingledayWeekend = 2.obs; // 0单休 1双休 var weekDays = [].obs;// 工作天数 final getKeyInfosData = LockListInfoItemEntity().obs; final checkingInSetInfo = CheckingInSetInfo().obs; final companyId = "".obs; // var changeType = "3".obs;// 3修改workDay自定义 4修改workDay var pushType = "".obs;// 2考勤设置信息 1考勤创建公司 CheckingInSetWorkdaySetState() { Map map = Get.arguments; pushType.value = map["pushType"]; if(pushType.value == "2"){ getKeyInfosData.value = map["getKeyInfosData"]; companyId.value = map["companyId"]; checkingInSetInfo.value = map["checkingInSetInfo"]; weekDays.value = checkingInSetInfo.value.workDay!; isCustom.value = (checkingInSetInfo.value.attendanceType! == 0) ? true : false; if(isCustom.value == false){ if(checkingInSetInfo.value.workDay!.length == 5){ isSingledayWeekend.value = 1; }else if(checkingInSetInfo.value.workDay!.length == 6){ isSingledayWeekend.value = 0; } } } } }