public void PesquisarOperacaoFiscal() { try { SearchWindowApp searchWindow = new SearchWindowApp(typeof(TributOperacaoFiscalDTO), typeof(NFe.Model.ServicoNFe)); searchWindow.definirColunas(new string[] { "Id", "Descricao", "DescricaoNaNf" }); if (searchWindow.ShowDialog() == true) { NFeSelected.TributOperacaoFiscal = (TributOperacaoFiscalDTO)searchWindow.itemSelecionado; } } catch (Exception ex) { throw ex; } }
public void pesquisarColaborador() { try { SearchWindowApp searchWindow = new SearchWindowApp(typeof(ColaboradorDTO), typeof(ServicoEstoque)); searchWindow.definirColunas(new string[] { "id", "nome" }); if (searchWindow.ShowDialog() == true) { RequisicaoInternaCabecalhoSelected.Colaborador = (ColaboradorDTO)searchWindow.itemSelecionado; notifyPropertyChanged("RequisicaoInternaCabecalhoSelected"); } } catch (Exception ex) { throw ex; } }
public void pesquisarProduto() { try { SearchWindowApp searchWindow = new SearchWindowApp(typeof(ProdutoDTO), typeof(ServicoEstoque)); searchWindow.definirColunas(new string[] { "gtin", "nome", "valorVenda", "quantidadeEstoque" }); if (searchWindow.ShowDialog() == true) { RequisicaoInternaDetalheSelected.Produto = (ProdutoDTO)searchWindow.itemSelecionado; notifyPropertyChanged("RequisicaoInternaDetalheSelected"); } } catch (Exception ex) { throw ex; } }
public void PesquisarProduto() { try { SearchWindowApp searchWindow = new SearchWindowApp(typeof(ProdutoDTO), typeof(NFe.Model.ServicoNFe)); searchWindow.definirColunas(new string[] { "Gtin", "Nome", "ValorVenda" }); if (searchWindow.ShowDialog() == true) { ProdutoSelected = (ProdutoDTO)searchWindow.itemSelecionado; DetalheNFe = new NfeDetalheDTO(); notifyPropertyChanged("ProdutoSelected"); notifyPropertyChanged("DetalheNFe"); } } catch (Exception ex) { throw ex; } }
public void PesquisarOperacaoFiscal() { try { SearchWindowApp searchWindow = new SearchWindowApp(typeof(TributOperacaoFiscalDTO), typeof(NFe.Model.ServicoNFe)); searchWindow.definirColunas(new string[] { "Id", "Descricao", "DescricaoNaNf" }); if (searchWindow.ShowDialog() == true) { TributOperacaoFiscalDTO op = new TributOperacaoFiscalDTO(); op = (TributOperacaoFiscalDTO)searchWindow.itemSelecionado; NFeSelected.TRIBUT_OPERACAO_FISCAL = new TRIBUT_OPERACAO_FISCAL(); NFeSelected.TRIBUT_OPERACAO_FISCAL.CFOP = op.Cfop; NFeSelected.TRIBUT_OPERACAO_FISCAL.DESCRICAO = op.Descricao; NFeSelected.TRIBUT_OPERACAO_FISCAL.DESCRICAO_NA_NF = op.DescricaoNaNf; NFeSelected.TRIBUT_OPERACAO_FISCAL.ID = op.Id; } } catch (Exception ex) { throw ex; } }