Visão Geral do Programa

O objetivo deste ProcessServer é possibilitar a aprovação ou reprovação dos dados referente ao professor em função da folha de pagamento.

Informações:

- Professores associados a Turma/Disciplina

- Atividade extra vinculada no anexo de Professor

- Professores vinculados ao cadastro de atividade ofertada

Para utilizar este recurso é necessário habilitar o parâmetro do sistema conforme a imagem abaixo.

Através do processServer " EduControleDadosFolhaPagData" é possível, por meio do método ExecuteWithXmlParams, realizar a aprovação ou reprovação mudando o status da informação.

Se necessário clique aqui para obter ajuda na configuração do Host.

Método ExecuteWithXmlParams

O contexto para execução do processo e validações dos parâmetros do sistema junto ao perfil do usuário, são  $CODCOLIGADA, $CODFILIAL, $CODTIPOCURSO, $CODSISTEMA e $CODUSUARIO.

A seguir temos o exemplo de XML do processo.

<?xml version="1.0" encoding="utf-16"?>
<EduControleDadosFolhaPagParamsProc z:Id="i1" xmlns="http://www.totvs.com.br/RM/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
  <ActionModule xmlns="http://www.totvs.com/">S</ActionModule>
  <ActionName xmlns="http://www.totvs.com/">EduControleDadosFolhaPagAction</ActionName>
  <CodUsuario xmlns="http://www.totvs.com/">mestre</CodUsuario>
  <Context z:Id="i2" xmlns="http://www.totvs.com/" xmlns:a="http://www.totvs.com.br/RM/">
    <a:_params xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$EXERCICIOFISCAL</b:Key>
        <b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">2</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODLOCPRT</b:Key>
        <b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">12</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODTIPOCURSO</b:Key>
        <b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">2</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$EDUTIPOUSR</b:Key>
        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">-1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODUNIDADEBIB</b:Key>
        <b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODCOLIGADA</b:Key>
        <b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$RHTIPOUSR</b:Key>
        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">-1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODIGOEXTERNO</b:Key>
        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">-1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODSISTEMA</b:Key>
        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">S</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODUSUARIOSERVICO</b:Key>
        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema" />
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODUSUARIO</b:Key>
        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">mestre</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$IDPRJ</b:Key>
        <b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">-1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CHAPAFUNCIONARIO</b:Key>
        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">-1</b:Value>
      </b:KeyValueOfanyTypeanyType>
      <b:KeyValueOfanyTypeanyType>
        <b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODFILIAL</b:Key>
        <b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">1</b:Value>
      </b:KeyValueOfanyTypeanyType>
    </a:_params>
    <a:Environment>DotNet</a:Environment>
  </Context>
  <PrimaryKeyList xmlns="http://www.totvs.com/" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <a:ArrayOfanyType>
      <a:anyType i:type="b:short" xmlns:b="http://www.w3.org/2001/XMLSchema">1</a:anyType>
      <a:anyType i:type="b:int" xmlns:b="http://www.w3.org/2001/XMLSchema">5561</a:anyType>
    </a:ArrayOfanyType>
  </PrimaryKeyList>
  <PrimaryKeyNames xmlns="http://www.totvs.com/" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <a:string>CODCOLIGADA</a:string>
    <a:string>IDATIVIDADEPROF</a:string>
  </PrimaryKeyNames>
  <Acao>1</Acao>
  <AprovacaoDestinadaAoCadastro>AtividadeExtraProfessor</AprovacaoDestinadaAoCadastro>
  <CodColigada>1</CodColigada>
  <CodFilial>1</CodFilial>
  <CodTipoCurso>1</CodTipoCurso>
  <Context z:Ref="i2" />
</EduControleDadosFolhaPagParamsProc>



<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <ExecuteWithXmlParamsResponse xmlns="http://www.totvs.com/">
         <ExecuteWithXmlParamsResult>1</ExecuteWithXmlParamsResult>
      </ExecuteWithXmlParamsResponse>
   </s:Body>
</s:Envelope>
Tags do item EduMatriculaParamsProc
TagObrigatório

Parâmetro

Interno

Aceita

Nulo

Tipo de

Dados

ExemploDescrição
ActionModuleNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno
ActionNameNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno
CanParallelizeNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno
CanSendMailNãoSimSimN/A
Não é necessário informar no XML.Parâmetro interno
CanWaitScheduleNãoSimSimN/A
Não é necessário informar no XML.Parâmetro interno
CodUsuarioNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno
ConnectionIdNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno
ConnectionStringNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno

É obrigatório informar esta tag, porém com as seguintes keys: CODTIPOCURSO, CODCOLIGADA, CODSISTEMA, CODUSUARIO e CODFILIAL. Segue exemplo:

  <Context z:Id="i2" xmlns="http://www.totvs.com/" xmlns:a="http://www.totvs.com.br/RM/">
	<a:_params xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
	  <b:KeyValueOfanyTypeanyType>
		<b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODTIPOCURSO</b:Key>
		<b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">1</b:Value>
	  </b:KeyValueOfanyTypeanyType>
	  <b:KeyValueOfanyTypeanyType>
		<b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODCOLIGADA</b:Key>
		<b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">1</b:Value>
	  </b:KeyValueOfanyTypeanyType>
	  <b:KeyValueOfanyTypeanyType>
		<b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODSISTEMA</b:Key>
		<b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">S</b:Value>
	  </b:KeyValueOfanyTypeanyType>
	  <b:KeyValueOfanyTypeanyType>
		<b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODUSUARIO</b:Key>
		<b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">mestre</b:Value>
	  </b:KeyValueOfanyTypeanyType>
	  <b:KeyValueOfanyTypeanyType>
		<b:Key i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">$CODFILIAL</b:Key>
		<b:Value i:type="c:int" xmlns:c="http://www.w3.org/2001/XMLSchema">1</b:Value>
	  </b:KeyValueOfanyTypeanyType>
	</a:_params>
	<a:Environment>DotNet</a:Environment>
  </Context>
CustomDataNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
DisableIsolateProcessNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
DriverTypeNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
ExecutionIdNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
FailureMessageNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
FriendlyLogsNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
HideProgressDialogNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
HostNameNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
InitializedNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
IpNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
IsolateProcessNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
JobIDNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
JobServerHostNameNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
MasterActionNameNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
MaximumQuantityOfPrimaryKeysPerProcessNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
MinimumQuantityOfPrimaryKeysPerProcessNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
NetworkUserNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
NotifyEmailNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
NotifyEmailListNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
NotifyFluigNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
OnlineModeNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.

É obrigatório informar esta tag. Segue exemplo:

  <PrimaryKeyList xmlns="http://www.totvs.com/" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <a:ArrayOfanyType>
      <!-- Código da coligada  --> 
      <a:anyType i:type="b:short" xmlns:b="http://www.w3.org/2001/XMLSchema">1</a:anyType>
      <!-- Esta informação vai depender qual é o cadastro de destino, por exemplo:
           - Professores da Turma/Disciplina                    => conteúdo do campo IDPROFESSORTURMA da tabela SPROFESSORTURMA
           - Atividade extra ou atividade ofertada do professor => conteúdo do campo IDATIVIDADEPROF da tabela SATIVIDADEPROFESSOR
        -->
      <a:anyType i:type="b:int" xmlns:b="http://www.w3.org/2001/XMLSchema">5561</a:anyType>
    </a:ArrayOfanyType>
  </PrimaryKeyList>

É obrigatório informar esta tag. Segue exemplo:

   <PrimaryKeyNames xmlns="http://www.totvs.com/" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <a:string>CODCOLIGADA</a:string>
    <!-- Esta informação vai depender qual é o cadastro de destino, por exemplo:
           - Professores da Turma/Disciplina                    => IDPROFESSORTURMA
           - Atividade extra ou atividade ofertada do professor => IDATIVIDADEPROF
        -->
    <a:string>IDATIVIDADEPROF</a:string>
  </PrimaryKeyNames>
PrimaryKeyTableNameNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
ProcessNameNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
QuantityOfSplitsNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
SaveLogInDatabaseNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
SaveParamsExecutionNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
ScheduleDateTimeNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
SchedulerNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
SendMailNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
ServerNameNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
ServiceInterfaceNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
ShouldParallelizeNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
ShowReExecuteButtonNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
StatusMessageNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
SuccessMessageNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
SyncExecutionNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
UseJobMonitorNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
UserNameNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.
WaitScheduleNãoSimSimN/ANão é necessário informar no XML.Parâmetro interno.

As informações das tags abaixo são obrigatórias. Segue exemplo:

  <!-- 1 = Aprovado | 3 = Reprovado -->
  <Acao>1</Acao>
  <!-- - Professores da Turma/Disciplina = ProfessorTurmaDisciplina
       - Atividade extra                 = AtividadeExtraProfessor
       - Atividade ofertada do professor = ProfessorAtividadeOfertada
    -->
  <AprovacaoDestinadaAoCadastro>ProfessorTurmaDisciplina</AprovacaoDestinadaAoCadastro>
  <CodColigada>1</CodColigada>
  <CodFilial>1</CodFilial>
  <CodTipoCurso>1</CodTipoCurso>
  • As tags que não são obrigatórias e/ou que aceitam nulo o recomendado é não informa-las no XML.


EduControleDadosFolhaPagData