Esempio n. 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();
            }
        }
Esempio n. 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();
                }
            }
        }
Esempio n. 3
0
 protected void SearchButton_Click(object sender, ImageClickEventArgs e)
 {
     ArchiveQueueItemList.Refresh();
 }
Esempio n. 4
0
 internal void Reset()
 {
     Clear();
     ArchiveQueueItemList.Reset();
 }