二维码调整
This commit is contained in:
parent
bd8e2ac7d4
commit
9b3082a6fd
|
|
@ -800,11 +800,11 @@ begin
|
||||||
end;
|
end;
|
||||||
try
|
try
|
||||||
Moudle := LoadLibrary('MakeQRBarcode.dll');
|
Moudle := LoadLibrary('MakeQRBarcode.dll');
|
||||||
@Makebar := GetProcAddress(Moudle, 'Make');
|
@Makebar := GetProcAddress(Moudle, 'Make');
|
||||||
@Mixtext := GetProcAddress(Moudle, 'MixText');
|
@Mixtext := GetProcAddress(Moudle, 'MixText');
|
||||||
Txt2 := '00GUERL41N' + Trim(ADOQueryPrint.fieldbyname('SOrddefstr1').AsString) + rightstr('100000' + (floatTostr(ADOQueryPrint.fieldbyname('Mjlen').AsFloat * 100)), 5);
|
Txt2 := '00GUERL41N' + Trim(ADOQueryPrint.fieldbyname('SOrddefstr1').AsString) + rightstr('100000' + (floatTostr(ADOQueryPrint.fieldbyname('Mjlen').AsFloat * 100)), 5);
|
||||||
Txt2 := UTF8Encode(Txt2);
|
Txt2 := UTF8Encode(Txt2);
|
||||||
fImagePath2 := ExtractFilePath(Application.ExeName) + 'image\temp1.bmp';
|
fImagePath2 := ExtractFilePath(Application.ExeName) + 'image\temp2.bmp';
|
||||||
if not DirectoryExists(pchar(ExtractFilePath(Application.ExeName) + 'image')) then
|
if not DirectoryExists(pchar(ExtractFilePath(Application.ExeName) + 'image')) then
|
||||||
CreateDirectory(pchar(ExtractFilePath(Application.ExeName) + 'image'), nil);
|
CreateDirectory(pchar(ExtractFilePath(Application.ExeName) + 'image'), nil);
|
||||||
if FileExists(fImagePath2) then
|
if FileExists(fImagePath2) then
|
||||||
|
|
|
||||||
|
|
@ -1771,7 +1771,7 @@ var
|
||||||
begin
|
begin
|
||||||
|
|
||||||
with ADOQueryPrint do
|
with ADOQueryPrint do
|
||||||
begin
|
begin
|
||||||
Close;
|
Close;
|
||||||
SQL.Clear;
|
SQL.Clear;
|
||||||
sql.Add('select A.MJID,A.mjstr3,QtyUnit=A.MJTypeOther,B.orderNo,B.customerNoName,B.LBName ');
|
sql.Add('select A.MJID,A.mjstr3,QtyUnit=A.MJTypeOther,B.orderNo,B.customerNoName,B.LBName ');
|
||||||
|
|
@ -1826,12 +1826,12 @@ begin
|
||||||
end;
|
end;
|
||||||
try
|
try
|
||||||
Moudle := LoadLibrary('MakeQRBarcode.dll');
|
Moudle := LoadLibrary('MakeQRBarcode.dll');
|
||||||
@Makebar := GetProcAddress(Moudle, 'Make');
|
@Makebar := GetProcAddress(Moudle, 'Make');
|
||||||
@Mixtext := GetProcAddress(Moudle, 'MixText');
|
@Mixtext := GetProcAddress(Moudle, 'MixText');
|
||||||
Txt2 := '00GUERL41N' + Trim(ADOQueryPrint.fieldbyname('SOrddefstr1').AsString) + rightstr('100000' +(floatTostr(ADOQueryPrint.fieldbyname('Mjlen').AsFloat * 100)), 5);
|
Txt2 := '00GUERL41N' + Trim(ADOQueryPrint.fieldbyname('SOrddefstr1').AsString) + rightstr('100000' +(floatTostr(ADOQueryPrint.fieldbyname('Mjlen').AsFloat * 100)), 5);
|
||||||
// Copy((floatTostr(ADOQueryPrint.fieldbyname('Mjlen').AsFloat * 100000)), 1, 5);
|
// Copy((floatTostr(ADOQueryPrint.fieldbyname('Mjlen').AsFloat * 100000)), 1, 5);
|
||||||
Txt2 := UTF8Encode(Txt2);
|
Txt2 := UTF8Encode(Txt2);
|
||||||
fImagePath2 := ExtractFilePath(Application.ExeName) + 'image\temp1.bmp';
|
fImagePath2 := ExtractFilePath(Application.ExeName) + 'image\temp2.bmp';
|
||||||
if not DirectoryExists(pchar(ExtractFilePath(Application.ExeName) + 'image')) then
|
if not DirectoryExists(pchar(ExtractFilePath(Application.ExeName) + 'image')) then
|
||||||
CreateDirectory(pchar(ExtractFilePath(Application.ExeName) + 'image'), nil);
|
CreateDirectory(pchar(ExtractFilePath(Application.ExeName) + 'image'), nil);
|
||||||
if FileExists(fImagePath2) then
|
if FileExists(fImagePath2) then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user