Exemplo n.º 1
0
        public void LoadData(int FieldConfigurationModeAccessModeId, bool showId)
        {
            // clear UI
            Clear();

            // set up parameters
            var data = new FieldConfigurationModeAccessModeDataModel();

            data.FieldConfigurationModeAccessModeId = FieldConfigurationModeAccessModeId;

            // get data
            var items = FieldConfigurationModeAccessModeDataManager.GetEntityDetails(data, SessionVariables.RequestProfile);

            // should only have single match -- should log exception.
            if (items.Count != 1)
            {
                return;
            }

            var item = items[0];

            SetData(item);

            if (!showId)
            {
                SystemKeyId = item.FieldConfigurationModeAccessModeId;
                oHistoryList.Setup(PrimaryEntity, FieldConfigurationModeAccessModeId, PrimaryEntityKey);
            }
            else
            {
                CoreSystemKey.Text = String.Empty;
            }
        }
Exemplo n.º 2
0
        protected override void ShowData(int FieldConfigurationModeAccessModeId)
        {
            base.ShowData(FieldConfigurationModeAccessModeId);

            oDetailButtonPanel.SetId = SetId;

            Clear();

            var data = new FieldConfigurationModeAccessModeDataModel();

            data.FieldConfigurationModeAccessModeId = FieldConfigurationModeAccessModeId;

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

            // should only have single match
            if (items.Count == 1)
            {
                var item = items[0];

                SetData(item);

                oHistoryList.Setup(PrimaryEntity, FieldConfigurationModeAccessModeId, "FieldConfigurationModeAccessMode");
            }
        }