<?xml version="1.0" encoding="iso-8859-1"?>
<xs:schema
	attributeFormDefault="unqualified"
	elementFormDefault="unqualified"
	targetNamespace="http://iprejun.sp.gov.br/xml/Iprejun_Entes_2024.3.xsd"
	version="2024.3"
	xml:lang="pt-BR"
	xmlns="http://iprejun.sp.gov.br/xml/Iprejun_Entes_2024.3.xsd"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
	<xs:annotation>
		<xs:documentation>
			XSD para arquivo de importação de dados dos entes:
			- Vínculos
			- Afastamentos
			- Desligamentos
			- Verbas de remuneração
			- Repasse de contribuições
		</xs:documentation>
	</xs:annotation>

	<xs:element name="Iprejun">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Ente">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="Versao" type="xs:string" fixed="2024.3">
								<xs:annotation>
									<xs:documentation>Versão do XSD usado = valor fixo "2024.3"</xs:documentation>
								</xs:annotation>
							</xs:element>

							<xs:element name="CNPJ" type="T_CNPJ" >
								<xs:annotation>
									<xs:documentation>CNPJ do ente que está enviando o arquivo</xs:documentation>
								</xs:annotation>
							</xs:element>

							<xs:element name="ID_Arquivo" type="xs:positiveInteger">
								<xs:annotation>
									<xs:documentation>Número único de identificação do arquivo.</xs:documentation>
									<xs:documentation>Não pode ser repetido em outros envios.</xs:documentation>
									<xs:documentation>Não precisa ser sequencial.</xs:documentation>
									<xs:documentation>Exemplo: 20231201  (composto do ano+mes+seq.arquivo)</xs:documentation>
								</xs:annotation>
							</xs:element>

							<!-- Vinculo -->
							<xs:element name="Vinculo" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Nomeação e atualização de vínculo.</xs:documentation>
									<xs:documentation>Chave = CPF + Matricula</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="CPF" type="T_CPF" use="required"/>
									<xs:attribute name="Matricula" type="T_Matricula" use="required"/>
									<xs:attribute name="Matricula_Original" type="T_Matricula"/>
									<xs:attribute name="Nome" type="T_Nome" use="required"/>
									<xs:attribute name="Data_Nomeacao" type="xs:date" use="required"/>
									<xs:attribute name="Data_Posse" type="xs:date">
										<xs:annotation>
											<xs:documentation>Informar caso seja diferente da data de nomeaçao.</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="Data_Inicio_Exercicio" type="xs:date">
										<xs:annotation>
											<xs:documentation>Informar caso seja diferente da data de posse.</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="RPC" type="T_RPC" use="required">
										<xs:annotation>
											<xs:documentation>Data de início ou migração para a Previdência Complementar ou "N" caso não seja RPC.</xs:documentation>
											<xs:documentation>Para os ingressantes após 08/12/2022 deve ser igual à data de início do exercício.</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="Cargo" type="xs:string" use="required"/>
									<xs:attribute name="Cedido_De_CNPJ" type="T_CNPJ">
										<xs:annotation>
											<xs:documentation>Somente para casos de servidores vindos de outros entes vinculados ao IPREJUN e cedidos com ônus para o destino.</xs:documentation>
											<xs:documentation>CNPJ do ente de onde o servidor veio.</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="Cedido_De_Matricula" type="T_Matricula">
										<xs:annotation>
											<xs:documentation>Somente para casos de servidores vindos de outros entes vinculados ao IPREJUN e cedidos com ônus para o destino.</xs:documentation>
											<xs:documentation>Matrícula do servidor no órgão de origem.</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="Abono_Permanencia" type="xs:date">
										<xs:annotation>
											<xs:documentation>Informar a data de início do Abono de Permanência, caso o segurado esteja em.</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>

							<!-- Desligamentos -->
							<xs:element name="Desligamento" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Desligamento de segurado (exonerações)</xs:documentation>
									<xs:documentation>Chave = Matricula</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="Matricula" type="T_Matricula" use="required"/>
									<xs:attribute name="Data" type="xs:date" use="required"/>
									<xs:attribute name="Motivo" type="T_Motivo_Desligamento" use="required"/>
								</xs:complexType>
							</xs:element>

							<!-- Carreira -->
							<xs:element name="Carreira" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Evolução na carreira. Apenas para FMJ e Guardas</xs:documentation>
									<xs:documentation>Chave = Matricula</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="Matricula" type="T_Matricula" use="required"/>
									<xs:attribute name="Data" type="xs:date" use="required"/>
									<xs:attribute name="Cargo" type="xs:string" use="required"/>
								</xs:complexType>
							</xs:element>

							<!-- Afastamentos -->
							<xs:element name="Afastamento" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Afastamentos e Licenças</xs:documentation>
									<xs:documentation>Chave = Matricula + Data_Inicio</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="Matricula" type="T_Matricula" use="required"/>
									<xs:attribute name="Data_Inicio" type="xs:date" use="required"/>
									<xs:attribute name="Data_Fim" type="xs:date"/>
									<xs:attribute name="Motivo_Afastamento" type="T_Motivo_Afastamento" use="required"/>
								</xs:complexType>
							</xs:element>

							<!-- Cedido_Para -->
							<xs:element name="Cedido_Para" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Cessão de segurado para outros entes ou para cargo em comissão</xs:documentation>
									<xs:documentation>Chave = Matricula + Data_Inicio</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="Matricula" type="T_Matricula" use="required"/>
									<xs:attribute name="Data_Inicio" type="xs:date" use="required"/>
									<xs:attribute name="CNPJ" type="T_CNPJ" use="required">
										<xs:annotation>
											<xs:documentation>CNPJ do ente para onde o servidor vai.</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="Data_Fim" type="xs:date"/>
								</xs:complexType>
							</xs:element>


							<!-- Verba -->
							<xs:element name="Verba" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Verba.</xs:documentation>
									<xs:documentation>Todas as verbas devem ser cadastradas, porém só as verbas com incidência de contribuição devem ser listadas no repasse.</xs:documentation>
									<xs:documentation>Chave = Cod_Verba</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="Cod_Verba" type="T_Cod_Verba" use="required"/>
									<xs:attribute name="Descricao" type="xs:string" use="required"/>
									<xs:attribute name="ProventoDesconto" type="T_ProventoDesconto" use="required"/>
									<xs:attribute name="Se_Incide_Iprejun" type="T_SimNao" use="required"/>
									<xs:attribute name="Se_Decimo_Terceiro" type="T_SimNao" use="required"/>
									<xs:attribute name="Se_Diferenca" type="T_SimNao" use="required">
										<xs:annotation>
											<xs:documentation>Se a verba se refere a diferências referentes à outras competências.</xs:documentation>
											<xs:documentation>Exemplos: reajuste retroativo, IPREJUN pago a maior ou a menor, etc.</xs:documentation>
										</xs:annotation>
									</xs:attribute>

									<!-- **** Mais itens?? -->
								</xs:complexType>
							</xs:element>


							<!-- Repasse -->
							<xs:element name="Repasse" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Todas as verbas devem ser cadastradas, porém só as verbas com incidência de contribuição devem ser listadas no repasse.</xs:documentation>
									<xs:documentation>Chave = Sequencial</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Contribuicao" minOccurs="1" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation>O elemento 'Contribuicao' deve ser repetido uma vez para cada matrícula.</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="Competencia" minOccurs="1" maxOccurs="unbounded">
														<xs:annotation>
															<xs:documentation>Agrupamento por competência, para ter a base de contribuição utilizada no cálculo de cada competência.</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="Verba" minOccurs="0" maxOccurs="unbounded">
																	<xs:annotation>
																		<xs:documentation>Incluir apenas as verbas com incidência de IPREJUN.</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:attribute name="Cod_Verba" type="T_Cod_Verba" use="required"/>
																		<xs:attribute name="Qtd_Dias" type="xs:positiveInteger">
																			<xs:annotation>
																				<xs:documentation>Quantidade de dias a que se refere a verba.</xs:documentation>
																				<xs:documentation>Se não informado, equivale ao mês completo.</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="Fator" default="100%" type="T_Porcentagem">
																			<xs:annotation>
																				<xs:documentation>Fator a ser aplicado na verba.</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="Base_de_Calculo" type="T_Moeda">
																			<xs:annotation>
																				<xs:documentation>Base de cálculo da verba. Opcional.</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="Valor" type="T_Moeda" use="required"/>
																	</xs:complexType>
																</xs:element>
																<xs:element name="Total">
																	<xs:annotation>
																		<xs:documentation>Total da competência.</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:attribute name="Base_Iprejun" type="T_Moeda" use="required">
																			<xs:annotation>
																				<xs:documentation>Base de cálculo usada. No caso de verbas de diferenças,</xs:documentation>
																				<xs:documentation>usar apenas a base da diferença.</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="Segurado" type="T_Moeda" use="required"/>
																		<xs:attribute name="Patronal" type="T_Moeda" use="required"/>
																		<xs:attribute name="Deficit" type="T_Moeda" use="required"/>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
															<xs:attribute name="MesAno" type="T_Competencia">
																<xs:annotation>
																	<xs:documentation>Mês-ano ao qual se referem as verbas do grupo.</xs:documentation>
																</xs:annotation>
															</xs:attribute>
														</xs:complexType>
													</xs:element>
												</xs:sequence>

												<xs:attribute name="Matricula" type="T_Matricula" use="required"/>
												<xs:attribute name="Salario_Cargo" type="T_Moeda" use="required">
													<xs:annotation>
														<xs:documentation>Salário do cargo = salário do servidor equivalente a ele ter trabalhado</xs:documentation>
														<xs:documentation>o mês inteiro. Inclui ATS e outras incorporações que incidem IPREJUN.</xs:documentation>
														<xs:documentation>Ou seja, igual à base de contribuição sem aplicação da proporcionalidade</xs:documentation>
														<xs:documentation>de dias trabalhados, e sem o abate-teto.</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="Salario_Bruto" type="T_Moeda" use="required">
													<xs:annotation>
														<xs:documentation>Soma de todos os proventos aplicando limite do teto, incluindo verbas indenizatórias.</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="Se_CargoComissao" type="T_SimNao">
													<xs:annotation>
														<xs:documentation>
														"S" caso o servidor tenha ocupado cargo em comissão durante o mês (ou parte do mês).</xs:documentation>
													</xs:annotation>
												</xs:attribute>

											</xs:complexType>
										</xs:element>

										<xs:element name="Total_Segurado" type="T_Moeda"/>
										<xs:element name="Total_Patronal" type="T_Moeda"/>
										<xs:element name="Total_Deficit" type="T_Moeda"/>
										<xs:element name="Total_Repasse" type="T_Moeda">
											<xs:annotation>
												<xs:documentation>Total do repasse = total segurado + total patronal + total déficit.</xs:documentation>
												<xs:documentation>Não confundir com a competência da verba do repasse.</xs:documentation>
												<xs:documentation>Não confundir com a competência da verba do repasse.</xs:documentation>
											</xs:annotation>
										</xs:element>

									</xs:sequence>
									<xs:attribute name="Sequencial" type="xs:positiveInteger" use="required">
										<xs:annotation>
											<xs:documentation>Número sequencial do arquivo dentro da mesma competência.</xs:documentation>
											<xs:documentation>Para o caso de ser enviado mais de um arquivo (com reajuste retroativo, por exemplo)</xs:documentation>
										</xs:annotation>
									</xs:attribute>

									<xs:attribute name="Competencia" type="T_Competencia" use="required">
										<xs:annotation>
											<xs:documentation>Mês-ano ao qual se refere o conjunto inteiro do repasse.</xs:documentation>
											<xs:documentation>Não confundir com a competência da verba do repasse.</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="Data_Pagamento" type="xs:date" use="required"/>
									<xs:attribute name="Data_Repasse" type="xs:date"/>
								</xs:complexType>
							</xs:element>

						</xs:sequence>
					</xs:complexType>

				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:simpleType name="T_CNPJ">
		<xs:restriction base="xs:string">
			<xs:pattern value="[0-9]{14}"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="T_CPF">
		<xs:restriction base="xs:string">
			<xs:pattern value="[0-9]{11}"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="T_Matricula">
		<xs:restriction base="xs:positiveInteger"/>
	</xs:simpleType>

	<xs:simpleType name="T_Nome">
		<xs:annotation>
			<xs:documentation>Nomes de pessoas.</xs:documentation>
			<xs:documentation>Pelo menos dois nomes separados por espaços simples.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="\S+(\s\S+)+"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="T_RPC">
		<xs:annotation>
			<xs:documentation></xs:documentation>
		</xs:annotation>
		<xs:union memberTypes="xs:date">
			<xs:simpleType>
				<xs:restriction base="xs:NMTOKEN">
					<xs:enumeration value="N"/>
				</xs:restriction>
			</xs:simpleType>
		</xs:union>
	</xs:simpleType>


	<xs:simpleType name="T_SimNao">
		<xs:annotation>
			<xs:documentation>S-Sim</xs:documentation>
			<xs:documentation>N-Não</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="S">
				<xs:annotation>
					<xs:documentation>Sim</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="N">
				<xs:annotation>
					<xs:documentation>Não</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="T_Motivo_Desligamento">
		<xs:annotation>
			<xs:documentation>D1-Aposentadoria</xs:documentation>
			<xs:documentation>D2-Falecimento</xs:documentation>
			<xs:documentation>D3-Exoneração a pedido do servidor</xs:documentation>
			<xs:documentation>D4-Demissão</xs:documentation>
			<xs:documentation>D5-Readaptação ou redistribuição</xs:documentation>
			<xs:documentation>D6-Fim de cessão</xs:documentation>
			<xs:documentation>D0-Outros</xs:documentation>
			<xs:documentation>XX-Exclusão</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="D1">
				<xs:annotation>
					<xs:documentation>Aposentadoria</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="D2">
				<xs:annotation>
					<xs:documentation>Falecimento</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="D3">
				<xs:annotation>
					<xs:documentation>Exoneração a pedido do servidor</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="D4">
				<xs:annotation>
					<xs:documentation>Demissão</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="D5">
				<xs:annotation>
					<xs:documentation>Readaptação ou redistribuição</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="D6">
				<xs:annotation>
					<xs:documentation>Fim de cessão</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="D0">
				<xs:annotation>
					<xs:documentation>Outros</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="XX">
				<xs:annotation>
					<xs:documentation>Exclusão</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="T_Motivo_Afastamento">
		<xs:annotation>
			<xs:documentation>A01-*Art.69-I - Para tratamento de saúde</xs:documentation>
			<xs:documentation>A02-*Art.69-I - Para tratamento de saúde (até 30 dias)</xs:documentation>
			<xs:documentation>A03-*Art.69-I - Para tratamento de saúde (após 30 dias)</xs:documentation>
			<xs:documentation>A04-*Art.69-II - Para tratamento de doença em pessoa da família (até 30 dias)</xs:documentation>
			<xs:documentation>A05-Art.69-II - Para tratamento de doença em pessoa da família (após 30 dias)</xs:documentation>
			<xs:documentation>A06-*Art.69-III - Para repouso à gestante</xs:documentation>
			<xs:documentation>A07-Art.55-X - Licença Paternidade ou adoção</xs:documentation>
			<xs:documentation>A08-Art.69-IV - Para serviço militar</xs:documentation>
			<xs:documentation>A09-Art.69-V - Para trato de interesse particular, com recolhimento</xs:documentation>
			<xs:documentation>A10-Art.69-V - Para trato de interesse particular, sem recolhimento</xs:documentation>
			<xs:documentation>A11-Art.69-VI - Para desempenho de mandato eletivo</xs:documentation>
			<xs:documentation>A12-Art.69-VII - Para desempenho de mandato de direção sindical</xs:documentation>
			<xs:documentation>A13-*Art.65 - Férias prêmio em gozo</xs:documentation>
			<xs:documentation>A14-Art.8 - Cedido com ônus para o destino</xs:documentation>
			<xs:documentation>A15-Art.8 - Cedido com ônus para a origem</xs:documentation>
			<xs:documentation>A16-Art.162 - Afastamento Preventivo - ainda não julgado</xs:documentation>
			<xs:documentation>A17-Art.162 - Afastamento Preventivo - julgado culpado</xs:documentation>
			<xs:documentation>A18-Art.162 - Afastamento Preventivo - julgado inocente ou apenas advertência</xs:documentation>
			<xs:documentation>A19-Art.52 - Preso Preventivamente</xs:documentation>
			<xs:documentation>A20-CPP Art.319 - Medida Cautelar</xs:documentation>
			<xs:documentation>A21-Art.44 - Suspensão CNH ou órgão de classe</xs:documentation>
			<xs:documentation>A22-Art.136 - Suspensão Disciplinar</xs:documentation>
			<xs:documentation>A23-*Art.55-XXI - Medida Protetiva da Lei 11.340/2006</xs:documentation>
			<xs:documentation>A24-Art.118 - Em disponibilidade</xs:documentation>
			<xs:documentation>A25-Art.27 - Reintegração (período afastado)</xs:documentation>
			<xs:documentation>A26-L8112-Art.25 - Reversão de Aposentadoria (período aposentado)</xs:documentation>
			<xs:documentation>XX-Exclusão</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="A01">
				<xs:annotation>
					<xs:documentation>*Art.69-I - Para tratamento de saúde</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A02">
				<xs:annotation>
					<xs:documentation>*Art.69-I - Para tratamento de saúde (até 30 dias)</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A03">
				<xs:annotation>
					<xs:documentation>*Art.69-I - Para tratamento de saúde (após 30 dias)</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A04">
				<xs:annotation>
					<xs:documentation>*Art.69-II - Para tratamento de doença em pessoa da família (até 30 dias)</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A05">
				<xs:annotation>
					<xs:documentation>Art.69-II - Para tratamento de doença em pessoa da família (após 30 dias)</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A06">
				<xs:annotation>
					<xs:documentation>*Art.69-III - Para repouso à gestante</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A07">
				<xs:annotation>
					<xs:documentation>Art.55-X - Licença Paternidade ou adoção</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A08">
				<xs:annotation>
					<xs:documentation>Art.69-IV - Para serviço militar</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A09">
				<xs:annotation>
					<xs:documentation>Art.69-V - Para trato de interesse particular, com recolhimento</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A10">
				<xs:annotation>
					<xs:documentation>Art.69-V - Para trato de interesse particular, sem recolhimento</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A11">
				<xs:annotation>
					<xs:documentation>Art.69-VI - Para desempenho de mandato eletivo</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A12">
				<xs:annotation>
					<xs:documentation>Art.69-VII - Para desempenho de mandato de direção sindical</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A13">
				<xs:annotation>
					<xs:documentation>*Art.65 - Férias prêmio em gozo</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A14">
				<xs:annotation>
					<xs:documentation>Art.8 - Cedido com ônus para o destino</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A15">
				<xs:annotation>
					<xs:documentation>Art.8 - Cedido com ônus para a origem</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A16">
				<xs:annotation>
					<xs:documentation>Art.162 - Afastamento Preventivo - ainda não julgado</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A17">
				<xs:annotation>
					<xs:documentation>Art.162 - Afastamento Preventivo - julgado culpado</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A18">
				<xs:annotation>
					<xs:documentation>Art.162 - Afastamento Preventivo - julgado inocente ou apenas advertência</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A19">
				<xs:annotation>
					<xs:documentation>Art.52 - Preso Preventivamente</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A20">
				<xs:annotation>
					<xs:documentation>CPP Art.319 - Medida Cautelar</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A21">
				<xs:annotation>
					<xs:documentation>Art.44 - Suspensão CNH ou órgão de classe</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A22">
				<xs:annotation>
					<xs:documentation>Art.136 - Suspensão Disciplinar</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A23">
				<xs:annotation>
					<xs:documentation>*Art.55-XXI - Medida Protetiva da Lei 11.340/2006</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A24">
				<xs:annotation>
					<xs:documentation>Art.118 - Em disponibilidade</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A25">
				<xs:annotation>
					<xs:documentation>Art.27 - Reintegração (período afastado)</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="A26">
				<xs:annotation>
					<xs:documentation>L8112-Art.25 - Reversão de Aposentadoria (período aposentado)</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="XX">
				<xs:annotation>
					<xs:documentation>Exclusão</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="T_Competencia">
		<xs:annotation>
			<xs:documentation>MM-AAAA incluindo mês 13 para décimo terceiro.Ex: 02-2024</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="(0[1-9]|1[0-3])-[1-2]\d{3}"/>
		</xs:restriction>
	</xs:simpleType>


	<xs:simpleType name="T_Cod_Verba">
		<xs:restriction base="xs:positiveInteger"/>
	</xs:simpleType>

	<xs:simpleType name="T_ProventoDesconto">
		<xs:annotation>
			<xs:documentation>P-Proventos</xs:documentation>
			<xs:documentation>D-Desconto</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="P">
				<xs:annotation>
					<xs:documentation>Provento</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="D">
				<xs:annotation>
					<xs:documentation>Desconto</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="T_Moeda">
		<xs:restriction base="xs:decimal">
			<xs:fractionDigits value="2"/>
			<xs:minInclusive value="-9999999999999.99"/>
			<xs:maxInclusive value="9999999999999.99"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="T_Porcentagem">
		<xs:annotation>
			<xs:documentation>Porcentagem, incluindo o símbolo '%', podendo ter até 2 casas decimais. Exs: 50% , 33.33%</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="[0-9]{1,3}(\.[0-9]{1,2})?%"/>
		</xs:restriction>
	</xs:simpleType>

</xs:schema>