Esempio n. 1
0
        public void Delete(int id)
        {
            Data.ExpensePayment dataExpensePayment;

            dataExpensePayment = new Data.ExpensePayment();
            dataExpensePayment.Delete(id);
            dataExpensePayment.Dispose();
        }
Esempio n. 2
0
        public void Add(int typeId, DateTime paymentDate, double amount, string comment)
        {
            Data.ExpensePayment dataExpensePayment;

            dataExpensePayment = new Data.ExpensePayment();
            dataExpensePayment.Add(typeId, paymentDate, amount, comment);
            dataExpensePayment.Dispose();
        }
Esempio n. 3
0
        public static List<IPayment> GetTopExpensePayments(int year)
        {
            Data.ExpensePayment dataExpensePayment;
            List<IPayment> expensePayments;

            dataExpensePayment = new Data.ExpensePayment();
            expensePayments = dataExpensePayment.GetTopExpensePayments(year);
            dataExpensePayment.Dispose();

            return expensePayments;
        }
Esempio n. 4
0
        public static List<IPayment> GetBudgetExpensePayments(int budgetHeaderId, int year, int week)
        {
            Data.ExpensePayment dataExpensePayment;
            List<IPayment> expensePayments;

            dataExpensePayment = new Data.ExpensePayment();
            expensePayments = dataExpensePayment.GetBudgetExpensePayments(budgetHeaderId, year, week);
            dataExpensePayment.Dispose();

            return expensePayments;
        }
Esempio n. 5
0
        public List<IPayment> GetPayments(int year, int week)
        {
            Data.ExpensePayment dataExpensePayment;
            List<IPayment> expensePayments;

            dataExpensePayment = new Data.ExpensePayment();
            expensePayments = dataExpensePayment.GetPayments(year, week);
            dataExpensePayment.Dispose();

            return expensePayments;
        }
Esempio n. 6
0
        public List<IPayment> GetPayments(int? categoryId, int? typeId, DateTime? paymentDateFrom, DateTime? paymentDateTo, double? amountFrom, double? amountTo, string comment)
        {
            Data.ExpensePayment dataExpensePayment;
            List<IPayment> expensePayments;
            Nullable<int> lCategoryId, lTypeId;

            dataExpensePayment = new Data.ExpensePayment();

            lCategoryId = (categoryId == 0) ? new Nullable<int>() : categoryId;
            lTypeId = (typeId == 0) ? new Nullable<int>() : typeId;

            expensePayments = dataExpensePayment.GetPayments(lCategoryId, lTypeId, paymentDateFrom, paymentDateTo, amountFrom, amountTo, comment);

            dataExpensePayment.Dispose();

            return expensePayments;
        }