public void InsertSpecimenTubeAttach(SpecimenTubeAttach specimenTubeAttach)
 {
     var result = InsertEntity<SpecimenTubeAttach>(specimenTubeAttach);
        if (result)
        {
        log.Info(string.Format("ConcreteSpecimen {0} to Tube {1}  attached", specimenTubeAttach.ConcreteSpecimen.Id, specimenTubeAttach.ConcreteTube.Id));
        }
 }
 public void DeleteSpecimenTubeAttach(SpecimenTubeAttach specimenTubeAttach)
 {
     var result = DeleteEntity<SpecimenTubeAttach>(specimenTubeAttach);
     if (result)
     {
         log.Info(string.Format("SpecimenTubeAttach {0} attach deleted", specimenTubeAttach.Id));
     }
 }
Exemple #3
0
        public void DeleteSpecimenTubeAttach(SpecimenTubeAttach specimenTubeAttach)
        {
            var result = DeleteEntity <SpecimenTubeAttach>(specimenTubeAttach);

            if (result)
            {
                log.Info(string.Format("SpecimenTubeAttach {0} attach deleted", specimenTubeAttach.Id));
            }
        }
Exemple #4
0
        public void InsertSpecimenTubeAttach(SpecimenTubeAttach specimenTubeAttach)
        {
            var result = InsertEntity <SpecimenTubeAttach>(specimenTubeAttach);

            if (result)
            {
                log.Info(string.Format("ConcreteSpecimen {0} to Tube {1}  attached", specimenTubeAttach.ConcreteSpecimen.Id, specimenTubeAttach.ConcreteTube.Id));
            }
        }
Exemple #5
0
 public void AddSpecimenTubeAttach(DtoSpecimenTubeAttach dtoSpecimenTubeAttach)
 {
     var specimenTubeAttach = new SpecimenTubeAttach()
     {
         ConcreteSpecimen = new ConcreteSpecimen()
         {
             Id = dtoSpecimenTubeAttach.ConcreteSpecimen.Id
         },
         ConcreteTube = new ConcreteTube()
         {
             Id = dtoSpecimenTubeAttach.ConcreteTube.Id
         }
     };
     SpecimenTubeAttachMethods.Instance.InsertSpecimenTubeAttach(specimenTubeAttach);
 }
Exemple #6
0
 public void DeleteSpecimenTubeAttach(string orderNumber)
 {
     SpecimenTubeAttach[] specimenTubeAttaches = SpecimenTubeAttachMethods.Instance.GetSpecimenTubeAttachesByOrder(orderNumber);
     foreach (var testTube in specimenTubeAttaches)
     {
         var specimenTubeAttach = new SpecimenTubeAttach()
         {
             Id = testTube.Id
         };
         SpecimenTubeAttachMethods.Instance.DeleteSpecimenTubeAttach(specimenTubeAttach);
     }
 }