Exemplo n.º 1
0
        public void LoadData(int deliverableArtifactStatusId, bool showId)
        {
            Clear();

            var data = new DeliverableArtifactStatusDataModel();

            data.DeliverableArtifactStatusId = deliverableArtifactStatusId;

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

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

            var item = items[0];

            SetData(item);

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

            oDetailButtonPanel.SetId = SetId;

            Clear();

            var data = new DeliverableArtifactStatusDataModel();

            data.DeliverableArtifactStatusId = deliverableArtifactStatusId;

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

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

                SetData(item);

                oHistoryList.Setup(PrimaryEntity, deliverableArtifactStatusId, "DeliverableArtifactStatus");
            }
        }