Exemplo n.º 1
0
        private void worker_DoWork(object sender, DoWorkEventArgs e)
        {
            OverAllBalance = SellingHistoryProvider.GetOverAllBalance(null, null);
            DateTime date            = DateTime.Now;
            DateTime FirstDayOfMonth = new DateTime(date.Year, date.Month, 1);
            DateTime LastDayOfMonth  = new DateTime(date.Year, date.Month, 1).AddMonths(1).AddDays(-1);

            MonthlyBalance = SellingHistoryProvider.GetOverAllBalance(FirstDayOfMonth, LastDayOfMonth);

            foreach (product item in ProductServices.GetEmptyStockList())
            {
                EmptyStockProductList += item.product_name + ",";
            }
            if (EmptyStockProductList.Length != 0)
            {
                EmptyStockProductList = EmptyStockProductList.Substring(0, EmptyStockProductList.LastIndexOf(','));
            }
        }
 public static decimal GetOverAllBalance(DateTime?StartDate, DateTime?EndDate)
 {
     return(SellingHistoryProvider.GetOverAllBalance(StartDate, EndDate));
 }