コード例 #1
0
        public decimal Is()
        {
            bool isNotVerified;
            List <Models.LedgerEntry <TransactioneeIdType> > entry;

            do
            {
                entry = ledgerCrud.ExecuteQuery(query, out isNotVerified);
                if (!isNotVerified)
                {
                    ledgerCrud.DeleteEntry(entry[0].PrimaryKey);
                }
            } while (isNotVerified);
            decimal balance = entry[0].Balance;

            return(balance);
        }
コード例 #2
0
        public decimal Is()
        {
            bool isNotVerified;

            query.Person(transactionee).DateFrom(startDate).DateTo(endDate);
            List <Models.LedgerEntry <TransactioneeIdType> > entry;

            do
            {
                entry = ledgerCrud.ExecuteQuery(query, out isNotVerified)
                        .OrderByDescending(x => x.TransactionDateTime)
                        .ToList();
                if (!isNotVerified)
                {
                    ledgerCrud.DeleteEntry(entry[0].PrimaryKey);
                }
            } while (isNotVerified);
            decimal balance = entry[0].Balance;

            return(balance);
        }