Пример #1
0
        public ReceiptSearchFileDefinition(DataExpression expression, List <GridSetting> GridSettingInfo)
            : base(expression)
        {
            StartLineNumber = 1;
            DataTypeToken   = "入金データ";
            FileNameToken   = DataTypeToken;

            int fieldNumber = 1;

            Fields.Add(DeleteAtField = new NullableNumberFieldDefinition <Receipt, DateTime>(k => k.DeleteAt,
                                                                                             fieldName: "削除日", fieldNumber: fieldNumber,
                                                                                             accept: VisitDeleteAtField,
                                                                                             formatter: value => (value == DateTime.MinValue) ? "" : value.ToShortDateString()));

            foreach (GridSetting gs in GridSettingInfo)
            {
                fieldNumber++;
                IFieldDefinition <Receipt> field = null;
                switch (gs.ColumnName)
                {
                case "ExcludeFlag":
                    field = (ExcludeFlagField = new NumberFieldDefinition <Receipt, int>(k => k.ExcludeFlag,
                                                                                         accept: VisitExcludeFlagField,
                                                                                         formatter: value => value.ToString()));
                    break;

                case "ExcludeCategory":
                    field = (ExcludeCategoryNameField = new StringFieldDefinition <Receipt>(k => k.ExcludeCategoryName,
                                                                                            accept: VisitExcludeCategoryNameField));
                    break;

                case "Id":
                    field = (IdField = new NumberFieldDefinition <Receipt, long>(k => k.Id,
                                                                                 accept: VisitIdField,
                                                                                 formatter: value => value.ToString()));
                    break;

                case "AssignmentState":
                    field = (AssignmentFlagNameField = new StringFieldDefinition <Receipt>(k => k.AssignmentFlagName,
                                                                                           accept: VisitAssignmentFlagNameField));
                    break;

                case "RecordedAt":
                    field = (RecordedAtField = new NumberFieldDefinition <Receipt, DateTime>(k => k.RecordedAt,
                                                                                             accept: VisitRecordedAtField,
                                                                                             formatter: value => (value == null) ? "" : value.ToShortDateString()));
                    break;

                case "CustomerCode":
                    field = (CustomerCodeField = new StandardNullableIdToCodeFieldDefinition <Receipt, Customer>(
                                 k => k.CustomerId, c => c.Id, k => k.CustomerCode, c => c.Code,
                                 accept: VisitCustomerCodeField));
                    break;

                case "CustomerName":
                    field = (CustomerNameField = new StringFieldDefinition <Receipt>(k => k.CustomerName,
                                                                                     accept: VisitCustomerNameField));
                    break;

                case "PayerName":
                    field = (PayerNameField = new StringFieldDefinition <Receipt>(k => k.PayerName,
                                                                                  accept: VisitPayerNameField));
                    break;

                case "CurrencyCode":
                    field = (CurrencyIdField = new StandardIdToCodeFieldDefinition <Receipt, Currency>(
                                 k => k.CurrencyId, c => c.Id,
                                 k => k.CurrencyCode, c => c.Code,
                                 accept: VisitCurrencyIdField));
                    break;

                case "ReceiptAmount":
                    field = (ReceiptAmountField = new NumberFieldDefinition <Receipt, decimal>(k => k.ReceiptAmount,
                                                                                               accept: VisitReceiptAmountField,
                                                                                               formatter: value => value.ToString()));
                    break;

                case "RemainAmount":
                    field = (RemainAmountField = new NumberFieldDefinition <Receipt, decimal>(k => k.RemainAmount,
                                                                                              accept: VisitRemainAmountField,
                                                                                              formatter: value => value.ToString()));
                    break;

                case "ExcludeAmount":
                    field = (ExcludeAmountField = new NumberFieldDefinition <Receipt, decimal>(k => k.ExcludeAmount,
                                                                                               accept: VisitExcludeAmountField,
                                                                                               formatter: value => value.ToString()));
                    break;

                case "ReceiptCategoryName":
                    field = (ReceiptCategoryNameField = new StringFieldDefinition <Receipt>(k => k.CategoryCodeName,
                                                                                            accept: VisitReceiptCategoryNameField));
                    break;

                case "InputType":
                    field = (InputTypeField = new StringFieldDefinition <Receipt>(k => k.InputTypeName,
                                                                                  accept: VisitInputTypeField));
                    break;

                case "Note1":
                    field = (Note1Field = new StringFieldDefinition <Receipt>(k => k.Note1,
                                                                              accept: VisitNote1Field));
                    break;

                case "Note2":
                    field = (Note2Field = new StringFieldDefinition <Receipt>(k => k.Note2,
                                                                              accept: VisitNote2Field));
                    break;

                case "Note3":
                    field = (Note3Field = new StringFieldDefinition <Receipt>(k => k.Note3,
                                                                              accept: VisitNote3Field));
                    break;

                case "Note4":
                    field = (Note4Field = new StringFieldDefinition <Receipt>(k => k.Note4,
                                                                              accept: VisitNote4Field));
                    break;

                case "Memo":
                    field = (ReceiptMemoField = new StringFieldDefinition <Receipt>(k => k.ReceiptMemo,
                                                                                    accept: VisitReceiptMemoField));
                    break;

                case "DueAt":
                    field = (DueAtField = new NullableNumberFieldDefinition <Receipt, DateTime>(k => k.DueAt,
                                                                                                accept: VisitDueAtField,
                                                                                                formatter: value => (value == null) ? "" : value.ToShortDateString()));
                    break;

                case "SectionCode":
                    field = (SectionIdField = new StandardNullableIdToCodeFieldDefinition <Receipt, Section>(
                                 k => k.SectionId, c => c.Id,
                                 k => k.SectionCode, c => c.Code,
                                 accept: VisitSectionIdField));
                    break;

                case "SectionName":
                    field = (SectionNameField = new StringFieldDefinition <Receipt>(k => k.SectionName,
                                                                                    accept: VisitSectionNameField));
                    break;

                case "BankCode":
                    field = (BankCodeField = new StringFieldDefinition <Receipt>(k => k.BankCode,
                                                                                 accept: VisitBankCodeField));
                    break;

                case "BankName":
                    field = (BankNameField = new StringFieldDefinition <Receipt>(k => k.BankName,
                                                                                 accept: VisitBankNameField));
                    break;

                case "BranchCode":
                    field = (BranchCodeField = new StringFieldDefinition <Receipt>(k => k.BranchCode,
                                                                                   accept: VisitBranchCodeField));
                    break;

                case "BranchName":
                    field = (BranchNameField = new StringFieldDefinition <Receipt>(k => k.BranchName,
                                                                                   accept: VisitBranchNameField));
                    break;

                case "AccountNumber":
                    field = (AccountNumberField = new StringFieldDefinition <Receipt>(k => k.AccountNumber,
                                                                                      accept: VisitAccountNumberField));
                    break;

                case "SourceBankName":
                    field = (SourceBankNameField = new StringFieldDefinition <Receipt>(k => k.SourceBankName,
                                                                                       accept: VisitSourceBankNameField));
                    break;

                case "SourceBranchName":
                    field = (SourceBranchNameField = new StringFieldDefinition <Receipt>(k => k.SourceBranchName,
                                                                                         accept: VisitSourceBranchNameField));
                    break;

                case "VirtualBranchCode":
                    field = (PayerCodePrefixField = new StringFieldDefinition <Receipt>(k => k.PayerCodePrefix,
                                                                                        accept: VisitPayerCodePrefixField));
                    break;

                case "VirtualAccountNumber":
                    field = (PayerCodeSuffixField = new StringFieldDefinition <Receipt>(k => k.PayerCodeSuffix,
                                                                                        accept: VisitPayerCodeSuffixField));
                    break;

                case "OutputAt":
                    field = (OutputAtField = new NullableNumberFieldDefinition <Receipt, DateTime>(k => k.OutputAt,
                                                                                                   accept: VisitOutputAtField,
                                                                                                   formatter: value => (value == null) ? "" : value.ToString()));
                    break;

                case "BillNumber":
                    field = (BillNumberField = new StringFieldDefinition <Receipt>(k => k.BillNumber,
                                                                                   accept: VisitBillNumberField));
                    break;

                case "BillBankCode":
                    field = (BillBankCodeField = new StringFieldDefinition <Receipt>(k => k.BillBankCode,
                                                                                     accept: VisitBillBankCodeField));
                    break;

                case "BillBranchCode":
                    field = (BillBranchCodeField = new StringFieldDefinition <Receipt>(k => k.BillBranchCode,
                                                                                       accept: VisitBillBranchCodeField));
                    break;

                case "BillDrawAt":
                    field = (BillDrawAtField = new NullableNumberFieldDefinition <Receipt, DateTime>(k => k.BillDrawAt,
                                                                                                     accept: VisitBillDrawAtField,
                                                                                                     formatter: value => (value == null) ? "" : value.ToShortDateString()));
                    break;

                case "BillDrawer":
                    field = (BillDrawerField = new StringFieldDefinition <Receipt>(k => k.BillDrawer,
                                                                                   accept: VisitBillDrawerField));
                    break;
                }
                if (field == null)
                {
                    continue;
                }
                field.FieldName   = gs.ColumnNameJp;
                field.FieldNumber = fieldNumber;
                Fields.Add(field);
            }

            KeyFields.AddRange(new IFieldDefinition <Receipt>[]
            {
                CurrencyIdField,
                CustomerCodeField,
                SectionIdField,
            });
        }
Пример #2
0
        public LoginUserFileDefinition(DataExpression expression) : base(expression)
        {
            StartLineNumber = 1;
            DataTypeToken   = "ログインユーザー";
            FileNameToken   = DataTypeToken + "マスター";

            CompanyIdField = new StandardIdToCodeFieldDefinition <LoginUser, Company>(
                k => k.CompanyId, c => c.Id, null, c => c.Code)
            {
                FieldName   = "会社コード",
                FieldNumber = 1,
                Required    = false,
                Accept      = VisitCompanyId,
            };

            LoginUserCodeField = new StringFieldDefinition <LoginUser>(k => k.Code)
            {
                FieldName   = "ログインユーザーコード",
                FieldNumber = 2,
                Required    = true,
                Accept      = VisitLoginUserCode,
            };

            LoginUserNameField = new StringFieldDefinition <LoginUser>(k => k.Name)
            {
                FieldName   = "ログインユーザー名",
                FieldNumber = 3,
                Required    = true,
                Accept      = VisitLoginUserName,
            };

            DepartmentCodeField = new StandardIdToCodeFieldDefinition <LoginUser, Department>(
                k => k.DepartmentId, c => c.Id, l => l.DepartmentCode, c => c.Code)
            {
                FieldName   = "請求部門コード",
                FieldNumber = 4,
                Required    = true,
                Accept      = VisitDepartmentCode,
            };

            MailField = new StringFieldDefinition <LoginUser>(k => k.Mail)
            {
                FieldName   = "メールアドレス",
                FieldNumber = 5,
                Accept      = VisitMail,
            };

            MenuLevelField = new NumberFieldDefinition <LoginUser, int>(k => k.MenuLevel)
            {
                FieldName   = "権限レベル",
                FieldNumber = 6,
                Required    = true,
                Accept      = VisitMenuLevelField,
                Format      = value => value.ToString(),
            };

            FunctionLevelField = new NumberFieldDefinition <LoginUser, int>(k => k.FunctionLevel)
            {
                FieldName   = "セキュリティ",
                FieldNumber = 7,
                Required    = true,
                Accept      = VisitFunctionLevelField,
                Format      = value => value.ToString(),
            };

            UseClientField = new NumberFieldDefinition <LoginUser, int>(k => k.UseClient)
            {
                FieldName   = "V-ONE利用",
                FieldNumber = 8,
                Required    = true,
                Accept      = VisitUseClientField,
                Format      = value => value.ToString(),
            };

            UseWebViewerField = new NumberFieldDefinition <LoginUser, int>(k => k.UseWebViewer)
            {
                FieldName   = "WebViewer利用",
                FieldNumber = 9,
                Required    = true,
                Accept      = VisitUseWebViewerField,
                Format      = value => value.ToString(),
            };

            StaffCodeField = new StandardNullableIdToCodeFieldDefinition <LoginUser, Staff>(
                k => k.AssignedStaffId, c => c.Id, l => l.StaffCode, c => c.Code)
            {
                FieldName   = "営業担当者コード",
                FieldNumber = 10,
                Required    = false,
                Accept      = VisitStaffCode,
            };

            InitialPasswordField = new StringFieldDefinition <LoginUser>(k => k.InitialPassword)
            {
                FieldName   = "初回パスワード",
                FieldNumber = 11,
                Required    = false,
                Accept      = VisitInitialPassword,
            };

            Fields.AddRange(new IFieldDefinition <LoginUser>[] {
                CompanyIdField, LoginUserCodeField, LoginUserNameField, DepartmentCodeField, MailField,
                MenuLevelField, UseClientField, UseWebViewerField, FunctionLevelField, StaffCodeField,
                InitialPasswordField
            });
            KeyFields.AddRange(new IFieldDefinition <LoginUser>[]
            {
                LoginUserCodeField,
            });
        }
Пример #3
0
        }                                                                          //63

        public CustomerFileDefinition(DataExpression expression) : base(expression)
        {
            StartLineNumber = 1;
            DataTypeToken   = "得意先";
            FileNameToken   = DataTypeToken + "マスター";

            //1
            CompanyIdField = new StandardIdToCodeFieldDefinition <Customer, Company>(
                k => k.CompanyId, c => c.Id, null, c => c.Code)
            {
                FieldName   = "会社コード",
                FieldNumber = 1,
                Required    = false,
                Accept      = VisitCompanyId,
            };

            //2
            CustomerCodeField = new StringFieldDefinition <Customer>(k => k.Code)
            {
                FieldName   = "得意先コード",
                FieldNumber = 2,
                Required    = true,
                Accept      = VisitCustomerCode,
            };

            //3
            CustomerNameField = new StringFieldDefinition <Customer>(k => k.Name)
            {
                FieldName   = "得意先名",
                FieldNumber = 3,
                Required    = true,
                Accept      = VisitCustomerName,
            };

            //4
            CustomerKanaField = new StringFieldDefinition <Customer>(k => k.Kana)
            {
                FieldName   = "得意先名カナ",
                FieldNumber = 4,
                Required    = true,
                Accept      = VisitCustomerKana,
            };

            //5
            ExclusiveBankCodeField = new StringFieldDefinition <Customer>(k => k.ExclusiveBankCode)
            {
                FieldName   = "専用銀行コード",
                FieldNumber = 5,
                Required    = false,
                Accept      = VisitExclusiveBankCode,
            };

            //6
            ExclusiveBankNameField = new StringFieldDefinition <Customer>(k => k.ExclusiveBankName)
            {
                FieldName   = "専用銀行名",
                FieldNumber = 6,
                Required    = false,
                Accept      = VisitExclusiveBankName,
            };

            //7
            ExclusiveBranchCodeField = new StringFieldDefinition <Customer>(k => k.ExclusiveBranchCode)
            {
                FieldName   = "専用支店コード",
                FieldNumber = 7,
                Required    = false,
                Accept      = VisitExclusiveBranchCode,
            };

            //8
            ExclusiveBranchNameField = new StringFieldDefinition <Customer>(k => k.ExclusiveBranchName)
            {
                FieldName   = "専用支店名",
                FieldNumber = 8,
                Required    = false,
                Accept      = VisitExclusiveBranchName,
            };

            //9
            ExclusiveAccountNumberField = new StringFieldDefinition <Customer>(k => k.ExclusiveAccountNumber)
            {
                FieldName   = "専用入金口座番号",
                FieldNumber = 9,
                Required    = false,
                Accept      = VisitExclusiveAccountNumber,
            };

            //10
            ExclusiveAccountTypeIdField = new NullableNumberFieldDefinition <Customer, int>(k => k.ExclusiveAccountTypeId)
            {
                FieldName   = "預金種別",
                FieldNumber = 10,
                Required    = true,
                Accept      = VisitExclusiveAccountTypeId,
                Format      = value => value.ToString(),
            };

            //11
            ShareTransferFeeField = new NumberFieldDefinition <Customer, int>(k => k.ShareTransferFee)
            {
                FieldName   = "手数料負担区分",
                FieldNumber = 11,
                Required    = true,
                Accept      = VisitShareTransferFee,
                Format      = value => value.ToString(),
            };

            //12
            CreditLimitField = new NumberFieldDefinition <Customer, decimal>(k => k.CreditLimit)
            {
                FieldName   = "与信限度額",
                FieldNumber = 12,
                Required    = false,
                Accept      = VisitCreditLimit,
                Format      = value => value.ToString("#"),
            };

            //13
            ClosingDayField = new NumberFieldDefinition <Customer, int>(k => k.ClosingDay)
            {
                FieldName   = "締日",
                FieldNumber = 13,
                Required    = true,
                Accept      = VisitClosingDay,
                Format      = value => value.ToString("00"),
            };

            //14
            CollectCategoryIdField = new StandardIdToCodeFieldDefinition <Customer, Category>(
                k => k.CollectCategoryId, c => c.Id, null, c => c.Code)
            {
                FieldName   = "回収方法",
                FieldNumber = 14,
                Required    = true,
                Accept      = VisitCollectCategoryId,
            };

            //15
            CollectOffsetMonthField = new NumberFieldDefinition <Customer, int>(k => k.CollectOffsetMonth)
            {
                FieldName   = "回収予定(月)",
                FieldNumber = 15,
                Required    = true,
                Accept      = VisitCollectOffsetMonth,
                Format      = value => value.ToString(),
            };

            //16
            CollectOffsetDayField = new NumberFieldDefinition <Customer, int>(k => k.CollectOffsetDay)
            {
                FieldName   = "回収予定(日)",
                FieldNumber = 16,
                Required    = true,
                Accept      = VisitCollectOffsetDay,
                Format      = value => value.ToString(),
            };

            //17
            StaffCodeField = new StandardIdToCodeFieldDefinition <Customer, Staff>(
                k => k.StaffId, c => c.Id, l => l.StaffCode, c => c.Code)
            {
                FieldName   = "営業担当者",
                FieldNumber = 17,
                Required    = true,
                Accept      = VisitStaffCodeField,
            };

            //18
            IsParentField = new NumberFieldDefinition <Customer, int>(k => k.IsParent)
            {
                FieldName   = "債権代表者フラグ",
                FieldNumber = 18,
                Required    = true,
                Accept      = VisitIsParent,
                Format      = value => value.ToString(),
            };

            //19
            PostalCodeField = new StringFieldDefinition <Customer>(k => k.PostalCode)
            {
                FieldName   = "郵便番号",
                FieldNumber = 19,
                Required    = false,
                Accept      = VisitPostalCode,
            };
            //20
            Address1Field = new StringFieldDefinition <Customer>(k => k.Address1)
            {
                FieldName   = "住所1",
                FieldNumber = 20,
                Required    = false,
                Accept      = VisitAddress1Field,
            };
            //21
            Address2Field = new StringFieldDefinition <Customer>(k => k.Address2)
            {
                FieldName   = "住所2",
                FieldNumber = 21,
                Required    = false,
                Accept      = VisitAddress2Field,
            };

            //22
            TelField = new StringFieldDefinition <Customer>(k => k.Tel)
            {
                FieldName   = "TEL番号",
                FieldNumber = 22,
                Required    = false,
                Accept      = VisitTel,
            };

            //23
            FaxField = new StringFieldDefinition <Customer>(k => k.Fax)
            {
                FieldName   = "FAX番号",
                FieldNumber = 23,
                Required    = false,
                Accept      = VisitFax,
            };

            //24
            CustomerStaffNameField = new StringFieldDefinition <Customer>(k => k.CustomerStaffName)
            {
                FieldName   = "相手先担当者名",
                FieldNumber = 24,
                Required    = false,
                Accept      = VisitCustomerStaffName,
            };

            //25
            NoteField = new StringFieldDefinition <Customer>(k => k.Note)
            {
                FieldName   = "備考",
                FieldNumber = 25,
                Required    = false,
                Accept      = VisitNote,
            };

            //26
            UseFeeLearningField = new NumberFieldDefinition <Customer, int>(k => k.UseFeeLearning)
            {
                FieldName   = "手数料自動学習",
                FieldNumber = 26,
                Required    = true,
                Accept      = VisitUseFeeLearning,
                Format      = value => value.ToString(),
            };

            //27
            SightOfBillField = new NullableNumberFieldDefinition <Customer, int>(k => k.SightOfBill)
            {
                FieldName   = "回収サイト",
                FieldNumber = 27,
                Required    = true,
                Accept      = VisitSightOfBill,
                Format      = value => value.ToString(),
            };

            //28
            DensaiCodeField = new StringFieldDefinition <Customer>(k => k.DensaiCode)
            {
                FieldName   = "電子手形用企業コード",
                FieldNumber = 28,
                Required    = false,
                Accept      = VisitDensaiCode,
            };

            //29
            CreditCodeField = new StringFieldDefinition <Customer>(k => k.CreditCode)
            {
                FieldName   = "信用調査用企業コード",
                FieldNumber = 29,
                Required    = false,
                Accept      = VisitCreditCode,
            };

            //30
            CreditRankField = new StringFieldDefinition <Customer>(k => k.CreditRank)
            {
                FieldName   = "与信ランク",
                FieldNumber = 30,
                Required    = false,
                Accept      = VisitCreditRank,
            };

            //31
            TransferBankCodeField = new StringFieldDefinition <Customer>(k => k.TransferBankCode)
            {
                FieldName   = "口座振替用銀行コード",
                FieldNumber = 31,
                Required    = false,
                Accept      = VisitTransferBankCode,
            };

            //32
            TransferBankNameField = new StringFieldDefinition <Customer>(k => k.TransferBankName)
            {
                FieldName   = "口座振替用銀行名",
                FieldNumber = 32,
                Required    = false,
                Accept      = VisitTransferBankName,
            };

            //33
            TransferBranchCodeField = new StringFieldDefinition <Customer>(k => k.TransferBranchCode)
            {
                FieldName   = "口座振替用支店コード",
                FieldNumber = 33,
                Required    = false,
                Accept      = VisitTransferBranchCode,
            };

            //34
            TransferBranchNameField = new StringFieldDefinition <Customer>(k => k.TransferBranchName)
            {
                FieldName   = "口座振替用支店名",
                FieldNumber = 34,
                Required    = false,
                Accept      = VisitTransferBranchName,
            };
            //35
            TransferAccountNumberField = new StringFieldDefinition <Customer>(k => k.TransferAccountNumber)
            {
                FieldName   = "口座振替用口座番号",
                FieldNumber = 35,
                Required    = false,
                Accept      = VisitTransferAccountNumber,
            };

            //36
            TransferAccountTypeIdField = new NullableNumberFieldDefinition <Customer, int>(k => k.TransferAccountTypeId)
            {
                FieldName   = "口座振替用預金種別",
                FieldNumber = 36,
                Required    = true,
                Accept      = VisitTransferAccountTypeId,
                Format      = value => value.ToString(),
            };

            //37
            TransferCustomerCodeField = new StringFieldDefinition <Customer>(k => k.TransferCustomerCode)
            {
                FieldName   = "口座振替用顧客コード",
                FieldNumber = 37,
                Required    = false,
                Accept      = VisitTransferCustomerCode,
            };

            //38
            TransferNewCodeField = new StringFieldDefinition <Customer>(k => k.TransferNewCode)
            {
                FieldName   = "口座振替用新規コード",
                FieldNumber = 38,
                Required    = false,
                Accept      = VisitTransferNewCode,
            };

            //39
            TransferAccountNameField = new StringFieldDefinition <Customer>(k => k.TransferAccountName)
            {
                FieldName   = "口座振替用預金者名",
                FieldNumber = 39,
                Required    = false,
                Accept      = VisitTransferAccountName,
            };

            //40
            ThresholdValueField = new NumberFieldDefinition <Customer, decimal>(k => k.ThresholdValue)
            {
                FieldName   = "約定金額",
                FieldNumber = 40,
                Required    = true,
                Accept      = VisitThresholdValue,
                Format      = value => value.ToString("#"),
            };

            //41
            LessThanCollectCategoryIdField = new StandardIdToCodeFieldDefinition <Customer, Category>(
                k => k.LessThanCollectCategoryId, c => c.Id, null, c => c.Code)
            {
                FieldName   = "約定金額未満",
                FieldNumber = 41,
                Required    = true,
                Accept      = VisitLessThanCollectCategoryId,
            };

            //42
            GreaterThanCollectCategoryId1Field = new StandardIdToCodeFieldDefinition <Customer, Category>(
                k => k.GreaterThanCollectCategoryId1, c => c.Id, null, c => c.Code)
            {
                FieldName   = "約定金額以上1",
                FieldNumber = 42,
                Required    = true,
                Accept      = VisitGreaterThanCollectCategoryId1,
            };

            //43
            GreaterThanRate1Field = new NullableNumberFieldDefinition <Customer, decimal>(k => k.GreaterThanRate1)
            {
                FieldName   = "分割1",
                FieldNumber = 43,
                Required    = true,
                Accept      = VisitGreaterThanRate1,
                Format      = value => value.ToString(),
            };

            //44
            GreaterThanRoundingMode1Field = new NullableNumberFieldDefinition <Customer, int>(k => k.GreaterThanRoundingMode1)
            {
                FieldName   = "端数1",
                FieldNumber = 44,
                Required    = true,
                Accept      = VisitGreaterThanRoundingMode1,
                Format      = value => value.ToString(),
            };

            //45
            GreaterThanSightOfBill1Field = new NullableNumberFieldDefinition <Customer, int>(k => k.GreaterThanSightOfBill1)
            {
                FieldName   = "回収サイト1",
                FieldNumber = 45,
                Required    = true,
                Accept      = VisitGreaterThanSightOfBill1,
                Format      = value => value.ToString(),
            };

            //46
            GreaterThanCollectCategoryId2Field = new StandardNullableIdToCodeFieldDefinition <Customer, Category>(
                k => k.GreaterThanCollectCategoryId2, c => c.Id, null, c => c.Code)
            {
                FieldName   = "約定金額以上2",
                FieldNumber = 46,
                Required    = false,
                Accept      = VisitGreaterThanCollectCategoryId2,
            };

            //47
            GreaterThanRate2Field = new NullableNumberFieldDefinition <Customer, decimal>(k => k.GreaterThanRate2)
            {
                FieldName   = "分割2",
                FieldNumber = 47,
                Required    = true,
                Accept      = VisitGreaterThanRate2,
                Format      = value => value.ToString(),
            };

            //48
            GreaterThanRoundingMode2Field = new NullableNumberFieldDefinition <Customer, int>(k => k.GreaterThanRoundingMode2)
            {
                FieldName   = "端数2",
                FieldNumber = 48,
                Required    = true,
                Accept      = VisitGreaterThanRoundingMode2,
                Format      = value => value.ToString(),
            };

            //49
            GreaterThanSightOfBill2Field = new NullableNumberFieldDefinition <Customer, int>(k => k.GreaterThanSightOfBill2)
            {
                FieldName   = "回収サイト2",
                FieldNumber = 49,
                Required    = true,
                Accept      = VisitGreaterThanSightOfBill2,
                Format      = value => value.ToString(),
            };

            //50
            GreaterThanCollectCategoryId3Field = new StandardNullableIdToCodeFieldDefinition <Customer, Category>(
                k => k.GreaterThanCollectCategoryId3, c => c.Id, null, c => c.Code)
            {
                FieldName   = "約定金額以上3",
                FieldNumber = 50,
                Required    = false,
                Accept      = VisitGreaterThanCollectCategoryId3,
            };

            //51
            GreaterThanRate3Field = new NullableNumberFieldDefinition <Customer, decimal>(k => k.GreaterThanRate3)
            {
                FieldName   = "分割3",
                FieldNumber = 51,
                Required    = true,
                Accept      = VisitGreaterThanRate3,
                Format      = value => value.ToString(),
            };

            //52
            GreaterThanRoundingMode3Field = new NullableNumberFieldDefinition <Customer, int>(k => k.GreaterThanRoundingMode3)
            {
                FieldName   = "端数3",
                FieldNumber = 52,
                Required    = true,
                Accept      = VisitGreaterThanRoundingMode3,
                Format      = value => value.ToString(),
            };

            //53
            GreaterThanSightOfBill3Field = new NullableNumberFieldDefinition <Customer, int>(k => k.GreaterThanSightOfBill3)
            {
                FieldName   = "回収サイト3",
                FieldNumber = 53,
                Required    = true,
                Accept      = VisitGreaterThanSightOfBill3,
                Format      = value => value.ToString(),
            };

            //54
            UseKanaLearningField = new NumberFieldDefinition <Customer, int>(k => k.UseKanaLearning)
            {
                FieldName   = "カナ自動学習",
                FieldNumber = 54,
                Required    = true,
                Accept      = VisitUseKanaLearning,
                Format      = value => value.ToString(),
            };

            //55
            HolidayFlagField = new NumberFieldDefinition <Customer, int>(k => k.HolidayFlag)
            {
                FieldName   = "休業日設定",
                FieldNumber = 55,
                Required    = true,
                Accept      = VisitHolidayFlag,
                Format      = value => value.ToString(),
            };

            //56
            UseFeeToleranceField = new NumberFieldDefinition <Customer, int>(k => k.UseFeeTolerance)
            {
                FieldName   = "手数料誤差利用",
                FieldNumber = 56,
                Required    = true,
                Accept      = VisitUseFeeTolerance,
                Format      = value => value.ToString(),
            };

            //57
            PrioritizeMatchingIndividuallyField = new NumberFieldDefinition <Customer, int>(k => k.PrioritizeMatchingIndividually)
            {
                FieldName   = "一括消込対象外",
                FieldNumber = 57,
                Required    = true,
                Accept      = VisitPrioritizeMatchingIndividually,
                Format      = value => value.ToString(),
            };

            //58
            CollationKeyField = new StringFieldDefinition <Customer>(k => k.CollationKey)
            {
                FieldName   = "照合番号",
                FieldNumber = 58,
                Required    = false,
                Accept      = VisitCollationKey,
            };

            //60
            ExcludeInvoicePublishField = new NumberFieldDefinition <Customer, int>(k => k.ExcludeInvoicePublish)
            {
                FieldName   = "請求書発行対象外",
                FieldNumber = 60,
                Required    = true,
                Accept      = VisitExcludeInvoicePublish,
                Format      = value => value.ToString(),
            };

            //61
            ExcludeReminderPublishField = new NumberFieldDefinition <Customer, int>(k => k.ExcludeReminderPublish)
            {
                FieldName   = "督促状発行対象外",
                FieldNumber = 61,
                Required    = true,
                Accept      = VisitExcludeReminderPublish,
                Format      = value => value.ToString(),
            };

            //62
            DestinationDepartmentNameField = new StringFieldDefinition <Customer>(k => k.DestinationDepartmentName)
            {
                FieldName   = "相手先部署",
                FieldNumber = 62,
                Required    = false,
                Accept      = VisitDestinationDepartmentName,
            };

            //63
            HonorificField = new StringFieldDefinition <Customer>(k => k.Honorific)
            {
                FieldName   = "敬称",
                FieldNumber = 63,
                Required    = false,
                Accept      = VisitHonorific,
            };

            Fields.AddRange(new IFieldDefinition <Customer>[] {
                CompanyIdField, CustomerCodeField, CustomerNameField, CustomerKanaField, ExclusiveBankCodeField,

                ExclusiveBankNameField, ExclusiveBranchCodeField, ExclusiveBranchNameField, ExclusiveAccountNumberField, ExclusiveAccountTypeIdField

                , ShareTransferFeeField, CreditLimitField, ClosingDayField, CollectCategoryIdField, CollectOffsetMonthField

                , CollectOffsetDayField, StaffCodeField, IsParentField, PostalCodeField, Address1Field,

                Address2Field, TelField, FaxField, CustomerStaffNameField, NoteField,

                UseFeeLearningField, SightOfBillField, DensaiCodeField, CreditCodeField, CreditRankField,

                TransferBankCodeField, TransferBankNameField, TransferBranchCodeField, TransferBranchNameField, TransferAccountNumberField,

                TransferAccountTypeIdField, TransferCustomerCodeField, TransferNewCodeField, TransferAccountNameField,

                ThresholdValueField, LessThanCollectCategoryIdField, GreaterThanCollectCategoryId1Field, GreaterThanRate1Field,

                GreaterThanRoundingMode1Field, GreaterThanSightOfBill1Field, GreaterThanCollectCategoryId2Field, GreaterThanRate2Field, GreaterThanRoundingMode2Field

                , GreaterThanSightOfBill2Field, GreaterThanCollectCategoryId3Field, GreaterThanRate3Field, GreaterThanRoundingMode3Field, GreaterThanSightOfBill3Field

                , UseKanaLearningField, HolidayFlagField, UseFeeToleranceField, PrioritizeMatchingIndividuallyField, CollationKeyField, ExcludeInvoicePublishField, ExcludeReminderPublishField

                , DestinationDepartmentNameField, HonorificField
            });

            KeyFields.AddRange(new IFieldDefinition <Customer>[]
            {
                CustomerCodeField,
            });
        }