示例#1
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)
            {
                var patientId   = Server.UrlDecode(Request["PatientID"]);
                var patientName = Server.UrlDecode(Request["PatientName"]);
                if (patientId != null || patientName != null)
                {
                    PatientId.TrimText   = patientId;
                    PatientName.TrimText = patientName;

                    ArchiveQueueItemList.SetDataSource();
                    ArchiveQueueItemList.Refresh();
                }
            }
        }
示例#2
0
 protected void SearchButton_Click(object sender, ImageClickEventArgs e)
 {
     ArchiveQueueItemList.Refresh();
 }