Beispiel #1
0
 /// <summary>
 /// Shows the error message.
 /// </summary>
 /// <param name="ex">The ex.</param>
 void showErrorMessage(ref Exception ex)
 {
     lblError.Text = "An error has occured within IQCARE during processing. Please contact the support team";
     this.isError  = this.divError.Visible = true;
     Application.Logger.EventLogger logger = new Application.Logger.EventLogger();
     logger.LogError(ex);
 }
 /// <summary>
 /// Shows the error message.
 /// </summary>
 /// <param name="ex">The ex.</param>
 private void showErrorMessage(ref Exception ex)
 {
     this.isError = true;
     if (this.Debug)
     {
         lblError.Text = ex.Message + ex.StackTrace + ex.Source;
     }
     else
     {
         lblError.Text = "An error has occured within IQCARE during processing. Please contact the support team.  ";
         this.isError  = this.divError.Visible = true;
         Exception lastError = ex;
         lastError.Data.Add("Domain", "Wards Admission Home");
         try
         {
             Application.Logger.EventLogger logger = new Application.Logger.EventLogger();
             logger.LogError(ex);
         }
         catch
         {
         }
     }
     notifyPopupExtender.Hide();
     this.AdmitPatient.EnableModelDialog(false);
 }
Beispiel #3
0
 /// <summary>
 /// Shows the error message.
 /// </summary>
 /// <param name="ex">The ex.</param>
 void showErrorMessage(ref Exception ex)
 {
     //this.isError = true;
     if (this.Debug)
     {
         lblError.Text = ex.Message + ex.StackTrace + ex.Source;
     }
     else
     {
         lblError.Text         = "An error has occured within IQCARE during processing. Please contact the support team";
         this.divError.Visible = true;
         Exception lastError = ex;
         lastError.Data.Add("Domain", "Payment method administration");
         Application.Logger.EventLogger logger = new Application.Logger.EventLogger();
         logger.LogError(ex);
     }
 }