/// <summary> /// Creates the updated income type jurisdiction view. /// </summary> /// <param name="jurisdictions">The jurisdictions.</param> /// <param name="incomeTypes">The income types.</param> /// <param name="processingMessage">The processing message.</param> /// <param name="incomeTypeListView">The income type ListView.</param> /// <returns></returns> public IIncomeTypeListView CreateUpdatedIncomeTypeJurisdictionView(IList <IJurisdiction> jurisdictions, IList <IIncomeType> incomeTypes, string processingMessage, IIncomeTypeListView incomeTypeListView) { var incomeTypeDDL = GetDropdownIncomeTypeList.GetIncomeType(incomeTypes, -1); var jurisdictionDDL = GetJurisdictionDropdown.GetJurisdicions(jurisdictions, -1); incomeTypeListView.JurisdictionList = jurisdictionDDL; incomeTypeListView.IncomeTypeList = incomeTypeDDL; incomeTypeListView.ProcessingMessage = processingMessage; return(incomeTypeListView); }
/// <summary> /// Creates the branch view. /// </summary> /// <returns></returns> public IBranchListView CreateBranchView(IList <IJurisdiction> jurisdictions) { var jurisdictionDDL = GetJurisdictionDropdown.GetJurisdicions(jurisdictions, -1); var view = new BranchListView { ProcessingMessage = string.Empty, JurisdictionNames = jurisdictionDDL }; return(view); }
/// <summary> /// Creates the branch view. /// </summary> /// <param name="branchView">The branch view.</param> /// <param name="processingMessage">The processing message.</param> /// <returns></returns> /// <exception cref="System.ArgumentException">branchView</exception> public IBranchListView CreateBranchView(IBranchListView branchView, string processingMessage, IList <IJurisdiction> jurisdictions) { if (branchView == null) { throw new ArgumentException("branchView"); } var jurisdictionDDL = GetJurisdictionDropdown.GetJurisdicions(jurisdictions, branchView.JurisdictionId); branchView.ProcessingMessage = processingMessage; branchView.JurisdictionNames = jurisdictionDDL; return(branchView); }
/// <summary> /// Creates the tax authority registration view. /// </summary> /// <returns></returns> public ITaxAuthorityView CreateTaxAuthorityRegistrationView(IList <IInlandRevenue> inlandRevenues, IList <IJurisdiction> jurisdictions) { var inlandRevenueNameDDL = GetInlandRevenueDropdown.GetInlandRevnue(inlandRevenues, -1); var jurisdictionDDL = GetJurisdictionDropdown.GetJurisdicions(jurisdictions, -1); var view = new TaxAuthorityView { InlandRevenueNames = inlandRevenueNameDDL, JurisdictionNames = jurisdictionDDL }; return(view); }
/// <summary> /// Creates the income type jurisdiction view. /// </summary> /// <param name="jurisdictions">The jurisdictions.</param> /// <param name="incomeTypes">The income types.</param> /// <param name="jurisdictionIncomeTypes">The jurisdiction income types.</param> /// <returns></returns> public IIncomeTypeListView CreateIncomeTypeJurisdictionView(IList <IJurisdiction> jurisdictions, IList <IIncomeType> incomeTypes) { var incomeTypeDDL = GetDropdownIncomeTypeList.GetIncomeType(incomeTypes, -1); var jurisdictionDDL = GetJurisdictionDropdown.GetJurisdicions(jurisdictions, -1); var View = new IncomeTypeListView { IncomeTypeList = incomeTypeDDL, JurisdictionList = jurisdictionDDL, }; return(View); }
/// <summary> /// Creates the updated registraion view. /// </summary> /// <param name="taxAuthorityView">The tax authority view.</param> /// <param name="processingMessage">The processing message.</param> /// <returns></returns> /// <exception cref="ArgumentNullException">taxAuthorityView</exception> public ITaxAuthorityView CreateUpdatedRegistraionView(ITaxAuthorityView taxAuthorityView, IList <IJurisdiction> jurisdictions, IList <IInlandRevenue> inlandRevenues, string processingMessage) { if (taxAuthorityView == null) { throw new ArgumentNullException(nameof(taxAuthorityView)); } var inlandRevenueNameDDL = GetInlandRevenueDropdown.GetInlandRevnue(inlandRevenues, -1); var jurisdictionDDL = GetJurisdictionDropdown.GetJurisdicions(jurisdictions, -1); taxAuthorityView.ProcessingMessage = processingMessage; taxAuthorityView.InlandRevenueNames = inlandRevenueNameDDL; taxAuthorityView.JurisdictionNames = jurisdictionDDL; return(taxAuthorityView); }
/// <summary> /// Creates the income type jurisdiction view. /// </summary> /// <param name="jurisdictionIncomeTypes">The jurisdiction income types.</param> /// <returns></returns> public IIncomeTypeListView CreateIncomeTypeJurisdictionView(IList <IJurisdictionIncomeType> jurisdictionIncomeTypes, string infoMessage, IList <IIncomeType> incomeTypes, IList <IJurisdiction> jurisdictions, int jurisdictionId) { var incomeTypeDDL = GetDropdownIncomeTypeList.GetIncomeType(incomeTypes, -1); var jurisdictionDDL = GetJurisdictionDropdown.GetJurisdicions(jurisdictions, -1); var View = new IncomeTypeListView { IncomeTypeList = incomeTypeDDL, JurisdictionList = jurisdictionDDL, jurisdictionIncomeTypes = jurisdictionIncomeTypes, ProcessingMessage = infoMessage, JurisdictionId = jurisdictionId, }; 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); }
/// <summary> /// Creates the branch ListView. /// </summary> /// <param name="selectedId">The selected identifier.</param> /// <param name="selectedDescription">The selected description.</param> /// <param name="branchCollection">The branch collection.</param> /// <param name="message">The message.</param> /// <returns></returns> /// <exception cref="System.ArgumentNullException">branchCollection</exception> public IBranchListView CreateBranchListView(IList <IBranch> branchCollection, IList <IJurisdiction> jurisdictions, string infoMessage) { if (branchCollection == null) { throw new ArgumentNullException(nameof(branchCollection)); } var jurisdictionDDL = GetJurisdictionDropdown.GetJurisdicions(jurisdictions, -1); var returnView = new BranchListView { BranchCollection = branchCollection, JurisdictionNames = jurisdictionDDL, ProcessingMessage = infoMessage, }; return(returnView); }