コード例 #1
0
        public void Refresh()
        {
            LoadData();
            PartitionArchiveGridPanel.UpdateUI();

            SearchUpdatePanel.Update();
        }
コード例 #2
0
        protected void UpdateUI()
        {
            if (Study != null)
            {
                string reason;
                DeleteStudyButton.Enabled = Study.CanScheduleDelete(out reason);
                if (!DeleteStudyButton.Enabled)
                {
                    DeleteStudyButton.ToolTip = reason;
                }

                EditStudyButton.Enabled = Study.CanScheduleEdit(out reason);
                if (!EditStudyButton.Enabled)
                {
                    EditStudyButton.ToolTip = reason;
                }

                ReprocessStudyButton.Enabled = Study.CanReprocess(out reason);
                if (!ReprocessStudyButton.Enabled)
                {
                    ReprocessStudyButton.ToolTip = reason;
                }
            }

            SearchUpdatePanel.Update();// force update
        }
コード例 #3
0
        public override void DataBind()
        {
            base.DataBind();

            // Whenever data is bound, we have to force the panel to refresh.
            // Otherwise, databind that occurs during postback event will not be sent back to the client.
            SearchUpdatePanel.Update();
        }
コード例 #4
0
        /// <summary>
        /// Updates the rules list window in the panel.
        /// </summary>
        /// <remarks>
        /// This method should only be called when necessary as the information in the list window needs to be transmitted back to the client.
        /// If the list is not changed, call <seealso cref="LoadRules()"/> instead.
        /// </remarks>
        public void Refresh()
        {
            LoadRules();

            // UpdatePanel UpdateMode must be set to "conditional"
            // Calling UpdatePanel.Update() will force the client to refresh the screen
            SearchUpdatePanel.Update();
        }
コード例 #5
0
ファイル: SearchPanel.ascx.cs プロジェクト: yjsyyyjszf/CC13.2
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            ClearScheduleDateButton.OnClientClick = ScriptHelper.ClearDate(ScheduleDate.ClientID,
                                                                           ScheduleDateCalendarExtender.ClientID);

            // setup child controls
            GridPagerTop.InitializeGridPager(Labels.GridPagerQueueSingleItem, Labels.GridPagerQueueMultipleItems,
                                             RestoreQueueItemList.RestoreQueueGrid,
                                             () => RestoreQueueItemList.ResultCount,
                                             ImageServerConstants.GridViewPagerPosition.Top);
            RestoreQueueItemList.Pager = GridPagerTop;

            MessageBox.Confirmed += delegate(object data)
            {
                if (data is IList <Model.RestoreQueue> )
                {
                    var items = data as IList <Model.RestoreQueue>;
                    foreach (Model.RestoreQueue item in items)
                    {
                        _controller.DeleteRestoreQueueItem(item);
                    }
                }
                else if (data is Model.RestoreQueue)
                {
                    var item = data as Model.RestoreQueue;
                    _controller.DeleteRestoreQueueItem(item);
                }

                DataBind();
                SearchUpdatePanel.Update();                         // force refresh
            };

            RestoreQueueItemList.DataSourceCreated += delegate(RestoreQueueDataSource source)
            {
                source.Partition   = ServerPartition;
                source.DateFormats = ScheduleDateCalendarExtender.Format;

                if (!String.IsNullOrEmpty(StatusFilter.SelectedValue) && StatusFilter.SelectedIndex > 0)
                {
                    source.StatusEnum = RestoreQueueStatusEnum.GetEnum(StatusFilter.SelectedValue);
                }
                if (!String.IsNullOrEmpty(PatientId.TrimText))
                {
                    source.PatientId = SearchHelper.TrailingWildCard(PatientId.TrimText);
                }
                if (!String.IsNullOrEmpty(PatientName.TrimText))
                {
                    source.PatientName = SearchHelper.NameWildCard(PatientName.TrimText);
                }
                if (!String.IsNullOrEmpty(ScheduleDate.Text))
                {
                    source.ScheduledDate = ScheduleDate.Text;
                }
            };
        }
コード例 #6
0
ファイル: SearchPanel.ascx.cs プロジェクト: hksonngan/Xian
 public void Refresh()
 {
     if (!StudyListGridView.IsDataSourceSet())
     {
         StudyListGridView.SetDataSource();
     }
     StudyListGridView.RefreshCurrentPage();
     SearchUpdatePanel.Update();
 }
コード例 #7
0
 protected void GetData()
 {
     Session["FilteredRcptData"] = null;
     try
     {
         dt = null;
         lblErrorMessage.Text = "";
         MessageUpdatePanel.Update();
         // get the data.
         dt = CheckError(ReceiptData.SearchUnprocessed(LocationDropDownList.SelectedItem.Value.ToString().Trim()
                                                       , LPNBeg.Text.ToString().Trim()
                                                       , ""
                                                       , BOLBeg.Text.ToString().Trim()
                                                       , ""
                                                       , BegDate.SelectedDate.ToShortDateString()
                                                       , EndDate.SelectedDate.ToShortDateString()
                                                       ));
         Session["LPNRcptData"] = dt;
         if ((dt != null) && (dt.Rows.Count > 0))
         {
             dt.Columns.Add("PageNo");
             RePage(dt);
             BindPageDetails();
             FindSubmit.Visible = true;
         }
         else
         {
             //lblErrorMessage.Text = "Error " + _ToLoc + ":" + _BegContainer + ":" + _EndContainer + ":"
             //     + _BegBOL + ":" + _EndBOL + ":"
             //     + BegDate.SelectedDate.ToShortDateString() + ":" + EndDate.SelectedDate.ToShortDateString();
             lblErrorMessage.Text = "No Records Found..";
             MessageUpdatePanel.Update();
             FindSubmit.Visible = false;
             XDocGridView.DataBind();
         }
         SearchUpdatePanel.Update();
     }
     catch (Exception e3)
     {
         lblErrorMessage.Text = "pContainerCrossDocForm Error " + e3.Message + ", " + e3.ToString();
         MessageUpdatePanel.Update();
     }
     DetailUpdatePanel.Update();
     SelectorUpdatePanel.Visible = false;
     SearchUpdatePanel.Visible   = true;
     DetailGridPanel.Visible     = true;
     pnlPager.Visible            = true;
     BottomPanel.Visible         = true;
 }
コード例 #8
0
        /// <summary>
        /// Updates the FileSystem list window in the panel.
        /// </summary>
        /// <remarks>
        /// This method should only be called when necessary as the information in the list window needs to be transmitted back to the client.
        /// If the list is not changed, call <seealso cref="LoadFileSystems()"/> instead.
        /// </remarks>
        public void UpdateUI()
        {
            LoadFileSystems();

            Filesystem dev = FileSystemsGridView1.SelectedFileSystem;

            if (dev == null)
            {
                // no FileSystem being selected
                EditFileSystemButton.Enabled = false;
            }
            else
            {
                EditFileSystemButton.Enabled = true;
            }

            SearchUpdatePanel.Update();
        }
コード例 #9
0
        public void UpdateUI()
        {
            UserGroupRowData userGroupRow = UserGroupsGridPanel.SelectedUserGroup;

            if (userGroupRow == null)
            {
                // no device being selected
                EditUserGroupButton.Enabled   = false;
                DeleteUserGroupButton.Enabled = false;
            }
            else
            {
                EditUserGroupButton.Enabled   = true;
                DeleteUserGroupButton.Enabled = true;
            }

            UserGroupsGridPanel.RefreshCurrentPage();
            SearchUpdatePanel.Update();
        }
コード例 #10
0
ファイル: DevicePanel.ascx.cs プロジェクト: hksonngan/Xian
        /// <summary>
        /// Updates the device list window in the panel.
        /// </summary>
        /// <remarks>
        /// This method should only be called when necessary as the information in the list window needs to be transmitted back to the client.
        /// If the list is not changed, call <seealso cref="LoadDevices()"/> instead.
        /// </remarks>
        public void Refresh()
        {
            LoadDevices();
            Device dev = DeviceGridViewControl1.SelectedDevice;

            if (dev == null)
            {
                // no device being selected
                EditDeviceButton.Enabled   = false;
                DeleteDeviceButton.Enabled = false;
            }
            else
            {
                EditDeviceButton.Enabled   = true;
                DeleteDeviceButton.Enabled = true;
            }

            SearchUpdatePanel.Update();
        }
コード例 #11
0
        public void UpdateUI()
        {
            UserRowData userRow = UserGridPanel.SelectedUser;

            if (userRow == null)
            {
                // no device being selected
                EditUserButton.Enabled      = false;
                DeleteUserButton.Enabled    = false;
                ResetPasswordButton.Enabled = false;
            }
            else
            {
                EditUserButton.Enabled      = true;
                DeleteUserButton.Enabled    = true;
                ResetPasswordButton.Enabled = true;
            }

            // UpdatePanel UpdateMode must be set to "conditional"
            // Calling UpdatePanel.Update() will force the client to refresh the screen
            UserGridPanel.RefreshCurrentPage();
            SearchUpdatePanel.Update();
        }
コード例 #12
0
        protected void OnUpdateHistoryNavigate(object sender, HistoryEventArgs e)
        {
            int pageNumber, pageSize;

            string[] pagerData = e.EntryName.Split('|');

            if (pagerData.Length >= 2 && int.TryParse(pagerData[0], out pageNumber) && int.TryParse(pagerData[1], out pageSize) && Mession.SearchData != null)
            {
                // use existing page...
                Pager.CurrentPageIndex = pageNumber;

                // and existing page size...
                Pager.PageSize = pageSize;

                // count...
                Pager.Count = Mession.SearchData.DefaultView.Count;

                // bind existing search
                SearchBindData(false);

                // use existing search data...
                SearchUpdatePanel.Update();
            }
        }
コード例 #13
0
 public void Refresh()
 {
     SearchResultGridView1.RefreshCurrentPage();
     SearchUpdatePanel.Update();
 }
コード例 #14
0
 public void Refresh()
 {
     SearchUpdatePanel.Update();
     StudyIntegrityQueueItemList.RefreshCurrentPage();
 }
コード例 #15
0
 public void UpdateUI()
 {
     LoadData();
     SearchUpdatePanel.Update();
     //ServerPartitionGridPanel.Refresh();
 }
コード例 #16
0
 public void UpdateUI()
 {
     AlertsGridPanel.Refresh();
     SearchUpdatePanel.Update();
 }
コード例 #17
0
 public void Refresh()
 {
     workQueueItemList.RefreshCurrentPage();
     SearchUpdatePanel.Update();
 }
コード例 #18
0
ファイル: SearchPanel.ascx.cs プロジェクト: hksonngan/Xian
        private void SetupChildControls()
        {
            foreach (StudyStatusEnum s in  StudyStatusEnum.GetAll())
            {
                StatusListBox.Items.Add(new ListItem {
                    Text = ServerEnumDescription.GetLocalizedDescription(s), Value = s.Lookup
                });
            }

            ClearToStudyDateButton.Attributes["onclick"]   = ScriptHelper.ClearDate(ToStudyDate.ClientID, ToStudyDateCalendarExtender.ClientID);
            ClearFromStudyDateButton.Attributes["onclick"] = ScriptHelper.ClearDate(FromStudyDate.ClientID, FromStudyDateCalendarExtender.ClientID);
            ToStudyDate.Attributes["OnChange"]             = ScriptHelper.CheckDateRange(FromStudyDate.ClientID, ToStudyDate.ClientID, ToStudyDate.ClientID, ToStudyDateCalendarExtender.ClientID, "To Date must be greater than From Date");
            FromStudyDate.Attributes["OnChange"]           = ScriptHelper.CheckDateRange(FromStudyDate.ClientID, ToStudyDate.ClientID, FromStudyDate.ClientID, FromStudyDateCalendarExtender.ClientID, "From Date must be less than To Date");

            GridPagerTop.InitializeGridPager(SR.GridPagerStudySingleItem, SR.GridPagerStudyMultipleItems, StudyListGridView.TheGrid,
                                             () => StudyListGridView.ResultCount, ImageServerConstants.GridViewPagerPosition.Top);
            StudyListGridView.Pager = GridPagerTop;

            ConfirmStudySearchMessageBox.Confirmed += delegate
            {
                StudyListGridView.DataBindOnPreRender =
                    true;
                StudyListGridView.Refresh();
                if (SearchUpdatePanel.UpdateMode ==
                    UpdatePanelUpdateMode.Conditional)
                {
                    SearchUpdatePanel.Update();
                }
            };
            ConfirmStudySearchMessageBox.Cancel += delegate
            {
                StudyListGridView.DataBindOnPreRender = false;
            };

            RestoreMessageBox.Confirmed += delegate(object data)
            {
                if (data is IList <Study> )
                {
                    var studies = data as IList <Study>;
                    foreach (Study study in studies)
                    {
                        _controller.RestoreStudy(study);
                    }
                }
                else if (data is IList <StudySummary> )
                {
                    var studies = data as IList <StudySummary>;
                    foreach (StudySummary study in studies)
                    {
                        _controller.RestoreStudy(study.TheStudy);
                    }
                }
                else if (data is Study)
                {
                    var study = data as Study;
                    _controller.RestoreStudy(study);
                }

                DataBind();
                SearchUpdatePanel.Update();                 // force refresh
            };

            StudyListGridView.DataSourceCreated += delegate(StudyDataSource source)
            {
                source.Partition   = ServerPartition;
                source.DateFormats = ToStudyDateCalendarExtender.Format;

                if (!String.IsNullOrEmpty(PatientId.Text))
                {
                    source.PatientId = SearchHelper.TrailingWildCard(PatientId.Text);
                }
                if (!String.IsNullOrEmpty(PatientName.Text))
                {
                    source.PatientName = SearchHelper.NameWildCard(PatientName.Text);
                }
                if (!String.IsNullOrEmpty(AccessionNumber.Text))
                {
                    source.AccessionNumber = SearchHelper.TrailingWildCard(AccessionNumber.Text);
                }
                if (!String.IsNullOrEmpty(ToStudyDate.Text))
                {
                    source.ToStudyDate = ToStudyDate.Text;
                }
                if (!String.IsNullOrEmpty(FromStudyDate.Text))
                {
                    source.FromStudyDate = FromStudyDate.Text;
                }
                if (!String.IsNullOrEmpty(StudyDescription.Text))
                {
                    source.StudyDescription = SearchHelper.LeadingAndTrailingWildCard(StudyDescription.Text);
                }
                if (!String.IsNullOrEmpty(ReferringPhysiciansName.Text))
                {
                    source.ReferringPhysiciansName = SearchHelper.NameWildCard(ReferringPhysiciansName.Text);
                }
                if (!String.IsNullOrEmpty(ResponsiblePerson.Text))
                {
                    source.ResponsiblePerson = SearchHelper.NameWildCard(ResponsiblePerson.Text);
                }
                if (!String.IsNullOrEmpty(ResponsibleOrganization.Text))
                {
                    source.ResponsibleOrganization = SearchHelper.NameWildCard(ResponsibleOrganization.Text);
                }

                if (ModalityListBox.SelectedIndex > -1)
                {
                    var modalities = new List <string>();
                    foreach (ListItem item in ModalityListBox.Items)
                    {
                        if (item.Selected)
                        {
                            modalities.Add(item.Value);
                        }
                    }
                    source.Modalities = modalities.ToArray();
                }

                if (StatusListBox.SelectedIndex > -1)
                {
                    var statuses = new List <string>();
                    foreach (ListItem status in StatusListBox.Items)
                    {
                        if (status.Selected)
                        {
                            statuses.Add(status.Value);
                        }
                    }
                    source.Statuses = statuses.ToArray();
                }
            };

            //Set Roles
            ViewImagesButton.Roles            = AuthorityTokens.Study.ViewImages;
            ViewStudyDetailsButton.Roles      = AuthorityTokens.Study.View;
            MoveStudyButton.Roles             = AuthorityTokens.Study.Move;
            DeleteStudyButton.Roles           = AuthorityTokens.Study.Delete;
            RestoreStudyButton.Roles          = AuthorityTokens.Study.Restore;
            AssignAuthorityGroupsButton.Roles = ClearCanvas.ImageServer.Enterprise.Authentication.AuthorityTokens.Study.EditDataAccess;
        }