예제 #1
0
 protected override void SetNewDraftDefaults(FundRequestDTO draft)
 {
     draft.BankAccountId = AppArgs.AccountId;
     draft.RequestDate   = DB.NextRequestDate();
     draft.SerialNum     = DB.NextRequestSerial();
     Payees.SetItems(DB.GetPayees());
     Allocations.DisplayItems(draft);
 }
예제 #2
0
        protected override async void OnWindowLoaded()
        {
            if (Draft.Id != 0)
            {
                return;
            }
            List <string> items = null;
            await Task.Run(() => items = AppArgs.Vouchers.GetPayees());

            UIThread.Run(() => Payees.SetItems(items));
        }