Example #1
0
        public void LoadData(int milestoneFeatureStateId, bool showId)
        {
            Clear();

            var data = new MilestoneFeatureStateDataModel();

            data.MilestoneFeatureStateId = milestoneFeatureStateId;

            var items = MilestoneFeatureStateDataManager.GetEntityDetails(data, SessionVariables.RequestProfile);

            if (items.Count != 1)
            {
                return;
            }

            var item = items[0];

            SetData(item);

            if (!showId)
            {
                SystemKeyId = item.MilestoneFeatureStateId;
                oHistoryList.Setup(PrimaryEntity, milestoneFeatureStateId, PrimaryEntityKey);
            }
            else
            {
                CoreSystemKey.Text = String.Empty;
            }
        }
Example #2
0
        protected override void ShowData(int milestoneFeatureStateId)
        {
            base.ShowData(milestoneFeatureStateId);

            oDetailButtonPanel.SetId = SetId;

            Clear();

            var data = new MilestoneFeatureStateDataModel();

            data.MilestoneFeatureStateId = milestoneFeatureStateId;

            var items = MilestoneFeatureStateDataManager.GetEntityDetails(data, SessionVariables.RequestProfile);

            if (items.Count == 1)
            {
                var item = items[0];

                SetData(item);

                oHistoryList.Setup(PrimaryEntity, milestoneFeatureStateId, "MilestoneFeatureState");
            }
        }