Serviço >> Dados Complementares >> Lista: Codigo Tributação Municipio |
Abaixo é apresentado o script para mapeamento do campo:
É importante verificar se a "caixa de texto" ou "textBox" é referente a ele mesmo, caso não seja o mesmo deve ser alterado. O campo String.Format quando existir deve ser alterado o texto do campo que será apresentado. |
GetData("DocumentoGenerico.InfRps.IdentificacaoRps.NumeroRps");
string doc = ""; textBox1.Text = "";
if(GetData("DocumentoGenerico.InfRps.Servico") != null) { if(GetData("DocumentoGenerico.InfRps.Servico.DadosComplementaresServico") != null) { if(GetData("DocumentoGenerico.InfRps.Servico.DadosComplementaresServico.ListItemServico") != null) { if(GetData("DocumentoGenerico.InfRps.Servico.DadosComplementaresServico.ListItemServico.CodigoTributacaoMunicipio")!= null) { doc = GetData("DocumentoGenerico.InfRps.Servico.DadosComplementaresServico.ListItemServico.CodigoTributacaoMunicipio").ToString(); } } } else { doc = ""; } } if(GetData("DocumentoGenerico.InfRps.Servicos") != null) { if(GetData("DocumentoGenerico.InfRps.Servicos.DadosComplementaresServico")!= null) { if(GetData("DocumentoGenerico.InfRps.Servicos.DadosComplementaresServico.ListItemServico") != null) { if(GetData("DocumentoGenerico.InfRps.Servicos.DadosComplementaresServico.ListItemServico.CodigoTributacaoMunicipio")!= null) { doc = GetData("DocumentoGenerico.InfRps.Servicos.DadosComplementaresServico.ListItemServico.CodigoTributacaoMunicipio").ToString(); } } } else { doc = ""; } }
textBox1.Text = String.Format("{0}", doc); |