Ejemplo n.º 1
0
        private void AddEditPartitionDialog_OKClicked(ServerPartitionInfo info)
        {
            if (AddEditPartitionDialog.EditMode)
            {
                // Add partition into db and refresh the list
                if (_controller.UpdatePartition(info.Partition, info.GroupsWithDataAccess))
                {
                    UpdateUI();
                }
            }
            else
            {
#if false
                var state = EnterpriseConfigurationBridge.AddServerPartition(new AddServerPartitionRequest
                {
                    AcceptAnyDevice      = info.Partition.AcceptAnyDevice,
                    AcceptLatestReport   = info.Partition.AcceptLatestReport,
                    AeTitle              = info.Partition.AeTitle,
                    AuditDeleteStudy     = info.Partition.AuditDeleteStudy,
                    AutoInsertDevice     = info.Partition.AutoInsertDevice,
                    DefaultRemotePort    = info.Partition.DefaultRemotePort,
                    Description          = info.Partition.Description,
                    DuplicateSopPolicy   = GetDup(info.Partition.DuplicateSopPolicyEnum),
                    Enabled              = info.Partition.Enabled,
                    GroupsWithDataAccess = info.GroupsWithDataAccess,
                    MatchAccessionNumber = info.Partition.MatchAccessionNumber,
                    Port = info.Partition.Port,

                    PartitionFolder        = info.Partition.PartitionFolder,
                    MatchPatientsName      = info.Partition.MatchPatientsName,
                    MatchPatientId         = info.Partition.MatchPatientId,
                    MatchPatientsBirthDate = info.Partition.MatchPatientsBirthDate,
                    MatchIssuerOfPatientId = info.Partition.MatchIssuerOfPatientId,
                    MatchPatientsSex       = info.Partition.MatchPatientsSex
                });
                if (state.ExternalRequestState == ExternalRequestStateEnum.Complete)
                {
                    UpdateUI();
                }
#else
                // Add partition into db and refresh the list
                if (_controller.AddPartition(info.Partition, info.GroupsWithDataAccess))
                {
                    UpdateUI();
                }
#endif
            }
        }
Ejemplo n.º 2
0
 private void AddEditPartitionDialog_OKClicked(ServerPartitionInfo info)
 {
     if (AddEditPartitionDialog.EditMode)
     {
         // Add partition into db and refresh the list
         if (_controller.UpdatePartition(info.Partition, info.GroupsWithAccess))
         {
             UpdateUI();
         }
     }
     else
     {
         // Add partition into db and refresh the list
         if (_controller.AddPartition(info.Partition, info.GroupsWithAccess))
         {
             UpdateUI();
         }
     }
 }
Ejemplo n.º 3
0
 private void AddEditPartitionDialog_OKClicked(ServerPartitionInfo info)
 {
     if (AddEditPartitionDialog.EditMode)
     {
         // Add partition into db and refresh the list
         if (_controller.UpdatePartition(info.Partition, info.GroupsWithAccess))
         {
             UpdateUI();
         }
     }
     else
     {
         // Add partition into db and refresh the list
         if (_controller.AddPartition(info.Partition, info.GroupsWithAccess))
         {
             UpdateUI();
         }
     }
 }
Ejemplo n.º 4
0
        private void AddEditPartitionDialog_OKClicked(ServerPartitionInfo info)
        {
            if (AddEditPartitionDialog.EditMode)
            {
                // Add partition into db and refresh the list
                if (_controller.UpdatePartition(info.Partition, info.GroupsWithDataAccess))
                {
                    UpdateUI();
                }
            }
            else
            {
#if false
	            var state = EnterpriseConfigurationBridge.AddServerPartition(new AddServerPartitionRequest
		            {
			            AcceptAnyDevice = info.Partition.AcceptAnyDevice,
			            AcceptLatestReport = info.Partition.AcceptLatestReport,
			            AeTitle = info.Partition.AeTitle,
			            AuditDeleteStudy = info.Partition.AuditDeleteStudy,
			            AutoInsertDevice = info.Partition.AutoInsertDevice,
			            DefaultRemotePort = info.Partition.DefaultRemotePort,
			            Description = info.Partition.Description,
			            DuplicateSopPolicy = GetDup(info.Partition.DuplicateSopPolicyEnum),
			            Enabled = info.Partition.Enabled,
			            GroupsWithDataAccess = info.GroupsWithDataAccess,
			            MatchAccessionNumber = info.Partition.MatchAccessionNumber,
			            Port = info.Partition.Port,

			            PartitionFolder = info.Partition.PartitionFolder,
			            MatchPatientsName = info.Partition.MatchPatientsName,
			            MatchPatientId = info.Partition.MatchPatientId,
			            MatchPatientsBirthDate = info.Partition.MatchPatientsBirthDate,
			            MatchIssuerOfPatientId = info.Partition.MatchIssuerOfPatientId,
			            MatchPatientsSex = info.Partition.MatchPatientsSex
		            });
				if (state.ExternalRequestState == ExternalRequestStateEnum.Complete )
					UpdateUI();
#else

	// Add partition into db and refresh the list
                if (_controller.AddPartition(info.Partition, info.GroupsWithDataAccess))
                {
                    UpdateUI();
                }
#endif
            }
        }