Пример #1
0
        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;
            }
        }
Пример #2
0
        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");
            }
        }