PrepareDHLRoutingDirectories(DHLRoutingDonePath, DHLRoutingWorkPath);
SendMessage(MessageType.Info, "Pobieranie pliku z serwera DHL...",false);
using (var client = new WebClient())
{
client.DownloadFile(DHLRoutingServerUrl + DHLZIPFileName, DHLRoutingWorkPath + DHLZIPFileName);
}
SendMessage(MessageType.Info, "Plik zip pobrany", false);
ZipFile.ExtractToDirectory(DHLRoutingWorkPath + DHLZIPFileName, DHLRoutingWorkPath);
SendMessage(MessageType.Info, "Plik zip rozpakowany", false);
apshub_changed = DHLCheckFilechanged(DHLRoutingDonePath, DHLRoutingWorkPath, "apshubs.csv");
pc_changed = DHLCheckFilechanged(DHLRoutingDonePath, DHLRoutingWorkPath, "pc.csv");
if (apshub_changed)
apshub_updated = DHLUpdateRoutingSRV("apshubs.csv", "APS_NAD;APS_ODB;HUBS_NORM;HUBS_EXTRA");
if (pc_changed)
pc_updated = DHLUpdateRoutingSRV("pc.csv", "recno;CITY;wojwodztwo;woj;punkt;kod;street;nr_parz;nr_nieparz;g_dlug;g_szer;trasa;ter_11;ter_12;ter_22;ter_d_so;ter_n_so;ter_09;strefa;mt");
if (apshub_updated)
DHLUpdateRoutingSPLMoveFile("apshubs.csv");
if (pc_updated)
DHLUpdateRoutingSPLMoveFile("pc.csv");
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}