using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Neo.LegitimateLicences.Common.Helpers { public class ApplicationRequestHelper { public static string ApplicationRequestTypeListExcludingOtc() { return (short)ApplicationRequestTypeEnum.AddAuthorisationsRoutes + "," + (short)ApplicationRequestTypeEnum.ApplicationForAccreditation + "," + (short)ApplicationRequestTypeEnum.ApplicationForRenewalOfAccreditation + "," + (short)ApplicationRequestTypeEnum.AddOperatingLicenceToAccreditation; } public static string OtcApplicationRequestTypeList() { return (short)ApplicationRequestTypeEnum.DuplicateLicence + "," + (short)ApplicationRequestTypeEnum.PersonalDetailsUpdate + "," + (short)ApplicationRequestTypeEnum.ReplacementsCOV; } /*todo check*/ public static bool IsTransferType(short applicationRequestTypeID) { return ( applicationRequestTypeID == (short)ApplicationRequestTypeEnum.NormalTransfer || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.DeceasedTransfer || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalAndDeceasedTransfer || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalAndNormalTransfer || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalDeceasedTransferAndIncreaseInCarryingCapacity || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalDeceasedTransferIncreaseInCarryingCapacityAndCOV || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalNormalTransferAndCOV || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.DeceasedTransferNewOL || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalAndDeceasedTransferAndCOV ); } public static bool IsCovtype(short applicationRequestTypeID) { return ( applicationRequestTypeID == (short)ApplicationRequestTypeEnum.ReplacementsCOV || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.IncreaseInCarryingCapacityAndCOV || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalAndCOV || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalCOVAndIncreaseInCarryingCapacity || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalDeceasedTransferIncreaseInCarryingCapacityAndCOV || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalNormalTransferAndCOV || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalAndDeceasedTransferAndCOV ); } public static bool IsRenewalType(short applicationRequestTypeID) { return ( applicationRequestTypeID == (short)ApplicationRequestTypeEnum.Renewal || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalAndCOV || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalAndDeceasedTransfer || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalAndNormalTransfer || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalCOVAndIncreaseInCarryingCapacity || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalDeceasedTransferAndIncreaseInCarryingCapacity || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalDeceasedTransferIncreaseInCarryingCapacityAndCOV || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalNormalTransferAndCOV || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalAndDeceasedTransferAndCOV || applicationRequestTypeID == (short)ApplicationRequestTypeEnum.RenewalAndIncreaseInCarryingCapacity ); } } }