Exemple #1
0
        private void frmConsultation_Load(object sender, EventArgs e)
        {
            //BEGIN GET MEDICINE
            cmbMedicine.DataSource    = _bll.getMedicine();
            cmbMedicine.DisplayMember = "genericName";
            cmbMedicine.ValueMember   = "genericId";
            //END

            //BEGIN GET DISPOSITION
            cmbDisposition.DataSource    = _bll.getDisposition();
            cmbDisposition.DisplayMember = "disposition";
            cmbDisposition.ValueMember   = "dispositionId";
            //END

            //BEGIN GET DIAGNOSIS
            cmbDiagnosis.DataSource    = _bll.getDiagnosis();
            cmbDiagnosis.DisplayMember = "diag_desc";
            cmbDiagnosis.ValueMember   = "diag_code";
            //END

            //BEGIN GET COMPLAINTS
            cmbComplaint.DataSource    = compBusiness.getComplaint();
            cmbComplaint.DisplayMember = "complaint";
            cmbComplaint.ValueMember   = "complaint";
            //END

            if (disposition != "" || disposition != null)
            {
                cmbDisposition.Text = disposition;
            }
            dtpTimeOut.Text     = DateTime.Now.ToString("MM/dd/yyyy");
            dtpTimeOutTime.Text = DateTime.Now.ToString("HH:mm:ss tt");
            AcceptButton        = btnSaveConsultation;
        }
Exemple #2
0
        private void frmConsultation_Load(object sender, EventArgs e)
        {
            //BEGIN GET MEDICINE
            cmbMedicine.DataSource    = _bll.getMedicine();
            cmbMedicine.DisplayMember = "genericName";
            cmbMedicine.ValueMember   = "genericId";
            //END

            //BEGIN GET DISPOSITION
            cmbDisposition.DataSource    = _bll.getDisposition();
            cmbDisposition.DisplayMember = "disposition";
            cmbDisposition.ValueMember   = "dispositionId";
            //END

            //BEGIN GET DIAGNOSIS
            cmbDiagnosis.DataSource    = _bll.getDiagnosis();
            cmbDiagnosis.DisplayMember = "diag_desc";
            cmbDiagnosis.ValueMember   = "diag_code";
            //END
        }