Exemplo n.º 1
0
 public frmDoctors()
 {
     InitializeComponent();
     StartTimer();
     DoctorsLogic.PopulateListBox(listbxWaitingQueue);
     chkEnableScanTime.CheckState = CheckState.Unchecked;
     dtpScanTime.Enabled          = false;
 }
Exemplo n.º 2
0
        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            label3.Text = dt.Rows[listBox1.SelectedIndex][1].ToString();
            label4.Text = dt.Rows[listBox1.SelectedIndex][3].ToString();


            pictureBox.Image = ByteToImage(DoctorsLogic.GetPhoto(dt.Rows[listBox1.SelectedIndex][0].ToString()));
            pictureBox.Refresh();
        }
Exemplo n.º 3
0
 private void BtnEnterPatient_Click(object sender, EventArgs e)
 {
     //reset textboxes
     ValidationMethods.ClearTextBoxes(this.Controls);
     cmbxCategory.DataSource = Category.getCategories_DropDownList();
     //add enter time
     /*0 patient id,1 patient name,2 reserve time,3 reception time,4 current visit notes,5 category name,*/
     //show details of patient
     DoctorsLogic.EnterPatient(listbxWaitingQueue, txtPatientID, txtPatientName, dtpReserveTime, dtpReceptionTime, txtCurrentVisitNotes, cmbxCategory);
 }
Exemplo n.º 4
0
        public frmAttachAdd(string attachid)
        {
            InitializeComponent();
            comboBox1.SelectedIndex = 0;
            AttachID = attachid;
            DataTable dt = DataAccessLayer.DataAccessLayer.GetDataTableFast("Select Attachment_Name,Attachment_Notes,Attachment_Type from Attachments where ID='" + AttachID + "'");

            textBox1.Text     = dt.Rows[0][0].ToString();
            textBox2.Text     = dt.Rows[0][1].ToString();
            comboBox1.Text    = dt.Rows[0][2].ToString();
            pictureBox1.Image = ByteToImage(DoctorsLogic.GetPhoto(attachid));
        }
Exemplo n.º 5
0
        private void BtnSave_Click(object sender, EventArgs e)
        {
            if (chkEnableScanTime.Checked)
            {
                Doctor_RegisterVisit_Out(txtPatientName.Text, txtNextVisitNotes.Text, txtCurrentVisitNotes.Text, dtpScanTime.Value.ToString("yyyy-MM-dd"));
            }
            else
            {
                Doctor_RegisterVisit_Out(txtPatientName.Text, txtNextVisitNotes.Text, txtCurrentVisitNotes.Text, null);
            }
            DoctorsLogic.PopulateListBox(listbxWaitingQueue);
            /*************saving picture****************/

            /*************saving picture****************/
            ValidationMethods.ClearTextBoxes(this.Controls);
        }
Exemplo n.º 6
0
 private void RefreshTimer_Tick(object sender, EventArgs e)
 {
     DoctorsLogic.PopulateListBox(listbxWaitingQueue);
 }