RtTool/Delphi7/开发档案/马国钢开发代码/ThreeFun/helpForm/新建 文本文档 (2).txt

40 lines
959 B
Plaintext
Raw Normal View History

2025-01-08 11:55:07 +08:00
function GetNoDateMaxNo(ADOQueryTmp:TADOQuery;
var mMaxNo:string;
mTable:string;
mFlag:string;
lsLen:integer=3):Boolean;
begin
try
with ADOQueryTmp do
begin
Close;
sql.Clear ;
sql.Add('exec XC_TableNoDateDH');
sql.Add(quotedStr(mTable));
sql.Add(','+quotedStr(mFlag));
sql.Add(','+intTostr(LsLen));
Open;
if RecordCount>0 then
begin
mMaxNo:=trim(fieldByName('DepotShow').AsString) ;
if mMaxNo<>'' then
result:=true
else
Result:=false;
end
else
begin
result:=false;
end;
end;
if not Result then
application.MessageBox(Pchar('<27>޷<EFBFBD><DEB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD>('+mflag+')'),'<27><>ʾ<EFBFBD><CABE>Ϣ',MB_ICONINFORMATION);
Except
result:=false;
application.MessageBox(Pchar('<27>޷<EFBFBD><DEB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD>('+mflag+')'),'<27><>ʾ<EFBFBD><CABE>Ϣ',MB_ICONINFORMATION);
end;
end;