539 |
|
|
540 |
// Sætter lige en default panel størrelse |
// Sætter lige en default panel størrelse |
541 |
MainForm.ClientWidth := 1000; |
MainForm.ClientWidth := 1000; |
542 |
MainForm.ClientHeight := 820; |
MainForm.ClientHeight := 920; |
543 |
|
|
544 |
Config := TConfiguration.Create(); |
Config := TConfiguration.Create(); |
545 |
Config.ReadFromInifile( TIniFile.Create(ChangeFileExt(Application.ExeName,'.ini')) ); //ToDo: clean up duplicate ini ref |
Config.ReadFromInifile( TIniFile.Create(ChangeFileExt(Application.ExeName,'.ini')) ); //ToDo: clean up duplicate ini ref |
1430 |
end; |
end; |
1431 |
end; |
end; |
1432 |
|
|
1433 |
|
// EmballageRepareret skal bare sætte reklamationkoden, |
1434 |
|
// og så ellers fortsætte med scanning som normalt |
1435 |
|
if (chkEmballageRepareret.Checked = True) then |
1436 |
|
begin |
1437 |
|
URLStr := Format(Config.UrlEmballageRepareret,[Sted,Stregkode]); |
1438 |
|
WebSvar := IdHTTP1.Get(URLStr); |
1439 |
|
ShowMessage( WebSvar ); |
1440 |
|
|
1441 |
|
chkEmballageRepareret.Checked := False; |
1442 |
|
end; |
1443 |
|
|
1444 |
|
|
1445 |
|
|
1446 |
if (PakkeshopText1.Visible = true) and (PakkeshopText1.Caption = 'Stregkode') and menuAutomatiskTjekkodeStyring.Checked then |
if (PakkeshopText1.Visible = true) and (PakkeshopText1.Caption = 'Stregkode') and menuAutomatiskTjekkodeStyring.Checked then |