This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT 'ML0010' + CONVERT(VARCHAR(10), l.COD_LISTA_PAI) AS 'TABELA_PRINCIPAL', | |
'ML0010' + CONVERT(VARCHAR(10), l.COD_LISTA_FILHO) AS 'TABELA_PAIxFILHO', | |
d.COD_LISTA, | |
l.COD_LISTA_PAI, | |
l.COD_LISTA_FILHO, | |
l.COD_TABELA , | |
d.NUM_DOCTO_PROPRIED , | |
d.NUM_VERS_PROPRIED | |
FROM DEF_PROCES p | |
LEFT JOIN VERS_DEF_PROCES vp ON vp.COD_DEF_PROCES = p.COD_DEF_PROCES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Clona um documento, salva em uma pasta especifica e deleta o documento clonado | |
* Retorna o código do documento clonado | |
*/ | |
function moverDocumento(documentoId, versaoDocumento, pastaDestinoId) { | |
var phisicalFile = docAPI.copyDocumentToUploadArea(documentoId, versaoDocumento)[0]; | |
var docDto = docAPI.newDocumentDto(); | |
docDto.setDocumentId(0); | |
docDto.setDocumentTypeId(""); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Agradecimento ao nobre colega Willian ( http://willian.eti.br ) pela grande ajuda. | |
* | |
* Cadastrar o serviço WS_ECMDocumentService no fluig | |
* https://tdn.totvs.com/pages/releaseview.action?pageId=73084007 | |
* | |
*/ | |
function servicetask43(attempt, message) { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Arquivo com funções utilizadas para facilitar o desenvolvimento. | |
*/ | |
class Utils { | |
constructor() { throw "Essa Classe Não Pode Ser Instanciada." } | |
} | |
Utils.Gerais = class { | |
constructor() { throw "Essa Classe Não Pode Ser Instanciada." } | |
static getValueCampo(campo) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function servicetask37(attempt, message) { | |
try { | |
var now = new Date; | |
var coligada = hAPI.getCardValue('coligada'); | |
var codColigada = hAPI.getCardValue('codColigada'); | |
var referencia = hAPI.getCardValue('referencia'); | |
var dataVencimento = hAPI.getCardValue('dataVencimento'); | |
var fornecedor = hAPI.getCardValue('fornecedorNome'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var init = { | |
datasetName: 'dsInsertConferenciaMateriais', | |
fluigService: 'TotvsRM', | |
primaryKey: [ | |
'success' | |
], | |
columns: [ | |
'success', | |
'error' | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createDataset(fields, constraints, sortFields) { | |
var NOME_SERVICO = "wsFormulaVisual"; | |
var CAMINHO_SERVICO = "com.totvs.WsFormulaVisual"; | |
try { | |
var servico = ServiceManager.getServiceInstance(NOME_SERVICO); | |
var serviceHelper = servico.getBean(); | |
var instancia = servico.instantiate(CAMINHO_SERVICO); | |
var ws = instancia.getRMIwsFormulaVisual(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>IKEA Soap</title> | |
<script src="https://unpkg.com/axios/dist/axios.min.js"></script> | |
<script type="text/javascript"> | |
function soap() { | |
let sr = | |
'<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="ikea.cusmgmt.remote.ws">' + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* incluir serviço REST | |
*/ | |
var init = { | |
datasetName: 'dsRemoveAnexo', | |
fluigService: 'FluigRest', | |
endpoint: '/ecm/api/rest/ecm/workflowView/deleteAttachments', | |
method: 'post', | |
primaryKey: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gerarArquivo(conteudo, pastaDestinoId, nomeDocumento) { | |
var docDto = docAPI.newDocumentDto(); | |
docDto.setDocumentId(0); | |
docDto.setDocumentTypeId(""); | |
docDto.setDocumentDescription(nomeDocumento); | |
docDto.setParentDocumentId(parseInt(pastaDestinoId)); | |
var attachArray = new java.util.ArrayList(); | |
var mainAttach = docAPI.newAttachment(); |
OlderNewer