| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
Estrutura Table
 
 
  > |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |  |  | 
| 
| 
| 
| 
 |  | 
| 
 | 
| 
| 
Membre enregistré1 540 messages
 Popularité : +89 (91 votes)
 |  |  
| 
| 
| 
| 
| 
Posté le 12 juin 2015 - 01:30 |  
| 
Cadastro Realizado com Sucesso
 
 
  > |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |  |  | 
| 
| 
| 
| 
 |  | 
| 
 | 
| 
| 
Membre enregistré1 540 messages
 Popularité : +89 (91 votes)
 |  |  
| 
| 
| 
| 
| 
Posté le 12 juin 2015 - 01:31 |  
| 
>
 ImagemBuffer is Buffer=""
 
 EDT_Matricula=TABLE_NG0021_FotoTaxista[TABLE_NG0021_FotoTaxista].COL_Matricula
 
 EDT_Nome=TABLE_NG0021_FotoTaxista[TABLE_NG0021_FotoTaxista].COL_Nome
 
 EDT_Foto=TABLE_NG0021_FotoTaxista[TABLE_NG0021_FotoTaxista].COL_Foto
 
 ImagemBuffer=Uncrypt(EDT_Foto,"",compressLZW+cryptAnsi,encodeBASE64)
 
 IMG_Foto=ImagemBuffer
 
 ExecuteProcess(IMG_Foto,trtChange)
 |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |  |  | 
| 
| 
| 
| 
 |  | 
| 
 | 
| 
| 
Membre enregistré1 540 messages
 Popularité : +89 (91 votes)
 |  |  
| 
| 
| 
| 
| 
Posté le 12 juin 2015 - 01:32 |  
| 
>
 IFEDT_Matricula<>""ANDEDT_Nome<>""ANDEDT_Foto<>""
 
 ok isboolean=HExecuteQuery(QRY_Insert_FotoTaxista,hQueryDefault,EDT_Matricula,EDT_Nome,EDT_Foto)
 
 IFok=TrueTHEN
 
 Info("Gravou")
 
 ELSE
 
 Info(ErrorInfo())
 
 END
 
 TableDisplay(TABLE_NG0021_FotoTaxista,taReExecuteQuery)
 TableDisplay(TABLE_NG0021_FotoTaxista,taInit)
 
 ELSE
 Info("Campos obrigatorios em branco")
 END
 |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |  |  | 
| 
| 
| 
| 
 |  | 
| 
 | 
| 
| 
Membre enregistré1 540 messages
 Popularité : +89 (91 votes)
 |  |  
| 
| 
| 
| 
| 
Posté le 12 juin 2015 - 01:32 |  
| 
>
 IFEDT_Matricula<>""ANDEDT_Nome<>""ANDEDT_Foto<>""THEN
 
 ok isboolean=HExecuteQuery(QRY_Update_FotoTaxista,hQueryDefault,EDT_Nome,EDT_Foto,EDT_Matricula)
 
 IFok=TrueTHEN
 
 Info("Gravou")
 
 ELSE
 
 Info(ErrorInfo())
 
 END
 
 TableDisplay(TABLE_NG0021_FotoTaxista,taReExecuteQuery)
 
 TableDisplay(TABLE_NG0021_FotoTaxista,taInit)
 
 ELSE
 Info("Campos obrigatorios em branco")
 END
 |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |  |  | 
| 
| 
| 
| 
 |  | 
| 
 | 
| 
| 
Membre enregistré1 540 messages
 Popularité : +89 (91 votes)
 |  |  
| 
| 
| 
| 
| 
Posté le 12 juin 2015 - 01:33 |  
| 
>
 IFEDT_Matricula<>""THEN
 
 ok isboolean=HExecuteQuery(QRY_Delete_FotoTaxista,hQueryDefault,EDT_Matricula)
 
 IFok=TrueTHEN
 
 Info("Excluiu")
 
 ELSE
 
 Info(ErrorInfo())
 
 END
 
 TableDisplay(TABLE_NG0021_FotoTaxista,taReExecuteQuery)
 
 TableDisplay(TABLE_NG0021_FotoTaxista,taInit)
 
 ELSE
 Info("Matricula em branco")
 END
 |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |  |  | 
| 
| 
| 
| 
 |  | 
| 
 | 
| 
| 
Membre enregistré1 540 messages
 Popularité : +89 (91 votes)
 |  |  
| 
| 
| 
| 
| 
Posté le 12 juin 2015 - 01:38 |  
| 
Querys:
 
 
DELETE FROM
 NG0021_FotoTaxista
 WHERE
 NG0021_FotoTaxista.Matricula= {pMatricula}
 
 
 
 
INSERT INTONG0021_FotoTaxista
 (
 Matricula,
 Nome,
 Foto
 )
 VALUES
 (
 {pMatricula},
 {pNome},
 {pFoto}
 )
 
 
 
 
SELECT
 NG0021_FotoTaxista.MatriculaASMatricula,
 NG0021_FotoTaxista.NomeASNome,
 NG0021_FotoTaxista.FotoASFoto
 FROM
 NG0021_FotoTaxista
 
 
 
 
SELECT
 NG0021_FotoTaxista.MatriculaASMatricula,
 NG0021_FotoTaxista.NomeASNome,
 NG0021_FotoTaxista.FotoASFoto
 FROM
 NG0021_FotoTaxista
 WHERE
 NG0021_FotoTaxista.Matricula= {pMatricula}
 
 
 
 
UPDATE
 NG0021_FotoTaxista
 SET
 Nome= {pNome},
 Foto= {pFoto}
 WHERE
 NG0021_FotoTaxista.Matricula= {pMatricula}
 
 
 
 
 
 
 
 CREATETABLE[dbo.NG0021_FotoTaxista] (
 [Matricula]INTEGERNOTNULLUNIQUEDEFAULT0,
 [Nome]NVARCHAR(50)DEFAULT NULL,
 [Foto]TEXT DEFAULT NULL);
 
 >Obs.: Projeto é todo em ANSI
 |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |  |  | 
| 
| 
| 
| 
 |  | 
| 
 | 
| 
| 
Membre enregistré1 540 messages
 Popularité : +89 (91 votes)
 |  |  
| 
| 
| 
| 
| 
Posté le 12 juin 2015 - 01:39 |  
| 
Atenção: Para consumir em um webservice é o mesmo metodo que ocorre ao clicar no Browserlist. |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |  |  | 
| 
| 
| 
| 
 |  | 
| 
 | 
| 
| 
Membre enregistré1 540 messages
 Popularité : +89 (91 votes)
 |  |  
| 
| 
| 
| 
| 
Posté le 12 juin 2015 - 01:39 |  
| 
 > |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |  |  | 
| 
| 
| 
| 
 |  | 
| 
 | 
| 
| 
Membre enregistré1 540 messages
 Popularité : +89 (91 votes)
 |  |  
| 
| 
| 
| 
| 
Posté le 22 juin 2015 - 21:21 |  
| 
>
 ImagemString=Crypt(ImagemBuffer,"",cryptNone,encodeBASE64)
 
 
 
 ImagemString=Uncrypt(ImagemBuffer,"",cryptNone,encodeBASE64)
 
 
 
 
 
 
 sMessage is Buffer="Message à crypter"
 bufCle is Buffer=HashString(HA_MD5_128,"mdp")
 sRetorno is Buffer=CryptStandard(sMessage,bufCle,cryptAES128)
 
 
 
 Info(UncryptStandard(sRetorno,bufCle,cryptAES128))
 |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |  |  | 
| 
| 
| 
| 
 |  | 
| 
 | 
| 
| 
Membre enregistré1 540 messages
 Popularité : +89 (91 votes)
 |  |  
| 
| 
| 
| 
| 
Posté le 22 juin 2015 - 21:33 |  
| 
OBS.: É obrigatório o base64, mas não pode ser comprimido nas duas pontas, se colocar pra ser comprimido nao funciona.>o ansi é pro windows, criptansi não pode no android.
 |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |  |  | 
| 
| 
| 
| 
 |  | 
| 
 | 
| 
| 
Membre enregistré1 540 messages
 Popularité : +89 (91 votes)
 |  |  
| 
| 
| 
| 
| 
Posté le 23 juin 2015 - 19:11 |  
| 
>
 NoANDROID=
 ImagemBuffer=Uncrypt(XML_Retorno,"",cryptNone)
 
 NoiOS=
 ImagemBuffer=Uncrypt(XML_Retorno,"",cryptNone,encodeBASE64)
 
 
 
 
 
 
 
 EDT_Foto=""
 
 EDT_PathArquivo=""
 
 sPhoto isstring=""
 
 ImagemBuffer is Buffer=""
 
 bufKey is Buffer=""
 
 ImagemString isstring=""
 
 sPhoto=fImageSelect(fExeDir,“”,"")
 
 IFsPhoto~= “”THEN
 
 RETURN
 
 ELSE
 
 ImagemBuffer=fLoadBuffer(sPhoto)
 
 ImagemString=Crypt(ImagemBuffer,"",cryptNone,encodeBASE64)
 
 EDT_Foto=ImagemString
 
 IMG_Foto=sPhoto
 
 ExecuteProcess(IMG_Foto,trtChange)
 
 END
 |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |  |  | 
| 
| 
| 
| 
 |  | 
| 
 | 
| 
| 
Membre enregistré1 540 messages
 Popularité : +89 (91 votes)
 |  |  
| 
| 
| 
| 
| 
Posté le 23 juin 2015 - 19:15 |  
| 
  > |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |  |  | 
| 
| 
| 
| 
 |  | 
| 
 | 
| 
| 
Membre enregistré1 540 messages
 Popularité : +89 (91 votes)
 |  |  
| 
| 
| 
| 
| 
Posté le 23 juin 2015 - 19:16 |  
| 
Obs.: No Android a base 64 é default sendo necessário fazer um Target Code para o iOS pois ele necessita desse paramet |  |  |  |  |  |  |  |  |  |