public static void LoadOrderView(bool force = false, DateTime today = default(DateTime)) { var oBL = new BLOrder(); if (force) { DsBusiness.OrderView.Clear(); DsBusiness.OrderView.Merge(oBL.GetOrderByOrderDate(today == default(DateTime) ? DateTime.Now : today)); } else { if (DsBusiness.OrderView.Rows.Count == 0) { DsBusiness.OrderView.Merge(oBL.GetOrderByOrderDate(today == default(DateTime) ? DateTime.Now : today)); } } }
/// <summary> /// Load Khu vực /// </summary> /// <param name="force"></param> public static void LoadOrder(bool force = false, DateTime today = default(DateTime)) { var oBL = new BLOrder(); if (force) { DsDictionary.Order.Clear(); DsDictionary.Order.Merge(oBL.GetOrderByTime(today == default(DateTime) ? DateTime.Now : today)); } else { if (DsDictionary.Order.Rows.Count == 0) { DsDictionary.Order.Merge(oBL.GetOrderByTime(today == default(DateTime) ? DateTime.Now : today)); } } }