Exemplo n.º 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);
 }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 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);
     }
 }