private bool IsSampleContainer(IGenericContainer genericContainer)
 {
     if (genericContainer.GetContainerType() == ContainerType.FlowCell ||
         genericContainer.GetContainerType() == ContainerType.BeadChip ||
         genericContainer.GetContainerType() == ContainerType.Plate ||
         genericContainer.GetContainerType() == ContainerType.Tube ||
         genericContainer.GetContainerType() == ContainerType.Box)
     {
         return(true);
     }
     return(false);
 }
 private bool IsStorageContainer(IGenericContainer genericContainer)
 {
     if (genericContainer.GetContainerType() == ContainerType.Box ||
         genericContainer.GetContainerType() == ContainerType.Building ||
         genericContainer.GetContainerType() == ContainerType.Floor ||
         genericContainer.GetContainerType() == ContainerType.Freezer ||
         genericContainer.GetContainerType() == ContainerType.Refrigerator ||
         genericContainer.GetContainerType() == ContainerType.Room ||
         genericContainer.GetContainerType() == ContainerType.Shelf ||
         genericContainer.GetContainerType() == ContainerType.TopLevel ||
         genericContainer.GetContainerType() == ContainerType.Uncontained)
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 3
0
 private void MoveContainer(IGenericContainer moveContainer,
                            IGenericContainer toContainer, int userId)
 {
     // Moves containers into target container. If tocontainer is null
     // the moveContainers is moved out from currect location
     try
     {
         if (toContainer.GetContainerType() == ContainerType.Uncontained)
         {
             toContainer = null;
         }
         // Move the containers.
         ChiasmaDepData.BeginTransaction();
         GenericContainerManager.MoveGenericContainer(moveContainer, toContainer, userId);
         ChiasmaDepData.CommitTransaction();
     }
     catch
     {
         ChiasmaDepData.RollbackTransaction();
         throw;
     }
 }