private void BtnIrParaCarrinho_Click(object sender, EventArgs e) { AbrirLoad("Montando carrinho..."); if (SelecionarValoresCombobox() == false) { MessageBox.Show("Existem pendências no mapeamento!"); FecharLoad(); return; } //caso exista novos mapeamentos, são salvos no banco var NovosMapeamentoBeneficiador = DeParaServices.NovosDeParaBeneficiador(deParaBeneficiadorDto, infoPlaDtos, auth.CurrentClient, auth.userName); var NovosMapeamentoRecebedor = DeParaServices.NovosDeParaRecebedor(deParaRecebedorDto, infoPlaDtos, auth.CurrentClient, auth.userName); PluginService pluginServices = new PluginService(auth); if (NovosMapeamentoBeneficiador != null && NovosMapeamentoBeneficiador.Count != 0) { pluginServices.BeneficiadorDeParaPostAsync(NovosMapeamentoBeneficiador); } if (NovosMapeamentoRecebedor != null && NovosMapeamentoRecebedor.Count != 0) { pluginServices.RecebedorDeParaPostAsync(NovosMapeamentoRecebedor); } PopulateItens(); //SelectContext("OvAbaCarrinho"); TabPopulateItens(); SelectContext("OvAbaCarrinhoTabela"); FecharLoad(); }
private void BtnIrParaCarrinho_Click(object sender, EventArgs e) { if (SelecionarValoresCombobox() == false) { MessageBox.Show("Existem pendências no mapeamento!"); } //caso exista novos mapeamentos, são salvos no banco var NovosMapeamentoBeneficiador = DeParaServices.NovosDeParaBeneficiador(deParaBeneficiadorDto, infoPlaDtos, auth.CurrentClient, auth.userName); var NovosMapeamentoRecebedor = DeParaServices.NovosDeParaRecebedor(deParaRecebedorDto, infoPlaDtos, auth.CurrentClient, auth.userName); PluginService pluginServices = new PluginService(auth); if (NovosMapeamentoBeneficiador != null) { pluginServices.BeneficiadorDeParaPostAsync(NovosMapeamentoBeneficiador); } if (NovosMapeamentoRecebedor != null) { pluginServices.RecebedorDeParaPostAsync(NovosMapeamentoRecebedor); } }