コード例 #1
0
        private void ClientOrderEditDialog_Loaded(object sender, RoutedEventArgs e)
        {
            if (AuthenticatedUser.Instance.PrimaryClientId == 1134)
            {
                this.TabItemPatientDistribution.Visibility = Visibility.Visible;
            }

            if (string.IsNullOrEmpty(this.m_ClientOrderClone.ReportCopyTo) == false)
            {
                if (string.IsNullOrEmpty(this.m_ClientOrderClone.ReportCopyTo) == false)
                {
                    string[] commaSplit = this.m_ClientOrderClone.ReportCopyTo.Split(',');
                    if (commaSplit.Length == 2)
                    {
                        int physicianid = Convert.ToInt32(commaSplit[1]);
                        int clientId    = Convert.ToInt32(commaSplit[0]);
                        if (this.m_PhysicianClientCollection.Exists(physicianid, clientId) == true)
                        {
                            this.m_SelectedPhysicianClient = this.m_PhysicianClientCollection.Get(physicianid, clientId);
                        }
                    }
                }
                this.NotifyPropertyChanged(string.Empty);
            }
        }
コード例 #2
0
 private void ButtonSetSurgeon_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewPhysicianClient.SelectedItem != null)
     {
         PhysicianClient physicianClient = (PhysicianClient)this.ListViewPhysicianClient.SelectedItem;
         this.SetSelectedPhysicianClient(physicianClient);
         this.NotifyPropertyChanged(string.Empty);
     }
 }
コード例 #3
0
 private void SetSelectedPhysicianClient(PhysicianClient physicianClient)
 {
     this.m_ClientOrderClone.ReportCopyTo = physicianClient.GetIdString();
     if (string.IsNullOrEmpty(this.m_ClientOrderClone.ReportCopyTo) == false)
     {
         string[] commaSplit = this.m_ClientOrderClone.ReportCopyTo.Split(',');
         if (commaSplit.Length == 2)
         {
             int physicianid = Convert.ToInt32(commaSplit[1]);
             int clientId    = Convert.ToInt32(commaSplit[0]);
             if (this.m_PhysicianClientCollection.Exists(physicianid, clientId) == true)
             {
                 this.m_SelectedPhysicianClient = this.m_PhysicianClientCollection.Get(physicianid, clientId);
             }
         }
         this.NotifyPropertyChanged("SelectPhysicianClient");
     }
 }
コード例 #4
0
 private void ButtonClearSurgeon_Click(object sender, RoutedEventArgs e)
 {
     this.m_SelectedPhysicianClient       = null;
     this.m_ClientOrderClone.ReportCopyTo = null;
     this.NotifyPropertyChanged(string.Empty);
 }