コード例 #1
0
        public void LoadData(int themeKeyId, bool showId)
        {
            Clear();

            var data = new ThemeKeyDataModel();

            data.ThemeKeyId = themeKeyId;

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

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

            var item = items[0];

            SetData(item);

            if (!showId)
            {
                SystemKeyId = item.ThemeKeyId;
                // oHistoryList.Setup(PrimaryEntity, ThemeKeyId, PrimaryEntityKey);
            }
            else
            {
                CoreSystemKey.Text = String.Empty;
            }
        }
コード例 #2
0
        protected override void ShowData(int ThemeKeyId)
        {
            oDetailButtonPanel.SetId = SetId;
            var data = new ThemeKeyDataModel();

            data.ThemeKeyId = ThemeKeyId;

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

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

                lblThemeKeyId.Text  = item.ThemeKeyId.ToString();
                lblName.Text        = item.Name;
                lblDescription.Text = item.Description;
                lblSortOrder.Text   = item.SortOrder.ToString();
                //lblIsAllTab.Text = item.IsAllTab.ToString();

                oUpdateInfo.LoadText(item.UpdatedDate, item.UpdatedBy, item.LastAction);

                oHistoryList.Setup(PrimaryEntity, ThemeKeyId, "ThemeKey");
            }
            else
            {
                Clear();
            }
        }