public override void DataBind()
        {
            ServiceLock service = ServiceLock;

            if (service != null)
            {
                // only rebind the data if the dialog has been closed
                if (ModalDialog.State == ModalDialog.ShowState.Hide)
                {
                    Type.Text        = ServerEnumDescription.GetLocalizedDescription(service.ServiceLockTypeEnum);
                    Description.Text = ServerEnumDescription.GetLocalizedLongDescription(service.ServiceLockTypeEnum);
                    Enabled.Checked  = service.Enabled;

                    if (service.FilesystemKey != null)
                    {
                        FileSystemDataAdapter adaptor = new FileSystemDataAdapter();
                        Model.Filesystem      fs      = adaptor.Get(service.FilesystemKey);
                        FileSystem.Text = fs.Description;
                    }
                    else
                    {
                        FileSystem.Text = string.Empty;
                    }

                    CalendarExtender.SelectedDate = service.ScheduledTime;

                    AddCustomTime(service.ScheduledTime);
                }
            }

            base.DataBind();
        }
        public override void DataBind()
        {
            if (_studySummary != null)
            {
                if (_studySummary.IsProcessing)
                {
                    ShowAlert(SR.StudyBeingProcessed);
                }
                else if (_studySummary.IsLocked)
                {
                    ShowAlert(ServerEnumDescription.GetLocalizedLongDescription(_studySummary.QueueStudyStateEnum));
                }
                else if (_studySummary.IsNearline)
                {
                    ShowAlert(SR.StudyIsNearline);
                }
                else if (_studySummary.IsReconcileRequired)
                {
                    ShowAlert(SR.StudyRequiresReconcilie);
                }
                else if (_studySummary.HasPendingExternalEdit)
                {
                    ShowAlert(SR.StudyScheduledForEdit);
                }
            }

            base.DataBind();
        }
        protected void CustomizeDescriptionColumn(GridViewRow row)
        {
            Label descLabel = row.FindControl("Description") as Label;

            ServiceLock item = row.DataItem as ServiceLock;

            if (descLabel != null && item != null)
            {
                descLabel.Text = ServerEnumDescription.GetLocalizedLongDescription(item.ServiceLockTypeEnum);
            }
        }