Exemplo n.º 1
0
        public static List <Bank> GetBanks()
        {
            List <Bank> list = null;

            if (application != null)
            {
                Sage.Accounting.CashBook.Banks banks = Sage.Accounting.CashBook.BanksFactory.Factory.CreateNew();
                list = banks.GetList().Cast <Bank>().ToList();
            }
            return(list);
        }
Exemplo n.º 2
0
        public static List <Bank> GetBanksModifiedAfter(DateTime dt)
        {
            List <Bank> list = null;

            if (application != null)
            {
                Sage.Accounting.CashBook.Banks banks  = Sage.Accounting.CashBook.BanksFactory.Factory.CreateNew();
                Sage.ObjectStore.Query         query  = new Sage.ObjectStore.Query();
                Sage.ObjectStore.Filter        filter = new Sage.ObjectStore.Filter(Sage.Accounting.CashBook.Bank.FIELD_DATETIMEUPDATED, FilterOperator.GreaterThanOrEqual, dt);
                query.Filters.Add(filter);

                banks.Find(query);

                list = banks.GetList().Cast <Bank>().ToList();
            }
            return(list);
        }