Пример #1
0
 public PostTimeDepositView(Nfmb member, TimeDepositViewModel viewModel) : this()
 {
     _officialReceipt           = new OfficialReceipt();
     _member                    = member;
     _viewModel                 = viewModel;
     _officialReceipt.VoucherNo = Voucher.LastDocumentNo(VoucherTypes.OR) + 1;
     DataContext                = _officialReceipt;
 }
Пример #2
0
        public OpenTimeDepositView(Models.Nfmb member) : this()
        {
            _viewModel        = new TimeDepositViewModel();
            _member           = member;
            _viewModel.DateIn = Controllers.MainController.UserTransactionDate;

            var products   = new TimeDepositProducts();
            var collection = TimeDepositProduct.GetAll();

            foreach (var timeDepositProduct in collection)
            {
                products.Add(timeDepositProduct);
            }

            _viewModel.Products = products;
            DataContext         = _viewModel;
        }