Páginas filhas
  • DI Situação do Funcionário - EmployeeSituations

Versões comparadas

Chave

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

...

Bloco de código
languagexml
titleEmployeeSituations_Envio
linenumberstrue
collapsetrue
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TOTVSMessage>
	<MessageInformation version="1.000">
		<BranchId>D MG 01</BranchId>
		<CompanyId>T1</CompanyId>
		<DeliveryType>Sync</DeliveryType>
		<GeneratedOn>2018-05-21T18:11:37</GeneratedOn>
		<Product name="ERP" version="11"/>
		<SourceApplication>P118_PRD</SourceApplication>
		<StandardVersion>1.000</StandardVersion>
		<Transaction>EMPLOYEESITUATIONS</Transaction>
		<Type>BusinessMessage</Type>
		<UUID>pg24pilh-sypf-ggh8-shgp-h7bglwpln518</UUID>
	</MessageInformation>
	<BusinessMessage>
		<BusinessEvent>
			<Entity>EmployeeSituations</Entity>
			<Event>upsert</Event>
			<Identification>
				<key name="InternalID"/>
			</Identification>
		</BusinessEvent>
		<BusinessContent>
			<Situation>
				<ListOfEmployee>
					<Employee>
						<CompanyId>T1</CompanyId>
						<BranchId>D MG 01</BranchId>
						<CompanyInternalId>01|0101</CompanyInternalId>
						<InternalId>01|0101|00010 |2|02032015|001</InternalId>
						<EmployeeCode>1420</EmployeeCode>
						<WorkCenterCode/>
						<SiteCode/>
						<ListOfSituation>
							<Situation>
								<CommencementDate>2018-07-10</CommencementDate>
								<SituationLastDay>2018-10-20</SituationLastDay>
								<INSSPaymentCommencement/>
								<OriginSituation>20</OriginSituation>
								<SituationDay>30</SituationDay>
								<SituationTime/>
								<SituationScheduleEnd/>
								<CIDCode/>
								<CommencementSchedule/>
								<SituationInformation>
									<SituationCode/>
									<SituationMeaning>6</SituationMeaning>
									<AbsenteeismType/>
								</SituationInformation>
							</Situation>
						</ListOfSituation>
					</Employee>
				</ListOfEmployee>
			</Situation>
		</BusinessContent>
	</BusinessMessage>
</TOTVSMessage>
Bloco de código
languagexml
titleEmployeeSituations_Retorno
linenumberstrue
collapsetrue
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TOTVSMessage>
	<MessageInformation version="1.000">
		<BranchId>D MG 01</BranchId>
		<CompanyId>T1</CompanyId>
		<DeliveryType>Sync</DeliveryType>
		<GeneratedOn>2018-05-24T15:04:45</GeneratedOn>
		<Product name="PIMS" version="12.1.20"/>
		<SourceApplication>PIMSCONNECTOR</SourceApplication>
		<StandardVersion>1.000</StandardVersion>
		<Transaction>EMPLOYEESITUATIONS</Transaction>
		<Type>Response</Type>
		<UUID>905b3e9d-c546-4317-8915-d27db0c885e8</UUID>
	</MessageInformation>
	<ResponseMessage>
		<ProcessingInformation>
			<ProcessedOn>2018-05-24T15:04:45</ProcessedOn>
			<Status>OK</Status>
		</ProcessingInformation>
		<ReceivedMessage>
			<MessageContent/>
			<SentBy>ERP</SentBy>
			<UUID>pg24pilh-sypf-ggh8-shgp-h7bglwpln518</UUID>
		</ReceivedMessage>
		<ReturnContent>
			<ListOfInternalId>
				<InternalId>
					<Destination>T1|D MG 01|5121091917675948691</Destination>
					<Name>EMPLOYEESITUATIONS</Name>
					<Origin>01|0101|00010 |2|02032015|001</Origin>
				</InternalId>
			</ListOfInternalId>
		</ReturnContent>
	</ResponseMessage>
</TOTVSMessage>

Mensagem JSON

Bloco de código
languagejs
titleEmployeeSituations_Envio
linenumberstrue
collapsetrue
{
	"TOTVSMessage" : {
		"MessageInformation" : {
			"@version" : "1.000",
			"BranchId" : "D MG 01",
			"CompanyId" : "T1",
			"DeliveryType" : "Sync",
			"GeneratedOn" : "2018-05-21T18:11:37",
			"Product" : {
				"@name" : "ERP",
				"@version" : "11"
			},
			"SourceApplication" : "P118_PRD",
			"StandardVersion" : "1.000",
			"Transaction" : "EMPLOYEESITUATIONS",
			"Type" : "BusinessMessage",
			"UUID" : "pg24pilh-sypf-ggh8-shgp-h7bglwpln518"
		},
		"BusinessMessage" : {
			"BusinessEvent" : {
				"Entity" : "EmployeeSituations",
				"Event" : "upsert",
				"Identification" : {
					"key" : {
						"@name" : "InternalID"
					}
				}
			},
			"BusinessContent" : {
				"Situation" : {
					"ListOfEmployee" : {
						"Employee" : {
							"CompanyId" : "T1",
							"BranchId" : "D MG 01",
							"CompanyInternalId" : "01|0101",
							"InternalId" : "01|0101|00010 |2|02032015|001",
							"EmployeeCode" : "1420",
							"WorkCenterCode" : null,
							"SiteCode" : null,
							"ListOfSituation" : {
								"Situation" : {
									"CommencementDate" : "2018-07-10",
									"SituationLastDay" : "2018-10-20",
									"INSSPaymentCommencement" : null,
									"OriginSituation" : "20",
									"SituationDay" : "30",
									"SituationTime" : null,
									"SituationScheduleEnd" : null,
									"CIDCode" : null,
									"CommencementSchedule" : null,
									"SituationInformation" : {
										"SituationCode" : null,
										"SituationMeaning" : "6",
										"AbsenteeismType" : null
									}
								}
							}
						}
					}
				}
			}
		}
	}
}
Bloco de código
languagejs
titleEmployeeSituations_Retorno
linenumberstrue
collapsetrue
{
	"TOTVSMessage" : {
		"MessageInformation" : {
			"@version" : "1.000",
			"BranchId" : "D MG 01",
			"CompanyId" : "T1",
			"DeliveryType" : "Sync",
			"GeneratedOn" : "2018-05-24T15:04:45",
			"Product" : {
				"@name" : "PIMS",
				"@version" : "12.1.20"
			},
			"SourceApplication" : "PIMSCONNECTOR",
			"StandardVersion" : "1.000",
			"Transaction" : "EMPLOYEESITUATIONS",
			"Type" : "Response",
			"UUID" : "905b3e9d-c546-4317-8915-d27db0c885e8"
		},
		"ResponseMessage" : {
			"ProcessingInformation" : {
				"ProcessedOn" : "2018-05-24T15:04:45",
				"Status" : "OK"
			},
			"ReceivedMessage" : {
				"MessageContent" : null,
				"SentBy" : "ERP",
				"UUID" : "pg24pilh-sypf-ggh8-shgp-h7bglwpln518"
			},
			"ReturnContent" : {
				"ListOfInternalId" : {
					"InternalId" : {
						"Destination" : "T1|D MG 01|5121091917675948691",
						"Name" : "EMPLOYEESITUATIONS",
						"Origin" : "01|0101|00010 |2|02032015|001"
					}
				}
			}
		}
	}
}

Descrição Detalhada das Tags

...