private void AddPanelOrder() { YellowstonePathology.Business.User.SystemIdentity systemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance; YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapScreeningPanel thinPrepPapScreeningPanel = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapScreeningPanel(); thinPrepPapScreeningPanel.ScreeningType = this.m_ScreeningType; string panelOrderId = MongoDB.Bson.ObjectId.GenerateNewId().ToString(); YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology panelOrderCytology = new YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology(this.m_PanelSetOrderCytology.ReportNo, panelOrderId, panelOrderId, thinPrepPapScreeningPanel, systemIdentity.User.UserId); panelOrderCytology.FromExistingPanelOrder(this.m_InitiatingPanelOrder, this.m_ScreeningType, false, systemIdentity.User.UserId); this.m_PanelSetOrderCytology.PanelOrderCollection.Add(panelOrderCytology); }
private void AddPanelOrder() { YellowstonePathology.Business.User.SystemIdentity systemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance; YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapScreeningPanel thinPrepPapScreeningPanel = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapScreeningPanel(); thinPrepPapScreeningPanel.ScreeningType = this.m_ScreeningType; string panelOrderId = MongoDB.Bson.ObjectId.GenerateNewId().ToString(); YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology panelOrderCytology = new YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology(this.m_PanelSetOrderCytology.ReportNo, panelOrderId, panelOrderId, thinPrepPapScreeningPanel, systemIdentity.User.UserId); panelOrderCytology.FromExistingPanelOrder(this.m_InitiatingPanelOrder, this.m_ScreeningType, false, systemIdentity.User.UserId); this.m_PanelSetOrderCytology.PanelOrderCollection.Add(panelOrderCytology); }
public PanelOrderCytology(string reportNo, string objectId, string panelOrderId, YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapScreeningPanel thinPrepPapScreeningPanel, int orderedById, string orderedByInitials) : base(reportNo, objectId, panelOrderId, thinPrepPapScreeningPanel, orderedById, orderedByInitials) { this.m_ScreeningType = thinPrepPapScreeningPanel.ScreeningType; this.m_Accepted = false; this.m_AcceptedById = 0; this.m_AssignedToId = 0; this.m_Acknowledged = true; this.m_AcknowledgedById = orderedById; this.m_AcknowledgedDate = DateTime.Today; this.m_AcknowledgedTime = DateTime.Now; this.m_ECCCheckPerformed = false; this.m_ScreeningError = false; this.m_QC = thinPrepPapScreeningPanel.IsQC; this.NotifyPropertyChanged(string.Empty); }