app/Customize/Form/Type/Admin/SearchOrderType.php line 44

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of EC-CUBE
  4.  *
  5.  * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  6.  *
  7.  * http://www.ec-cube.co.jp/
  8.  *
  9.  * For the full copyright and license information, please view the LICENSE
  10.  * file that was distributed with this source code.
  11.  */
  12. namespace Customize\Form\Type\Admin;
  13. use Eccube\Common\EccubeConfig;
  14. use Eccube\Entity\Shipping;
  15. use Eccube\Entity\Master\OrderStatus// rev1.0.0 add
  16. use Eccube\Entity\Master\CustomerStatus// 2026.06.30 add
  17. use Eccube\Form\Type\Master\OrderStatusType;
  18. use Eccube\Form\Type\Master\PaymentType;
  19. use Eccube\Form\Type\MasterType// rev1.0.0 add
  20. use Eccube\Form\Type\PriceType;
  21. //use Eccube\Form\Type\Admin\ProductType;
  22. use Symfony\Component\Form\AbstractType;
  23. use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
  24. use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
  25. use Symfony\Component\Form\Extension\Core\Type\DateType;
  26. use Symfony\Component\Form\Extension\Core\Type\HiddenType;
  27. use Symfony\Component\Form\Extension\Core\Type\TextType;
  28. use Symfony\Component\Form\Extension\Core\Type\SearchType// rev1.0.0 add
  29. use Symfony\Component\Form\FormBuilderInterface;
  30. use Symfony\Component\Validator\Constraints as Assert;
  31. use Symfony\Bridge\Doctrine\Form\Type\EntityType;
  32. use Customize\Entity\Master\School;
  33. use Customize\Form\Type\Master\DepartmentType;
  34. use Customize\Repository\CategoryRepository;
  35. use Eccube\Repository\Master\OrderStatusRepository;
  36. use Eccube\Repository\PaymentRepository;
  37. use Eccube\Form\Type\Admin\SearchOrderType as BaseType;
  38. use Eccube\Repository\Master\CustomerStatusRepository// 2026.06.30 add
  39. class SearchOrderType extends BaseType
  40. {
  41.     /**
  42.      * @var CategoryRepository
  43.      */
  44.     protected $categoryRepository;
  45.     /**
  46.      * @var OrderStatusRepository
  47.      */
  48.     protected $orderStatusRepository;
  49.     /**
  50.      * @var PaymentRepository
  51.      */
  52.     protected $paymentRepository;
  53.     
  54.     /**
  55.      * @var CustomerStatusRepository
  56.      */
  57.     protected $customerStatusRepository// 2026.06.30 add
  58.     public function __construct(
  59.         EccubeConfig $eccubeConfig
  60.         CategoryRepository $categoryRepository
  61.         OrderStatusRepository $orderStatusRepository
  62.         PaymentRepository $paymentRepository
  63.         CustomerStatusRepository $customerStatusRepository)
  64.     {
  65.         parent::__construct($eccubeConfig);
  66.         $this->categoryRepository $categoryRepository// rev1.0.0 add
  67.         $this->orderStatusRepository $orderStatusRepository// rev1.0.0 add
  68.         $this->paymentRepository $paymentRepository// rev1.0.0 add
  69.         $this->customerStatusRepository $customerStatusRepository// 2026.06.30 add
  70.     }   
  71.     /**
  72.      * {@inheritdoc}
  73.      */
  74.     public function buildForm(FormBuilderInterface $builder, array $options// rev1.0.0 override
  75.     {
  76.         $Categories $this->categoryRepository->getHierarchyList(nulltrue);
  77.         $statuses = [
  78.             /** 新規受付. */
  79.             OrderStatus::NEW,
  80.             /** 注文取消し. */
  81.             OrderStatus::CANCEL,
  82.             /** 対応中. */
  83.             //OrderStatus::IN_PROGRESS,
  84.             /** 発送済み. */
  85.             OrderStatus::DELIVERED,
  86.             /** 入金済み. */
  87.             OrderStatus::PAID,
  88.             /** 決済処理中. */
  89.             //OrderStatus::PENDING,
  90.             /** 購入処理中. */
  91.             //OrderStatus::PROCESSING,
  92.             /** 返品 */
  93.             //OrderStatus::RETURNED,
  94.         ];
  95.         $OrderStatuses $this->orderStatusRepository
  96.             ->findBy(['id' => $statuses ], ['sort_no' => 'ASC']);
  97.         $Payments $this->paymentRepository
  98.             ->findBy(['visible' => true ], ['sort_no' => 'ASC''id' => 'ASC']);   
  99.         // 2026.06.30 add start         
  100.         $custStatuses = [
  101.             /** 仮会員 */
  102.             CustomerStatus::PROVISIONAL,
  103.             /** 本会員 */
  104.             CustomerStatus::REGULAR,
  105.             /** 退会 */
  106.             CustomerStatus::WITHDRAWING,
  107.         ];
  108.         $CustomerStatuses $this->customerStatusRepository
  109.             ->findBy(['id' => $custStatuses ], ['sort_no' => 'ASC']);
  110.         // 2026.06.30 add end         
  111.         $builder
  112.             ->add('has_hattyuu_date'HiddenType::class, [
  113.                 'label' => 'admin.order.has_hattyuu_date',
  114.                 'required' => false,
  115.             ])
  116.             ->add('no_hattyuu_date'HiddenType::class, [
  117.                 'label' => 'admin.order.no_hattyuu_date',
  118.                 'required' => false,
  119.             ])
  120. /*
  121.             ->add('no_uketori_date', HiddenType::class, [
  122.                 'label' => 'admin.order.no_uketori_date',
  123.                 'required' => false,
  124.             ])
  125. */
  126.             ->add('nouhin_condition'HiddenType::class, [
  127.                 'label' => 'admin.order.nouhin_condition',
  128.                 'required' => false,
  129.             ])
  130.             ->add('nouhin_date_condition'HiddenType::class, [
  131.                 'label' => 'admin.order.nouhin_date_condition',
  132.                 'required' => false,
  133.             ])
  134.             ->add('uketori_date_condition'HiddenType::class, [
  135.                 'label' => 'admin.order.uketori_date_condition',
  136.                 'required' => false,
  137.             ])
  138.             // 受注ID・注文者名・注文者(フリガナ)
  139.             ->add('multi'TextType::class, [
  140.                 'label' => 'admin.order.multi_search_label',
  141.                 'required' => false,
  142.                 'constraints' => [
  143.                     new Assert\Length(['max' => $this->eccubeConfig['eccube_stext_len']]),
  144.                 ],
  145.             ])
  146.             ->add('status'EntityType::class, [
  147.                 'class' => 'Eccube\Entity\Master\OrderStatus',
  148.                 'label' => 'admin.order.order_status',
  149.                 'choice_label' => 'Name',
  150.                 'choices' => $OrderStatuses,
  151.                 'expanded' => true,
  152.                 'multiple' => true,
  153.             ])
  154.             ->add('category_id'EntityType::class, [
  155.                 'class' => 'Eccube\Entity\Category',
  156.                 'label' => 'admin.order.purchase_product_category',
  157.                 'choice_label' => 'NameWithLevel',
  158.                 'choices' => $Categories,
  159.                 'placeholder' => 'admin.common.select',
  160.                 'required' => false,
  161.             ])
  162.             ->add('school'MasterType::class, [
  163.                 'class' => 'Customize\Entity\Master\School',
  164.                 'label' => 'admin.common.school',
  165.                 'required' => false,
  166.                 'expanded' => false,
  167.                 'multiple' => false,
  168.                 'placeholder' => 'admin.common.select',
  169.                 'attr' => [
  170.                     'data-id' => '',
  171.                 ],
  172.             ])
  173.             ->add('school_id'MasterType::class, [
  174.                 'class' => 'Customize\Entity\Master\School',
  175.                 'label' => 'admin.common.school',
  176.                 'required' => false,
  177.             ])
  178.             ->add('department'MasterType::class, [
  179.                 'class' => 'Customize\Entity\Master\Department',
  180.                 'label' => 'admin.common.department',
  181.                 'required' => false,
  182.                 'expanded' => false,
  183.                 'multiple' => false,
  184.                 'placeholder' => 'admin.common.select',
  185.             ])
  186.             ->add('course'MasterType::class, [
  187.                 'class' => 'Customize\Entity\Master\Course',
  188.                 'label' => 'admin.common.course',
  189.                 'required' => false,
  190.                 'expanded' => false,
  191.                 'multiple' => false,
  192.                 'placeholder' => 'admin.common.select',
  193.             ])
  194.             ->add('sub_course'MasterType::class, [
  195.                 'class' => 'Customize\Entity\Master\Course',
  196.                 'label' => 'admin.common.sub_course',
  197.                 'required' => false,
  198.                 'expanded' => false,
  199.                 'multiple' => false,
  200.                 'placeholder' => 'admin.common.select',
  201.             ])
  202.             ->add('grade'MasterType::class, [
  203.                 'class' => 'Customize\Entity\Master\Grade',
  204.                 'label' => 'admin.common.grade',
  205.                 'required' => false,
  206.                 'expanded' => false,
  207.                 'multiple' => false,
  208.                 'placeholder' => 'admin.common.select',
  209.             ])
  210.             ->add('classroom'MasterType::class, [
  211.                 'class' => 'Customize\Entity\Master\Classroom',
  212.                 'label' => 'admin.common.classroom',
  213.                 'required' => false,
  214.                 'expanded' => false,
  215.                 'multiple' => false,
  216.                 'placeholder' => 'admin.common.select',
  217.             ])
  218.             ->add('code'TextType::class, [
  219.                 'label' => 'admin.common.customer_code',
  220.                 'required' => false,
  221.             ])
  222.             ->add('name'TextType::class, [
  223.                 'label' => 'admin.common.customer_name',
  224.                 'required' => false,
  225.             ])
  226.             ->add($builder
  227.                 ->create('kana'TextType::class, [
  228.                     'label' => 'admin.common.customer_kana',
  229.                     'required' => false,
  230.                     'constraints' => [
  231.                         new Assert\Regex([
  232.                             'pattern' => '/^[ァ-ヶヲ-゚ー]+$/u',
  233.                             'message' => 'form_error.kana_only',
  234.                         ]),
  235.                     ],
  236.                 ])
  237.                 ->addEventSubscriber(new \Eccube\Form\EventListener\ConvertKanaListener('CV')
  238.             ))
  239.             /*
  240.             ->add('payment', PaymentType::class, [
  241.                 'label' => 'admin.common.payment_method',
  242.                 'required' => false,
  243.                 'expanded' => true,
  244.                 'multiple' => true,
  245.             ])
  246.             */
  247.             ->add('payment'EntityType::class, [
  248.                 'class' => 'Eccube\Entity\Payment',
  249.                 'label' => 'admin.common.payment_method',
  250.                 'choice_label' => 'Method',
  251.                 'choices' => $Payments,
  252.                 'required' => false,
  253.                 'expanded' => true,
  254.                 'multiple' => true,
  255.             ])
  256.             ->add('order_date_start'DateType::class, [
  257.                 'label' => 'admin.order.order_date__start',
  258.                 'required' => false,
  259.                 'input' => 'datetime',
  260.                 'widget' => 'single_text',
  261.                 'placeholder' => ['year' => '----''month' => '--''day' => '--'],
  262.                 'constraints' => [
  263.                     new Assert\Range([
  264.                         'min'=> '0003-01-01',
  265.                         'minMessage' => 'form_error.out_of_range',
  266.                     ]),
  267.                 ],
  268.                 'attr' => [
  269.                     'class' => 'datetimepicker-input',
  270.                     'data-target' => '#'.$this->getBlockPrefix().'_order_date_start',
  271.                     'data-toggle' => 'datetimepicker',
  272.                 ],
  273.             ])
  274.             ->add('order_datetime_start'DateTimeType::class, [
  275.                 'label' => 'admin.order.order_date__start',
  276.                 'required' => false,
  277.                 'input' => 'datetime',
  278.                 'widget' => 'single_text',
  279.                 'constraints' => [
  280.                     new Assert\Range([
  281.                         'min'=> '0003-01-01',
  282.                         'minMessage' => 'form_error.out_of_range',
  283.                     ]),
  284.                 ],
  285.                 'attr' => [
  286.                     'class' => 'datetimepicker-input',
  287.                     'data-target' => '#'.$this->getBlockPrefix().'_order_datetime_start',
  288.                     'data-toggle' => 'datetimepicker',
  289.                 ],
  290.             ])
  291.             ->add('order_date_end'DateType::class, [
  292.                 'label' => 'admin.order.order_date__end',
  293.                 'required' => false,
  294.                 'input' => 'datetime',
  295.                 'widget' => 'single_text',
  296.                 'placeholder' => ['year' => '----''month' => '--''day' => '--'],
  297.                 'constraints' => [
  298.                     new Assert\Range([
  299.                         'min'=> '0003-01-01',
  300.                         'minMessage' => 'form_error.out_of_range',
  301.                     ]),
  302.                 ],
  303.                 'attr' => [
  304.                     'class' => 'datetimepicker-input',
  305.                     'data-target' => '#'.$this->getBlockPrefix().'_order_date_end',
  306.                     'data-toggle' => 'datetimepicker',
  307.                 ],
  308.             ])
  309.             ->add('order_datetime_end'DateTimeType::class, [
  310.                 'label' => 'admin.order.order_date__end',
  311.                 'required' => false,
  312.                 'input' => 'datetime',
  313.                 'widget' => 'single_text',
  314.                 'constraints' => [
  315.                     new Assert\Range([
  316.                         'min'=> '0003-01-01',
  317.                         'minMessage' => 'form_error.out_of_range',
  318.                     ]),
  319.                 ],
  320.                 'attr' => [
  321.                     'class' => 'datetimepicker-input',
  322.                     'data-target' => '#'.$this->getBlockPrefix().'_order_datetime_end',
  323.                     'data-toggle' => 'datetimepicker',
  324.                 ],
  325.             ])
  326.             ->add('payment_date_start'DateType::class, [
  327.                 'label' => 'admin.order.payment_date__start',
  328.                 'required' => false,
  329.                 'input' => 'datetime',
  330.                 'widget' => 'single_text',
  331.                 'placeholder' => ['year' => '----''month' => '--''day' => '--'],
  332.                 'constraints' => [
  333.                     new Assert\Range([
  334.                         'min'=> '0003-01-01',
  335.                         'minMessage' => 'form_error.out_of_range',
  336.                     ]),
  337.                 ],
  338.                 'attr' => [
  339.                     'class' => 'datetimepicker-input',
  340.                     'data-target' => '#'.$this->getBlockPrefix().'_payment_date_start',
  341.                     'data-toggle' => 'datetimepicker',
  342.                 ],
  343.             ])
  344.             ->add('payment_datetime_start'DateTimeType::class, [
  345.                 'label' => 'admin.order.payment_date__start',
  346.                 'required' => false,
  347.                 'input' => 'datetime',
  348.                 'widget' => 'single_text',
  349.                 'constraints' => [
  350.                     new Assert\Range([
  351.                         'min'=> '0003-01-01',
  352.                         'minMessage' => 'form_error.out_of_range',
  353.                     ]),
  354.                 ],
  355.                 'attr' => [
  356.                     'class' => 'datetimepicker-input',
  357.                     'data-target' => '#'.$this->getBlockPrefix().'_payment_datetime_start',
  358.                     'data-toggle' => 'datetimepicker',
  359.                 ],
  360.             ])
  361.             ->add('payment_date_end'DateType::class, [
  362.                 'label' => 'admin.order.payment_date__end',
  363.                 'required' => false,
  364.                 'input' => 'datetime',
  365.                 'widget' => 'single_text',
  366.                 'placeholder' => ['year' => '----''month' => '--''day' => '--'],
  367.                 'constraints' => [
  368.                     new Assert\Range([
  369.                         'min'=> '0003-01-01',
  370.                         'minMessage' => 'form_error.out_of_range',
  371.                     ]),
  372.                 ],
  373.                 'attr' => [
  374.                     'class' => 'datetimepicker-input',
  375.                     'data-target' => '#'.$this->getBlockPrefix().'_payment_date_end',
  376.                     'data-toggle' => 'datetimepicker',
  377.                 ],
  378.             ])
  379.             ->add('payment_datetime_end'DateTimeType::class, [
  380.                 'label' => 'admin.order.payment_date__end',
  381.                 'required' => false,
  382.                 'input' => 'datetime',
  383.                 'widget' => 'single_text',
  384.                 'constraints' => [
  385.                     new Assert\Range([
  386.                         'min'=> '0003-01-01',
  387.                         'minMessage' => 'form_error.out_of_range',
  388.                     ]),
  389.                 ],
  390.                 'attr' => [
  391.                     'class' => 'datetimepicker-input',
  392.                     'data-target' => '#'.$this->getBlockPrefix().'_payment_datetime_end',
  393.                     'data-toggle' => 'datetimepicker',
  394.                 ],
  395.             ])
  396.             ->add('hattyuu_date_start'DateType::class, [
  397.                 'label' => 'admin.order.hattyuu_date__start',
  398.                 'required' => false,
  399.                 'input' => 'datetime',
  400.                 'widget' => 'single_text',
  401.                 'placeholder' => ['year' => '----''month' => '--''day' => '--'],
  402.                 'constraints' => [
  403.                     new Assert\Range([
  404.                         'min'=> '0003-01-01',
  405.                         'minMessage' => 'form_error.out_of_range',
  406.                     ]),
  407.                 ],
  408.                 'attr' => [
  409.                     'class' => 'datetimepicker-input',
  410.                     'data-target' => '#'.$this->getBlockPrefix().'_hattyuu_date_start',
  411.                     'data-toggle' => 'datetimepicker',
  412.                 ],
  413.             ])
  414.             ->add('hattyuu_datetime_start'DateTimeType::class, [
  415.                 'label' => 'admin.order.hattyuu_date__start',
  416.                 'required' => false,
  417.                 'input' => 'datetime',
  418.                 'widget' => 'single_text',
  419.                 'constraints' => [
  420.                     new Assert\Range([
  421.                         'min'=> '0003-01-01',
  422.                         'minMessage' => 'form_error.out_of_range',
  423.                     ]),
  424.                 ],
  425.                 'attr' => [
  426.                     'class' => 'datetimepicker-input',
  427.                     'data-target' => '#'.$this->getBlockPrefix().'_hattyuu_datetime_start',
  428.                     'data-toggle' => 'datetimepicker',
  429.                 ],
  430.             ])
  431.             ->add('hattyuu_date_end'DateType::class, [
  432.                 'label' => 'admin.order.hattyuu_date__end',
  433.                 'required' => false,
  434.                 'input' => 'datetime',
  435.                 'widget' => 'single_text',
  436.                 'placeholder' => ['year' => '----''month' => '--''day' => '--'],
  437.                 'constraints' => [
  438.                     new Assert\Range([
  439.                         'min'=> '0003-01-01',
  440.                         'minMessage' => 'form_error.out_of_range',
  441.                     ]),
  442.                 ],
  443.                 'attr' => [
  444.                     'class' => 'datetimepicker-input',
  445.                     'data-target' => '#'.$this->getBlockPrefix().'_hattyuu_date_end',
  446.                     'data-toggle' => 'datetimepicker',
  447.                 ],
  448.             ])
  449.             ->add('hattyuu_datetime_end'DateTimeType::class, [
  450.                 'label' => 'admin.order.hattyuu_date__end',
  451.                 'required' => false,
  452.                 'input' => 'datetime',
  453.                 'widget' => 'single_text',
  454.                 'constraints' => [
  455.                     new Assert\Range([
  456.                         'min'=> '0003-01-01',
  457.                         'minMessage' => 'form_error.out_of_range',
  458.                     ]),
  459.                 ],
  460.                 'attr' => [
  461.                     'class' => 'datetimepicker-input',
  462.                     'data-target' => '#'.$this->getBlockPrefix().'_hattyuu_datetime_end',
  463.                     'data-toggle' => 'datetimepicker',
  464.                 ],
  465.             ])
  466.             ->add('nouhin_date_start'DateType::class, [
  467.                 'label' => 'admin.order.nouhin_date__start',
  468.                 'required' => false,
  469.                 'input' => 'datetime',
  470.                 'widget' => 'single_text',
  471.                 'placeholder' => ['year' => '----''month' => '--''day' => '--'],
  472.                 'constraints' => [
  473.                     new Assert\Range([
  474.                         'min'=> '0003-01-01',
  475.                         'minMessage' => 'form_error.out_of_range',
  476.                     ]),
  477.                 ],
  478.                 'attr' => [
  479.                     'class' => 'datetimepicker-input',
  480.                     'data-target' => '#'.$this->getBlockPrefix().'_nouhin_date_start',
  481.                     'data-toggle' => 'datetimepicker',
  482.                 ],
  483.             ])
  484.             ->add('nouhin_datetime_start'DateTimeType::class, [
  485.                 'label' => 'admin.order.nouhin_date__start',
  486.                 'required' => false,
  487.                 'input' => 'datetime',
  488.                 'widget' => 'single_text',
  489.                 'constraints' => [
  490.                     new Assert\Range([
  491.                         'min'=> '0003-01-01',
  492.                         'minMessage' => 'form_error.out_of_range',
  493.                     ]),
  494.                 ],
  495.                 'attr' => [
  496.                     'class' => 'datetimepicker-input',
  497.                     'data-target' => '#'.$this->getBlockPrefix().'_nouhin_datetime_start',
  498.                     'data-toggle' => 'datetimepicker',
  499.                 ],
  500.             ])
  501.             ->add('nouhin_date_end'DateType::class, [
  502.                 'label' => 'admin.order.nouhin_date__end',
  503.                 'required' => false,
  504.                 'input' => 'datetime',
  505.                 'widget' => 'single_text',
  506.                 'placeholder' => ['year' => '----''month' => '--''day' => '--'],
  507.                 'constraints' => [
  508.                     new Assert\Range([
  509.                         'min'=> '0003-01-01',
  510.                         'minMessage' => 'form_error.out_of_range',
  511.                     ]),
  512.                 ],
  513.                 'attr' => [
  514.                     'class' => 'datetimepicker-input',
  515.                     'data-target' => '#'.$this->getBlockPrefix().'_nouhin_date_end',
  516.                     'data-toggle' => 'datetimepicker',
  517.                 ],
  518.             ])
  519.             ->add('nouhin_datetime_end'DateTimeType::class, [
  520.                 'label' => 'admin.order.nouhin_date__end',
  521.                 'required' => false,
  522.                 'input' => 'datetime',
  523.                 'widget' => 'single_text',
  524.                 'constraints' => [
  525.                     new Assert\Range([
  526.                         'min'=> '0003-01-01',
  527.                         'minMessage' => 'form_error.out_of_range',
  528.                     ]),
  529.                 ],
  530.                 'attr' => [
  531.                     'class' => 'datetimepicker-input',
  532.                     'data-target' => '#'.$this->getBlockPrefix().'_nouhin_datetime_end',
  533.                     'data-toggle' => 'datetimepicker',
  534.                 ],
  535.             ])
  536.             ->add('buy_product_name'SearchType::class, [
  537.                 'label' => 'admin.order.purchase_product',
  538.                 'required' => false,
  539.                 'attr' => [
  540.                     'list' => 'admin_search_order_buy_products',
  541.                     'autocomplete' => 'none'
  542.                 ],
  543.             ])
  544.             /* rev1.0.1 add | buy_product_id */
  545.             ->add('buy_product_id'HiddenType::class, [ 
  546.                 'label' => 'admin.order.purchase_product_id',  
  547.                 'required' => false,
  548.             ])
  549.             /* rev1.0.2 add | buy_product_class_id */
  550.             ->add('buy_product_class_id'HiddenType::class, [ 
  551.                 'label' => 'admin.order.purchase_product_class_id',  
  552.                 'required' => false,
  553.             ])
  554.             ->add('payment_start'PriceType::class, [
  555.                 'label' => 'admin.order.purchase_price__start',
  556.                 'required' => false,
  557.             ])
  558.             ->add('payment_end'PriceType::class, [
  559.                 'label' => 'admin.order.purchase_price__end',
  560.                 'required' => false,
  561.             ])
  562.             /*
  563.             ->add('status', OrderStatusType::class, [
  564.                 'label' => 'admin.order.order_status',
  565.                 'expanded' => true,
  566.                 'multiple' => true,
  567.             ])
  568.             */
  569.             // 会員種別 2026.06.30 add
  570.             ->add('customer_status'EntityType::class, [
  571.                 'class' => 'Eccube\Entity\Master\OrderStatus',
  572.                 'label' => 'admin.customer.customer_status',
  573.                 'choice_label' => 'Name',
  574.                 'choices' => $CustomerStatuses,
  575.                 'expanded' => true,
  576.                 'multiple' => true,
  577.             ])
  578.             // ソート用
  579.             ->add('sortkey'HiddenType::class, [
  580.                 'label' => 'admin.list.sort.key',
  581.                 'required' => false,
  582.             ])
  583.             ->add('sorttype'HiddenType::class, [
  584.                 'label' => 'admin.list.sort.type',
  585.                 'required' => false,
  586.             ]);
  587.     }
  588. }