コード例 #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(','));
            }
        }
コード例 #2
0
 public static List <TransactionSellingEntity> GetAllCreditTransaction(DateTime?StartDate, DateTime?EndDate)
 {
     return(SellingHistoryProvider.GetAllCreditTransaction(StartDate, EndDate));
 }
コード例 #3
0
 public static decimal GetOverAllBalance(DateTime?StartDate, DateTime?EndDate)
 {
     return(SellingHistoryProvider.GetOverAllBalance(StartDate, EndDate));
 }
コード例 #4
0
 public static bool AddBulkSellingHistory(List <selling_history> lst_sellinghistory)
 {
     return(SellingHistoryProvider.AddBulkSellingHistory(lst_sellinghistory));
 }
コード例 #5
0
 public static int AddUpdateSellingHistory(selling_history ob)
 {
     return(SellingHistoryProvider.AddUpdateSellingHistory(ob));
 }