Exemplo n.º 1
0
        public ResultControl(YellowstonePathology.Business.Test.PanelSetOrder testOrder,
                             YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_TestOrder = testOrder;
            this.m_ControlsNotDisabledOnFinal  = new List <FrameworkElement>();
            this.m_ControlsNotEnabledOnUnFinal = new List <FrameworkElement>();
            YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = accessionOrder.AmendmentCollection.GetAmendmentsForReport(testOrder.ReportNo);

            this.m_DisableRequired = false;
            if (accessionOrder.AccessionLock.IsLockAquiredByMe == false)
            {
                this.m_DisableRequired = true;
            }
            else if (this.m_TestOrder.Final == true)
            {
                if (amendmentCollection.HasOpenAmendment() == true)
                {
                    this.m_DisableRequired = false;
                }
                else if (this.m_TestOrder.Distribute == false)
                {
                    this.m_DisableRequired = true;
                }
                else if (this.m_TestOrder.TestOrderReportDistributionCollection.HasDistributedItems())
                {
                    this.m_DisableRequired = true;
                }
            }

            this.Loaded += ResultControl_Loaded;
        }
Exemplo n.º 2
0
 public void SetAccess()
 {
     if (this.m_AccessionOrder.AccessionLock.IsLockAquired == true)
     {
         if (this.PanelSetOrderLeukemiaLymphoma.Final == true)
         {
             YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(this.PanelSetOrderLeukemiaLymphoma.ReportNo);
             if (amendmentCollection.HasOpenAmendment() == true)
             {
                 this.IsWorkspaceEnabled = true;
             }
             else
             {
                 this.IsWorkspaceEnabled = false;
             }
         }
         else
         {
             this.IsWorkspaceEnabled = true;
         }
     }
     else
     {
         this.IsWorkspaceEnabled = false;
     }
 }