<?php
/*
* Plugin Name : ExpressLink4
*
* Copyright (C) BraTech Co., Ltd. All Rights Reserved.
* http://www.bratech.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Plugin\ExpressLink42\Form\Type\Admin;
use Eccube\Form\Type\Master\PaymentType;
use Eccube\Repository\PaymentRepository;
use Plugin\ExpressLink42\Entity\ExpressLinkConfig;
use Plugin\ExpressLink42\Form\Type\DeliverySelectType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints as Assert;
class ConfigType extends AbstractType
{
private $paymentRepository;
public function __construct(
PaymentRepository $paymentRepository
)
{
$this->paymentRepository = $paymentRepository;
}
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$Payments = $this->paymentRepository
->findBy(
[],
['sort_no' => 'DESC']
);
$Select = [];
foreach($Payments as $Payment){
$Select[$Payment->getId()] = $Payment->getMethod();
}
$arrOrderType[ExpressLinkConfig::DISABLED] = "購入者情報";
$arrOrderType[1] = "ショップ情報";
$arrOrderType[2] = "購入者情報と届け先情報が違う場合に購入者情報";
$arrCSVQuote[ExpressLinkConfig::DISABLED] = '「"」をつけない';
$arrCSVQuote[ExpressLinkConfig::ENABLED] = '「"」をつける';
$arrPrint[ExpressLinkConfig::DISABLED] = '表示しない';
$arrPrint[ExpressLinkConfig::ENABLED] = '表示する';
$arrPrintType[1] = 'ショップ用メモ欄を出力';
$arrPrintType[2] = 'お問い合わせ欄を出力';
$arrPrintType[3] = '出荷用メモ欄を出力';
$arrPrintMulti = [];
$arrPrintMulti[ExpressLinkConfig::DISABLED] = '1商品のみ出力';
$arrPrintMulti[ExpressLinkConfig::ENABLED] = '複数商品出力';
$arrB2Print[2] = '表示しない';
$arrB2Print[1] = '表示する';
$arrB2Print[3] = '枠と口数を印字する';
$arrB2Publish[0] = '固定指定';
$arrB2Publish[1] = '商品個数';
$arrB2Publish[2] = '商品種類数';
$arrImport[ExpressLinkConfig::DISABLED] = '取り込まない';
$arrImport[ExpressLinkConfig::ENABLED] = '取り込む';
$arrExportB2[ExpressLinkConfig::DISABLED] = 'ダウンロードした日付';
$arrExportB2[ExpressLinkConfig::ENABLED] = '最短お届け日もしくは指定お届け日を考慮した日付';
$arrExportYupuriR[ExpressLinkConfig::DISABLED] = '出力しない';
$arrExportYupuriR[ExpressLinkConfig::ENABLED] = '最短お届け日もしくは指定お届け日を考慮した日付';
$arrUse[ExpressLinkConfig::DISABLED] = '使用しない';
$arrUse[ExpressLinkConfig::ENABLED] = '使用する';
$arrB2format[3] = "B2パッケージ版完全フォーマット(新:97項目)";
$arrB2format[0] = "B2パッケージ版完全フォーマット(旧:95項目)";
$arrB2format[2] = "B2クラウドフォーマット";
$arrSagawaTimeType[ExpressLinkConfig::DISABLED] = '5時間帯';
$arrSagawaTimeType[ExpressLinkConfig::ENABLED] = '6時間帯';
$arrProductType['001'] = "指定なし";
$arrProductType['002'] = "飛脚クール便(冷蔵)";
$arrProductType['003'] = "飛脚クール便(冷凍)";
$arrEcorect[ExpressLinkConfig::DISABLED] = '設定しない';
$arrEcorect[1] = 'eコレクト(現金決済)';
$arrEcorect[2] = 'eコレクト(デビット/クレジット決済)';
$arrEcorect[3] = 'eコレクト(なんでも決済)';
$arrEhiden3FormatType[ExpressLinkConfig::DISABLED] = '標準フォーマット';
$arrEhiden3FormatType[ExpressLinkConfig::ENABLED] = 'PDT確定版フォーマット';
$arrEhidenProFormatType[ExpressLinkConfig::DISABLED] = '全項目';
$arrEhidenProFormatType[ExpressLinkConfig::ENABLED] = '重量制項目を除外したフォーマット';
$arrEhiden2Header[ExpressLinkConfig::ENABLED] = "出力する";
$arrEhiden2Header[ExpressLinkConfig::DISABLED] = "出力しない";
$arrYupriRTimeType[ExpressLinkConfig::ENABLED] = '6区分';
$arrCompellation[''] = '設定なし';
$arrCompellation[0] = '様';
$arrCompellation[1] = '殿';
$arrCompellation[2] = '御中';
$arrCompellation[3] = '行';
$arrCompellation[4] = '係';
$arrCompellation[5] = '宛';
$arrSize[''] = '設定なし';
$arrSize['060'] = '60サイズ';
$arrSize['080'] = '80サイズ';
$arrSize['100'] = '100サイズ';
$arrSize['120'] = '120サイズ';
$arrSize['140'] = '140サイズ';
$arrSize['160'] = '160サイズ';
$arrSize['170'] = '170サイズ';
$arrThickness[''] = '設定なし';
$arrThickness['05'] = '0.5cm';
$arrThickness['10'] = '1.0cm';
$arrThickness['15'] = '1.5cm';
$arrThickness['20'] = '2.0cm';
$arrThickness['25'] = '2.5cm';
$arrThickness['30'] = '3.0cm';
$arrSendType1 = [];
$arrSendType1[''] = '出力しない';
$arrSendType1['1100300'] = '配達時間帯指定郵便ラベル(普通)[ュ00300]';
$arrSendType1['1100310'] = '配達時間帯指定郵便ラベル(書留)[ュ00310]';
$arrSendType1['1100520001'] = 'ゆうパック一体型ラベル(A4)[ュ00520]';
$arrSendType1['1100521'] = 'ゆうパック一体型(払込取扱票付)ラベル(A4)[ュ00521]';
$arrSendType1['1100570'] = 'ゆうパックサーマル(共用・L版)[ュ00572]';
$arrSendType1['1100571'] = 'ゆうパックサーマル(元払・L版)[ュ00573]';
$arrSendType1['1100572001'] = 'コンビニ受取用ゆうパックサーマル(共用・L版)[ュ00572]';
$arrSendType1['1100572002'] = '局窓用(店頭決済あり)ゆうパックサーマル(共用・L版)[ュ00572]';
$arrSendType1['1100572003'] = '局窓用(店頭決済なし)ゆうパックサーマル(共用・L版)[ュ00572]';
$arrSendType1['1100661001'] = 'ゆうパックラベル(元払B)[ュ00661]';
$arrSendType1['1100701001'] = 'ゆうパックラベル(B)[ュ00701]';
$arrSendType1['1100706001'] = 'ゆうパックラベル(B2)[ュ00706]';
$arrSendType1['1100725001'] = 'セキュリティゆうパックラベル[ュ00725]';
$arrSendType1['1100726'] = 'ゴルフ・スキー・空港ラベル(片道)[ュ00726]';
$arrSendType1['1100727'] = 'ゴルフ・スキー・空港ラベル(往復)[ュ00727]';
$arrSendType1['1100780'] = 'ゆうパックシート(A4・2宛分)[ュ00780]';
$arrSendType1['1100782'] = 'ゆうパックシートはがき付(A4)[ュ00782]';
$arrSendType1['1100783001'] = 'ゆうパックシート無地(A4・2宛分)[ュ00783]';
$arrSendType2['1100783006'] = 'コンビニ受取用ゆうパックシート無地(A4・2宛分)[ュ00783]';
$arrSendType2['1100783007'] = '局窓用(店頭決済あり)ゆうパック無地(A4・2宛分)[ュ00783]';
$arrSendType2['1100783008'] = '局窓用(店頭決済なし)ゆうパック無地(A4・2宛分)[ュ00783]';
$arrSendType1['1100784'] = 'ゆうパックシート(A4・3宛分)[ュ00784]';
$arrSendType1['1100785'] = 'ゆうパックシート(A5)[ュ00785]';
$arrSendType1['1100800'] = 'ポスパケット用あて名シー[ュ00800]';
$arrSendType1['1150651001'] = 'ゆうパックラベル(元払A)[ュ00651]';
$arrSendType1['7P02R08001'] = 'ゆうメールタックシール[ュ00582]';
$arrSendType1['7P02R08002'] = 'ゆうメールサーマルラベル[ュ00585]';
$arrSendType1['1800800001'] = 'ゆうパケットタックシール[ュ00582]';
$arrSendType1['1800800012'] = 'ゆうパケットサーマルラベル[ュ00585]';
$arrSendType2 = [];
$arrSendType2[''] = '出力しない';
$arrSendType2['1100271'] = '代引郵便ラベル(電信)[ュ00272]';
$arrSendType2['1100272'] = '代引郵便ラベル(通常・電信)[ュ00271]';
$arrSendType2['1100273'] = '代引書留郵便ラベル(電信)[ュ00274]';
$arrSendType2['1100274'] = '代引書留郵便ラベル(通常・電信)[ュ00273]';
$arrSendType2['1100275'] = '(新)代引郵便ラベル(通常・電信)[ュ00275]';
$arrSendType2['1100276'] = '(新)代引書留郵便ラベル(通常・電信)[ュ00276]';
$arrSendType2['1100422'] = '代引シート(一般・通常)[ュ00422]';
$arrSendType2['1100424'] = '(新)代引シート(一般・通常)[ュ00424]';
$arrSendType1['1100520002'] = '代引ゆうパック一体型ラベル(A4)[ュ00520]';
$arrSendType2['1100740'] = '(旧)代引ゆうパックラベル(一般・通常[ュ00740])';
$arrSendType2['1100740001'] = '代引ゆうパックラベル(一般・通常)[ュ00740]';
$arrSendType2['1100741'] = '代引ゆうパックラベル(一般・電信)[ュ00741]';
$arrSendType2['1100742001'] = '(新)代引ゆうパックラベル(一般・通常)[ュ00742]';
$arrSendType2['1100747'] = 'ゆうパック代引まとめシート(A4・2宛分)[ュ00747]';
$arrSendType2['1100747001'] = 'ゆうメール代引まとめシート(A4・2宛分)[ュ00747]';
$arrSendType2['1100748'] = 'ゆうパック代引まとめシート(A5)[ュ00748]';
$arrSendType2['1100748001'] = 'ゆうメール代引まとめシート(A5)[ュ00748]';
$arrSendType2['1100783003'] = '代引まとめゆうパックシート無地(A4・2宛分)[ュ00783]';
$arrSendType2['1150740001'] = '(旧)代引ゆうパックラベル(まとめ送金)[ュ00745]';
$arrSendType2 = $arrSendType2 + $arrSendType1;
$arrKM2SendType['0'] = "一般";
$arrKM2SendType['1'] = "宅配";
$arrKM2SendType['3'] = "ミニ";
$arrKM2SendType['9'] = "ビジネス便";
$arrKM2SendType['8'] = "通販便";
$arrKM2Output[ExpressLinkConfig::DISABLED] = "出力しない";
$arrKM2Output[ExpressLinkConfig::ENABLED] = "出力する";
$arrKM2Input[ExpressLinkConfig::DISABLED] = "含めない";
$arrKM2Input[ExpressLinkConfig::ENABLED] = "含める";
$builder
->add('cod', PaymentType::class, [
'label' => '代引き設定',
'required' => false,
'expanded' => true,
'multiple' => true,
])
->add('order_type', Type\ChoiceType::class, [
'label' => '依頼主設定',
'required' => false,
'expanded' => true,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrOrderType),
])
->add('shop_name', Type\TextType::class, [
'label' => 'ショップ名',
'required' => false,
])
->add('shop_kana', Type\TextType::class, [
'label' => 'ショップ名(カナ)',
'required' => false,
'constraints' => [
new Assert\Regex([
'pattern' => "/^[ァ-ヶヲ-゚ー]+$/u",
]),
],
])
->add('csv_quote', Type\ChoiceType::class, [
'label' => 'CSV出力設定',
'required' => false,
'expanded' => true,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrCSVQuote),
])
->add('product_print_flg', Type\ChoiceType::class, [
'label' => '品名出力設定',
'required' => false,
'expanded' => true,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrPrint),
])
->add('productnum_print_flg', Type\ChoiceType::class, [
'label' => '商品数出力設定',
'required' => false,
'expanded' => true,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrPrint),
])
->add('product_name', Type\TextType::class, [
'label' => '品名',
'required' => false,
])
->add('print_multi', Type\ChoiceType::class, [
'label' => '品名複数出力設定',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrPrintMulti),
])
->add('article_flg', Type\ChoiceType::class, [
'label' => '記事欄設定',
'required' => false,
'expanded' => true,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrPrint),
])
->add('article_type', Type\ChoiceType::class, [
'label' => '記事欄出力内容',
'required' => false,
'expanded' => true,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrPrintType),
])
->add('shipping_import', Type\ChoiceType::class, [
'label' => 'お届け日の取込設定',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrImport),
])
->add('b2_format', Type\ChoiceType::class, [
'label' => 'フォーマット設定',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrB2format),
])
->add('b2_customer_code', Type\TextType::class, [
'label' => 'ご請求先顧客コード',
'required' => false,
])
->add('b2_class_code', Type\TextType::class, [
'label' => 'ご請求先分類コード',
'required' => false,
])
->add('b2_fee_code', Type\TextType::class, [
'label' => '運賃管理番号',
'required' => false,
])
->add('b2_compellation', Type\TextType::class, [
'label' => '敬称',
'required' => false,
])
->add('b2_operation1', Type\TextType::class, [
'label' => '荷扱い1',
'required' => false,
])
->add('b2_operation2', Type\TextType::class, [
'label' => '荷扱い2',
'required' => false,
])
->add('b2_publish_num', Type\TextType::class, [
'label' => '発行枚数(固定指定)',
'required' => false,
])
->add('b2_publish_type', Type\ChoiceType::class, [
'label' => '発行枚数',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrB2Publish),
])
->add('b2_print', Type\ChoiceType::class, [
'label' => '個数口枠の印字',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrB2Print),
])
->add('b2_shipping_export', Type\ChoiceType::class, [
'label' => '発送予定日の設定',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrExportB2),
])
->add('b2_delivtype_normal', DeliverySelectType::class, [
'label' => '通常便',
])
->add('b2_delivtype_dm', DeliverySelectType::class, [
'label' => 'DM便',
])
->add('b2_delivtype_timeservice', DeliverySelectType::class, [
'label' => 'タイムサービス',
])
->add('b2_delivtype_necopos', DeliverySelectType::class, [
'label' => 'ネコポス',
])
->add('b2_delivtype_compact', DeliverySelectType::class, [
'label' => '宅急便コンパクト',
])
->add('b2_email_schedule', Type\ChoiceType::class, [
'label' => 'お届け予定eメール利用',
'required' => false,
'expanded' => true,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrUse),
])
->add('b2_email_schedule_message', Type\TextareaType::class, [
'label' => 'お届け予定eメールメッセージ',
'required' => false,
'constraints' => [
new Assert\Regex([
'pattern' => '/^[^\sヲ-゚]+$/u',
'message' => '半角カナ・半角スペースは不可',
]),
new Assert\Length([
'max' => 74,
]),
],
])
->add('b2_email_complete', Type\ChoiceType::class, [
'label' => 'お届け完了eメール利用',
'required' => false,
'expanded' => true,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrUse),
])
->add('b2_email_complete_message', Type\TextareaType::class, [
'label' => 'お届け完了eメールメッセージ',
'required' => false,
'constraints' => [
new Assert\Length([
'max' => 74,
]),
],
])
->add('ehiden2_use', Type\ChoiceType::class, [
'label' => 'e飛伝II使用',
'required' => false,
'expanded' => true,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrUse),
])
->add('ehiden3_use', Type\ChoiceType::class, [
'label' => 'e飛伝III使用',
'required' => false,
'expanded' => true,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrUse),
])
->add('ehidenpro_use', Type\ChoiceType::class, [
'label' => 'e飛伝Pro使用',
'required' => false,
'expanded' => true,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrUse),
])
->add('depo_use', Type\ChoiceType::class, [
'label' => 'Biz-Logi DEPO使用',
'required' => false,
'expanded' => true,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrUse),
])
->add('sagawa_time_type', Type\ChoiceType::class, [
'label' => '配達指定時間帯設定',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSagawaTimeType),
])
->add('sagawa_customer_code', Type\TextType::class, [
'label' => 'お客様コード',
'required' => false,
])
->add('sagawa_department_code', Type\TextType::class, [
'label' => '部署コード(※Proのみ)',
'required' => false,
])
->add('sagawa_department', Type\TextType::class, [
'label' => '部署・担当者',
'required' => false,
])
->add('sagawa_delivtype_normal', DeliverySelectType::class, [
'label' => '飛脚宅急便',
])
->add('sagawa_delivtype_super', DeliverySelectType::class, [
'label' => '飛脚スーパー便',
])
->add('sagawa_delivtype_express', DeliverySelectType::class, [
'label' => '飛脚即配便',
])
->add('sagawa_delivtype_air', DeliverySelectType::class, [
'label' => '飛脚航空便',
])
->add('sagawa_delivtype_just', DeliverySelectType::class, [
'label' => '飛脚ジャストタイム便',
])
->add('sagawa_delivtype_mail', DeliverySelectType::class, [
'label' => '飛脚メール便',
])
->add('sagawa_product_type', Type\ChoiceType::class, [
'label' => '便種(商品)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrProductType),
])
->add('sagawa_ecorrect', Type\ChoiceType::class, [
'label' => 'eコレクト設定',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrEcorect),
])
->add('sagawa_ehiden3_format', Type\ChoiceType::class, [
'label' => 'e飛伝IIIフォーマット設定(※e飛伝IIIのみ)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrEhiden3FormatType),
])
->add('sagawa_pro_format', Type\ChoiceType::class, [
'label' => 'e飛伝Pro取込フォーマット設定(※Proのみ)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrEhidenProFormatType),
])
->add('sagawa_ehiden2_header', Type\ChoiceType::class, [
'label' => 'e飛伝II・III項目名行出力設定',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrEhiden2Header),
])
->add('sagawa_shipping_export', Type\ChoiceType::class, [
'label' => '発送予定日の設定',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrExportB2),
])
->add('sagawa_print_flg', Type\ChoiceType::class, [
'label' => '出荷場印字区分の設定',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrEhiden2Header),
])
->add('yuprir_time_type', Type\ChoiceType::class, [
'label' => '配達指定時間帯設定',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrYupriRTimeType),
])
->add('yuprir_compellation_shipping', Type\ChoiceType::class, [
'label' => 'お届け先敬称',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrCompellation),
])
->add('yuprir_compellation_order', Type\ChoiceType::class, [
'label' => 'ご依頼主敬称',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrCompellation),
])
->add('yuprir_size', Type\ChoiceType::class, [
'label' => 'サイズ',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSize),
])
->add('yuprir_thickness', Type\ChoiceType::class, [
'label' => '厚さ(ゆうパケット)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrThickness),
])
->add('yuprir_delivtype_yupack', DeliverySelectType::class, [
'label' => 'ゆうパック',
])
->add('yuprir_delivtype_mail', DeliverySelectType::class, [
'label' => 'ゆうメール',
])
->add('yuprir_delivtype_normal', DeliverySelectType::class, [
'label' => '通常(定型)',
])
->add('yuprir_delivtype_normal2', DeliverySelectType::class, [
'label' => '通常(定型外)',
])
->add('yuprir_delivtype_pospacket', DeliverySelectType::class, [
'label' => 'ポスパケット',
])
->add('yuprir_delivtype_label', DeliverySelectType::class, [
'label' => '宛名ラベル',
])
->add('yuprir_delivtype_yupacket', DeliverySelectType::class, [
'label' => 'ゆうパケット',
])
->add('yuprir_sendtype_yupack', Type\ChoiceType::class, [
'label' => '送り状種別(ゆうパック元払時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType1),
])
->add('yuprir_sendtype_yupack_cod', Type\ChoiceType::class, [
'label' => '送り状種別(ゆうパック代引時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType2),
])
->add('yuprir_sendtype_mail', Type\ChoiceType::class, [
'label' => '送り状種別(ゆうメール元払時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType1),
])
->add('yuprir_sendtype_mail_cod', Type\ChoiceType::class, [
'label' => '送り状種別(ゆうメール代引時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType2),
])
->add('yuprir_sendtype_normal', Type\ChoiceType::class, [
'label' => '送り状種別(定型元払時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType1),
])
->add('yuprir_sendtype_normal_cod', Type\ChoiceType::class, [
'label' => '送り状種別(定型代引時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType2),
])
->add('yuprir_sendtype_normal2', Type\ChoiceType::class, [
'label' => '送り状種別(定型外元払時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType1),
])
->add('yuprir_sendtype_normal2_cod', Type\ChoiceType::class, [
'label' => '送り状種別(定型外代引時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType2),
])
->add('yuprir_sendtype_pospacket', Type\ChoiceType::class, [
'label' => '送り状種別(ポスパケット元払時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType1),
])
->add('yuprir_sendtype_label', Type\ChoiceType::class, [
'label' => '送り状種別(宛名ラベル元払時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType1),
])
->add('yuprir_sendtype_label_cod', Type\ChoiceType::class, [
'label' => '送り状種別(宛名ラベル代引時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType2),
])
->add('yuprir_sendtype_normal_time', Type\ChoiceType::class, [
'label' => '送り状種別(配時指定 定型元払時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType1),
])
->add('yuprir_sendtype_normal_time_cod', Type\ChoiceType::class, [
'label' => '送り状種別(配時指定 定型代引時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType2),
])
->add('yuprir_sendtype_normal2_time', Type\ChoiceType::class, [
'label' => '送り状種別(配時指定 定型外元払時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType1),
])
->add('yuprir_sendtype_normal2_time_cod', Type\ChoiceType::class, [
'label' => '送り状種別(配時指定 定型外代引時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType2),
])
->add('yuprir_sendtype_yupacket', Type\ChoiceType::class, [
'label' => '送り状種別(ゆうパケット元払時)',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrSendType1),
])
->add('yuprir_shipping_export', Type\ChoiceType::class, [
'label' => '発送予定日の設定',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrExportYupuriR),
])
->add('km2_delivtype_normal', DeliverySelectType::class, [
'label' => '西濃運輸便',
])
->add('km2_customer_code', Type\TextType::class, [
'label' => '荷送り人コード',
'required' => false,
])
->add('km2_department_code', Type\TextType::class, [
'label' => '部署コード',
'required' => false,
])
->add('km2_department_name', Type\TextType::class, [
'label' => '部署名',
'required' => false,
])
->add('km2_sendtype', Type\ChoiceType::class, [
'label' => '原票区分',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrKM2SendType),
])
->add('km2_output_type', Type\ChoiceType::class, [
'label' => '代引出力設定',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrKM2Output),
])
->add('km2_input_type', Type\ChoiceType::class, [
'label' => '取込フォーマット設定',
'required' => false,
'expanded' => false,
'multiple' => false,
'placeholder' => false,
'choices' => array_flip($arrKM2Input),
])
;
}
}