Ejemplo n.º 1
0
        private void buttonDCUpdate_Click(object sender, EventArgs e)
        {
            if (dataViewDC.SelectedRows.Count > 0)
            {
                int dcID = Convert.ToInt32(dataViewDC.SelectedRows[0].Cells[0].Value);
                DischargeCertificate updateDC = DischargeCertificate.GetDC(dcID);
                FormDCDetail         formDCD  = new FormDCDetail(updateDC, "edit");
                formDCD.ShowDialog();

                refreshDataViewDC();
            }
        }
Ejemplo n.º 2
0
        //Add a new discharged certificate
        private void buttonDischargeCert_Click(object sender, EventArgs e)
        {
            if (dataViewPatient.SelectedRows.Count > 0)
            {
                int patientID = Convert.ToInt32(dataViewPatient.SelectedRows[0].Cells[0].Value);
                //Current user
                int staffID = loginStaff.StaffID;

                if (HospitalizationCertificate.IsPatientHadHC(patientID))
                {
                    FormDCDetail formDCD = new FormDCDetail(staffID, patientID);
                    formDCD.ShowDialog();
                }
                else
                {
                    MessageBox.Show("Bệnh nhân chưa nhập viện", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
            }
        }
Ejemplo n.º 3
0
        //Add a new discharged certificate
        private void buttonDischargeCert_Click(object sender, EventArgs e)
        {
            if (dataViewPatient.SelectedRows.Count > 0)
            {
                int patientID = Convert.ToInt32(dataViewPatient.SelectedRows[0].Cells[0].Value);
                //Current user
                int staffID = loginStaff.StaffID;

                if (HospitalizationCertificate.IsPatientHadHC(patientID))
                {
                    FormDCDetail formDCD = new FormDCDetail(staffID, patientID);
                    formDCD.ShowDialog();
                }
                else
                {
                    MessageBox.Show("Bệnh nhân chưa nhập viện", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
            }

        }
Ejemplo n.º 4
0
        private void buttonDCUpdate_Click(object sender, EventArgs e)
        {
            if (dataViewDC.SelectedRows.Count > 0)
            {
                int dcID = Convert.ToInt32(dataViewDC.SelectedRows[0].Cells[0].Value);
                DischargeCertificate updateDC = DischargeCertificate.GetDC(dcID);
                FormDCDetail formDCD = new FormDCDetail(updateDC, "edit");
                formDCD.ShowDialog();

                refreshDataViewDC();
            }

        }