Beispiel #1
0
        public void LoadData(int layerId, bool showId)
        {
            Clear();

            var data = new LayerDataModel();

            data.LayerId = layerId;

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

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

            var item = items[0];

            SetData(item);

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

            oDetailButtonPanel.SetId = SetId;

            Clear();

            var data = new LayerDataModel();

            data.LayerId = layerId;

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

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

                SetData(item);

                oHistoryList.Setup(PrimaryEntity, layerId, "Layer");
            }
        }