Пример #1
0
        public void LoadData(int activityId, bool showId)
        {
            Clear();

            var data = new ActivityDataModel();

            data.ActivityId = activityId;

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

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

            var item = items[0];

            SetData(item);

            LayerId = item.LayerId;


            if (!showId)
            {
                SystemKeyId = item.ActivityId;
                oHistoryList.Setup(PrimaryEntity, activityId, PrimaryEntityKey);
            }
            else
            {
                CoreSystemKey.Text = String.Empty;
            }
        }
Пример #2
0
        protected override void ShowData(int activityId)
        {
            base.ShowData(activityId);

            oDetailButtonPanel.SetId = SetId;

            Clear();

            var data = new ActivityDataModel();

            data.ActivityId = activityId;

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

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

                lblLayer.Text = item.Layer;

                SetData(item);

                oHistoryList.Setup(PrimaryEntity, activityId, "Activity");
            }
        }