26 |
LabelPrint, |
LabelPrint, |
27 |
Configuration, |
Configuration, |
28 |
Vcl.Imaging.pngimage, |
Vcl.Imaging.pngimage, |
29 |
Generics.Collections |
Generics.Collections, |
30 |
|
TimingHelper |
31 |
|
|
32 |
; |
; |
33 |
|
|
108 |
chkForstorTilDirekte: TCheckBox; |
chkForstorTilDirekte: TCheckBox; |
109 |
chkEmballageRepareret: TCheckBox; |
chkEmballageRepareret: TCheckBox; |
110 |
KommentarST: TLabel; |
KommentarST: TLabel; |
111 |
|
chkUdenforSpecifikation: TCheckBox; |
112 |
|
|
113 |
|
|
114 |
|
|
560 |
|
|
561 |
// Sætter lige en default panel størrelse |
// Sætter lige en default panel størrelse |
562 |
MainForm.ClientWidth := 1000; |
MainForm.ClientWidth := 1000; |
563 |
MainForm.ClientHeight := 750; |
MainForm.ClientHeight := 820; |
564 |
|
|
565 |
Config := TConfiguration.Create(); |
Config := TConfiguration.Create(); |
566 |
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 |
843 |
|
|
844 |
if SpecialVersionSted = 'DBK' then |
if SpecialVersionSted = 'DBK' then |
845 |
begin |
begin |
|
//FarveNormal := 'A9F5A9'; // her kan vi evt. overrule ini fil |
|
846 |
Sted := SpecialVersionSted; |
Sted := SpecialVersionSted; |
|
// her skal vi også disable de knapper DBK ikke kan bruge |
|
|
PanelValg2.Enabled := false; |
|
|
PanelValg2.Font.Color := clInactiveCaption; |
|
|
PanelValg3.Enabled := false; |
|
|
PanelValg3.Font.Color := clInactiveCaption; |
|
|
PanelValg5.Enabled := false; |
|
|
PanelValg5.Font.Color := clInactiveCaption; |
|
|
PanelValg6.Enabled := false; |
|
|
PanelValg6.Font.Color := clInactiveCaption; |
|
|
|
|
|
|
|
|
// her skal vi også disable de menupunkter DBK ikke kan bruge |
|
|
menuNatxpressReturDAO1.Enabled := false; |
|
|
menuNatxpressReturfraKunde1.Enabled := false; |
|
|
|
|
|
menuPakkeshop1.Enabled := false; |
|
|
menuPakkeshopRetur1.Enabled := false; |
|
|
|
|
|
if SpecialVersionScanningtype = 'A' then |
|
|
begin |
|
|
Scanningtype := '1'; |
|
|
end |
|
|
else |
|
|
begin |
|
|
Scanningtype := SpecialVersionScanningtype; |
|
|
end; |
|
847 |
end; |
end; |
848 |
|
|
849 |
if (SpecialVersionSted = '01') |
if (SpecialVersionSted = '01') |
2164 |
RuteNummer := PakkeshopLabel.Koreliste + ' -> ' + PakkeshopLabel.PakkeshopTurid; |
RuteNummer := PakkeshopLabel.Koreliste + ' -> ' + PakkeshopLabel.PakkeshopTurid; |
2165 |
Stregkode := PakkeshopLabel.Stregkode; |
Stregkode := PakkeshopLabel.Stregkode; |
2166 |
|
|
2167 |
LabelPrint.PrintPakkeshopLabel( PakkeshopLabel ); |
LabelPrint.PrintFuldPakkeLabel( PakkeshopLabel ); |
2168 |
chkForstorTilDirekte.Checked := false; |
chkForstorTilDirekte.Checked := false; |
2169 |
|
|
2170 |
end; |
end; |
2209 |
begin |
begin |
2210 |
if (Leveringssted <> BladhusStedKode[BladhusSted]) and (BladhusStedKode[BladhusSted] <> 'DBK') then |
if (Leveringssted <> BladhusStedKode[BladhusSted]) and (BladhusStedKode[BladhusSted] <> 'DBK') then |
2211 |
begin |
begin |
2212 |
Kommentar := Kommentar + ' Pakke burde være hos DAO Distribution'; |
Kommentar := Kommentar + 'Pakke burde være hos ' + Leveringssted; |
2213 |
PrintNyLabel := False; |
PrintNyLabel := False; |
2214 |
end; |
end; |
2215 |
end |
end |
2216 |
else if (menuDaoDirekte1.Checked) and (Leveringssted <> Sted) then |
else if (menuDaoDirekte1.Checked) and (Leveringssted <> Sted) And (Leveringssted <> '') then |
2217 |
begin |
begin |
2218 |
if (Leveringssted = 'E') and (Sted = 'DBK') then |
if (Leveringssted = 'E') and (Sted = 'DBK') then |
2219 |
begin |
begin |
2221 |
end |
end |
2222 |
else |
else |
2223 |
begin |
begin |
2224 |
Kommentar := Kommentar + ' Pakke burde være hos DAO Distribution'; |
Kommentar := Kommentar + 'Pakke burde være hos ' + Leveringssted; |
2225 |
PrintNyLabel := False; |
PrintNyLabel := False; |
2226 |
end; |
end; |
2227 |
end; |
end; |
4184 |
pakketyper : TDictionary<String, Integer>; |
pakketyper : TDictionary<String, Integer>; |
4185 |
tmpAntal : Integer; |
tmpAntal : Integer; |
4186 |
|
|
4187 |
|
time, timeSamlet : TTimingHelper; |
4188 |
|
|
4189 |
|
|
4190 |
antlin : Integer; |
antlin : Integer; |
4244 |
end; |
end; |
4245 |
// 20150310: slut |
// 20150310: slut |
4246 |
|
|
4247 |
|
time := TTimingHelper.create(); //DEBUG |
4248 |
|
timeSamlet := TTimingHelper.create(); //DEBUG |
4249 |
|
|
4250 |
try |
try |
4251 |
//raise EIdConnClosedGracefully.Create('test'); // KUN TIL TEST |
//raise EIdConnClosedGracefully.Create('test'); // KUN TIL TEST |
4252 |
// URLStr := string(Utf8Encode(URLStr)); |
// URLStr := string(Utf8Encode(URLStr)); |
4269 |
end; |
end; |
4270 |
end; |
end; |
4271 |
try |
try |
4272 |
|
time.stop('HTTP Load'); //DEBUG |
4273 |
|
|
4274 |
XMLDocument1.LoadFromXML(WebSvar); |
XMLDocument1.LoadFromXML(WebSvar); |
4275 |
|
|
4276 |
|
time.stop('XML Load'); //DEBUG |
4277 |
|
|
4278 |
|
|
4279 |
|
|
4280 |
|
|
4281 |
|
|
4282 |
|
|
4283 |
antlin := 0; |
antlin := 0; |
4284 |
antlinIdag := 0; |
antlinIdag := 0; |
4321 |
SetLength(stregkoderMedTjekkodeArray, 0); // reset fra tidligere brug |
SetLength(stregkoderMedTjekkodeArray, 0); // reset fra tidligere brug |
4322 |
SetLength(stregkoderMedTjekkodeArray, antlin); // sæt antal elementer i array |
SetLength(stregkoderMedTjekkodeArray, antlin); // sæt antal elementer i array |
4323 |
|
|
4324 |
|
time.stop('Antal Linier');//DEBUG |
4325 |
|
|
4326 |
Application.Processmessages; //Ugly Hack to improve User Experience when switching modes |
Application.Processmessages; //Ugly Hack to improve User Experience when switching modes |
4327 |
|
|
4407 |
end; |
end; |
4408 |
|
|
4409 |
|
|
4410 |
|
time.stop('Fyld Listbox2');//DEBUG |
4411 |
|
|
4412 |
|
|
4413 |
Application.Processmessages; //Ugly Hack to improve User Experience when switching modes |
Application.Processmessages; //Ugly Hack to improve User Experience when switching modes |
4414 |
|
|
4415 |
|
|
4529 |
end; |
end; |
4530 |
end; |
end; |
4531 |
|
|
4532 |
|
time.stop('Done');//DEBUG |
4533 |
|
timeSamlet.stop('SamletTid');//DEBUG |
4534 |
|
|
4535 |
|
|
4536 |
end; |
end; |
4537 |
|
|
4538 |
procedure TMainForm.IndlesScanningLogFil(); |
procedure TMainForm.IndlesScanningLogFil(); |