private async Task ShowAllDataAsync()
        {
            if (txtPatternNumber.Text != "")
            {
                var patternNo = txtPatternNumber.Text;
                txtPatternNumber.Text    = patternNo.PadLeft(2, '0');
                txtPatternNumber.Enabled = false;
                ImporterSettingResult result = null;
                await ServiceProxyFactory.DoAsync <ImporterSettingServiceClient>(async client
                                                                                 => result = await client.GetHeaderByCodeAsync(SessionKey, CompanyId, FormatId, txtPatternNumber.Text));

                if (result.ImporterSetting != null)
                {
                    txtPatternName.Text      = result.ImporterSetting.Name;
                    txtInitialDirectory.Text = result.ImporterSetting.InitialDirectory;
                    nmbStartLineCount.Text   = result.ImporterSetting.StartLineCount.ToString();
                    updateAt                   = result.ImporterSetting.UpdateAt;
                    ImporterSettingId          = result.ImporterSetting.Id;
                    btnPatternNoSearch.Enabled = false;
                    if (result.ImporterSetting.PostAction == 0)
                    {
                        rdoNoAction.Checked = true;
                    }
                    else if (result.ImporterSetting.PostAction == 1)
                    {
                        rdoDelete.Checked = true;
                    }
                    else if (result.ImporterSetting.PostAction == 2)
                    {
                        rdoAddDate.Checked = true;
                    }
                    if (result.ImporterSetting.IgnoreLastLine == 1)
                    {
                        cbxIgnoreLastLine.Checked = true;
                    }
                    else if (result.ImporterSetting.IgnoreLastLine == 0)
                    {
                        cbxIgnoreLastLine.Checked = false;
                    }
                    await SetDataGridViewAsync();

                    BaseContext.SetFunction03Enabled(true);
                    Modified = false;
                    ClearStatusMessage();
                }
                else
                {
                    BaseContext.SetFunction08Enabled(true);
                    await SetDataGridViewAsync();

                    btnPatternNoSearch.Enabled = false;
                    ClearStatusMessage();
                    DispStatusMessage(MsgInfNewData, "パターンNo.");
                    Modified = true;
                }
                this.ActiveControl = txtPatternName;
                txtPatternName.Focus();
            }
        }
        private async Task LoadImporterSetting()
        {
            var result = new ImporterSettingResult();
            await ServiceProxyFactory.LifeTime(async factory =>
            {
                var service = factory.Create <ImporterSettingServiceClient>();
                result      = await service.GetHeaderByCodeAsync(SessionKey, CompanyId, (int)FreeImporterFormatType.Billing, txtCode.Text);
            });

            if (result.ProcessResult.Result)
            {
                ImporterSetting = result.ImporterSetting;
            }
        }