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 List <TransactionSellingEntity> GetAllCreditTransaction(DateTime?StartDate, DateTime?EndDate) { return(SellingHistoryProvider.GetAllCreditTransaction(StartDate, EndDate)); }
public static decimal GetOverAllBalance(DateTime?StartDate, DateTime?EndDate) { return(SellingHistoryProvider.GetOverAllBalance(StartDate, EndDate)); }
public static bool AddBulkSellingHistory(List <selling_history> lst_sellinghistory) { return(SellingHistoryProvider.AddBulkSellingHistory(lst_sellinghistory)); }
public static int AddUpdateSellingHistory(selling_history ob) { return(SellingHistoryProvider.AddUpdateSellingHistory(ob)); }