Esempio n. 1
0
 protected void UpdateToolBarButtons()
 {
     RescheduleToolbarButton.Enabled = WorkQueue != null && WorkQueueController.CanReschedule(WorkQueue);
     ResetButton.Enabled             = WorkQueue != null && WorkQueueController.CanReset(WorkQueue);
     DeleteButton.Enabled            = WorkQueue != null && WorkQueueController.CanDelete(WorkQueue);
     ReprocessButton.Enabled         = WorkQueue != null && WorkQueueController.CanReprocess(WorkQueue);
     StudyDetailsButton.Enabled      = ItemStudy != null;
 }
        private void CustomizeRowAttribute(GridViewRow row)
        {
            WorkQueueSummary item = row.DataItem as WorkQueueSummary;

            row.Attributes["canreschedule"] = WorkQueueController.CanReschedule(item.TheWorkQueueItem).ToString().ToLower();
            row.Attributes["canreset"]      = WorkQueueController.CanReset(item.TheWorkQueueItem).ToString().ToLower();
            row.Attributes["candelete"]     = WorkQueueController.CanDelete(item.TheWorkQueueItem).ToString().ToLower();
            row.Attributes["canreprocess"]  = WorkQueueController.CanReprocess(item.TheWorkQueueItem).ToString().ToLower();
        }