protected void ImportSalesLink_Click(Object sender, EventArgs e) { try { SyncProcessRemote.StartSyncProcess(SyncProcessRemote.SyncTypes.Sales); } catch (Exception ex) { this.Master.ShowError(ex); } }
protected void CommitDayButton_Click(Object sender, EventArgs e) { try { var rows = DpdTrackingNumberCsv.Read(this.DpdImportFile.PostedFile.InputStream); DpdImportController.Import(rows); Mailing.GenerateAutoTrackingNumber(); SyncProcessRemote.StartSyncProcess(SyncProcessRemote.SyncTypes.TrackingNumber); } catch (Exception ex) { this.Master.ShowError(ex); } }
private void DoSync() { SyncProcessRemote.StartSyncProcess(SyncProcessRemote.SyncTypes.Stock); }