public GenericSpecimenPath(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail, ClientOrderDetailWizardModeEnum clientOrderDetailWizardMode) { this.m_ClientOrder = clientOrder; this.m_ClientOrderDetail = clientOrderDetail; this.m_ClientOrderDetailWizardMode = clientOrderDetailWizardMode; if (this.m_ClientOrderDetailWizardMode == ClientOrderDetailWizardModeEnum.AddNew) { this.m_ClientOrderDetail.OrderType = "Other"; } YellowstonePathology.Business.Persistence.ObjectCloner objectCloner = new Business.Persistence.ObjectCloner(); this.m_ClientOrderDetailClone = (YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail)objectCloner.Clone(this.m_ClientOrderDetail); }
public GenericSpecimenPath(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail, ClientOrderDetailWizardModeEnum clientOrderDetailWizardMode) { this.m_ClientOrder = clientOrder; this.m_ClientOrderDetail = clientOrderDetail; this.m_ClientOrderDetailWizardMode = clientOrderDetailWizardMode; if (this.m_ClientOrderDetailWizardMode == ClientOrderDetailWizardModeEnum.AddNew) { this.m_ClientOrderDetail.OrderType = "Other"; } YellowstonePathology.Business.Persistence.ObjectCloner objectCloner = new Business.Persistence.ObjectCloner(); this.m_ClientOrderDetailClone = (YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail)objectCloner.Clone(this.m_ClientOrderDetail); }
public PlacentaSpecimenPath(YellowstonePathology.Business.ClientOrder.Model.SurgicalClientOrder clientOrder, YellowstonePathology.Business.ClientOrder.Model.PlacentaClientOrderDetail clientOrderDetail, ClientOrderDetailWizardModeEnum clientOrderDetailWizardMode, YellowstonePathology.Business.Persistence.ObjectTracker objectTracker) { this.m_ClientOrder = clientOrder; this.m_ClientOrderDetail = clientOrderDetail; this.m_ClientOrderDetailWizardMode = clientOrderDetailWizardMode; this.m_ObjectTracker = objectTracker; if (this.m_ClientOrderDetailWizardMode == ClientOrderDetailWizardModeEnum.AddNew) { this.m_ClientOrderDetail.OrderType = "Routine Surgical Pathology"; } YellowstonePathology.Business.Persistence.ObjectCloner objectCloner = new Business.Persistence.ObjectCloner(); this.m_ClientOrderDetailClone = (YellowstonePathology.Business.ClientOrder.Model.PlacentaClientOrderDetail)objectCloner.Clone(this.m_ClientOrderDetail); }
public PlacentaSpecimenPath(YellowstonePathology.Business.ClientOrder.Model.SurgicalClientOrder clientOrder, YellowstonePathology.Business.ClientOrder.Model.PlacentaClientOrderDetail clientOrderDetail, ClientOrderDetailWizardModeEnum clientOrderDetailWizardMode, YellowstonePathology.Business.Persistence.ObjectTracker objectTracker) { this.m_ClientOrder = clientOrder; this.m_ClientOrderDetail = clientOrderDetail; this.m_ClientOrderDetailWizardMode = clientOrderDetailWizardMode; this.m_ObjectTracker = objectTracker; if (this.m_ClientOrderDetailWizardMode == ClientOrderDetailWizardModeEnum.AddNew) { this.m_ClientOrderDetail.OrderType = "Routine Surgical Pathology"; } YellowstonePathology.Business.Persistence.ObjectCloner objectCloner = new Business.Persistence.ObjectCloner(); this.m_ClientOrderDetailClone = (YellowstonePathology.Business.ClientOrder.Model.PlacentaClientOrderDetail)objectCloner.Clone(this.m_ClientOrderDetail); }
public Rules.MethodResult HaveResultsBeenSet(AccessionOrder accessionOrder) { YellowstonePathology.Business.Persistence.ObjectCloner objectCloner = new Business.Persistence.ObjectCloner(); object clone = objectCloner.Clone(this); YellowstonePathology.Business.Persistence.DocumentId documentId = new Business.Persistence.DocumentId(clone, this); YellowstonePathology.Business.Persistence.DocumentUpdate document = new Business.Persistence.DocumentUpdate(documentId); Rules.MethodResult result = new Rules.MethodResult(); this.CheckResults(accessionOrder, clone); if(document.IsDirty() == true) { result.Success = false; result.Message = "Results have not been set."; } return result; }