Pular para o conteúdo principal

Abreu Solutions - Develope validate

Introdução - app_Validate

Descubra o App Abreu Solutions, diponibiza diverças ferramentas em formato framework v4.7.2.

Token

BRA>> (faz uma validação se existe “ ‘ “ para evitar inject no DB);
USA>> (validates if there is “ ‘ ” to avoid injecting into DB);

Requisição

string sText = "AwAwAwAw'alterWaWaWa";
sRetorno = Token(sText);

Retorno

string sRetorno = "AwAwAwAwalterWaWaWa";

InputText

BRA>> (faz várias validações e faz substituições de caracteres especiais para evitar inject no DB e permitindo uma gravação perfeita);
USA>> (makes several validations and makes special character substitutions to avoid injecting in the DB and allowing a perfect recording);

Requisição

string sText = "Cadastrar cliente alter table";
sRetorno = InputText(sText);

Retorno

string sRetorno = "Cadastrar cliente";

InputText

BRA>> (faz várias validações e faz substituições de caracteres especiais para evitar inject no DB e permitindo uma gravação perfeita);
USA>> (makes several validations and makes special character substitutions to avoid injecting in the DB and allowing a perfect recording);

Requisição

string sText = "Cadastrar cliente drop";
int iLength = 15;
string sDefault = "Texto não permitido";
sRetorno = InputText(sText, iLength, sDefault);

Retorno

string sRetorno = "Cadastrar clien";

Number

BRA>> (faz validação sobre o número “Int, Long e String”);
USA>> (validates the number “Int, Long and String”);

Requisição

string sNumber = "12345";
int iDefault = 0;
iRetorno = Number(sNumber, iDefault);

Retorno

int iRetorno = 12345;

Number

BRA>> (faz validação sobre o número “Int, Long e String”);
USA>> (validates the number “Int, Long and String”);

Requisição

string sNumber = "123451234512345";
long lDefault = 0;
lRetorno = Number(sNumber, lDefault);

Retorno

long lRetorno = 123451234512345;

Number

BRA>> (faz validação sobre o número “Int, Long e String”);
USA>> (validates the number “Int, Long and String”);

Requisição

string sNumber = "102003451020034510200345";
string sDefault = "0";
sRetorno = Number(sNumber, sDefault);

Retorno

string sRetorno = "102003451020034510200345";

CpfCnpj

BRA>> (faz validação true ou false);
USA>> (validates true or false);

Requisição

string sText = "001.002.003-45";
sRetorno = CpfCnpj(sText);

Retorno

bool sRetorno = true ou false;

Comentários

Postagens mais visitadas deste blog

Abreu Solutions - Develope introdução

Abreu Solutions - Develope control

Abreu Solutions - Develope format