Beispiel #1
0
        public bool SetAndPost(Business.Test.AccessionOrder ao, string reportNo)
        {
            bool result = true;

            YellowstonePathology.Business.Billing.Model.BillableObject billableObject = Business.Billing.Model.BillableObjectFactory.GetBillableObject(ao, reportNo);
            YellowstonePathology.Business.Rules.MethodResult           setResult      = billableObject.Set();
            if (setResult.Success == false)
            {
                Console.WriteLine(setResult.Message);
                result = false;
            }
            else
            {
                YellowstonePathology.Business.Rules.MethodResult postResult = billableObject.Post();
                if (postResult.Success == false)
                {
                    Console.WriteLine(postResult.Message);
                    result = false;
                }
            }
            return(result);
        }
Beispiel #2
0
 private void ButtonPost_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Billing.Model.BillableObject billableObject = Business.Billing.Model.BillableObjectFactory.GetBillableObject(this.m_AccessionOrder, this.m_ReportNo);
     YellowstonePathology.Business.Rules.MethodResult           methodResult   = billableObject.Post();
     if (methodResult.Success == false)
     {
         MessageBox.Show(methodResult.Message);
     }
 }