예제 #1
0
        protected void ResetItemButton_Click(object sender, ImageClickEventArgs e)
        {
            if (ArchiveQueueItemList.SelectedItems == null)
            {
                DataBind();
            }

            if (ArchiveQueueItemList.SelectedItems.Count > 0)
            {
                EnclosingPage.ResetArchiveQueueItem(ArchiveQueueItemList.SelectedItems);
                ArchiveQueueItemList.RefreshCurrentPage();
            }
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            IList <ArchiveQueueStatusEnum> statusItems = ArchiveQueueStatusEnum.GetAll();

            int prevSelectedIndex = StatusFilter.SelectedIndex;

            StatusFilter.Items.Clear();
            StatusFilter.Items.Add(new ListItem(SR.All, "All"));
            foreach (ArchiveQueueStatusEnum s in statusItems)
            {
                StatusFilter.Items.Add(new ListItem(ServerEnumDescription.GetLocalizedDescription(s), s.Lookup));
            }
            StatusFilter.SelectedIndex = prevSelectedIndex;

            DeleteItemButton.Roles       = AuthorityTokens.ArchiveQueue.Delete;
            ViewStudyDetailsButton.Roles = AuthorityTokens.Study.View;

            if (!IsPostBack && !Page.IsAsync)
            {
                string patientID    = Server.UrlDecode(Request["PatientID"]);
                string patientName  = Server.UrlDecode(Request["PatientName"]);
                string partitionKey = Server.UrlDecode(Request["PartitionKey"]);

                if (patientID != null && patientName != null && partitionKey != null)
                {
                    var controller = new ServerPartitionConfigController();
                    ServerPartition = controller.GetPartition(new ServerEntityKey("ServerPartition", partitionKey));

                    PatientId.Text   = patientID;
                    PatientName.Text = patientName;

                    ArchiveQueueItemList.SetDataSource();
                    ArchiveQueueItemList.Refresh();
                }
            }
        }
예제 #3
0
 protected void SearchButton_Click(object sender, ImageClickEventArgs e)
 {
     ArchiveQueueItemList.Refresh();
 }
예제 #4
0
 internal void Reset()
 {
     Clear();
     ArchiveQueueItemList.Reset();
 }