private void frmPatientRegistration_Load(object sender, EventArgs e)
        {
            defaultSyring = new LabTestBLL().GetSyring();
            try
            {
                //initialize the cash received value by token value
                this.txtCashRecieved.Text = ((int)TokenType.General).ToString();

                //load the rooms
                this.lstRooms.DataSource = rbll.GetRooms();

                //set the current Date
                this.lblTokenDate.Text = System.DateTime.Today.ToString("dd/MM/yyyy");

                //set the current Token Number
                GetNextTokenNumber();

                //Create Unique Patient Registration Number
                AssignPatientRegistrationNumber(pbll.GetNextTokenNumber());

                //assign focus to patient first Name
                this.txtPatientFirstName.Focus();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Load Patient Registration Screen");
            }
        }
예제 #2
0
        private void NextTokenData()
        {
            long nextTokenNumber = pbll.GetNextTokenNumber(CurrentRoom);

            pr = pbll.GetPatientDetail(nextTokenNumber, CurrentRoom);
            this.lblCurrentTokenNumber.Text = nextTokenNumber.ToString("0000");
            PopulatePatientDetails(pr);
            // comm.WriteDataWithoutDisplay("*" + this.lblCurrentTokenNumber.Text + "#");
        }
예제 #3
0
        private void NextTokenData()
        {
            rbOneDay.Checked = true;
            lstLabTest.Items.Clear();
            lstLabTestId.Items.Clear();
            long nextTokenNumber = pbll.GetNextTokenNumber(CurrentRoom);

            pr = pbll.GetPatientDetail(nextTokenNumber, CurrentRoom);
            this.lblCurrentTokenNumber.Text = nextTokenNumber.ToString("00000");
            PopulatePatientDetails(pr);
            // comm.WriteDataWithoutDisplay("*" + this.lblCurrentTokenNumber.Text + "#");
        }
예제 #4
0
 private void GetNextTokenNumber()
 {
     this.lblCurrentTokenNumber.Text = pbll.GetNextTokenNumber().ToString("00000");
 }