//Add Data From Linked Tables for Display
        public void EditGroupForDisplay(GDSAdditionalEntry group)
        {
            TripTypeRepository tripTypeRepository = new TripTypeRepository();
            TripType           tripType           = new TripType();

            tripType = tripTypeRepository.GetTripType(group.TripTypeId);
            if (tripType != null)
            {
                group.TripType = tripType.TripTypeDescription;
            }

            GDSRepository gDSRepository = new GDSRepository();
            GDS           gds           = new GDS();

            gds = gDSRepository.GetGDS(group.GDSCode);
            if (gds != null)
            {
                group.GDSName = gds.GDSName;
            }

            SubProductRepository subProductRepository = new SubProductRepository();
            SubProduct           subProduct           = new SubProduct();

            subProduct = subProductRepository.GetSubProduct(group.SubProductId);
            if (subProduct != null)
            {
                group.SubProductName = subProduct.SubProductName;

                Product product = new Product();
                product           = subProductRepository.GetSubProductProduct(group.SubProductId);
                group.ProductId   = product.ProductId;
                group.ProductName = product.ProductName;
            }


            HierarchyRepository hierarchyRepository = new HierarchyRepository();

            fnDesktopDataAdmin_SelectGDSAdditionalEntryHierarchy_v1Result hierarchy = new fnDesktopDataAdmin_SelectGDSAdditionalEntryHierarchy_v1Result();

            hierarchy = GetGroupHierarchy(group.GDSAdditionalEntryId);
            group.GDSAdditionalEntryValue = Regex.Replace(group.GDSAdditionalEntryValue, @"[^\w\-()*]", "-");

            if (hierarchy != null)
            {
                group.HierarchyType = hierarchy.HierarchyType;
                group.HierarchyCode = hierarchy.HierarchyCode.ToString();
                group.HierarchyItem = hierarchy.HierarchyName.Trim();


                if (hierarchy.HierarchyType == "ClientSubUnitTravelerType")
                {
                    group.ClientSubUnitGuid = hierarchy.HierarchyCode.ToString();
                    group.ClientSubUnitName = hierarchy.HierarchyName.Trim();
                    group.TravelerTypeGuid  = hierarchy.TravelerTypeGuid;
                    group.TravelerTypeName  = hierarchy.TravelerTypeName.Trim();
                }
            }
        }
        //Add Data From Linked Tables for Display
        public void EditForDisplay(ClientDetailSubProductFormOfPaymentType subProductFormOfPaymentType)
        {
            FormOfPaymentTypeRepository formOfPaymentTypeRepository = new FormOfPaymentTypeRepository();
            FormOfPaymentType           formOfPaymentType           = new FormOfPaymentType();

            formOfPaymentType = formOfPaymentTypeRepository.GetFormOfPaymentType(subProductFormOfPaymentType.FormOfPaymentTypeId);
            if (formOfPaymentType != null)
            {
                subProductFormOfPaymentType.FormOfPaymentTypeDescription = formOfPaymentType.FormOfPaymentTypeDescription;
            }

            SubProductRepository subProductRepository = new SubProductRepository();
            SubProduct           subProduct           = new SubProduct();

            subProduct = subProductRepository.GetSubProduct(subProductFormOfPaymentType.SubProductId);
            if (subProduct != null)
            {
                subProductFormOfPaymentType.SubProductName = subProduct.SubProductName;
            }
        }