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
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
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(); |
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
# python 2.7 | |
# ********************************************************************************************************* | |
# | |
# | |
# | |
# Please see https://gist.github.com/timrichardson/e6ee6640a8b7fe664f3a5a80406ca980 | |
# | |
# for a modern way of doing this, using the current API and python 3 | |
# |
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
<?php | |
use Adianti\Control\TWindow; | |
class GeraRelatorioForm extends TWindow | |
{ | |
protected $form; // formulário | |
private $valueField; | |
private $datagrid; // listing | |
private $pageNavigation; |
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: [ |
OlderNewer