protected void LoadMappingTables_Filter(object sender, System.EventArgs e) { int mappingType = Convert.ToInt32(SessionHandler.MappingSelectedTable); string country = SessionHandler.MappingSelectedCountry; switch (mappingType) { case (int)App.BLL.Mappings.Type.Country: SessionHandler.ClearMappingCountrySessions(); this.MappingCountryGridview.LoadCountryControl(); this.ShowGridviews((int)App.BLL.Mappings.Type.Country); break; case (int)App.BLL.Mappings.Type.AreaCode: SessionHandler.ClearMappingAreaCodeSessions(); this.MappingAreaCodeGridview.LoadAreaCodesControl(); this.ShowGridviews((int)App.BLL.Mappings.Type.AreaCode); break; case (int)App.BLL.Mappings.Type.CMSPools: SessionHandler.ClearMappingCMSPoolSessions(); this.MappingCMSPoolGridview.LoadCMSPoolsControl(); this.ShowGridviews((int)App.BLL.Mappings.Type.CMSPools); break; case (int)App.BLL.Mappings.Type.CMSLocationGroups: SessionHandler.MappingSelectedCMSPoolId = null; SessionHandler.ClearMappingCMSLocationSessions(); this.MappingCMSLocationGridview.LoadCMSLocationsControl(); this.ShowGridviews((int)App.BLL.Mappings.Type.CMSLocationGroups); break; case (int)App.BLL.Mappings.Type.OPSRegions: SessionHandler.ClearMappingOPSRegionSessions(); this.MappingOPSRegionGridviews.LoadOPSRegionsControl(); this.ShowGridviews((int)App.BLL.Mappings.Type.OPSRegions); break; case (int)App.BLL.Mappings.Type.OPSAreas: SessionHandler.ClearMappingOPSAreaSessions(); SessionHandler.MappingSelectedOPSRegionId = null; this.MappingOPSAreaGridview.LoadOPSAreasControl(); this.ShowGridviews((int)App.BLL.Mappings.Type.OPSAreas); break; case 941: case (int)App.BLL.Mappings.Type.Locations: App.BLL.MappingsLocations.Loc = mappingType == 941 ? "UNMAPPED" : ""; // added by Gavin to track UNMAPPED locations SessionHandler.ClearMappingLocationSessions(); SessionHandler.MappingSelectedOPSAreaId = null; SessionHandler.MappingSelectedCMSLocationGroupCode = null; this.MappingLocationGridview.LoadLocationsControl(); this.ShowGridviews((int)App.BLL.Mappings.Type.Locations); break; case (int)App.BLL.Mappings.Type.CarSegment: SessionHandler.ClearMappingCarSegmentSessions(); this.MappingCarSegmentGridview.LoadCarSegmentControl(); this.ShowGridviews((int)App.BLL.Mappings.Type.CarSegment); break; case (int)App.BLL.Mappings.Type.CarClass: SessionHandler.ClearMappingCarClassSessions(); SessionHandler.MappingSelectedCarSegmentId = null; this.MappingCarClassGridview.LoadCarClassControl(); this.ShowGridviews((int)App.BLL.Mappings.Type.CarClass); break; case 940: case (int)App.BLL.Mappings.Type.CarGroup: App.BLL.MappingsCarGroup.carClass = mappingType == 940 ? "UNMAPPED" : ""; // search for unmapped classes SessionHandler.ClearMappingCarGroupSessions(); SessionHandler.MappingSelectedCarClassId = null; this.MappingCarGroupGridview.LoadCarGroupControl(); this.ShowGridviews((int)App.BLL.Mappings.Type.CarGroup); break; case (int)App.BLL.Mappings.Type.ModelCodes: SessionHandler.ClearMappingModelCodeSessions(); this.MappingModelCodesGridview.LoadModelCodeControl(); this.ShowGridviews((int)App.BLL.Mappings.Type.ModelCodes); break; default: //Select all was selected this.HideGridviews(); break; } this.ClearMessageLabels(); this.UpdatePanelMaintenanceMappingTable.Update(); }