Páginas filhas
  • DI Funcionário - Employee

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Bloco de código
languagexml
titleEmployee_Envio
linenumberstrue
collapsetrue
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TOTVSMessage>
	<MessageInformation version="3.002">
		<BranchId>D MG 01</BranchId>
		<CompanyId>T1</CompanyId>
		<DeliveryType>Sync</DeliveryType>
		<GeneratedOn>2015-04-17T14:40:18</GeneratedOn>
		<Product name="ERP" version="11"/>
		<SourceApplication>P118_PRD</SourceApplication>
		<StandardVersion>1.000</StandardVersion>
		<Transaction>EMPLOYEE</Transaction>
		<Type>BusinessMessage</Type>
		<UUID>pg24pilh-krjt-bg29-ypfn-w98j4p9ln535</UUID>
	</MessageInformation>
	<BusinessMessage>
		<BusinessEvent>
			<Entity>Employee</Entity>
			<Event>upsert</Event>
			<Identification>
				<key name="InternalID">01|0101|000194</key>
			</Identification>
		</BusinessEvent>
		<BusinessContent>
			<CompanyId>T1</CompanyId>
			<BranchId>D MG 01</BranchId>
			<CompanyInternalId>01|0101</CompanyInternalId>
			<Code>1420</Code>
			<InternalId>01|0101|000194</InternalId>
			<FullName/>
			<Name>João da Silva</Name>
			<ShortName/>
			<BadgeNumber>85494</BadgeNumber>
			<EmployeeType>1</EmployeeType>
			<EmployeeDocument>
				<WorkCardStateIssuing>SP</WorkCardStateIssuing>
				<WorkCardModel/>
				<WorkCardSerie>34</WorkCardSerie>
				<WorkCardNumber>23432</WorkCardNumber>
				<PIS>96170989385</PIS>
			</EmployeeDocument>
			<GovernmentalInformation>
				<CNPJ/>
				<CPF>31564837700</CPF>
				<RG>493212413</RG>
				<IE/>
				<NumeroCTPS>14202189385</NumeroCTPS>
				<SerieCTPS>0685</SerieCTPS>
			</GovernmentalInformation>
			<AdressInformation>
				<Address>Rua Minas Gerais</Address>
				<Number>525</Number>
				<Complement>Terceiro Andar</Complement>
				<City>
					<Code/>
					<Description/>
				</City>
				<District/>
				<State>
					<Code/>
					<Description/>
				</State>
				<Country>
					<Code/>
					<Description/>
				</Country>
				<ZIPCode/>
				<Region/>
				<POBox/>
			</AdressInformation>
			<CommunicationInformation>
				<PhoneNumber/>
				<PhoneExtension/>
				<FaxNumber/>
				<FaxNumberExtension/>
				<HomePage/>
				<Email/>
			</CommunicationInformation>
			<AllocationInformation>
				<BusinessUnit/>
				<ClockInCard/>
				<LaborType/>
				<UnionCode/>
				<WorkGroupCode/>
				<MarkingPlace/>
				<EmployeeClassCode/>
				<Locality/>
				<AllocationPlanCode/>
				<CountryLocalityCode/>
				<WorkShiftChangeDate/>
				<ListOfTimeTable>
					<TimeTable/>
					<MealIntervalCode/>
				</ListOfTimeTable>
			</AllocationInformation>
			<RuralCarrierInformation>
				<CarrierCode/>
				<RuralGroupCode/>
			</RuralCarrierInformation>
			<EmployeePositionCode>114</EmployeePositionCode>
			<EmployeePositionCodeInternalId>01|01|1291</EmployeePositionCodeInternalId>
			<EmployeePositionLevel/>
			<RoleCode>1</RoleCode>
			<RoleInternalId>01|01|1</RoleInternalId>
			<RoleLevel/>
			<HiringDate>2014-09-04</HiringDate>
			<WorkShiftCode>0202</WorkShiftCode>
			<WorkShiftInternalId>01|01|2</WorkShiftInternalId>
			<WorkShiftSequence>1</WorkShiftSequence>
			<DateInitialShiftSequence>2015-04-13</DateInitialShiftSequence>
			<SalaryCategory>3</SalaryCategory>
			<Salary>1000</Salary>
			<EmployeeSituation>1</EmployeeSituation>
			<CostCenterCode>T20010</CostCenterCode>
			<CostCenterInternalId>01|0101|170021517</CostCenterInternalId>
			<BirthDate>1980-10-08</BirthDate>
			<Gender>F</Gender>
			<HomeState>SP</HomeState>
			<NaturalCity>SP</NaturalCity>
			<MonthlyWorkingHours>220</MonthlyWorkingHours>
		</BusinessContent>
	</BusinessMessage>
</TOTVSMessage>
Bloco de código
languagexml
titleEmployee_Retorno
linenumberstrue
collapsetrue
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TOTVSMessage>
	<MessageInformation version="3.002">
		<BranchId>D MG 01</BranchId>
		<CompanyId>T1</CompanyId>
		<DeliveryType>Sync</DeliveryType>
		<GeneratedOn>2018-05-24T10:47:33</GeneratedOn>
		<Product name="PIMS" version="12.1.20"/>
		<SourceApplication>PIMSCONNECTOR</SourceApplication>
		<StandardVersion>1.000</StandardVersion>
		<Transaction>EMPLOYEE</Transaction>
		<Type>Response</Type>
		<UUID>27ae7878-6c56-4806-b1e2-ef0356bd7254</UUID>
	</MessageInformation>
	<ResponseMessage>
		<ProcessingInformation>
			<ProcessedOn>2018-05-24T10:47:33</ProcessedOn>
			<Status>OK</Status>
		</ProcessingInformation>
		<ReceivedMessage>
			<MessageContent/>
			<SentBy>ERP</SentBy>
			<UUID>pg24pilh-krjt-bg29-ypfn-w98j4p9ln535</UUID>
		</ReceivedMessage>
		<ReturnContent>
			<ListOfInternalId>
				<InternalId>
					<Destination>T1|D MG 01|5121091917675948691</Destination>
					<Name>EMPLOYEE</Name>
					<Origin>01|0101|000194</Origin>
				</InternalId>
			</ListOfInternalId>
		</ReturnContent>
	</ResponseMessage>
</TOTVSMessage>

Mensagem JSON

Bloco de código
languagejs
titleEmployee_Envio
linenumberstrue
collapsetrue
{
	"TOTVSMessage" : {
		"MessageInformation" : {
			"@version" : "3.002",
			"BranchId" : "D MG 01",
			"CompanyId" : "T1",
			"DeliveryType" : "Sync",
			"GeneratedOn" : "2015-04-17T14:40:18",
			"Product" : {
				"@name" : "ERP",
				"@version" : "11"
			},
			"SourceApplication" : "P118_PRD",
			"StandardVersion" : "1.000",
			"Transaction" : "EMPLOYEE",
			"Type" : "BusinessMessage",
			"UUID" : "pg24pilh-krjt-bg29-ypfn-w98j4p9ln535"
		},
		"BusinessMessage" : {
			"BusinessEvent" : {
				"Entity" : "Employee",
				"Event" : "upsert",
				"Identification" : {
					"key" : {
						"@name" : "InternalID",
						"$" : "01|0101|000194"
					}
				}
			},
			"BusinessContent" : {
				"CompanyId" : "T1",
				"BranchId" : "D MG 01",
				"CompanyInternalId" : "01|0101",
				"Code" : "1420",
				"InternalId" : "01|0101|000194",
				"FullName" : null,
				"Name" : "João da Silva",
				"ShortName" : null,
				"BadgeNumber" : "85494",
				"EmployeeType" : "1",
				"EmployeeDocument" : {
					"WorkCardStateIssuing" : "SP",
					"WorkCardModel" : null,
					"WorkCardSerie" : "34",
					"WorkCardNumber" : "23432",
					"PIS" : "96170989385"
				},
				"GovernmentalInformation" : {
					"CNPJ" : null,
					"CPF" : "31564837700",
					"RG" : "493212413",
					"IE" : null,
					"NumeroCTPS" : "14202189385",
					"SerieCTPS" : "0685"
				},
				"AdressInformation" : {
					"Address" : "Rua Minas Gerais",
					"Number" : "525",
					"Complement" : "Terceiro Andar",
					"City" : {
						"Code" : null,
						"Description" : null
					},
					"District" : null,
					"State" : {
						"Code" : null,
						"Description" : null
					},
					"Country" : {
						"Code" : null,
						"Description" : null
					},
					"ZIPCode" : null,
					"Region" : null,
					"POBox" : null
				},
				"CommunicationInformation" : {
					"PhoneNumber" : null,
					"PhoneExtension" : null,
					"FaxNumber" : null,
					"FaxNumberExtension" : null,
					"HomePage" : null,
					"Email" : null
				},
				"AllocationInformation" : {
					"BusinessUnit" : null,
					"ClockInCard" : null,
					"LaborType" : null,
					"UnionCode" : null,
					"WorkGroupCode" : null,
					"MarkingPlace" : null,
					"EmployeeClassCode" : null,
					"Locality" : null,
					"AllocationPlanCode" : null,
					"CountryLocalityCode" : null,
					"WorkShiftChangeDate" : null,
					"ListOfTimeTable" : {
						"TimeTable" : null,
						"MealIntervalCode" : null
					}
				},
				"RuralCarrierInformation" : {
					"CarrierCode" : null,
					"RuralGroupCode" : null
				},
				"EmployeePositionCode" : "114",
				"EmployeePositionCodeInternalId" : "01|01|1291",
				"EmployeePositionLevel" : null,
				"RoleCode" : "1",
				"RoleInternalId" : "01|01|1",
				"RoleLevel" : null,
				"HiringDate" : "2014-09-04",
				"WorkShiftCode" : "0202",
				"WorkShiftInternalId" : "01|01|2",
				"WorkShiftSequence" : "1",
				"DateInitialShiftSequence" : "2015-04-13",
				"SalaryCategory" : "3",
				"Salary" : "1000",
				"EmployeeSituation" : "1",
				"CostCenterCode" : "T20010",
				"CostCenterInternalId" : "01|0101|170021517",
				"BirthDate" : "1980-10-08",
				"Gender" : "F",
				"HomeState" : "SP",
				"NaturalCity" : "SP",
				"MonthlyWorkingHours" : "220"
			}
		}
	}
}
Bloco de código
languagejs
titleEmployee_Retorno
linenumberstrue
collapsetrue
{
	"TOTVSMessage" : {
		"MessageInformation" : {
			"@version" : "3.002",
			"BranchId" : "D MG 01",
			"CompanyId" : "T1",
			"DeliveryType" : "Sync",
			"GeneratedOn" : "2018-05-24T10:47:33",
			"Product" : {
				"@name" : "PIMS",
				"@version" : "12.1.20"
			},
			"SourceApplication" : "PIMSCONNECTOR",
			"StandardVersion" : "1.000",
			"Transaction" : "EMPLOYEE",
			"Type" : "Response",
			"UUID" : "27ae7878-6c56-4806-b1e2-ef0356bd7254"
		},
		"ResponseMessage" : {
			"ProcessingInformation" : {
				"ProcessedOn" : "2018-05-24T10:47:33",
				"Status" : "OK"
			},
			"ReceivedMessage" : {
				"MessageContent" : null,
				"SentBy" : "ERP",
				"UUID" : "pg24pilh-krjt-bg29-ypfn-w98j4p9ln535"
			},
			"ReturnContent" : {
				"ListOfInternalId" : {
					"InternalId" : {
						"Destination" : "T1|D MG 01|5121091917675948691",
						"Name" : "EMPLOYEE",
						"Origin" : "01|0101|000194"
					}
				}
			}
		}
	}
}

Descrição Detalhada das Tags

...