Linha 142: |
Linha 142: |
| <script type="text/javascript" src="https://fahor.com.br/totvs/ajax/?acao=pushInsertJS&pg=portalProf" async></script> | | <script type="text/javascript" src="https://fahor.com.br/totvs/ajax/?acao=pushInsertJS&pg=portalProf" async></script> |
| </syntaxhighlight> | | </syntaxhighlight> |
− | | + | <big><b>2.13)</b></big> Em <code>D:\totvs\CorporeRM\FrameHTML\Web\App\Edu\PortalEducacional\js</code> <u>editar o arquivo</u> <code>edu-contantes.global.config.js</code>, alterando as linhas:<br> |
− | <big><b>2.13)</b></big> Em <code>D:\totvs\CorporeRM\FrameHTML\Web\App\Edu\PortalEducacional\js</code> <u>editar o arquivo</u> <code>\edu-contantes.global.config.js</code>, alterando as linhas:<br> | |
| <syntaxhighlight lang="javascript"> | | <syntaxhighlight lang="javascript"> |
| /* JS CUSTOMIZADO */ | | /* JS CUSTOMIZADO */ |
| EDUPS_CONST_GLOBAL_URL_MIDDLEWARE_PORTAL = "https://www.isaec.com.br/middleware/"; | | EDUPS_CONST_GLOBAL_URL_MIDDLEWARE_PORTAL = "https://www.isaec.com.br/middleware/"; |
| /* FIM JS CUSTOMIZADO */ | | /* FIM JS CUSTOMIZADO */ |
| + | </syntaxhighlight> |
| + | |
| + | <big><b>2.14)</b></big> Em <code>D:totvs\CorporeRM\FrameHTML\Web\App\Edu\PortalEducacional\js\aluno\requerimentos</code> <u>editar o arquivo</u> <code>requerimentos-edit.controller.js</code>, inserindo as seguintes s linhas, dentro da <code>function verificaDependências(evento, valor, dependencias)</code>, depois da linha <code>var objeto = getModelCampo(valor);</code>:<br> |
| + | <syntaxhighlight lang="javascript"> |
| + | /* JS CUSTOMIZADO */ |
| + | if ( objeto.CodColigada == "31" && objeto.CodTipoAtendimento == "5" ){ |
| + | let contParametros = 0; |
| + | self.model.ListCamposDinamicos.forEach(function (element) { |
| + | if ( element.Valor ){ |
| + | contParametros = contParametros + 1; |
| + | } |
| + | }) |
| + | if ( contParametros>0 ){ |
| + | eduRequerimentosFactory.calcularValorReq(contParametros, self.contexto.cursoSelecionado.CODCOLIGADA, self.contexto.cursoSelecionado.RA, self.contexto.cursoSelecionado.IDHABILITACAOFILIAL, self.contexto.cursoSelecionado.IDPERLET, function(retornoMiddleware){ |
| + | if ( angular.isDefined(retornoMiddleware) ) { |
| + | self.model.Requerimento.VALOR = retornoMiddleware.Resultado.VALOR; |
| + | self.model.RequerimentoSolicitacao.VALORTOTAL = retornoMiddleware.Resultado.VALOR; |
| + | } |
| + | }); |
| + | } |
| + | } |
| + | /* FIM JS CUSTOMIZADO */ |
| </syntaxhighlight> | | </syntaxhighlight> |
| | | |