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

            var data = new TabParentStructureDataModel();

            data.TabParentStructureId = TabParentStructureId;

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

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

            var item = items[0];

            txtIsAllTab.Text = item.IsAllTab.ToString();
            SetData(item);

            if (!showId)
            {
                SystemKeyId = item.TabParentStructureId;
                oHistoryList.Setup(PrimaryEntity, TabParentStructureId, PrimaryEntityKey);
            }
            else
            {
                CoreSystemKey.Text = String.Empty;
            }
        }