Beispiel #1
0
        internal decimal GetAmount()
        {
            int sign = 1;
            TransactionViewColumn col = view.GetColumn("Deposit");
            string s = col.GetValue(item);

            if (string.IsNullOrEmpty(s))
            {
                sign = -1;
                col  = view.GetColumn("Payment");
                s    = col.GetValue(item);
            }
            decimal p = 0;

            decimal.TryParse(s, out p);
            return(p * sign);
        }
Beispiel #2
0
        private decimal GetDecimalColumn(string name)
        {
            TransactionViewColumn col = view.GetColumn(name);
            string  s = col.GetValue(item);
            decimal d;

            decimal.TryParse(s, out d);
            return(d);
        }
Beispiel #3
0
        internal string GetSecurity()
        {
            TransactionViewColumn col = view.GetColumn("Security");

            return(col.GetValue(item));
        }
Beispiel #4
0
        internal string GetMemo()
        {
            TransactionViewColumn col = view.GetColumn("Memo");

            return(col.GetValue(item));
        }
Beispiel #5
0
        internal string GetCategory()
        {
            TransactionViewColumn col = view.GetColumn("Category");

            return(col.GetValue(item));
        }
Beispiel #6
0
        internal string GetPayee()
        {
            TransactionViewColumn col = view.GetColumn("Payee");

            return(col.GetValue(item));
        }
Beispiel #7
0
        internal string GetCheckNumber()
        {
            TransactionViewColumn col = view.GetColumn("Number");

            return(col.GetValue(item));
        }