public void LoadData(int ProductivityAreaFeatureId, bool showId) { Clear(); var data = new ProductivityAreaFeatureDataModel(); data.ProductivityAreaFeatureId = ProductivityAreaFeatureId; var items = ProductivityAreaFeatureDataManager.GetEntityDetails(data, SessionVariables.RequestProfile); if (items.Count != 1) { return; } var item = items[0]; SetData(item); if (!showId) { SystemKeyId = item.ProductivityAreaFeatureId; oHistoryList.Setup(PrimaryEntity, ProductivityAreaFeatureId, PrimaryEntityKey); } else { CoreSystemKey.Text = String.Empty; } }
protected override void ShowData(int productivityAreaFeatureFeatureId) { base.ShowData(productivityAreaFeatureFeatureId); oDetailButtonPanel.SetId = SetId; Clear(); var data = new ProductivityAreaFeatureDataModel(); data.ProductivityAreaFeatureId = productivityAreaFeatureFeatureId; var items = ProductivityAreaFeatureDataManager.GetEntityDetails(data, SessionVariables.RequestProfile); if (items.Count == 1) { var item = items[0]; SetData(item); oHistoryList.Setup(PrimaryEntity, productivityAreaFeatureFeatureId, "ProductivityAreaFeature"); } }