예제 #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            try
            {
                //to save medical notes and known allergies in patient table and
                //to save appointment notes in appointment table
                int rtn = objCD.saveDiagnosis(Int32.Parse(txtAppID.Text.Trim()), Int32.Parse(txtPatientID.Text.Trim()), txtMedicalNotes.Text.Trim(), txtAllergies.Text.Trim(), txtApptNotes.Text.Trim(), Convert.ToInt16(cmbAppStatus.SelectedValue), txtDischarge.Text.Trim());

                if (rtn == 1)
                {
                    ShowStatus(1, "Record succesfully updated");
                }
                else if (rtn == -1)
                {
                    ShowStatus(0, "Some error occurred... Record cannot be added.");
                }
                getConsultationDetails();
            }
            catch (Exception ex)
            {
                CommonLogger.Info(ex.ToString());
            }
        }