private void CarregueDetalhes(IRevistaDePatente revistaDePatente) { txtNumeroDoProcesso.Text = revistaDePatente.NumeroDoProcessoFormatado; txtNumeroDaRevista.Text = revistaDePatente.NumeroRevistaPatente.ToString(); txtDataPublicacao.Text = revistaDePatente.DataPublicacao.HasValue ? revistaDePatente.DataPublicacao.Value.ToString("dd/MM/yyyy") : string.Empty; txtDataProcessamento.Text = revistaDePatente.DataProcessamento.HasValue ? revistaDePatente.DataProcessamento.Value.ToString("dd/MM/yyyy") : string.Empty; txtDataDeDeposito.Text = revistaDePatente.DataDeDeposito.HasValue ? revistaDePatente.DataDeDeposito.Value.ToString("dd/MM/yyyy") : string.Empty; txtNumeroProcessoDaPatente.Text = revistaDePatente.NumeroProcessoDaPatente; txtNumeroDoPedido.Text = revistaDePatente.NumeroDoPedido; txtDataDaPublicacaoDoPedido.Text = revistaDePatente.DataDaPublicacaoDoPedido.HasValue ? revistaDePatente.DataDaPublicacaoDoPedido.Value.ToString("dd/MM/yyyy") : string.Empty; txtDataDeConcessao.Text = revistaDePatente.DataDeConcessao.HasValue ? revistaDePatente.DataDeConcessao.Value.ToString("dd/MM/yyyy") : string.Empty; txtPrioridadeUnionista.Text = revistaDePatente.PrioridadeUnionista; txtClassificacaoInternacional.Text = revistaDePatente.ClassificacaoInternacional; txtTitulo.Text = revistaDePatente.Titulo; txtResumo.Text = revistaDePatente.Resumo; txtDadosDoPedidoDaPatente.Text = revistaDePatente.DadosDoPedidoDaPatente; txtDadosDoPedidoOriginal.Text = revistaDePatente.DadosDoPedidoOriginal; txtPrioridadeInterna.Text = revistaDePatente.PrioridadeInterna; txtDepositante.Text = revistaDePatente.Depositante; txtInventor.Text = revistaDePatente.Inventor; txtTitular.Text = revistaDePatente.Titular; txtProcurador.Text = revistaDePatente.Procurador; txtDadosDepositoInternacional.Text = revistaDePatente.DadosDepositoInternacional; txtDadosPublicacaoInternacional.Text = revistaDePatente.DadosPublicacaoInternacional; txtCodigoDoDespacho.Text = revistaDePatente.CodigoDoDespacho; txtResponsavelPagamentoImpostoDeRenda.Text = revistaDePatente.ResponsavelPagamentoImpostoDeRenda; txtComplemento.Text = revistaDePatente.Complemento; txtDecisao.Text = revistaDePatente.Decisao; txtCedente.Text = revistaDePatente.Cedente; txtCessionaria.Text = revistaDePatente.Cessionaria; txtObservacao.Text = revistaDePatente.Observacao; txtUltimaInformacao.Text = revistaDePatente.UltimaInformacao; txtCertificadoDeAverbacao.Text = revistaDePatente.CertificadoDeAverbacao; txtPaisCedente.Text = revistaDePatente.PaisCedente; txtPaisDaCessionaria.Text = revistaDePatente.PaisDaCessionaria; txtSetor.Text = revistaDePatente.Setor; txtEnderecoDaCessionaria.Text = revistaDePatente.EnderecoDaCessionaria; txtNaturezaDoDocumento.Text = revistaDePatente.NaturezaDoDocumento; txtMoedaDePagamento.Text = revistaDePatente.MoedaDePagamento; txtValor.Text = revistaDePatente.Valor; txtPagamento.Text = revistaDePatente.Pagamento; txtPrazo.Text = revistaDePatente.Prazo; txtServicosIsentosDeAverbacao.Text = revistaDePatente.ServicosIsentosDeAverbacao; txtCriador.Text = revistaDePatente.Criador; txtLinguagem.Text = revistaDePatente.Linguagem; txtCampoDeAplicacao.Text = revistaDePatente.CampoDeAplicacao; txtTipoDePrograma.Text = revistaDePatente.TipoDePrograma; txtDataDaCriacao.Text = revistaDePatente.DataDaCriacao.HasValue ? revistaDePatente.DataDaCriacao.Value.ToString("dd/MM/yyyy") : string.Empty; txtRegimeDeGuarda.Text = revistaDePatente.RegimeDeGuarda; txtRequerente.Text = revistaDePatente.Requerente; txtRedacao.Text = revistaDePatente.Redacao; txtDataDaProrrogacao.Text = revistaDePatente.DataDaProrrogacao.HasValue ? revistaDePatente.DataDaProrrogacao.Value.ToString("dd/MM/yyyy") : string.Empty; txtClassificacaoNacional.Text = revistaDePatente.ClassificacaoNacional; txtClassificacao.Text = revistaDePatente.Classificacao; }
private void PreenchaCertificadoAverbacao(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["certificadoAverbacao"] == null) return; revistaDePatente.CertificadoDeAverbacao = xmlNode["certificadoAverbacao"].InnerText; }
private void AdicioneNumeroDaRevistaSelecionada(IRevistaDePatente revistaSelecionada) { ViewState.Add(CHAVE_REVISTA_SELECIONADA, revistaSelecionada); }
private void PreenchaTitulares(XmlNode processo, IRevistaDePatente revistaDePatente) { if (processo["titulares"] != null && processo["titulares"]["titular"] != null) { if(processo["titulares"]["titular"].Attributes.GetNamedItem("nome-razao-social") != null) revistaDePatente.Titular = processo["titulares"]["titular"].Attributes.GetNamedItem("nome-razao-social").Value; if (processo["titulares"]["titular"].Attributes.GetNamedItem("pais") != null) revistaDePatente.PaisTitular = processo["titulares"]["titular"].Attributes.GetNamedItem("pais").Value; if (processo["titulares"]["titular"].Attributes.GetNamedItem("uf") != null) revistaDePatente.UFTitular = processo["titulares"]["titular"].Attributes.GetNamedItem("uf").Value; } }
private Table ObtenhaTabelaCelulaProcesso(IRevistaDePatente revista) { var tabela = new Table(1); var corBackgroudHeader = new Color(211, 211, 211); tabela.Widths = new Single[] { 100 }; tabela.Padding = 0; tabela.Spacing = 0; tabela.Width = 100; tabela.AutoFillEmptyCells = true; tabela.Border = 0; tabela.EndHeaders(); var celula1 = new Cell(new Phrase("Processo " + revista.NumeroDoProcessoFormatado, _Fonte3)); celula1.DisableBorderSide(0); celula1.BackgroundColor = corBackgroudHeader; tabela.AddCell(celula1); return tabela; }
private void PreenchaRegimeDeGuarda(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["regimeGuarda"] == null) return; revistaDePatente.RegimeDeGuarda = xmlNode["regimeGuarda"].InnerText; }
private void PreenchaResponsavelIR(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["responsavelIR"] == null) return; revistaDePatente.ResponsavelPagamentoImpostoDeRenda = xmlNode["responsavelIR"].InnerText; }
private void PreenchaDepositante(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["depositante"] == null) return; revistaDePatente.Depositante = xmlNode["depositante"].InnerText; if (xmlNode["depositante"].Attributes.GetNamedItem("pais") != null) revistaDePatente.PaisTitular = xmlNode["depositante"].Attributes.GetNamedItem("pais").Value; if (xmlNode["depositante"].Attributes.GetNamedItem("uf") != null) revistaDePatente.UFTitular = xmlNode["depositante"].Attributes.GetNamedItem("uf").Value; }
private void PreenchaInformacoesPatenteProgramaDeComputador(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { revistaDePatente.Criador = VerifiqueERetorneValorStringDoNo(xmlNode, "criador"); revistaDePatente.Linguagem = VerifiqueERetorneValorStringDoNo(xmlNode, "liguagem"); revistaDePatente.CampoDeAplicacao = VerifiqueERetorneValorStringDoNo(xmlNode, "campo-aplicacao"); revistaDePatente.TipoDePrograma = VerifiqueERetorneValorStringDoNo(xmlNode, "tipo-programa"); revistaDePatente.DataDaCriacao = VerifiqueERetorneValorDataDoNo(xmlNode, "data-criacao"); }
private void PreenchaDadosPublicacaoInternacional(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["paisesPublicacaoInternacional"] == null) return; revistaDePatente.DadosPublicacaoInternacional = xmlNode["paisesPublicacaoInternacional"].InnerText; }
private void PreenchaDecisao(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["decisao"] == null) return; revistaDePatente.Decisao = xmlNode["decisao"].InnerText; }
private void PreenchaComplemento(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["complemento"] == null) return; revistaDePatente.Complemento = xmlNode["complemento"].InnerText; }
private void PreenchaCodigoDoDespacho(XmlNode processo, IRevistaDePatente revistaDePatente) { if(processo["despachos"] != null && processo["despachos"]["despacho"] != null) revistaDePatente.CodigoDoDespacho = processo["despachos"]["despacho"].Attributes.GetNamedItem("codigo").Value; }
private void PreenchaCessionaria(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["cessionaria"] == null) return; revistaDePatente.Cessionaria = xmlNode["cessionaria"].InnerText; }
private void PreenchaProcurador(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["procurador"] == null) return; revistaDePatente.Procurador = xmlNode["procurador"].InnerText; }
private void PreenchaInsentosDeAverbacao(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["isentosAverbacao"] == null) return; revistaDePatente.ServicosIsentosDeAverbacao = xmlNode["isentosAverbacao"].InnerText; }
private void PreenchaRedacao(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["redacao"] == null) return; revistaDePatente.Redacao = xmlNode["redacao"].InnerText; }
private void PreenchaNumeroDoPedidoParaRevistaDePatente(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["numeroDoPedido"] != null) revistaDePatente.NumeroDoPedido = xmlNode["numeroDoPedido"].InnerText; }
private void PreenchaRequerente(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["requerente"] == null) return; revistaDePatente.Requerente = xmlNode["requerente"].InnerText; }
private void PreenchaPaisCedente(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["paisCedente"] == null) return; revistaDePatente.PaisCedente = xmlNode["paisCedente"].InnerText; }
private void PreenchaSetor(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["setor"] == null) return; revistaDePatente.Setor = xmlNode["setor"].InnerText; }
private void PreenchaPaisCessionaria(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["paisCessionaria"] == null) return; revistaDePatente.PaisDaCessionaria = xmlNode["paisCessionaria"].InnerText; revistaDePatente.EnderecoDaCessionaria = VerifiqueERetorneValorStringDoNo(xmlNode["paisCessionaria"], "endereco"); }
private void PreenchaUltimaInformacao(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["ultimaInformacao"] == null) return; revistaDePatente.UltimaInformacao = xmlNode["ultimaInformacao"].InnerText; }
private void PreenchaPaisesDesignados(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["paisesDesignados"] == null) return; revistaDePatente.PaisesDesignados = xmlNode["paisesDesignados"].InnerText; }
private Table ObtenhaTabelaInformacoesRevista(IRevistaDePatente revista) { var tabela = new Table(1); tabela.Widths = new Single[] { 100 }; tabela.Padding = 0; tabela.Spacing = 0; tabela.Width = 100; tabela.AutoFillEmptyCells = true; tabela.Border = 0; tabela.EndHeaders(); if(revista.DataPublicacao.HasValue && revista.DataPublicacao.Value != DateTime.MinValue) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout43.IdentificadorCampo + " " + revista.DataPublicacao.Value.ToString("dd/MM/yyyy"), _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (revista.DataDeDeposito.HasValue && revista.DataDeDeposito.Value != DateTime.MinValue) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout22.IdentificadorCampo + " " + revista.DataDeDeposito.Value.ToString("dd/MM/yyyy"), _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.NumeroProcessoDaPatente)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout11.IdentificadorCampo + " " + revista.NumeroProcessoDaPatente, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.NumeroDoPedido)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout21.IdentificadorCampo + " " + revista.NumeroDoProcessoFormatado, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (revista.DataDaPublicacaoDoPedido.HasValue && revista.DataDaPublicacaoDoPedido.Value != DateTime.MinValue) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout43.IdentificadorCampo + " " + revista.DataDaPublicacaoDoPedido.Value.ToString("dd/MM/yyyy"), _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (revista.DataDeConcessao.HasValue && revista.DataDeConcessao.Value != DateTime.MinValue) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout45.IdentificadorCampo + " " + revista.DataDeConcessao.Value.ToString("dd/MM/yyyy"), _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.PrioridadeUnionista)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout43.IdentificadorCampo + " " + revista.DataPublicacao.Value.ToString("dd/MM/yyyy"), _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.ClassificacaoInternacional)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout51.IdentificadorCampo + " " + revista.ClassificacaoInternacional, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Titulo)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout54.IdentificadorCampo + " " + revista.Titulo, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Resumo)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout57.IdentificadorCampo + " " + revista.Resumo, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.DadosDoPedidoDaPatente)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout61.IdentificadorCampo + " " + revista.DadosDoPedidoDaPatente, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.DadosDoPedidoOriginal)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout62.IdentificadorCampo + " " + revista.DadosDoPedidoOriginal, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.PrioridadeInterna)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout66.IdentificadorCampo + " " + revista.PrioridadeInterna, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Depositante)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout71.IdentificadorCampo + " " + revista.Depositante, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Inventor)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout72.IdentificadorCampo + " " + revista.Inventor, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Titular)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout73.IdentificadorCampo + " " + revista.Titular + " " + revista.UFTitular + " " + revista.PaisTitular, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Procurador)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout74.IdentificadorCampo + " " + revista.Procurador, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.PaisesDesignados)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout81.IdentificadorCampo + " " + revista.PaisesDesignados, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (revista.DataInicioFaseNacional.HasValue && revista.DataInicioFaseNacional.Value != DateTime.MinValue) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout85.IdentificadorCampo + " " + revista.DataInicioFaseNacional.Value.ToString("dd/MM/yyyy"), _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.DadosDepositoInternacional)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout86.IdentificadorCampo + " " + revista.DadosDepositoInternacional, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.DadosPublicacaoInternacional)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.Layout87.IdentificadorCampo + " " + revista.DadosPublicacaoInternacional, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.CodigoDoDespacho)) { var despacho = FabricaGenerica.GetInstancia().CrieObjeto<IDespachoDePatentes>(); using (var servico = FabricaGenerica.GetInstancia().CrieObjeto<IServicoDeDespachoDePatentes>()) despacho = servico.ObtenhaDespachoPeloCodigo(revista.CodigoDoDespacho); if(despacho != null) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutCD.IdentificadorCampo + " " + despacho.Codigo + " - " + despacho.Titulo, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } } if (!string.IsNullOrEmpty(revista.ResponsavelPagamentoImpostoDeRenda)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutRP.IdentificadorCampo + " " + revista.ResponsavelPagamentoImpostoDeRenda, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Complemento)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutCO.IdentificadorCampo + " " + revista.Complemento, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Decisao)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutDE.IdentificadorCampo + " " + revista.Decisao, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Recorrente)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutRE.IdentificadorCampo + " " + revista.Recorrente, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.NumeroDoProcesso)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutNP.IdentificadorCampo + " " + revista.NumeroDoProcessoFormatado, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Cedente)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutCE.IdentificadorCampo + " " + revista.Cedente, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Cessionaria)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutCS.IdentificadorCampo + " " + revista.Cessionaria, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.UltimaInformacao)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutUI.IdentificadorCampo + " " + revista.UltimaInformacao, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.CertificadoDeAverbacao)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutCA.IdentificadorCampo + " " + revista.CertificadoDeAverbacao, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.PaisCedente)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutPE.IdentificadorCampo + " " + revista.PaisCedente, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.PaisDaCessionaria)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutPS.IdentificadorCampo + " " + revista.PaisDaCessionaria, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Setor)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutSE.IdentificadorCampo + " " + revista.Setor, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.EnderecoDaCessionaria)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutES.IdentificadorCampo + " " + revista.EnderecoDaCessionaria, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.NaturezaDoDocumento)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutND.IdentificadorCampo + " " + revista.NaturezaDoDocumento, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.MoedaDePagamento)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutMO.IdentificadorCampo + " " + revista.MoedaDePagamento, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Valor)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutVA.IdentificadorCampo + " " + revista.Valor, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Pagamento)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutPG.IdentificadorCampo + " " + revista.Pagamento, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Prazo)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutPZ.IdentificadorCampo + " " + revista.Prazo, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.ServicosIsentosDeAverbacao)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutIA.IdentificadorCampo + " " + revista.ServicosIsentosDeAverbacao, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Criador)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutCR.IdentificadorCampo + " " + revista.Criador, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Linguagem)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutLG.IdentificadorCampo + " " + revista.Linguagem, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.CampoDeAplicacao)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutCP.IdentificadorCampo + " " + revista.CampoDeAplicacao, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.TipoDePrograma)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutTP.IdentificadorCampo + " " + revista.TipoDePrograma, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (revista.DataDaCriacao.HasValue && revista.DataDaCriacao.Value != DateTime.MinValue) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutDL.IdentificadorCampo + " " + revista.DataDaCriacao.Value.ToString("dd/MM/yyyy"), _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.RegimeDeGuarda)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutRG.IdentificadorCampo + " " + revista.RegimeDeGuarda, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Requerente)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutRQ.IdentificadorCampo + " " + revista.Requerente, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Redacao)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutRD.IdentificadorCampo + " " + revista.Redacao, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Criador)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutCR.IdentificadorCampo + " " + revista.Criador, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Criador)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutCR.IdentificadorCampo + " " + revista.Criador, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } if (!string.IsNullOrEmpty(revista.Criador)) { var celula = new Cell(new Phrase(" " + LayoutRevistaPatente.LayoutCR.IdentificadorCampo + " " + revista.Criador, _Fonte1)); celula.DisableBorderSide(0); tabela.AddCell(celula); } return tabela; }
private void PreenchaPatente(XmlNode processo, IRevistaDePatente revistaDePatente) { if (processo["patente"] != null) { revistaDePatente.NumeroProcessoDaPatente = VerifiqueERetorneValorStringDoNo(processo["patente"], "numero"); if (processo["patente"]["titulo"] != null) revistaDePatente.Titulo = processo["patente"]["titulo"].InnerText; if (processo["patente"]["dadosDaPatente"] != null) revistaDePatente.DadosDoPedidoOriginal = processo["patente"]["dadosDaPatente"].InnerText; if (processo["patente"]["natureza"] != null) revistaDePatente.NaturezaDoDocumento = processo["patente"]["natureza"].InnerText; if (processo["patente"]["observacao"] != null) revistaDePatente.Observacao = processo["patente"]["observacao"].InnerText; if (processo["patente"]["resumo"] != null) revistaDePatente.Resumo = processo["patente"]["resumo"].InnerText; if (processo["patente"]["inventores"] != null) revistaDePatente.Inventor = processo["patente"]["inventores"].InnerText; if (processo["patente"]["classificacaoInternacional"] != null) revistaDePatente.ClassificacaoInternacional = processo["patente"]["classificacaoInternacional"].InnerText; if (processo["patente"]["classificacaoNacional"] != null) revistaDePatente.ClassificacaoNacional = processo["patente"]["classificacaoNacional"].InnerText; if (processo["patente"]["adicaoPatente"] != null) revistaDePatente.DadosDoPedidoDaPatente = processo["patente"]["adicaoPatente"].InnerText; if (processo["patente"]["programaDeComputador"] != null) PreenchaInformacoesPatenteProgramaDeComputador(processo["patente"]["programaDeComputador"], revistaDePatente); } }
private void MontaXMLParaProcessamentoDaRevistaAtravesDoTXT(IRevistaDePatente revistaDePatente) { var pastaDeDestino = Server.MapPath(UtilMP.URL_REVISTA_PATENTE); Util.CrieDiretorio(pastaDeDestino); var caminhoArquivoTxt = Path.Combine(pastaDeDestino, revistaDePatente.NumeroRevistaPatente + revistaDePatente.ExtensaoArquivo); using (var arquivo = new StreamReader(caminhoArquivoTxt)) { TradutorDeRevistaPatenteTXTParaRevistaPatenteXML.TraduzaRevistaDePatente(DateTime.Now, revistaDePatente.NumeroRevistaPatente.ToString(), arquivo, pastaDeDestino); arquivo.Close(); } }
private void PreenchaPrioridadeUnionista(XmlNode xmlNode, IRevistaDePatente revistaDePatente) { if (xmlNode["prioridadeUnionista"] == null) return; revistaDePatente.PrioridadeUnionista = xmlNode["prioridadeUnionista"].InnerText; }
private XmlDocument MontaXmlParaProcessamentoDaRevista(IRevistaDePatente revistaDePatente) { var pastaDeDestino = Server.MapPath(UtilMP.URL_REVISTA_PATENTE); Util.CrieDiretorio(pastaDeDestino); CaminhoArquivo = Path.Combine(pastaDeDestino, revistaDePatente.NumeroRevistaPatente + revistaDePatente.ExtensaoArquivo); AdicioneNumeroDaRevistaSelecionada(revistaDePatente); var xmlRevista = new XmlDocument(); xmlRevista.Load(CaminhoArquivo); return xmlRevista; }
public IList<IRevistaDePatente> ObtenhaProcessosExistentesDeAcordoComARevistaXml(IRevistaDePatente revistaDePatentes, XmlDocument revistaXml, bool lerRevista, bool reprocessamento) { return LeiaRevistaXMLEPreenchaProcessosExistentes(revistaXml, lerRevista, reprocessamento); }