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