import 'package:domain/entity/response/s_g_labour_request_add_option_entity.dart';
import 'package:flutter/material.dart';
import 'package:plugin_basic/basic_export.dart';
import 'package:shared/utils/date_time_utils.dart';

import 'AgencyNeedNumberWidget.dart';

class LabourRequestAddState {
  //表单的校验与数据
  Map<String, Map<String, dynamic>> formData = {
    'remark': {
      'value': '',
      'controller': TextEditingController(),
      'focusNode': FocusNode(),
      'hintText': 'Enter...'.tr,
      'obsecure': false,
    },
  };

  void Function(dynamic value)? cb;


  SGLabourRequestAddOptionEntity? indexEntity;

  String? selectedJobTitle;
  String? selectedJobTitleId;

  DateTime? selectedStartTime;
  DateTime? selectedEndTime;

  DateTime? selectedRepeatStartTime;
  DateTime? selectedRepeatEndTime;

  String? selectedOutlet;
  String? selectedOutletId;

  String? selectRequestTypeId;

  String? selectPositionId;
  String? selectPositionName;

  // 保存 AgencyNeedNumberWidget 的数据
  List<AgencyNeedNumberWidget> agencyWidgets = [];
  List<GlobalKey<AgencyNeedNumberState>> agencyKeys = []; // 用于存储每个 Widget 的 key
}
