示例#1
0
        public YellowstonePathology.Business.Test.OkToUnfinalizeResult IsOkToUnfinalize(YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder)
        {
            YellowstonePathology.Business.Test.OkToUnfinalizeResult result = new Test.OkToUnfinalizeResult();
            result.OK = true;

            if (this.Final == false)
            {
                result.OK      = false;
                result.Message = "Cannot unfinalize this amendment because it is not final.";
            }
            else if (panelSetOrder.TestOrderReportDistributionCollection.HasDistributedItemsAfter(this.FinalTime.Value) == true)
            {
                result.OK = false;
                result.ShowWarningMessage = true;
                result.Message            = "Warning. This amendment has been sent out since it was finaled.  Are you sure you want to unfinal it?";
            }
            return(result);
        }
示例#2
0
        public YellowstonePathology.Business.Test.OkToUnfinalizeResult IsOkToUnfinalize(YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder)
        {
            YellowstonePathology.Business.Test.OkToUnfinalizeResult result = new Test.OkToUnfinalizeResult();
            result.OK = true;

            if (this.Final == false)
            {
                result.OK = false;
                result.Message = "Cannot unfinalize this amendment because it is not final.";
            }
            else if (panelSetOrder.TestOrderReportDistributionCollection.HasDistributedItemsAfter(this.FinalTime.Value) == true)
            {
                result.OK = false;
                result.ShowWarningMessage = true;
                result.Message = "Warning. This amendment has been sent out since it was finaled.  Are you sure you want to unfinal it?";
            }
            return result;
        }