private async Task <List <ReminderHistory> > GetReminderListAsync(ReminderSearch condition) => await ServiceProxyFactory.DoAsync(async (ReminderServiceClient client) => { var result = await client.GetReminderListAsync(SessionKey, condition, ReminderCommonSetting); if (result.ProcessResult.Result && result.ReminderHistories.Count >= 0) { return(result.ReminderHistories); } else { return(null); } });
public async Task <ReminderResult> GetItemsAsync(string SessionKey, ReminderSearch condition, ReminderCommonSetting setting, ReminderSummarySetting[] summary) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = (await reminderProcessor.GetItemsAsync(condition, setting, summary, token)).ToList(); return new ReminderResult { ProcessResult = new ProcessResult { Result = true }, Reminder = result, }; }, logger)); }
private ReminderSearch GetSearchCondition() { var reminderSearch = new ReminderSearch(); reminderSearch.CompanyId = CompanyId; reminderSearch.CurrencyCode = UseForeignCurrency ? reminderSearch.CurrencyCode = txtCurrencyCode.Text : DefaultCurrencyCode; if (!IsCustomerUnit) { reminderSearch.CalculateBaseDate = datPaymentDate.Value.Value; reminderSearch.ArrearDaysFrom = (int?)txtFromArrearDays.Value; reminderSearch.ArrearDaysTo = (int?)txtToArrearDays.Value; reminderSearch.Status = (int)cmbStatus.SelectedValue; reminderSearch.Status = (int)cmbStatus.SelectedValue; if (cbxNoOutput.Checked && cbxOutputed.Checked) { reminderSearch.OutputFlag = null; } else if (cbxNoOutput.Checked) { reminderSearch.OutputFlag = 0; } else if (cbxOutputed.Checked) { reminderSearch.OutputFlag = 1; } int assignmentFlag; if (cbxNoAssignment.Checked && cbxFullAssignment.Checked) { assignmentFlag = (int)AssignmentFlagChecked.All; } else if (cbxNoAssignment.Checked && !cbxFullAssignment.Checked) { assignmentFlag = (int)AssignmentFlagChecked.NoAssignment; } else if (!cbxNoAssignment.Checked && cbxFullAssignment.Checked) { assignmentFlag = (int)AssignmentFlagChecked.FullAssignment; } else { assignmentFlag = (int)AssignmentFlagChecked.None; } reminderSearch.AssignmentFlg = assignmentFlag; } if (datCreateAtFrom.Value.HasValue) { reminderSearch.CreateAtFrom = datCreateAtFrom.Value.Value; } if (datCreateAtTo.Value.HasValue) { var updateAtTo = datCreateAtTo.Value.Value; reminderSearch.CreateAtTo = updateAtTo.Date.AddDays(1).AddMilliseconds(-1); } if (!string.IsNullOrWhiteSpace(txtReminderMemo.Text)) { reminderSearch.ReminderMemo = txtReminderMemo.Text; } if (!string.IsNullOrWhiteSpace(txtFromCustomerCode.Text)) { reminderSearch.CustomerCodeFrom = txtFromCustomerCode.Text; } if (!string.IsNullOrWhiteSpace(txtToCustomerCode.Text)) { reminderSearch.CustomerCodeTo = txtToCustomerCode.Text; } if (!string.IsNullOrEmpty(txtLoginUserCode.Text)) { reminderSearch.CreateByCode = txtLoginUserCode.Text; } reminderSearch.ReminderManaged = !IsCustomerUnit; return(reminderSearch); }
public async Task <IEnumerable <ReminderSummary> > GetSummaryItemsByDestination(ReminderSearch option, CancellationToken token) => (await reminderProcessor.GetSummaryItemsByDestinationAsync(option, option.Setting)).ToArray();
public async Task <IEnumerable <Reminder> > GetItems(ReminderSearch option, CancellationToken token) => (await reminderProcessor.GetItemsAsync(option, option.Setting, option.SummarySettings, token)).ToArray();
public async Task <IEnumerable <ReminderHistory> > GetReminderList(ReminderSearch option, CancellationToken token) => (await reminderProcessor.GetReminderListAsync(option, option.Setting)).ToArray();
public async Task <IEnumerable <ReminderSummary> > GetSummaryItemsByDestinationAsync(ReminderSearch search, ReminderCommonSetting setting, CancellationToken token = default(CancellationToken)) => await reminderQueryProcessor.GetSummaryItemsByDestinationAsync(search, setting, token);
public async Task <IEnumerable <Reminder> > GetItemsAsync(ReminderSearch search, ReminderCommonSetting setting, ReminderSummarySetting[] summary, CancellationToken token = default(CancellationToken)) => await reminderQueryProcessor.GetItemsAsync(search, setting, summary, token);
public async Task <IEnumerable <ReminderHistory> > GetReminderListAsync(ReminderSearch search, ReminderCommonSetting setting, CancellationToken token = default(CancellationToken)) => await reminderQueryProcessor.GetReminderListAsync(search, setting, token);
public async Task <ReminderHistoriesResult> GetReminderListAsync(string SessionKey, ReminderSearch search, ReminderCommonSetting setting) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = (await reminderProcessor.GetReminderListAsync(search, setting, token)).ToList(); return new ReminderHistoriesResult { ProcessResult = new ProcessResult() { Result = true }, ReminderHistories = result, }; }, logger)); }