private void Frm_Print_Report_Load(object sender, EventArgs e)
        {
            try
            {
                lbl_Name.Text    = Properties.Settings.Default.Name.ToString();
                Lbl_Number.Text  = Properties.Settings.Default.Number.ToString();
                Lbl_Email.Text   = Properties.Settings.Default.Email.ToString();
                Lbl_Time.Text    = Convert.ToString(DateTime.Now.ToString("ss : mm : hh  tt"));
                Lbl_Histort.Text = Convert.ToString(DateTime.Now.ToString("dd / MM / yyyy"));

                Fill_Details_Visiting();
                Fill_Count();
                Fill_Chronic();
                Fill_Doctor_Cost();
                Fill_Details_Paient();
                DGV_Reports.ClearSelection();
                DGV_Chronic.ClearSelection();
            }
            catch (Exception ex) { }
        }
Esempio n. 2
0
        private void Com_RPaient_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                if (Convert.ToInt32(Com_RPaient.SelectedValue) != 0)
                {
                    MTxt_Birthday.Visible = true;
                    Com_Patient           = Convert.ToInt32(Com_RPaient.SelectedValue);
                }
                Fill_Details_Visiting();
                Fill_Count();
                Fill_Chronic();
                Fill_Doctor_Cost();
                Fill_Details_Paient();
                Btn_PReport.Enabled = true;
                DGV_Chronic.ClearSelection();
                DGV_Reports.ClearSelection();
            }
            catch (Exception ex) { }

            Lbl_Doctor.Focus();
        }