Beispiel #1
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     try
     {
         if (checkRequiredFieldsPwP() == true)
         {
             if (Convert.ToInt32(Session["PatientVisitId"]) == 0)
             {
                 //Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction99", "alert('Triage Information has not been entered. Please fill in Triage information first.');", true);
                 ScriptManager.RegisterStartupScript(this, this.GetType(), "CallMyFunction99", "alert('Triage Information has not been entered. Please fill in Triage information first.');", true);
             }
             else
             {
                 //Hashtable HT = PwPHT();
                 PwPManager.SaveUpdatePwP(PwPHT(), getCheckBoxListItemValues(cblHighRisk), getCheckBoxListItemValues(cblTransitionPreparation), getCheckBoxListItemValues(cblReferredTo), getCheckBoxListItemValues(cblCounselling));
                 //Page.ClientScript.RegisterStartupScript(this.GetType(), "PwPSaveUpdateRecord", "alert('Data on Prevention with Positives tab saved successfully.');", true);
                 ScriptManager.RegisterStartupScript(this, this.GetType(), "PwPSaveUpdateRecord", "alert('Data on Prevention with Positives tab saved successfully.');", true);
             }
         }
     }
     catch (Exception ex)
     {
         //Page.ClientScript.RegisterStartupScript(this.GetType(), "PwPSaveUpdateError", "alert('Error encountered. Please contact the system administrator');", true);
         ScriptManager.RegisterStartupScript(this, this.GetType(), "PwPSaveUpdateError", "alert('Error encountered. Please contact the system administrator');", true);
     }
 }