} /*_InputCheck*/

        private void _DuplicateCheckInFile(AirBagDetailInputFile row, List <AirBagDetailInputFile> searchResult)
        {
            var chassisNoSearchResult = searchResult.Where(x => x.ChassisNo == row.ChassisNo).ToList();

            if (chassisNoSearchResult.Count > 1)
            {
                row.ErrorMessages += Resources.E_ChassisNoDuplicateInFile;
            }
        }
        private void _InputCheck(AirBagDetailInputFile row, List <string> status)
        {
            var colIndex      = new AirBagDetailInputFileMap().MemberMaps.ToDictionary(x => x.Data.Member.Name, x => x.Data.Index + 1);
            var errorMessages = new List <string>();

            //エラー処理をカプセル化
            void addError(string columnName, string msg) => errorMessages.Add(string.Format(Resources.Format_ColIndex, colIndex[columnName], msg));

            //必須チェック
            void requiredCheck(string value, string columnName)
            {
                if (string.IsNullOrEmpty(value))
                {
                    addError(columnName, Resources.E_Required);
                }
            }

            //文字数チェック
            void lengthCheck(string value, string columnName, int maxLength)
            {
                if (!string.IsNullOrEmpty(value) && value.Length > maxLength)
                {
                    addError(columnName, string.Format(Resources.E_StringLength, maxLength));
                }
            }

            //DateTime刑チェック
            void dateCheck(DateTime?value, string columnName)
            {
                //DateTime dt;
                //bool success = DateTime.TryParseExact(value.ToString(), "dd/MM/yyyy", CultureInfo.InvariantCulture, DateTimeStyles.None, out dt);

                if (value == null)
                {
                    addError(columnName, Resources.E_DateFormat);
                }
            }

            //Result形式チェック
            void recallCheck(string value, string columnName)
            {
                if (!status.Contains(value))
                {
                    addError(columnName, Resources.E_StatusName);
                }
            }

            void nonAlpharecallCheck(string value, string columnName)
            {
                if (!status.Contains(value))
                {
                    addError(columnName, Resources.E_NonAlphaStatusName);
                }
            }

            void halfWidthString(string value, string columnName)
            {
                Encoding sjisEnc = Encoding.GetEncoding("Shift_JIS");

                int num = sjisEnc.GetByteCount(value);

                if (num == value.Length * 2)
                {
                    addError(columnName, Resources.E_HalfString);
                }
            }

            //必須チェック
            requiredCheck(row.CarMakerNameEng, nameof(row.CarMakerNameEng));
            requiredCheck(row.CarModelName, nameof(row.CarModelName));
            requiredCheck(row.ChassisNo, nameof(row.ChassisNo));
            requiredCheck(row.InspectionDateText, nameof(row.InspectionDateText));
            requiredCheck(row.RecallStatusName, nameof(row.RecallStatusName));
            requiredCheck(row.NonAlphaRecallStatusName, nameof(row.NonAlphaRecallStatusName));

            //文字数チェック
            lengthCheck(row.CarMakerNameEng, nameof(row.CarMakerNameEng), 100);
            lengthCheck(row.CarModelName, nameof(row.CarModelName), 100);
            lengthCheck(row.ChassisNo, nameof(row.ChassisNo), 100);
            lengthCheck(row.InspectionDateText, nameof(row.InspectionDateText), 100);
            lengthCheck(row.RecallStatusName, nameof(row.RecallStatusName), 100);
            lengthCheck(row.NonAlphaRecallStatusName, nameof(row.NonAlphaRecallStatusName), 100);
            //半角チェック
            halfWidthString(row.ChassisNo, nameof(row.ChassisNo));
            //DateTime刑チェック
            //dateCheck(row.InspectionDate, nameof(row.InspectionDateText));
            dateCheck(row.InspectionDate, nameof(row.InspectionDateText));
            //Result形式チェック
            recallCheck(row.RecallStatusName, nameof(row.RecallStatusName));
            nonAlpharecallCheck(row.NonAlphaRecallStatusName, nameof(row.NonAlphaRecallStatusName));

            if (errorMessages.Any())
            {
                row.ErrorMessages += string.Join(",", errorMessages);
            }
        } /*_InputCheck*/