Commit 37ef70c6 authored by Jucelino Fonseca's avatar Jucelino Fonseca

ajustes

parent 430a6f69
...@@ -26,6 +26,16 @@ const ...@@ -26,6 +26,16 @@ const
__EXISTS = 'EXISTS'; __EXISTS = 'EXISTS';
__IN = 'IN'; __IN = 'IN';
__ASTERICO = '*'; __ASTERICO = '*';
__PONTO = '.';
__E_COMERCIAL = '&';
__PERCENTUAL = '%';
__IGUAL = '=';
__SINAL_MAIS = '+';
__DIVISOR = '/';
__PONTENCIA = '^';
__SINAL_MAIOR = '>';
__SINAL_MENOR = '<';
__SINAL_MENOS = '-';
type type
TDLLDialog = class(TForm) TDLLDialog = class(TForm)
...@@ -754,7 +764,7 @@ begin ...@@ -754,7 +764,7 @@ begin
begin begin
exit; exit;
end; end;
li_Pos := Pos ('.',piLinha); li_Pos := Pos (__PONTO,piLinha);
if li_Pos <= 0 then if li_Pos <= 0 then
begin begin
lEnumerator := self.MetaModel.ClassTickets.GetEnumerator; lEnumerator := self.MetaModel.ClassTickets.GetEnumerator;
...@@ -1082,7 +1092,7 @@ var lClassTicketCurrent, ...@@ -1082,7 +1092,7 @@ var lClassTicketCurrent,
lRelationTicket : acRelationTicket; lRelationTicket : acRelationTicket;
lbAchei : boolean; lbAchei : boolean;
begin begin
li_Pos := Pos ('.',piNameObjeto); li_Pos := Pos (__PONTO,piNameObjeto);
if li_Pos > 0 then if li_Pos > 0 then
begin begin
ls_aux := trim(piNameObjeto); ls_aux := trim(piNameObjeto);
...@@ -1093,7 +1103,7 @@ begin ...@@ -1093,7 +1103,7 @@ begin
lClassTicketAux := nil; lClassTicketAux := nil;
ls_aux := trim(Copy(ls_aux,li_Pos +1,Length(ls_aux))); ls_aux := trim(Copy(ls_aux,li_Pos +1,Length(ls_aux)));
ls_ant_objeto := ls_aux; ls_ant_objeto := ls_aux;
li_Pos := Pos ('.',ls_aux); li_Pos := Pos (__PONTO,ls_aux);
if li_Pos > 0 then if li_Pos > 0 then
begin begin
ls_Objeto := trim(Copy(ls_aux,0,li_Pos -1)); ls_Objeto := trim(Copy(ls_aux,0,li_Pos -1));
...@@ -1230,16 +1240,34 @@ begin ...@@ -1230,16 +1240,34 @@ begin
(opEve = fopEvenFromCompleto) (opEve = fopEvenFromCompleto)
then then
begin begin
if ContemPalavra(',',lText) then if ContemPalavra(__VIRGULA,lText) then
begin begin
result := ''; result := '';
end; end;
end
else if (opEve = fopEvenWhereCompleto) then
begin
if ContemPalavra(__ASTERICO,lText) or
ContemPalavra(__E_COMERCIAL,lText) or
ContemPalavra(__PERCENTUAL,lText) or
ContemPalavra(__IGUAL,lText) or
ContemPalavra(__SINAL_MAIS,lText) or
ContemPalavra(__DIVISOR,lText) or
ContemPalavra(__PONTENCIA,lText) or
ContemPalavra(__PARENTESES_ABERTO,lText) or
ContemPalavra(__SINAL_MAIOR,lText) or
ContemPalavra(__SINAL_MENOR,lText) or
ContemPalavra(__SINAL_MENOS,lText)
then
begin
result := '';
end;
end; end;
end end
else else
begin begin
if (trim(lWord) = trim(lText)) or if (trim(lWord) = trim(lText)) or
ContemPalavra('.',lText) ContemPalavra(__PONTO,lText)
then then
begin begin
result := lText; result := lText;
...@@ -1463,7 +1491,6 @@ begin ...@@ -1463,7 +1491,6 @@ begin
ls_Texto := SynEditOQL.GetWordAtRowCol(SynEditOQL.CaretXY); ls_Texto := SynEditOQL.GetWordAtRowCol(SynEditOQL.CaretXY);
if not IsKeyword(ls_Texto) then if not IsKeyword(ls_Texto) then
begin begin
if (opEve = fopEvenSelectAposPonto) or if (opEve = fopEvenSelectAposPonto) or
(opEve = fopEvenWhereAposPonto) or (opEve = fopEvenWhereAposPonto) or
(opEve = fopEvenFromAposPonto) (opEve = fopEvenFromAposPonto)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment