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