Exemplo n.º 1
0
        protected void FillCollectorsList(CollectorDTO defaultCollector)
        {
            Collectors.SetItems(AppArgs.MarketState.Collectors.GetAll());

            if (defaultCollector != null)
            {
                CurrentCollector = Collectors.SingleOrDefault(_ => _.Id == defaultCollector.Id);
            }

            ShowCollectors = true;
        }
Exemplo n.º 2
0
 protected override void ModifyDraftForUpdating(OtherColxnDTO draft)
 {
     draft.Collector = Collectors.SingleOrDefault(_ => _.Id == draft.Collector.Id);
     draft.GLAccount = GLAccounts.SingleOrDefault(_ => _.Id == draft.GLAccount.Id);
 }