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"); } }
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 + "#"); }
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 + "#"); }
private void GetNextTokenNumber() { this.lblCurrentTokenNumber.Text = pbll.GetNextTokenNumber().ToString("00000"); }