예제 #1
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));
        }
 }
예제 #2
0
 public void DeleteSpecimenTubeAttach(SpecimenTubeAttach specimenTubeAttach)
 {
     var result = DeleteEntity<SpecimenTubeAttach>(specimenTubeAttach);
     if (result)
     {
         log.Info(string.Format("SpecimenTubeAttach {0} attach deleted", specimenTubeAttach.Id));
     }
 }
예제 #3
0
        public void DeleteSpecimenTubeAttach(SpecimenTubeAttach specimenTubeAttach)
        {
            var result = DeleteEntity <SpecimenTubeAttach>(specimenTubeAttach);

            if (result)
            {
                log.Info(string.Format("SpecimenTubeAttach {0} attach deleted", specimenTubeAttach.Id));
            }
        }
예제 #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));
            }
        }
예제 #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);
 }
예제 #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);
     }
 }