summaryrefslogtreecommitdiff
path: root/Decompiler/Gestor.Application.Views.Seguros/ComissaoView.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Decompiler/Gestor.Application.Views.Seguros/ComissaoView.cs')
-rw-r--r--Decompiler/Gestor.Application.Views.Seguros/ComissaoView.cs1028
1 files changed, 1028 insertions, 0 deletions
diff --git a/Decompiler/Gestor.Application.Views.Seguros/ComissaoView.cs b/Decompiler/Gestor.Application.Views.Seguros/ComissaoView.cs
new file mode 100644
index 0000000..b5b4178
--- /dev/null
+++ b/Decompiler/Gestor.Application.Views.Seguros/ComissaoView.cs
@@ -0,0 +1,1028 @@
+using System;
+using System.CodeDom.Compiler;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Diagnostics;
+using System.IO;
+using System.Linq;
+using System.Runtime.CompilerServices;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Threading;
+using Gestor.Application.Actions;
+using Gestor.Application.Drawers;
+using Gestor.Application.Helpers;
+using Gestor.Application.Servicos;
+using Gestor.Application.ViewModels.Comissao;
+using Gestor.Application.Views.Generic;
+using Gestor.Common.Validation;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using MaterialDesignThemes.Wpf;
+using Xceed.Wpf.AvalonDock.Controls;
+
+namespace Gestor.Application.Views.Seguros;
+
+public class ComissaoView : BaseUserControl, IComponentConnector, IStyleConnector
+{
+ [Serializable]
+ [CompilerGenerated]
+ private sealed class _003C_003Ec
+ {
+ public static readonly _003C_003Ec _003C_003E9 = new _003C_003Ec();
+
+ public static MouseButtonEventHandler _003C_003E9__5_0;
+
+ internal void _003CContentLoad_003Eb__5_0(object sender, MouseButtonEventArgs args)
+ {
+ }
+ }
+
+ internal ComboBox UsuarioBox;
+
+ internal ComboBox StatusBox;
+
+ internal ComboBox SeguradoraBox;
+
+ internal ComboBox Seguradora2Box;
+
+ internal DatePicker InicioBox;
+
+ internal DatePicker FimBox;
+
+ internal DataGrid ExtratoGrid;
+
+ internal Card ProgressBar2;
+
+ internal Card ProgressBar;
+
+ internal MenuItem DesfazerExtratoButton;
+
+ internal DatePicker DataBaixaBox;
+
+ internal TextBox FiltroDetalhes;
+
+ internal DataGrid DetalhesGrid;
+
+ internal Grid PainelCritica;
+
+ internal AutoCompleteBox AutoCompleteCliente;
+
+ internal TextBox TipoDocumentoPrincipalBox;
+
+ internal TextBox DocumentoPrincipalBox;
+
+ internal TextBox FiltroApoliceBox;
+
+ internal DataGrid ApoliceGrid;
+
+ internal DataGrid ParcelaGrid;
+
+ internal DataGridTextColumn ParcelaColumn;
+
+ internal DataGrid FaturaGrid;
+
+ private bool _contentLoaded;
+
+ public ComissaoViewModel ViewModel { get; set; }
+
+ public SubTipo _previousSubTipo { get; set; } = (SubTipo)2;
+
+
+ public ComissaoView()
+ {
+ //IL_0002: Unknown result type (might be due to invalid IL or missing references)
+ ((FrameworkElement)this).Tag = "COMISSÃO AUTOMÁTICA";
+ ViewModel = new ComissaoViewModel();
+ ((FrameworkElement)this).DataContext = ViewModel;
+ InitializeComponent();
+ Dispatcher dispatcher = ((DispatcherObject)this).Dispatcher;
+ if (dispatcher != null)
+ {
+ dispatcher.BeginInvoke((DispatcherPriority)7, (Delegate)new Action(ContentLoad));
+ }
+ ((FrameworkElement)ExtratoGrid).DataContext = ((FrameworkElement)this).DataContext;
+ }
+
+ private void ContentLoad()
+ {
+ //IL_000d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0017: Expected O, but got Unknown
+ //IL_0024: Unknown result type (might be due to invalid IL or missing references)
+ //IL_002e: Expected O, but got Unknown
+ //IL_003b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0045: Expected O, but got Unknown
+ //IL_0052: Unknown result type (might be due to invalid IL or missing references)
+ //IL_005c: Expected O, but got Unknown
+ //IL_0080: Unknown result type (might be due to invalid IL or missing references)
+ //IL_008a: Expected O, but got Unknown
+ //IL_0097: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00a1: Expected O, but got Unknown
+ //IL_00c5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00cf: Expected O, but got Unknown
+ //IL_0106: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0110: Expected O, but got Unknown
+ //IL_011d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0127: Expected O, but got Unknown
+ //IL_00e9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00ee: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00f4: Expected O, but got Unknown
+ ((UIElement)DataBaixaBox).LostKeyboardFocus += new KeyboardFocusChangedEventHandler(base.DatePicker_OnLostKeyboardFocus);
+ ((UIElement)DataBaixaBox).PreviewKeyDown += new KeyEventHandler(base.DatePicker_PreviewKeyDown);
+ ((UIElement)InicioBox).LostKeyboardFocus += new KeyboardFocusChangedEventHandler(base.DatePicker_OnLostKeyboardFocus);
+ ((UIElement)InicioBox).PreviewKeyDown += new KeyEventHandler(base.DatePicker_PreviewKeyDown);
+ InicioBox.SelectedDateChanged += FiltroDataBox_OnSelectedDateChanged;
+ ((UIElement)FimBox).LostKeyboardFocus += new KeyboardFocusChangedEventHandler(base.DatePicker_OnLostKeyboardFocus);
+ ((UIElement)FimBox).PreviewKeyDown += new KeyEventHandler(base.DatePicker_PreviewKeyDown);
+ FimBox.SelectedDateChanged += FiltroDataBox_OnSelectedDateChanged;
+ ((Selector)ExtratoGrid).SelectionChanged += new SelectionChangedEventHandler(Grid_OnSelectionChanged);
+ DataGrid extratoGrid = ExtratoGrid;
+ object obj = _003C_003Ec._003C_003E9__5_0;
+ if (obj == null)
+ {
+ MouseButtonEventHandler val = delegate
+ {
+ };
+ _003C_003Ec._003C_003E9__5_0 = val;
+ obj = (object)val;
+ }
+ ((Control)extratoGrid).MouseDoubleClick += (MouseButtonEventHandler)obj;
+ ((Control)DetalhesGrid).MouseDoubleClick += new MouseButtonEventHandler(DetalhesGrid_OnMouseDoubleClick);
+ ((Selector)ApoliceGrid).SelectionChanged += new SelectionChangedEventHandler(ApoliceGrid_OnSelectionChanged);
+ }
+
+ private async void ApoliceGrid_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ DataGrid val = (DataGrid)sender;
+ if (val == null || ((Selector)val).SelectedIndex >= 0)
+ {
+ await ViewModel.SelecionaDocumento((Documento)((val != null) ? ((ItemsControl)val).Items[((Selector)val).SelectedIndex] : null));
+ }
+ }
+
+ private async void Grid_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ DataGrid val = (DataGrid)sender;
+ if (val != null && ((Selector)val).SelectedIndex >= 0)
+ {
+ await ViewModel.SelecionaExtrato((Extrato)((ItemsControl)val).Items[((Selector)val).SelectedIndex]);
+ }
+ }
+
+ private async void AutoCompleteBoxDetalhe_OnTextChanged(object sender, RoutedEventArgs e)
+ {
+ TextBox val = (TextBox)sender;
+ await ViewModel.FiltrarDetalhe(((val != null) ? val.Text : null) ?? "");
+ }
+
+ private async void AutoCompleteBoxDocumento_OnTextChanged(object sender, RoutedEventArgs e)
+ {
+ TextBox val = (TextBox)sender;
+ await ViewModel.FiltrarApolices(((val != null) ? val.Text : null) ?? "");
+ }
+
+ private async void DetalhesGrid_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
+ {
+ DataGrid val = (DataGrid)sender;
+ if (val == null || ((Selector)val).SelectedIndex >= 0)
+ {
+ ViewModel.Loading(isLoading: true);
+ ViewModel.IsVisibleDetalhes = (Visibility)2;
+ DetalheExtrato val2 = (DetalheExtrato)((val != null) ? ((ItemsControl)val).Items[((Selector)val).SelectedIndex] : null);
+ if (val2 != null)
+ {
+ await AbrirCritica(val2);
+ ViewModel.IsVisibleDetalhes = (Visibility)0;
+ ViewModel.Loading(isLoading: false);
+ }
+ }
+ }
+
+ private async Task AbrirCritica(DetalheExtrato detalhe)
+ {
+ List<StatusParcela> list = new List<StatusParcela>
+ {
+ (StatusParcela)1,
+ (StatusParcela)10,
+ (StatusParcela)12,
+ (StatusParcela)13
+ };
+ if (detalhe.Status.HasValue && list.Contains(detalhe.Status.Value))
+ {
+ await ViewModel.ShowMessage("NÃO É POSSÍVEL CRITICAR UMA PARCELA JÁ BAIXADA");
+ return;
+ }
+ ViewModel.FiltrarDetalheExtrato(((DomainBase)detalhe).Id);
+ await ViewModel.BuscarCriticado(detalhe);
+ if (!detalhe.Parcela.HasValue && !detalhe.Documento.HasValue)
+ {
+ AutoCompleteCliente.Text = detalhe.Cliente.Trim();
+ }
+ ViewModel.Criticando = true;
+ ((UIElement)PainelCritica).Visibility = (Visibility)0;
+ ((UIElement)FiltroDetalhes).Visibility = (Visibility)2;
+ ((UIElement)DetalhesGrid).Visibility = (Visibility)2;
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: false);
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: false);
+ ViewModel.FiltroApolice = string.Empty;
+ }
+
+ private void AutoCompleteBox_Populating(object sender, PopulatingEventArgs e)
+ {
+ if (e.Parameter.Length < 3)
+ {
+ return;
+ }
+ e.Cancel = true;
+ ViewModel.BuscarCliente(ValidationHelper.RemoveDiacritics(e.Parameter.Trim()), null, (TipoFiltroCliente)2).ContinueWith(delegate(Task<List<Cliente>> searchResult)
+ {
+ //IL_000f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0014: Unknown result type (might be due to invalid IL or missing references)
+ if (searchResult.Result != null)
+ {
+ AutoCompleteBox val = (AutoCompleteBox)sender;
+ val.ItemsSource = searchResult.Result;
+ val.PopulateComplete();
+ }
+ }, TaskScheduler.FromCurrentSynchronizationContext());
+ }
+
+ private async void AtualizarExtrato_OnClick(object sender, RoutedEventArgs e)
+ {
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: false);
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: false);
+ ViewModel.EnableButtons = false;
+ await ViewModel.AtualizarExtrato();
+ await ViewModel.SelecionaExtrato(ViewModel.SelectedExtrato);
+ ViewModel.EnableButtons = true;
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: true);
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: true);
+ }
+
+ private async void CriticarDocumento_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (((Selector)DetalhesGrid).SelectedIndex < 0)
+ {
+ await ViewModel.ShowMessage("NECESSÁRIO SELECIONAR UMA PARCELA PARA CRITICAR.");
+ return;
+ }
+ SubTipo? subTipo = ViewModel.SelectedDetalhe.SubTipo;
+ if (subTipo.HasValue && (int)subTipo.GetValueOrDefault() == 1)
+ {
+ if (ViewModel.SelectedParcela == null || ((DomainBase)ViewModel.SelectedParcela).Id == 0L)
+ {
+ await ViewModel.ShowMessage("PARA CRITICAR ESSE DOCUMENTO É NECESSÁRIO SELECIONAR UMA PARCELA");
+ return;
+ }
+ }
+ else if (ViewModel.SelectedDocumento == null || ((DomainBase)ViewModel.SelectedDocumento).Id == 0L)
+ {
+ await ViewModel.ShowMessage("PARA CRITICAR ESSE DOCUMENTO É NECESSÁRIO SELECIONAR UM DOCUMENTO");
+ return;
+ }
+ object obj;
+ if (((Selector)DetalhesGrid).SelectedIndex < 0)
+ {
+ DataGrid detalhesGrid = DetalhesGrid;
+ if (((detalhesGrid != null) ? new int?(((CollectionView)((ItemsControl)detalhesGrid).Items).Count) : null) >= ((Selector)DetalhesGrid).SelectedIndex)
+ {
+ DataGrid detalhesGrid2 = DetalhesGrid;
+ obj = (object)(DetalheExtrato)((detalhesGrid2 != null) ? ((ItemsControl)detalhesGrid2).Items[((Selector)DetalhesGrid).SelectedIndex] : null);
+ goto IL_028e;
+ }
+ }
+ obj = ViewModel.SelectedDetalhe;
+ goto IL_028e;
+ IL_028e:
+ DetalheExtrato val = (DetalheExtrato)obj;
+ if (val != null)
+ {
+ await ViewModel.Criticar(val, critica: true);
+ LimparFiltros();
+ }
+ }
+
+ private async void Desconsiderar_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (((Selector)DetalhesGrid).SelectedIndex < 0)
+ {
+ await ViewModel.ShowMessage("PARA DESCONSIDERAR O DOCUMENTO É NECESSÁRIO SELECIONAR UMA PARCELA");
+ return;
+ }
+ DataGrid detalhesGrid = DetalhesGrid;
+ DetalheExtrato val = (DetalheExtrato)((detalhesGrid != null) ? ((ItemsControl)detalhesGrid).Items[((Selector)DetalhesGrid).SelectedIndex] : null);
+ if (val != null)
+ {
+ await ViewModel.Criticar(val, critica: false);
+ LimparFiltros();
+ }
+ }
+
+ private void CancelarCritica_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (ViewModel.SelectedDetalhe != null)
+ {
+ ViewModel.SelectedDetalhe.Corrigir = false;
+ }
+ LimparFiltros();
+ }
+
+ private void LimparFiltros()
+ {
+ ViewModel.Criticando = false;
+ ViewModel.FiltrarDetalheExtrato("");
+ ((UIElement)PainelCritica).Visibility = (Visibility)2;
+ ((UIElement)FiltroDetalhes).Visibility = (Visibility)0;
+ AutoCompleteCliente.Text = string.Empty;
+ ((UIElement)DetalhesGrid).Visibility = (Visibility)0;
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: true);
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: true);
+ }
+
+ private async void AbrirCritica_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (((Selector)DetalhesGrid).SelectedIndex < 0)
+ {
+ await ViewModel.ShowMessage("PARA CRITICAR O DOCUMENTO É NECESSÁRIO SELECIONAR UMA PARCELA");
+ return;
+ }
+ DataGrid detalhesGrid = DetalhesGrid;
+ DetalheExtrato val = (DetalheExtrato)((detalhesGrid != null) ? ((ItemsControl)detalhesGrid).Items[((Selector)DetalhesGrid).SelectedIndex] : null);
+ if (val != null)
+ {
+ ViewModel.Loading(isLoading: true);
+ ViewModel.IsVisibleDetalhes = (Visibility)2;
+ await AbrirCritica(val);
+ ViewModel.IsVisibleDetalhes = (Visibility)0;
+ ViewModel.Loading(isLoading: false);
+ }
+ }
+
+ private async void BaixarSelecionado_OnClick(object sender, RoutedEventArgs e)
+ {
+ ((MenuItem)sender).Click -= new RoutedEventHandler(BaixarSelecionado_OnClick);
+ if (ViewModel.SelectedExtrato == null)
+ {
+ ((MenuItem)sender).Click += new RoutedEventHandler(BaixarSelecionado_OnClick);
+ return;
+ }
+ if (!(await ViewModel.ShowMessage("DESEJA BAIXAR TODAS AS PARCELAS PENDENTES DO EXTRATO " + ViewModel.SelectedExtrato.Numero + "?", "SIM", "NÃO")))
+ {
+ ((MenuItem)sender).Click += new RoutedEventHandler(BaixarSelecionado_OnClick);
+ return;
+ }
+ ViewModel.IsVisible = (Visibility)2;
+ ViewModel.IsVisibleDetalhes = (Visibility)2;
+ ((UIElement)ProgressBar).Visibility = (Visibility)0;
+ ViewModel.EnableButtons = false;
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: false);
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: false);
+ ViewModel.EnableButtons = false;
+ await ViewModel.BaixarExtrato();
+ ViewModel.EnableButtons = true;
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: true);
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: true);
+ ViewModel.EnableButtons = true;
+ ((UIElement)ProgressBar).Visibility = (Visibility)2;
+ ViewModel.IsVisibleDetalhes = (Visibility)0;
+ ViewModel.IsVisible = (Visibility)0;
+ ((MenuItem)sender).Click += new RoutedEventHandler(BaixarSelecionado_OnClick);
+ }
+
+ private async void ExcluirExtrato_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (ViewModel.SelectedExtrato != null && await ViewModel.ShowMessage("DESEJA EXCLUIR O EXTRATO " + ViewModel.SelectedExtrato.Numero + "?", "SIM", "NÃO"))
+ {
+ ViewModel.IsVisible = (Visibility)2;
+ ViewModel.IsVisibleDetalhes = (Visibility)2;
+ ((UIElement)ProgressBar).Visibility = (Visibility)0;
+ ViewModel.EnableButtons = false;
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: false);
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: false);
+ await ViewModel.ExcluirExtrato();
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: true);
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: true);
+ ViewModel.EnableButtons = true;
+ ((UIElement)ProgressBar).Visibility = (Visibility)2;
+ ViewModel.IsVisibleDetalhes = (Visibility)0;
+ ViewModel.IsVisible = (Visibility)0;
+ }
+ }
+
+ private async void DesfazerExtrato_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (ViewModel.SelectedExtrato != null && await ViewModel.ShowMessage("DESEJA DESFAZER A BAIXA DO EXTRATO " + ViewModel.SelectedExtrato.Numero + "?", "SIM", "NÃO"))
+ {
+ ViewModel.IsVisible = (Visibility)2;
+ ViewModel.IsVisibleDetalhes = (Visibility)2;
+ ((UIElement)ProgressBar).Visibility = (Visibility)0;
+ ViewModel.EnableButtons = false;
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: false);
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: false);
+ await ViewModel.DesfazerExtrato();
+ ViewModel.EnableButtons = true;
+ ((UIElement)ProgressBar).Visibility = (Visibility)2;
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: true);
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: true);
+ ViewModel.IsVisibleDetalhes = (Visibility)0;
+ ViewModel.IsVisible = (Visibility)0;
+ }
+ }
+
+ private async void DesfazerParcela_OnClick(object sender, RoutedEventArgs e)
+ {
+ DataGrid detalhesGrid = DetalhesGrid;
+ DetalheExtrato detalhe = (DetalheExtrato)((detalhesGrid != null) ? ((ItemsControl)detalhesGrid).Items[((Selector)DetalhesGrid).SelectedIndex] : null);
+ if (detalhe != null && await ViewModel.ShowMessage("DESEJA DESFAZER A BAIXA DA PARCELA DO CLIENTE " + detalhe.Cliente + "?", "SIM", "NÃO"))
+ {
+ ViewModel.Loading(isLoading: true);
+ ViewModel.IsVisibleDetalhes = (Visibility)2;
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: false);
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: false);
+ ViewModel.EnableButtons = false;
+ bool desfeito = await ViewModel.DesfazerParcela(detalhe);
+ await ViewModel.CarregaDetalhes(ViewModel.SelectedExtrato);
+ ViewModel.ToggleSnackBar(desfeito ? "PARCELA DESFEITA COM SUCESSO" : "NÃO FOI POSSÍVEL DESFAZER A BAIXA DA PARCELA");
+ if (desfeito && detalhe.Parcela.HasValue)
+ {
+ ViewModel.RegistrarAcao($"DESFEZ PARCELA DE ID \"{detalhe.Parcela}\"", detalhe.Parcela.Value, (TipoTela)35);
+ }
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: true);
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: true);
+ ViewModel.EnableButtons = true;
+ ViewModel.IsVisibleDetalhes = (Visibility)0;
+ ViewModel.Loading(isLoading: false);
+ }
+ }
+
+ private void FiltroDataBox_OnSelectedDateChanged(object sender, SelectionChangedEventArgs e)
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0006: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0037: Unknown result type (might be due to invalid IL or missing references)
+ DatePicker val = (DatePicker)sender;
+ if ((int)val != 0 && val.SelectedDate.HasValue)
+ {
+ ViewModel.SelecionaSeguradora(ViewModel.SelectedSeguradora, ViewModel.SelectedStatusExtrato);
+ }
+ }
+
+ private async void AbrirAquivoDigital_Click(object sender, RoutedEventArgs e)
+ {
+ if (!new PermissaoArquivoDigitalServico().BuscarPermissao(Recursos.Usuario, (TipoArquivoDigital)7).Consultar)
+ {
+ await ViewModel.ShowMessage("VOCÊ NÃO POSSUI PERMISSÃO PARA ACESSAR\nARQUIVO DIGITAL DE " + ValidationHelper.GetDescription((Enum)(object)(TipoArquivoDigital)7) + ".");
+ return;
+ }
+ if (ViewModel.SelectedExtrato == null)
+ {
+ await ViewModel.ShowMessage("SELECIONE ALGUM EXTRATO PARA VISUALIZAR O ARQUIVO DIGITAL");
+ return;
+ }
+ List<IndiceArquivoDigital> list = await new ArquivoDigitalServico().BuscarPorTipo((TipoArquivoDigital)7, ((DomainBase)ViewModel.SelectedExtrato).Id);
+ if (list.Count == 1)
+ {
+ ViewModel.Download(list.First());
+ return;
+ }
+ FiltroArquivoDigital filtro = new FiltroArquivoDigital
+ {
+ Id = ((DomainBase)ViewModel.SelectedExtrato).Id,
+ Tipo = (TipoArquivoDigital)7,
+ Parente = ViewModel.SelectedExtrato
+ };
+ ViewModel.ShowDrawer(new ArquivoDigitalDrawer(filtro), 0, close: false);
+ }
+
+ private void AdicionarFiltro_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.AdcionarFiltro();
+ }
+
+ private void ExcluirFiltro_onClick(object sender, RoutedEventArgs e)
+ {
+ Chip val = (Chip)((sender is Chip) ? sender : null);
+ if (val != null)
+ {
+ ListBox val2 = Extentions.FindVisualAncestor<ListBox>((DependencyObject)(object)val);
+ string text = (string)((ItemsControl)val2).Items[((CollectionView)((ItemsControl)val2).Items).IndexOf(((FrameworkElement)val).DataContext)];
+ if (text != null)
+ {
+ ViewModel.ExcluirFiltro(text);
+ }
+ }
+ }
+
+ private async void AcessarApolice_OnClick(object sender, RoutedEventArgs e)
+ {
+ Button val = (Button)sender;
+ if (((FrameworkElement)val).DataContext == null || !((FrameworkElement)val).DataContext.GetType().Name.Equals("DetalheExtrato"))
+ {
+ return;
+ }
+ DetalheExtrato val2 = (DetalheExtrato)((FrameworkElement)val).DataContext;
+ if ((val2 == null || !val2.Documento.HasValue) && (val2 == null || !val2.Parcela.HasValue))
+ {
+ return;
+ }
+ Documento val3;
+ if (val2.Documento.HasValue)
+ {
+ val3 = await ViewModel.CarregaApolice(val2.Documento.Value);
+ }
+ else
+ {
+ Documento val4 = ((!val2.Parcela.HasValue) ? null : (await ViewModel.CarregaApoliceParcela(val2.Parcela.Value)));
+ val3 = val4;
+ }
+ Documento val5 = val3;
+ if (val5 != null)
+ {
+ if (val5.Excluido)
+ {
+ await ViewModel.ShowMessage("NÃO É POSSIVE VISUALIZAR UM DOCUMENTO EXCLUIDO.");
+ }
+ else
+ {
+ ((Window)new HosterWindow((ContentControl)(object)new ApoliceView(val5, lockInsert: true, invoke: false, (AcessoApolice)0, 0L, consultaTela: true), "CADASTRO DE APÓLICE - " + val5.Controle.Cliente.Nome + " - " + val5.Apolice)).Show();
+ }
+ }
+ }
+
+ private async void AcessarApoliceCritica_OnClick(object sender, RoutedEventArgs e)
+ {
+ ((Window)new HosterWindow((ContentControl)(object)new ApoliceView(await ViewModel.CarregaApolice(((DomainBase)ViewModel.SelectedDocumento).Id), lockInsert: true, invoke: false, (AcessoApolice)0, 0L), "CADASTRO DE APÓLICE - " + ViewModel.SelectedCliente.Nome + " - " + ViewModel.SelectedDocumento.Apolice)).Show();
+ }
+
+ private async void DesconsiderarTodas_Click(object sender, RoutedEventArgs e)
+ {
+ if (await ViewModel.ShowMessage("ESSA OPÇÃO DESCONSIDERA TODAS AS PARCELAS COM O STATUS DE DOCUMENTO NÃO ENCONTRADO OU PARCELA NÃO ENCONTRADA DO EXTRATO." + Environment.NewLine + "DESEJA CONTINUAR?", "SIM", "NÃO"))
+ {
+ await ViewModel.CriticarTodos(((DomainBase)ViewModel.SelectedExtrato).Id);
+ LimparFiltros();
+ }
+ }
+
+ private async void DesconsiderarSelacionadas_Click(object sender, RoutedEventArgs e)
+ {
+ if (await ViewModel.ShowMessage("ESSA OPÇÃO DESCONSIDERA TODAS AS PARCELAS QUE FORAM SELECIONADAS, COLOCANDO STATUS DE DESCONSIDERADA PELO USUÁRIO" + Environment.NewLine + "DESEJA CONTINUAR?", "SIM", "NÃO"))
+ {
+ await ViewModel.DesconsiderarSelecionadas();
+ }
+ }
+
+ private async void ArquivoDigitalButton_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (!new PermissaoArquivoDigitalServico().BuscarPermissao(Recursos.Usuario, (TipoArquivoDigital)2).Consultar)
+ {
+ await ViewModel.ShowMessage("VOCÊ NÃO POSSUI PERMISSÃO PARA ACESSAR\nARQUIVO DIGITAL DE " + ValidationHelper.GetDescription((Enum)(object)(TipoArquivoDigital)2) + ".");
+ return;
+ }
+ ViewModel.SelectedDocumento.Controle.Cliente = ViewModel.SelectedCliente;
+ FiltroArquivoDigital filtro = new FiltroArquivoDigital
+ {
+ Id = ((DomainBase)ViewModel.SelectedDocumento).Id,
+ Tipo = (TipoArquivoDigital)2,
+ Parente = ViewModel.SelectedDocumento
+ };
+ ViewModel.ShowDrawer(new ArquivoDigitalDrawer(filtro), 0, close: false);
+ }
+
+ private void Atualizar_OnClick(object sender, RoutedEventArgs e)
+ {
+ //IL_0017: Unknown result type (might be due to invalid IL or missing references)
+ ViewModel.SelecionaSeguradora(ViewModel.SelectedSeguradora, ViewModel.SelectedStatusExtrato, ViewModel.SelectedExtrato);
+ }
+
+ private async void Imprimir_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (ViewModel.SelectedExtrato != null)
+ {
+ string value = await ViewModel.GerarHtml();
+ if (!string.IsNullOrEmpty(value))
+ {
+ string tempPath = Path.GetTempPath();
+ string text = string.Format("{0}{1}_{2:ddMMyyyyhhmmss}.html", tempPath, new Regex("[" + Regex.Escape(new string(Path.GetInvalidFileNameChars()) + new string(Path.GetInvalidPathChars())) + "]").Replace("EXTRATO COMISSÃO", ""), Funcoes.GetNetworkTime());
+ StreamWriter streamWriter = new StreamWriter(text, append: true, Encoding.UTF8);
+ streamWriter.Write(value);
+ streamWriter.Close();
+ Process.Start(text);
+ ViewModel.RegistrarAcao($"IMPRIMIU EXTRATO DE ID \"{((DomainBase)ViewModel.SelectedExtrato).Id}\"", ((DomainBase)ViewModel.SelectedExtrato).Id, (TipoTela)35);
+ }
+ }
+ }
+
+ private async void FinalizarSelecionado_OnClick(object sender, RoutedEventArgs e)
+ {
+ ((MenuItem)sender).Click -= new RoutedEventHandler(FinalizarSelecionado_OnClick);
+ if (ViewModel.SelectedExtrato == null)
+ {
+ ((MenuItem)sender).Click += new RoutedEventHandler(FinalizarSelecionado_OnClick);
+ return;
+ }
+ if (!(await ViewModel.ShowMessage("DESEJA FINALIZAR O EXTRATO " + ViewModel.SelectedExtrato.Numero + "?" + Environment.NewLine + "O EXTRATO SERÁ MARCADO COMO BAIXADO.", "SIM", "NÃO")))
+ {
+ ((MenuItem)sender).Click += new RoutedEventHandler(FinalizarSelecionado_OnClick);
+ return;
+ }
+ ViewModel.IsVisible = (Visibility)2;
+ ViewModel.IsVisibleDetalhes = (Visibility)2;
+ ((UIElement)ProgressBar).Visibility = (Visibility)0;
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: false);
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: false);
+ ViewModel.EnableButtons = false;
+ await ViewModel.FinalizarExtrato();
+ ViewModel.EnableButtons = true;
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: true);
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: true);
+ ((UIElement)ProgressBar).Visibility = (Visibility)2;
+ ViewModel.IsVisibleDetalhes = (Visibility)0;
+ ViewModel.IsVisible = (Visibility)0;
+ ((MenuItem)sender).Click += new RoutedEventHandler(FinalizarSelecionado_OnClick);
+ }
+
+ private void Subtipo_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ //IL_000f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0015: Expected O, but got Unknown
+ //IL_001b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0021: Invalid comparison between Unknown and I4
+ //IL_002a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0030: Expected O, but got Unknown
+ //IL_0036: Unknown result type (might be due to invalid IL or missing references)
+ //IL_003c: Invalid comparison between Unknown and I4
+ //IL_0061: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0067: Invalid comparison between Unknown and I4
+ //IL_006b: Unknown result type (might be due to invalid IL or missing references)
+ if (!ViewModel.IsEnabled)
+ {
+ return;
+ }
+ ComboBox val = (ComboBox)sender;
+ if ((int)(SubTipo)((Selector)val).SelectedItem == 1)
+ {
+ DetalheExtrato val2 = (DetalheExtrato)((FrameworkElement)val).DataContext;
+ if (((int)(SubTipo)((Selector)val).SelectedItem == 1 && val2.NumeroParcela == "999") || (!val2.IsNormal && (int)val2.SubTipo.GetValueOrDefault() == 1))
+ {
+ ((Selector)val).SelectedItem = _previousSubTipo;
+ }
+ }
+ }
+
+ private void Subtipo_OnDropDownOpened(object sender, EventArgs e)
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0007: Expected O, but got Unknown
+ //IL_000e: Unknown result type (might be due to invalid IL or missing references)
+ ComboBox val = (ComboBox)sender;
+ _previousSubTipo = (SubTipo)((Selector)val).SelectedItem;
+ }
+
+ private async void BaixarParcelasSelecionadas_OnClick(object sender, RoutedEventArgs e)
+ {
+ ((MenuItem)sender).Click -= new RoutedEventHandler(BaixarParcelasSelecionadas_OnClick);
+ if (ViewModel.SelectedExtrato == null)
+ {
+ ((MenuItem)sender).Click += new RoutedEventHandler(BaixarParcelasSelecionadas_OnClick);
+ return;
+ }
+ if (!(await ViewModel.ShowMessage("DESEJA BAIXAR TODAS AS PARCELAS SELECIONADAS DO EXTRATO " + ViewModel.SelectedExtrato.Numero + "?", "SIM", "NÃO")))
+ {
+ ((MenuItem)sender).Click += new RoutedEventHandler(BaixarParcelasSelecionadas_OnClick);
+ return;
+ }
+ ViewModel.IsVisible = (Visibility)2;
+ ViewModel.IsVisibleDetalhes = (Visibility)2;
+ ((UIElement)ProgressBar).Visibility = (Visibility)0;
+ ViewModel.EnableButtons = false;
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: false);
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: false);
+ ViewModel.EnableButtons = false;
+ await ViewModel.BaixarExtrato(selecionados: true);
+ ViewModel.EnableButtons = true;
+ Gestor.Application.Actions.Actions.EnableMainMenu?.Invoke(obj: true);
+ Gestor.Application.Actions.Actions.EnableMenu?.Invoke(obj: true);
+ ViewModel.EnableButtons = true;
+ ((UIElement)ProgressBar).Visibility = (Visibility)2;
+ ViewModel.IsVisibleDetalhes = (Visibility)0;
+ ViewModel.IsVisible = (Visibility)0;
+ ViewModel.WorkOnSelectedStatus();
+ ((MenuItem)sender).Click += new RoutedEventHandler(BaixarParcelasSelecionadas_OnClick);
+ }
+
+ [DebuggerNonUserCode]
+ [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
+ public void InitializeComponent()
+ {
+ if (!_contentLoaded)
+ {
+ _contentLoaded = true;
+ Uri uri = new Uri("/Gestor.Application;component/views/seguros/comissaoview.xaml", UriKind.Relative);
+ Application.LoadComponent((object)this, uri);
+ }
+ }
+
+ [DebuggerNonUserCode]
+ [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
+ internal Delegate _CreateDelegate(Type delegateType, string handler)
+ {
+ return Delegate.CreateDelegate(delegateType, this, handler);
+ }
+
+ [DebuggerNonUserCode]
+ [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ void IComponentConnector.Connect(int connectionId, object target)
+ {
+ //IL_00bf: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00c9: Expected O, but got Unknown
+ //IL_00cc: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00d6: Expected O, but got Unknown
+ //IL_00d9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00e3: Expected O, but got Unknown
+ //IL_00e6: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00f0: Expected O, but got Unknown
+ //IL_00f3: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00fd: Expected O, but got Unknown
+ //IL_010a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0114: Expected O, but got Unknown
+ //IL_0117: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0121: Expected O, but got Unknown
+ //IL_012e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0138: Expected O, but got Unknown
+ //IL_013a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0146: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0150: Expected O, but got Unknown
+ //IL_0152: Unknown result type (might be due to invalid IL or missing references)
+ //IL_015e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0168: Expected O, but got Unknown
+ //IL_016b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0175: Expected O, but got Unknown
+ //IL_0178: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0182: Expected O, but got Unknown
+ //IL_0185: Unknown result type (might be due to invalid IL or missing references)
+ //IL_018f: Expected O, but got Unknown
+ //IL_0191: Unknown result type (might be due to invalid IL or missing references)
+ //IL_019d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01a7: Expected O, but got Unknown
+ //IL_01a9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01b5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01bf: Expected O, but got Unknown
+ //IL_01c1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01cd: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01d7: Expected O, but got Unknown
+ //IL_01d9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01e5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01ef: Expected O, but got Unknown
+ //IL_01f1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01fd: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0207: Expected O, but got Unknown
+ //IL_0209: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0215: Unknown result type (might be due to invalid IL or missing references)
+ //IL_021f: Expected O, but got Unknown
+ //IL_0222: Unknown result type (might be due to invalid IL or missing references)
+ //IL_022c: Expected O, but got Unknown
+ //IL_0239: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0243: Expected O, but got Unknown
+ //IL_0245: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0251: Unknown result type (might be due to invalid IL or missing references)
+ //IL_025b: Expected O, but got Unknown
+ //IL_025d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0269: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0273: Expected O, but got Unknown
+ //IL_0275: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0281: Unknown result type (might be due to invalid IL or missing references)
+ //IL_028b: Expected O, but got Unknown
+ //IL_028d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0299: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02a3: Expected O, but got Unknown
+ //IL_02a6: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02b0: Expected O, but got Unknown
+ //IL_02bd: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02c7: Expected O, but got Unknown
+ //IL_02ca: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02d4: Expected O, but got Unknown
+ //IL_02e1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02eb: Expected O, but got Unknown
+ //IL_02ed: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02f9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0303: Expected O, but got Unknown
+ //IL_0305: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0311: Unknown result type (might be due to invalid IL or missing references)
+ //IL_031b: Expected O, but got Unknown
+ //IL_031e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0328: Expected O, but got Unknown
+ //IL_032b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0335: Expected O, but got Unknown
+ //IL_0338: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0342: Expected O, but got Unknown
+ //IL_034f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0359: Expected O, but got Unknown
+ //IL_035c: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0366: Expected O, but got Unknown
+ //IL_0369: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0373: Expected O, but got Unknown
+ //IL_0376: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0380: Expected O, but got Unknown
+ //IL_038d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0397: Expected O, but got Unknown
+ //IL_039a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03a4: Expected O, but got Unknown
+ //IL_03a7: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03b1: Expected O, but got Unknown
+ //IL_03b4: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03be: Expected O, but got Unknown
+ //IL_03c1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03cb: Expected O, but got Unknown
+ switch (connectionId)
+ {
+ case 1:
+ UsuarioBox = (ComboBox)target;
+ break;
+ case 2:
+ StatusBox = (ComboBox)target;
+ break;
+ case 3:
+ SeguradoraBox = (ComboBox)target;
+ break;
+ case 4:
+ Seguradora2Box = (ComboBox)target;
+ break;
+ case 5:
+ InicioBox = (DatePicker)target;
+ ((UIElement)InicioBox).LostKeyboardFocus += new KeyboardFocusChangedEventHandler(base.DatePicker_OnLostKeyboardFocus);
+ break;
+ case 6:
+ FimBox = (DatePicker)target;
+ ((UIElement)FimBox).LostKeyboardFocus += new KeyboardFocusChangedEventHandler(base.DatePicker_OnLostKeyboardFocus);
+ break;
+ case 7:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(Atualizar_OnClick);
+ break;
+ case 8:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(AdicionarFiltro_OnClick);
+ break;
+ case 10:
+ ExtratoGrid = (DataGrid)target;
+ break;
+ case 11:
+ ProgressBar2 = (Card)target;
+ break;
+ case 12:
+ ProgressBar = (Card)target;
+ break;
+ case 13:
+ ((MenuItem)target).Click += new RoutedEventHandler(AtualizarExtrato_OnClick);
+ break;
+ case 14:
+ ((MenuItem)target).Click += new RoutedEventHandler(FinalizarSelecionado_OnClick);
+ break;
+ case 15:
+ ((MenuItem)target).Click += new RoutedEventHandler(BaixarParcelasSelecionadas_OnClick);
+ break;
+ case 16:
+ ((MenuItem)target).Click += new RoutedEventHandler(BaixarSelecionado_OnClick);
+ break;
+ case 17:
+ ((MenuItem)target).Click += new RoutedEventHandler(DesconsiderarTodas_Click);
+ break;
+ case 18:
+ ((MenuItem)target).Click += new RoutedEventHandler(DesconsiderarSelacionadas_Click);
+ break;
+ case 19:
+ DesfazerExtratoButton = (MenuItem)target;
+ DesfazerExtratoButton.Click += new RoutedEventHandler(DesfazerExtrato_OnClick);
+ break;
+ case 20:
+ ((MenuItem)target).Click += new RoutedEventHandler(ExcluirExtrato_OnClick);
+ break;
+ case 21:
+ ((MenuItem)target).Click += new RoutedEventHandler(CriticarDocumento_OnClick);
+ break;
+ case 22:
+ ((MenuItem)target).Click += new RoutedEventHandler(Desconsiderar_OnClick);
+ break;
+ case 23:
+ ((MenuItem)target).Click += new RoutedEventHandler(CancelarCritica_OnClick);
+ break;
+ case 24:
+ DataBaixaBox = (DatePicker)target;
+ ((UIElement)DataBaixaBox).LostKeyboardFocus += new KeyboardFocusChangedEventHandler(base.DatePicker_OnLostKeyboardFocus);
+ break;
+ case 25:
+ FiltroDetalhes = (TextBox)target;
+ ((TextBoxBase)FiltroDetalhes).TextChanged += new TextChangedEventHandler(AutoCompleteBoxDetalhe_OnTextChanged);
+ break;
+ case 26:
+ ((MenuItem)target).Click += new RoutedEventHandler(Imprimir_OnClick);
+ break;
+ case 27:
+ ((MenuItem)target).Click += new RoutedEventHandler(AbrirAquivoDigital_Click);
+ break;
+ case 28:
+ DetalhesGrid = (DataGrid)target;
+ break;
+ case 34:
+ PainelCritica = (Grid)target;
+ break;
+ case 35:
+ AutoCompleteCliente = (AutoCompleteBox)target;
+ AutoCompleteCliente.Populating += new PopulatingEventHandler(AutoCompleteBox_Populating);
+ break;
+ case 36:
+ TipoDocumentoPrincipalBox = (TextBox)target;
+ break;
+ case 37:
+ DocumentoPrincipalBox = (TextBox)target;
+ break;
+ case 38:
+ FiltroApoliceBox = (TextBox)target;
+ ((TextBoxBase)FiltroApoliceBox).TextChanged += new TextChangedEventHandler(AutoCompleteBoxDocumento_OnTextChanged);
+ break;
+ case 39:
+ ApoliceGrid = (DataGrid)target;
+ break;
+ case 42:
+ ParcelaGrid = (DataGrid)target;
+ break;
+ case 43:
+ ParcelaColumn = (DataGridTextColumn)target;
+ break;
+ case 44:
+ FaturaGrid = (DataGrid)target;
+ break;
+ default:
+ _contentLoaded = true;
+ break;
+ }
+ }
+
+ [DebuggerNonUserCode]
+ [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ void IStyleConnector.Connect(int connectionId, object target)
+ {
+ //IL_0044: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0050: Unknown result type (might be due to invalid IL or missing references)
+ //IL_005a: Expected O, but got Unknown
+ //IL_005c: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0068: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0072: Expected O, but got Unknown
+ //IL_0074: Unknown result type (might be due to invalid IL or missing references)
+ //IL_008b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0097: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00a1: Expected O, but got Unknown
+ //IL_00a3: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00af: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00b9: Expected O, but got Unknown
+ //IL_00bb: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00c7: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00d1: Expected O, but got Unknown
+ //IL_00d3: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00df: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00e9: Expected O, but got Unknown
+ //IL_00eb: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00f7: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0101: Expected O, but got Unknown
+ //IL_0103: Unknown result type (might be due to invalid IL or missing references)
+ //IL_010f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0119: Expected O, but got Unknown
+ switch (connectionId)
+ {
+ case 9:
+ ((Chip)target).DeleteClick += new RoutedEventHandler(ExcluirFiltro_onClick);
+ break;
+ case 29:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(AcessarApolice_OnClick);
+ break;
+ case 30:
+ ((ComboBox)target).DropDownOpened += Subtipo_OnDropDownOpened;
+ ((Selector)(ComboBox)target).SelectionChanged += new SelectionChangedEventHandler(Subtipo_OnSelectionChanged);
+ break;
+ case 31:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(AbrirCritica_OnClick);
+ break;
+ case 32:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(Desconsiderar_OnClick);
+ break;
+ case 33:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(DesfazerParcela_OnClick);
+ break;
+ case 40:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(AcessarApoliceCritica_OnClick);
+ break;
+ case 41:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(ArquivoDigitalButton_OnClick);
+ break;
+ }
+ }
+}