Exemple #1
0
        public InterestOnSavingsDepositWindow()
        {
            InitializeComponent();

            ProcessButton.Click += ProcesButtonOnClick;

            _viewModel = new InterestOnSavingsDepositViewModel();
            SavingsDepositController.InitializeModel(_viewModel);

            DataContext = _viewModel;
        }
        public PostInterestOnSavingsDepositView(InterestOnSavingsDepositViewModel viewModel)
        {
            InitializeComponent();

            _viewModel = viewModel;

            _journalVoucher             = new JournalVoucher();
            _journalVoucher.VoucherNo   = Voucher.LastDocumentNo(VoucherTypes.JV) + 1;
            _journalVoucher.VoucherDate = GlobalSettings.DateOfOpenTransaction;

            DataContext = _journalVoucher;

            btnPost.Click += btnPost_Click;
        }