protected void LabOrderDetailInfoFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { System.Threading.Thread.Sleep(1000); // set the result alert e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Lab Order Detail updated successfully!", e.Exception); }
protected void AllDrugGridView_RowDeleted(object sender, GridViewDeletedEventArgs e) { System.Threading.Thread.Sleep(1000); // display the result alert e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Drug deleted successfully!", e.Exception); }
protected void PrescriptionDetailsFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { System.Threading.Thread.Sleep(1000); // display the result alert e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Prescription updated successfully!", e.Exception); }
protected void AllMedicalServiceGroupsGridView_RowDeleted(object sender, GridViewDeletedEventArgs e) { System.Threading.Thread.Sleep(1000); // set the result alert e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Medical Service Group deleted successfully!", e.Exception); }
protected void PrescriptionFormView_ItemDeleted(object sender, FormViewDeletedEventArgs e) { // rebind the data for the prescription detail grid view PrescriptionDetailsGridView.DataBind(); // display the result alert e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Prescription deleted successfully!", e.Exception); }
protected void HospitalDetailsFormView_ItemDeleted(object sender, FormViewDeletedEventArgs e) { if (e.Exception == null) { Session[RedirectSuccessConstants.RedirectSuccessDeleteHospital] = "yes"; Response.Redirect("/UserAccess/Hospitals/ViewAllHospitals.aspx"); } else { e.ExceptionHandled = ResultAlert.SetResultAlertReturn("error", e.Exception); } }
protected void ICDDetailsFormView_ItemDeleted(object sender, FormViewDeletedEventArgs e) { if (e.Exception == null) { Session[RedirectSuccessConstants.RedirectSuccessDeleteICD] = "yes"; Response.Redirect("/UserAccess/ICDs/ViewAllICD.aspx"); } else { e.ExceptionHandled = ResultAlert.SetResultAlertReturn("ICD deleted successfully!", e.Exception); } }
protected void VisitDetailsFormView_ItemDeleted(object sender, FormViewDeletedEventArgs e) { if (e.Exception == null) { Session[RedirectSuccessConstants.RedirectSuccessDeleteVisit] = "yes"; Response.Redirect("/UserAccess/Visits/ViewVisitsFromPatient.aspx?PatientID=" + PatientID); } else { // print the result alert e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Visit deleted successfully!", e.Exception); } }
protected void DrugDetailsFormView_ItemDeleted(object sender, FormViewDeletedEventArgs e) { System.Threading.Thread.Sleep(1000); if (e.Exception == null) { Session[RedirectSuccessConstants.RedirectSuccessDeleteDrug] = "yes"; Response.Redirect("/UserAccess/Drugs/ViewAllDrugs.aspx"); } else { e.ExceptionHandled = ResultAlert.SetResultAlertReturn("ICD deleted successfully!", e.Exception); } }
protected void PrescriptionDetailsFormView_ItemDeleted(object sender, FormViewDeletedEventArgs e) { // redirect to the view visit detail page if (e.Exception == null) { Session[RedirectSuccessConstants.RedirectSuccessDeletePrescription] = "yes"; Response.Redirect("/UserAccess/Visits/ViewVisitDetails.aspx?ID=" + VisitID.ToString()); } else { // display the result alert e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Prescription deleted successfully!", e.Exception); } }
protected void MedicalServiceDetailsFormView_ItemDeleted(object sender, FormViewDeletedEventArgs e) { System.Threading.Thread.Sleep(1000); if (e.Exception == null) { Session[RedirectSuccessConstants.RedirectSuccessDeleteMedicalService] = "yes"; Response.Redirect("/UserAccess/MedicalServices/ViewAllMedicalServices.aspx"); } else { e.ExceptionHandled = ResultAlert.SetResultAlertReturn("error", e.Exception); } }
protected void AddPatientFormView_ItemInserted(object sender, FormViewInsertedEventArgs e) { // redirect to view patient detail if successful if (e.Exception == null) { Session[RedirectSuccessConstants.RedirectSuccessAddPatient] = "yes"; Response.Redirect("/UserAccess/Patients/ViewPatientDetails.aspx?ID=" + InsertedPatient.ID); } else { // display the result alert e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Patient inserted successfully!", e.Exception); } }
protected void PrescriptionDetailInfoFormView_ItemDeleted(object sender, FormViewDeletedEventArgs e) { System.Threading.Thread.Sleep(1000); if (e.Exception == null) { Session[RedirectSuccessConstants.RedirectSuccessDeletePrescriptionDetail] = "yes"; Response.Redirect("/UserAccess/Visits/ViewVisitDetails.aspx?ID=" + VisitID.ToString()); } else { // print the result alert e.ExceptionHandled = ResultAlert.SetResultAlertReturn("error", e.Exception); } }
protected void AddNewDrugGroupFormView_ItemInserted(object sender, FormViewInsertedEventArgs e) { System.Threading.Thread.Sleep(1000); if (e.Exception == null) { Session[RedirectSuccessConstants.RedirectSuccessAddDrugGroup] = "yes"; Response.Redirect("/UserAccess/Drugs/ViewAllDrugGroups.aspx"); } else { e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Drug Group inserted successfully!", e.Exception); } // display the result alert }
protected void AddNewDrugFormView_ItemInserted(object sender, FormViewInsertedEventArgs e) { System.Threading.Thread.Sleep(1000); // redirect to view patient detail if successful if (e.Exception == null) { Session[RedirectSuccessConstants.RedirectSuccessAddDrug] = "yes"; Response.Redirect("/UserAccess/Drugs/ViewDrugDetails.aspx?ID=" + insertedDrug.ID); } else { // display the result alert e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Drug inserted successfully!", e.Exception); } }
protected void AddVisitFormView_ItemInserted(object sender, FormViewInsertedEventArgs e) { System.Threading.Thread.Sleep(1000); // redirect if success if (e.Exception == null) { Session[RedirectSuccessConstants.RedirectSuccessAddVisit] = "yes"; Response.Redirect("ViewVisitsFromPatient.aspx?PatientID=" + Request.QueryString["PatientID"]); } else { // print the result alert e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Visit inserted successfully!", e.Exception); } }
protected void AddLabOrderDetailFormView_ItemInserted(object sender, FormViewInsertedEventArgs e) { System.Threading.Thread.Sleep(1000); // redirect if successfull if (e.Exception == null) { Session[RedirectSuccessConstants.RedirectSuccessAddLabOrderDetail] = "yes"; var visit = new DataClassesDataContext().Visits.Where(v => v.LabOrders.First().ID == long.Parse(Request.QueryString["LabOrderID"])).First(); Response.Redirect("/UserAccess/Visits/ViewVisitDetails.aspx?ID=" + visit.ID.ToString()); } else { e.ExceptionHandled = ResultAlert.SetResultAlertReturn("error", e.Exception); } }
protected void AddLabOrderFormView_ItemInserted(object sender, FormViewInsertedEventArgs e) { System.Threading.Thread.Sleep(1000); if (e.Exception == null) { // set the session value Session[RedirectSuccessConstants.RedirectSuccessAddLabOrder] = "yes"; Response.Redirect("/UserAccess/Visits/ViewVisitDetails.aspx?ID=" + Request.QueryString["VisitID"]); } else { e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Lab Order inserted successfully!", e.Exception); } }
protected void AddPrescriptionFormView_ItemInserted(object sender, FormViewInsertedEventArgs e) { System.Threading.Thread.Sleep(1000); if (e.Exception != null) { // print the exception e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Prescription inserted successfully!", e.Exception); } else { // redirect to view visit details page Session[RedirectSuccessConstants.RedirectSuccessAddNewPrescription] = "yes"; Response.Redirect("/UserAccess/Visits/ViewVisitDetails.aspx?ID=" + Request.QueryString["VisitID"]); } }
protected void AddPrescriptionDetailFormView_ItemInserted(object sender, FormViewInsertedEventArgs e) { System.Threading.Thread.Sleep(1000); // redirect if successful if (e.Exception == null) { // redirect Session["RedirectSuccessAddPrescriptionDetail"] = "yes"; var visit = new DataClassesDataContext().Visits.Where(v => v.Prescriptions.First().ID == long.Parse(Request.QueryString["PrescriptionID"])).First(); Response.Redirect("/UserAccess/Visits/ViewVisitDetails.aspx?ID=" + visit.ID.ToString()); } else { // set the result alert e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Prescription Detail inserted successfully!", e.Exception); } }
protected void AllPatientsGridview_RowDeleted(object sender, GridViewDeletedEventArgs e) { // Display whether the delete operation succeeded. ResultAlertTop.SetResultAlertReturn("Patient deleted successfully!", e.Exception); e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Patient deleted successfully!", e.Exception); }
protected void VisitDetailsFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Visit updated successfully!", e.Exception); }
protected void ICDDetailsFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { // display the result alert e.ExceptionHandled = ResultAlert.SetResultAlertReturn("ICD updated successfully!", e.Exception); }
protected void MedicalServiceDetailsFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { System.Threading.Thread.Sleep(1000); e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Medical Service updated successfully!", e.Exception); }
protected void AllICDGridView_RowDeleted(object sender, GridViewDeletedEventArgs e) { // display the result alert e.ExceptionHandled = ResultAlert.SetResultAlertReturn("ICD deleted successfully", e.Exception); }
protected void AllMedicalServicesGridView_RowDeleted(object sender, GridViewDeletedEventArgs e) { e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Medical Service deleted successfully!", e.Exception); }
protected void AllDrugGroupsGridView_RowUpdated(object sender, GridViewUpdatedEventArgs e) { System.Threading.Thread.Sleep(1000); // set the result alert ResultAlert.SetResultAlertReturn("Drug Group updated successfully!", e.Exception); }
protected void VisitsFromPatientGridView_RowDeleted(object sender, GridViewDeletedEventArgs e) { e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Visit deleted successfully", e.Exception); }