using System; using System.Collections.Generic; using System.Linq; using System.Text; using Pilotfish.Afx.Services.Forms.Entities; namespace Neo.Legitimate.Common { public class ChecklistHelpers { #region CleanChecklistTemplate public static IEnumerable CleanChecklistTemplate(IEnumerable documentChecks, short applicationRequestTypeID, short modeID, bool isRenewal) { var cleanedChecklist = new List(); foreach (var item in documentChecks) { switch (applicationRequestTypeID) { case (short)Common.ApplicationRequestType.NewOperatingLicence: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter from association regarding allocation of routes" || item.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable)") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter from association regarding allocation of routes" || item.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter from association regarding allocation of routes" || item.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter from association regarding allocation of routes" || item.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.AddAuthorisationsRoutes: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter from Municipality re Permission" || item.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter from Municipality re Permission" || item.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter from Municipality re Permission" || item.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter from Municipality re Permission" || item.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter from Municipality re Permission" || item.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.ReplacementsCOV: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.IncreaseCarryingCapacity: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.Conversion: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.NormalTransfer: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Transfer agreement signed by both Applicant and Transferor" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Transfer agreement signed by both Applicant and Transferor" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Transfer agreement signed by both Applicant and Transferor" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Transfer agreement signed by both Applicant and Transferor" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter of recommendation in support of the application (if any)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Transfer agreement signed by both Applicant and Transferor" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.DeceasedTransfer: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter of authority and next of kin affidavit" || item.ChecklistTitle == "Letter of executorship and a will" || item.ChecklistTitle == "Final liquidation and distribution account" || item.ChecklistTitle == "Certified letter of appointment determining the heir" || item.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter of authority and next of kin affidavit" || item.ChecklistTitle == "Letter of executorship and a will" || item.ChecklistTitle == "Final liquidation and distribution account" || item.ChecklistTitle == "Certified letter of appointment determining the heir" || item.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter of authority and next of kin affidavit" || item.ChecklistTitle == "Letter of executorship and a will" || item.ChecklistTitle == "Final liquidation and distribution account" || item.ChecklistTitle == "Certified letter of appointment determining the heir" || item.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter of authority and next of kin affidavit" || item.ChecklistTitle == "Letter of executorship and a will" || item.ChecklistTitle == "Final liquidation and distribution account" || item.ChecklistTitle == "Certified letter of appointment determining the heir" || item.ChecklistTitle == "Letter of recommendation in support of the application (if any)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTitle == "Letter of authority and next of kin affidavit" || item.ChecklistTitle == "Letter of executorship and a will" || item.ChecklistTitle == "Final liquidation and distribution account" || item.ChecklistTitle == "Certified letter of appointment determining the heir" || item.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.Renewal: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable)" || item.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable)" || item.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable)" || item.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable)" || item.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable)" || item.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.LateRenewalExpired: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Form 10" || item.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Form 10" || item.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Form 10" || item.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Form 10" || item.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Form 10" || item.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.DuplicateLicence: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Affidavit from SAPS stating reason for application" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Affidavit from SAPS stating reason for application" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Affidavit from SAPS stating reason for application" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Affidavit from SAPS stating reason for application" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Affidavit from SAPS stating reason for application" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.TemporarySpecialLicence: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Letter from People hiring vehicle" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Letter from People hiring vehicle" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Letter from People hiring vehicle" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Letter from People hiring vehicle" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTitle == "Letter from People hiring vehicle" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.DataPurification: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Form 10" || item.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Form 10" || item.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Form 10" || item.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Form 10" || item.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTitle == "Form 10" || item.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; } break; default: break; } if (isRenewal) { if (item.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTitle == "Form 10" || item.ChecklistTitle == "Original valid tax clearance certificate") { if (!cleanedChecklist.Contains(item)) { cleanedChecklist.Add(item); } } } } return cleanedChecklist; } #endregion #region CleanChecklistResults public static List CleanChecklistResults(List checklist, short applicationRequestTypeID, short modeID, bool isRenewal) { var cleanedChecklist = new List(); foreach (var item in checklist) { switch (applicationRequestTypeID) { case (short)Common.ApplicationRequestType.NewOperatingLicence: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from association regarding allocation of routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable)") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from association regarding allocation of routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from association regarding allocation of routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from association regarding allocation of routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.AddAuthorisationsRoutes: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from Municipality re Permission" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from Municipality re Permission" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from Municipality re Permission" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from Municipality re Permission" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from Municipality re Permission" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable") { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.ReplacementsCOV: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.IncreaseCarryingCapacity: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Written authorization from the planning authorities regarding their support of the application, with particular emphasis on the potential impact on existing ranking and terminal facilities" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.Conversion: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.NormalTransfer: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Transfer agreement signed by both Applicant and Transferor" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Transfer agreement signed by both Applicant and Transferor" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Transfer agreement signed by both Applicant and Transferor" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Transfer agreement signed by both Applicant and Transferor" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of recommendation in support of the application (if any)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Transfer agreement signed by both Applicant and Transferor" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.DeceasedTransfer: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of authority and next of kin affidavit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of executorship and a will" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Final liquidation and distribution account" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified letter of appointment determining the heir" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of authority and next of kin affidavit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of executorship and a will" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Final liquidation and distribution account" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified letter of appointment determining the heir" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of authority and next of kin affidavit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of executorship and a will" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Final liquidation and distribution account" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified letter of appointment determining the heir" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of authority and next of kin affidavit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of executorship and a will" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Final liquidation and distribution account" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified letter of appointment determining the heir" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of recommendation in support of the application (if any)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Quotation (or purchase invoice) for Passenger liability Insurance to the value of R1 million per passenger per seat." || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of authority and next of kin affidavit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of executorship and a will" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Final liquidation and distribution account" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified letter of appointment determining the heir" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter of recommendation in support of the application (if any)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from Association on allocation of routes in case of radius permit" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.Renewal: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Deceased Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Death Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified Copy of Marriage Certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Certified copy of the contract between the applicant and the employer (if applicable)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from municipality or in case of private property an original certified copy of letter from the landlord (not older than 3 months)" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.LateRenewalExpired: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Form 10" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Form 10" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Form 10" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Form 10" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Form 10" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.DuplicateLicence: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Affidavit from SAPS stating reason for application" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Affidavit from SAPS stating reason for application" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Affidavit from SAPS stating reason for application" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Affidavit from SAPS stating reason for application" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Affidavit from SAPS stating reason for application" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.TemporarySpecialLicence: switch (modeID) { case (short)Common.Mode.MeteredTaxi: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from People hiring vehicle" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from People hiring vehicle" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from People hiring vehicle" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from People hiring vehicle" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Letter from People hiring vehicle" ) { cleanedChecklist.Add(item); } break; } break; case (short)Common.ApplicationRequestType.DataPurification: switch (modeID) { case (short)Common.Mode.MeteredTaxi: case (short)Common.Mode.EHailing: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Form 10" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.MinibusTaxi: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Form 10" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Midibus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Form 10" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Bus: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Form 10" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; case (short)Common.Mode.Other: if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Company registration certificate (in case of a Juristic Person)" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Detailed route description and official letter from municipality commenting about routes" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Form 10" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate" ) { cleanedChecklist.Add(item); } break; } break; default: break; } if (isRenewal) { if (item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of Identity document of Applicant" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Valid original permit / Operating License (OL)/Permit" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Taxi Association Letter" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original certified copy of rank permit from from municipality or in case of private property an original certified copy of letter from the landlord" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Form 10" || item.ChecklistTemplateQuestion.ChecklistTemplate.ChecklistTitle == "Original valid tax clearance certificate") { if (!cleanedChecklist.Contains(item)) { cleanedChecklist.Add(item); } } } } return cleanedChecklist; } #endregion } }