import 'package:domain/entity/response/job_list_edit_index_s_g_entity.dart';
import 'package:flutter/material.dart';
import 'package:plugin_basic/basic_export.dart';

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

  bool isEditType = false;
  String? jobId;
  void Function(dynamic value)? cb;

  int genderOptionType = 0; //使用哪一种类型限制

  JobListEditIndexSGEntity? editEntity;

  bool isOtherFormDisEnable = true; //除了 OutLet 其他字段是否能修改

  DateTime? selectedStartTime;
  DateTime? selectedEndTime;

  String? selectedOutlet;
  String? selectedOutletId;

  String? selectRequestTypeId;

  //Regular 对应的职位
  String? selectPositionId;
  String? selectPositionName;
}
