Beispiel #1
0
    protected void btnAddReport_Click(object sender, EventArgs e)
    {
        string appId     = (string)ViewState["appId"];
        string diagnosis = txtDiagnosis.Text;
        string therapy   = txtTherapy.Text;
        string remark    = txtRemark.Text;
        bool   success   = DBUtils.AttemptSaveReport(diagnosis, therapy, remark, appId);

        if (success)
        {
            Response.Redirect("~/Appointments/AppointmentDetails.aspx?appId=" + appId, false);
            Context.ApplicationInstance.CompleteRequest();
        }
        else
        {
            lblError.Text = MSG_ERROR_ADDING_REPORT;
        }
    }