private async Task LoadReminderSummarySetting() { var setting = new List <ReminderSummarySetting>(); await ServiceProxyFactory.DoAsync <ReminderSettingServiceClient>(async client => { var result = await client.GetReminderSummarySettingsAsync(SessionKey, CompanyId); if (result.ProcessResult.Result) { setting = result.ReminderSummarySettings; } ReminderSummarySetting = setting; UseDestinationSummarized = ReminderSummarySetting.Any(x => x.ColumnName == "DestinationCode" && x.Available == 1); }); }
private void SetInitialSetting() { if (ReminderTemplateSetting?.Count > 0) { cmbReminderTemplate.TextSubItemIndex = 0; cmbReminderTemplate.ValueSubItemIndex = 1; cmbReminderTemplate.Items.AddRange(ReminderTemplateSetting.Select(x => new ListItem(x.Name, x.Id)).ToArray()); } UseDestinationSummarized = ReminderSummarySetting.Any(x => x.ColumnName == "DestinationCode" && x.Available == 1); if (UseDestinationSummarized) { BaseContext.SetFunction09Caption("検索"); BaseContext.SetFunction09Enabled(false); OnF09ClickHandler = ShowDestinationCodeSearchDialog; } }