Beispiel #1
0
        public List<IPayment> GetPayments(int year, int week)
        {
            Data.IncomePayment dataIncomePayment;
            List<IPayment> incomePayments;

            dataIncomePayment = new Data.IncomePayment();
            incomePayments = dataIncomePayment.GetPayments(year, week);
            dataIncomePayment.Dispose();

            return incomePayments;
        }
Beispiel #2
0
        public List<IPayment> GetPayments(int? categoryId, int? typeId, DateTime? paymentDateFrom, DateTime? paymentDateTo, double? amountFrom, double? amountTo, string comment)
        {
            Data.IncomePayment dataIncomePayment;
            List<IPayment> incomePayments;
            Nullable<int> lCategoryId, lTypeId;

            dataIncomePayment = new Data.IncomePayment();

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

            incomePayments = dataIncomePayment.GetPayments(lCategoryId, lTypeId, paymentDateFrom, paymentDateTo, amountFrom, amountTo, comment);

            dataIncomePayment.Dispose();

            return incomePayments;
        }