Example #1
0
        public static UnitViewModel Create(IMCostCenterRepository mCostCenterRepository)
        {
            UnitViewModel viewModel = new UnitViewModel();

            viewModel.CostCenterList = FillHelper.GetCostCenters(mCostCenterRepository, null);

            return(viewModel);
        }
        public static CashFormViewModel CreateCashFormViewModel(ITJournalRepository tJournalRepository, IMCostCenterRepository mCostCenterRepository, IMAccountRepository mAccountRepository)
        {
            CashFormViewModel viewModel = new CashFormViewModel();

            viewModel.CostCenterList = FillHelper.GetCostCenters(mCostCenterRepository, "-Pilih Cost Center-");
            //viewModel.AccountList = FillHelper.GetAccounts(mAccountRepository, "-Pilih Akun Kas-");

            return(viewModel);
        }
        public RealFormViewModel Create(IMCostCenterRepository mCostCenterRepository)
        {
            RealFormViewModel viewModel = new RealFormViewModel();

            TReal r = new TReal();

            viewModel.CostCenterList = FillHelper.GetCostCenters(mCostCenterRepository, "-Pilih Cost Center-");
            viewModel.CostCenterList = FillHelper.GetMonths("-Pilih Bulan-");
            viewModel.YearList       = FillHelper.GetYears("-Pilih Tahun-");
            return(viewModel);
        }