public static void RefreshStationAssignments() { //Refresh the list of freight assignments for the local terminal try { _Assignments.Clear(); DataSet ds = App.Mediator.FillDataset(USP_ASSIGNMENTVIEW, TBL_ASSIGNMENTVIEW, null); if (ds != null) { _Assignments.Merge(ds, false, MissingSchemaAction.Ignore); } } catch (Exception ex) { throw ex; } finally { if (AssignmentsChanged != null) { AssignmentsChanged(null, new EventArgs()); } } }
public static void RefreshFreight() { //Refresh the list of inbound trips for the local terminal try { _InboundFreight.Clear(); DateTime date = DateTime.Today.AddDays(-(_SortedDays - 1)); DataSet ds = App.Mediator.FillDataset(USP_TRIPVIEW, TBL_TRIPVIEW, new object[] { date }); if (ds != null) { _InboundFreight.Merge(ds, false, MissingSchemaAction.Ignore); } } catch (Exception ex) { throw ex; } finally { if (FreightChanged != null) { FreightChanged(null, new EventArgs()); } } }