Exemplo n.º 1
0
        public VoucherPost()
        {
            //try
            //{
//<<<<<<< HEAD
//            _massVoucherManager = BLLCoreFactory.GetMassVoucherManager();
//            _projectManager = BLLCoreFactory.GetProjectManager();
//            _headManager = BLLCoreFactory.GetHeadManager();
//            _parameterManager = BLLCoreFactory.GetParameterManager();
//=======
            _massVoucherManager      = BLLCoreFactory.GetMassVoucherManager();
            _projectManager          = BLLCoreFactory.GetProjectManager();
            _headManager             = BLLCoreFactory.GetHeadManager();
            _parameterManager        = BLLCoreFactory.GetParameterManager();
            _depreciationRateManager = BLLCoreFactory.GetDepreciationRateManager();
//>>>>>>> githubJakaria42/master

            SetPostStatus();
            InputFirstPartEnabled  = true;
            InputSecondPartEnabled = true;
            AllProjects            = _projectManager.GetProjects(false);

            SelectedVoucherType = "DV";

            VoucherDate = DateTime.Now;
            ChequeDate  = DateTime.Now;

            TemporaryRecords = new List <Record>();
            _isJVBalanced    = true;
            //}
            //catch { }
        }
Exemplo n.º 2
0
        public DepreciationRateSetupModel()
        {
            try
            {
                _projectManager          = BLLCoreFactory.GetProjectManager();
                _headManager             = BLLCoreFactory.GetHeadManager();
                _depreciationRateManager = BLLCoreFactory.GetDepreciationRateManager();

                NotifyDepreciationRateDataGrid();

                AllProjects          = _projectManager.GetProjects();
                DepreciationRateEdit = 0;
            }
            catch
            { }
        }