Ejemplo n.º 1
0
 private void ButtonAddToClient_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListBoxClientSelection.SelectedItem != null)
     {
         YellowstonePathology.Business.Client.Model.Client client = (YellowstonePathology.Business.Client.Model.Client) this.ListBoxClientSelection.SelectedItem;
         if (this.m_PhysicianClientView.ClientExists(client.ClientId) == false)
         {
             string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
             YellowstonePathology.Business.Domain.PhysicianClient physicianClient = new Business.Domain.PhysicianClient(objectId, objectId, this.m_Physician.PhysicianId, this.m_Physician.ObjectId, client.ClientId);
             YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(physicianClient, this.m_ParentWindow);
             this.m_PhysicianClientView.Clients.Add(client);
         }
     }
 }
Ejemplo n.º 2
0
 private void ButtonAddToClient_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListBoxAvailableProviders.SelectedItem != null)
     {
         YellowstonePathology.Business.Domain.Physician physician = (YellowstonePathology.Business.Domain.Physician) this.ListBoxAvailableProviders.SelectedItem;
         if (this.m_ClientPhysicianView.PhysicianExists(physician.PhysicianId) == false)
         {
             string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
             YellowstonePathology.Business.Domain.PhysicianClient physicianClient = new Business.Domain.PhysicianClient(objectId, objectId, physician.PhysicianId, physician.ObjectId, this.m_Client.ClientId);
             YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(physicianClient, this);
             this.m_ClientPhysicianView.Physicians.Add(physician);
             this.NotifyPropertyChanged("Physicians");
         }
     }
 }
Ejemplo n.º 3
0
 private void ButtonCopyStVPhysicians_Click(object sender, RoutedEventArgs e)
 {
     if (this.m_SystemIdentity.User.UserId == 5001 || this.m_SystemIdentity.User.UserId == 5091)
     {
         Business.Domain.PhysicianCollection physicianCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysiciansByClientIdV2(558);
         NotifyPropertyChanged("PhysicianCollection");
         foreach (YellowstonePathology.Business.Domain.Physician physician in physicianCollection)
         {
             if (this.m_ClientPhysicianView.PhysicianExists(physician.PhysicianId) == false)
             {
                 string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
                 YellowstonePathology.Business.Domain.PhysicianClient physicianClient = new Business.Domain.PhysicianClient(objectId, objectId, physician.PhysicianId, physician.ObjectId, this.m_Client.ClientId);
                 YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(physicianClient, this);
                 this.m_ClientPhysicianView.Physicians.Add(physician);
                 this.AddDistribution(physicianClient);
                 this.NotifyPropertyChanged("Physicians");
             }
         }
     }
 }
Ejemplo n.º 4
0
 private void ButtonAddToClient_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListBoxAvailableProviders.SelectedItem != null)
     {
         YellowstonePathology.Business.Domain.Physician physician = (YellowstonePathology.Business.Domain.Physician)this.ListBoxAvailableProviders.SelectedItem;
         if (this.m_ClientPhysicianView.PhysicianExists(physician.PhysicianId) == false)
         {
             string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
             YellowstonePathology.Business.Domain.PhysicianClient physicianClient = new Business.Domain.PhysicianClient(objectId, objectId, physician.PhysicianId, physician.ObjectId, this.m_Client.ClientId);
             YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(physicianClient, this);
             this.m_ClientPhysicianView.Physicians.Add(physician);
             this.NotifyPropertyChanged("Physicians");
         }
     }
 }
Ejemplo n.º 5
0
 private void ButtonAddToClient_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListBoxClientSelection.SelectedItem != null)
     {
         YellowstonePathology.Business.Client.Model.Client client = (YellowstonePathology.Business.Client.Model.Client)this.ListBoxClientSelection.SelectedItem;
         if (this.m_PhysicianClientView.ClientExists(client.ClientId) == false)
         {
             string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
             YellowstonePathology.Business.Domain.PhysicianClient physicianClient = new Business.Domain.PhysicianClient(objectId, objectId, this.m_Physician.PhysicianId, this.m_Physician.ObjectId, client.ClientId);
             YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(physicianClient, this.m_ParentWindow);
             this.m_PhysicianClientView.Clients.Add(client);
         }
     }
 }