/// <summary>
        /// Gets the tax return ListView.
        /// </summary>
        /// <param name="taxReturns">The tax returns.</param>
        /// <param name="branches">The branches.</param>
        /// <param name="incomeTypes">The income types.</param>
        /// <returns></returns>
        public ITaxReturnListView GetTaxReturnListView(IList <ITaxReturn> taxReturns, IList <IBranch> branches, ITaxReturnListView taxReturnListView)
        {
            var branchType = GetBranchDropdownList.BranchListItems(branches, -1);


            var view = new TaxReturnListView
            {
                TaxReturnCollection = taxReturns,
                Incometype          = new List <SelectListItem>(),
                Branch           = branchType,
                SelectedBranchId = taxReturnListView.BranchId
            };

            return(view);
        }
        /// <param name="branches">The branches.</param>
        /// <param name="incomeTypes">The income types.</param>
        /// <returns></returns>
        public ITaxReturnListView GetTaxReturnView(IList <ITaxReturn> taxReturns, IList <IAgentOfDeduction> agentOfDeductions, IList <IJurisdiction> jurisdictions, ITaxReturnListView taxReturnListView)
        {
            var jurisdictionDDL = GetJurisdictionDropdown.GetJurisdicions(jurisdictions, -1);

            var agentOfDeductonDDL = GetAgentOfDeductionDropdown.AgentOfDeductionListItems(agentOfDeductions, -1);

            var view = new TaxReturnListView
            {
                TaxReturnCollection = taxReturns,
                Branch                = new List <SelectListItem>(),
                JurisdictionList      = jurisdictionDDL,
                AgentOfDeductionList  = agentOfDeductonDDL,
                SelectedBranchId      = taxReturnListView.BranchId,
                SelectedJursidctionId = taxReturnListView.JurisdictionId
            };

            return(view);
        }
Exemplo n.º 3
0
        public ActionResult SystemAdminTaxReturns(TaxReturnListView taxReturnListView)
        {
            var taxReturns = this.agentOfDeductionService.GetSystemAdminTaxReturnsView(taxReturnListView);

            return(View(taxReturns));
        }
Exemplo n.º 4
0
        /// <returns></returns>    //this displays tax returns for tax authority
        public ActionResult TaxAuthorityTaxReturns(TaxReturnListView taxReturnListView)
        {
            var taxReturns = this.agentOfDeductionService.GetTaxAuthorityTaxReturnsView(taxReturnListView);

            return(View(taxReturns));
        }