diff options
| author | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-30 13:38:18 +0000 |
|---|---|---|
| committer | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-30 13:38:18 +0000 |
| commit | 1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 (patch) | |
| tree | e1c3b20ea08f0cf71122a1e73f0d395f8fd83874 /Gestor.Application/Servicos/Ajuda | |
| parent | 674ca83ba9243a9e95a7568c797668dab6aee26a (diff) | |
| download | gestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.tar.gz gestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.zip | |
chore: location
Diffstat (limited to 'Gestor.Application/Servicos/Ajuda')
| -rw-r--r-- | Gestor.Application/Servicos/Ajuda/AjudaServico.cs | 129 |
1 files changed, 0 insertions, 129 deletions
diff --git a/Gestor.Application/Servicos/Ajuda/AjudaServico.cs b/Gestor.Application/Servicos/Ajuda/AjudaServico.cs deleted file mode 100644 index 30e8886..0000000 --- a/Gestor.Application/Servicos/Ajuda/AjudaServico.cs +++ /dev/null @@ -1,129 +0,0 @@ -using CsQuery.ExtensionMethods.Internal;
-using Gestor.Application.Helpers;
-using Gestor.Application.Model.Ajuda;
-using Gestor.Application.Servicos.Generic;
-using Gestor.Model.License;
-using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Diagnostics;
-using System.Runtime.CompilerServices;
-using System.Threading.Tasks;
-
-namespace Gestor.Application.Servicos.Ajuda
-{
- public class AjudaServico : BaseServico
- {
- public AjudaServico()
- {
- }
-
- internal async Task<ObservableCollection<Atendimento>> BuscarAtendimentos(string status)
- {
- ObservableCollection<Atendimento> observableCollection = await Task.Run<ObservableCollection<Atendimento>>(() => {
- ObservableCollection<Atendimento> result;
- try
- {
- result = Connection.Get<ObservableCollection<Atendimento>>(string.Format("Attendance/{0}", (status == "PENDENTES" ? 1 : 2)), true, false).Result;
- }
- catch (Exception exception)
- {
- result = null;
- }
- return result;
- });
- return observableCollection;
- }
-
- internal async Task<List<Boleto>> BuscarBoletosNotas(string status)
- {
- List<Boleto> boletos = await Task.Run<List<Boleto>>(() => {
- List<Boleto> result;
- try
- {
- result = Connection.Get<List<Boleto>>(string.Format("Billet/{0}", status == "BAIXADOS"), true, false).Result;
- }
- catch (Exception exception)
- {
- result = null;
- }
- return result;
- });
- return boletos;
- }
-
- internal async Task<Contrato> BuscarContrato(Produto produto)
- {
- Contrato contrato = await Task.Run<Contrato>(() => {
- Contrato result;
- try
- {
- result = Connection.Get<Contrato>(string.Format("Contract/{0}", ExtensionMethods.GetValue(produto)), true, false).Result;
- }
- catch (Exception exception)
- {
- result = null;
- }
- return result;
- });
- return contrato;
- }
-
- internal async Task<string> BuscarCorpoAtendimentos(long id)
- {
- string str = await Task.Run<string>(() => {
- string result;
- try
- {
- result = Connection.Get<string>(string.Format("Attendance/Body/{0}", id), true, false).Result;
- }
- catch (Exception exception)
- {
- result = null;
- }
- return result;
- });
- return str;
- }
-
- internal async Task<ObservableCollection<Gestor.Application.Model.Ajuda.Instalacao>> BuscarLicencas()
- {
- ObservableCollection<Gestor.Application.Model.Ajuda.Instalacao> observableCollection = await Task.Run<ObservableCollection<Gestor.Application.Model.Ajuda.Instalacao>>(() => {
- ObservableCollection<Gestor.Application.Model.Ajuda.Instalacao> result;
- try
- {
- result = Connection.Get<ObservableCollection<Gestor.Application.Model.Ajuda.Instalacao>>(string.Format("License/{0}", ApplicationHelper.IdFornecedor), true, false).Result;
- }
- catch (Exception exception)
- {
- result = null;
- }
- return result;
- });
- return observableCollection;
- }
-
- internal async Task<bool> ExcluirInstalacao(long id)
- {
- int num = 3;
- bool flag = await Task.Run<bool>(() => {
- bool result;
- while (num > 0)
- {
- try
- {
- result = Connection.Delete(string.Format("License/{0}", id)).Result;
- }
- catch (Exception exception)
- {
- num = base.Registrar(exception, 273, num, id, true);
- continue;
- }
- return result;
- }
- return false;
- });
- return flag;
- }
- }
-}
\ No newline at end of file |