예제 #1
0
        private void btnExistingToken_Click(object sender, EventArgs e)
        {
            FrmExistingToken frm = new FrmExistingToken();

            frm.Reprint = true;
            frm.ShowDialog();
            if (frm.pr != null)
            {
                txtExistingToken.Text = frm.pr.TokenNumber.ToString();

                txtExistingToken.Visible = true;

                txtPateintRegistrationNumber2nd.Text = frm.pr.Patient.RegistrationNumber;
                dtpPatientRegistration2nd.Value      = frm.pr.Patient.RegistrationDate;
                txtPatientFirstName2nd.Text          = frm.pr.Patient.FirstName;
                txtPatientLastName2nd.Text           = frm.pr.Patient.LastName;
                txtPatientCNIC2nd.Text    = frm.pr.Patient.NIC;
                txtPatientAddress2nd.Text = frm.pr.Patient.Address;
            }
            else
            {
                txtExistingToken.Text    = "0";
                txtExistingToken.Visible = false;
            }
        }
예제 #2
0
 private void btnThirdExistingToken_Click(object sender, EventArgs e)
 {
     frm3rd         = new FrmExistingToken();
     frm3rd.Reprint = true;
     frm3rd.ShowDialog();
     if (frm3rd.pr != null)
     {
         prCancel = frm3rd.pr;
         PopulateExistingToken3rd();
     }
 }
예제 #3
0
        private void btnThirdExistingToken_Click(object sender, EventArgs e)
        {
            frm3rd         = new FrmExistingToken();
            frm3rd.Reprint = true;
            frm3rd.ShowDialog();
            if (frm3rd.pr != null)
            {
                prCancel = frm3rd.pr;
                PopulateExistingToken3rd();
                if (lbxInjection.Items.Count > 0)
                {
                    chxSyringThird.Checked = false;
                    chxSyringThird.Visible = true;
                }
                //txtThirdExistingToken.Text = frm.pr.TokenNumber.ToString();
                //txtThirdExistingToken.Visible = true;
                //txtThirdPatientRegistrationNumber.Text = frm.pr.Patient.RegistrationNumber;
                //dtpThirdPatientRegistrationDate.Value = frm.pr.Patient.RegistrationDate;
                //txtThirdFirstName.Text = frm.pr.Patient.FirstName;
                //txtThirdLastName.Text = frm.pr.Patient.LastName;
                //txtThirdCNIC.Text = frm.pr.Patient.NIC;
                //txtThirdAddress.Text = frm.pr.Patient.Address;
                //medications = new InjectionLabTestBLL().GetMedicineIssued(frm.pr);
                //assignedLabtest = new InjectionLabTestBLL().GetLabTestAssignedUnPaid(frm.pr);
                //alwaysPaid = medications.Where(inj => inj.IsAlwaysPaid == true).ToList<LabTest>();
                //rs10= medications.Where(rs => rs.IsRsTenInjection == true).ToList<LabTest>();
                //List<LabTest> free = medications.Where(f => f.IsAlwaysPaid != true && f.IsRsTenInjection != true).ToList<LabTest>();
                ////clear paid medicine from previous entries
                //this.lbxPaidMedicine.Items.Clear();
                //foreach (LabTest item in alwaysPaid)
                //{
                //    this.lbxPaidMedicine.Items.Add(item);
                //}
                ////clear rs 10 injection from previous entries
                //this.lbxInjection.Items.Clear();
                //foreach (LabTest item in rs10)
                //{
                //    item.CurrentAmount = 10;
                //    this.lbxInjection.Items.Add(item);
                //}
                //if (this.lbxInjection.Items.Count > 0)
                //    this.txtThirdInjectionTotal.Text = (10 * lbxInjection.Items.Count).ToString();
                //else
                //    this.txtThirdInjectionTotal.Text = "0";

                ////clear free medicine previous entries
                //this.lbxFreeMedicine.Items.Clear();
                //foreach (LabTest lt in free)
                //{
                //    this.lbxFreeMedicine.Items.Add(lt);
                //}

                //this.lbxLabTest.Items.Clear();
                //foreach (LabTest item in assignedLabtest)
                //{
                //    this.lbxLabTest.Items.Add(item);
                //}
                //this.txtThirdFreeTotal.Text = "0";
                //CalculateCashRecv3nd();
            }
        }
예제 #4
0
        private void btnExistingToken_Click(object sender, EventArgs e)
        {
            FrmExistingToken frm = new FrmExistingToken();

            frm.Reprint = true;
            frm.ShowDialog();
            if (frm.pr != null)
            {
                txtExistingToken.Text                = frm.pr.TokenNumber.ToString();
                txtExistingToken.Visible             = true;
                txtPateintRegistrationNumber2nd.Text = frm.pr.Patient.RegistrationNumber;
                dtpPatientRegistration2nd.Value      = frm.pr.Patient.RegistrationDate;
                txtPatientFirstName2nd.Text          = frm.pr.Patient.FirstName;
                txtPatientLastName2nd.Text           = frm.pr.Patient.LastName;
                txtPatientCNIC2nd.Text               = frm.pr.Patient.NIC;
                txtPatientAddress2nd.Text            = frm.pr.Patient.Address;
                //Prescribed Medicines
                //  lstLabTest.Items.Clear();
                //  txtCashRecieved.Clear();
                //  medications = new InjectionLabTestBLL().GetMedicineIssued(frm.pr);
                //  assignedLabtest = new InjectionLabTestBLL().GetLabTestAssignedUnPaid(frm.pr);
                //  alwaysPaid = medications.Where(inj => inj.IsAlwaysPaid == true).ToList<LabTest>();
                //  rs10 = medications.Where(rs => rs.IsRsTenInjection == true).ToList<LabTest>();
                //  free = medications.Where(f => f.IsAlwaysPaid != true && f.IsRsTenInjection != true).ToList<LabTest>();
                //  //clear paid medicine from previous entries
                // // this.lbxPaidMedicine.Items.Clear();
                //  foreach (LabTest item in alwaysPaid)
                //  {
                //      lstLabTest.Items.Add(item);
                //      txtSecondPaidTotal.Text += item.CurrentAmount.ToString();
                //  }
                //  //clear rs 10 injection from previous entries
                // // this.lbxInjection.Items.Clear();
                //  foreach (LabTest item in rs10)
                //  {
                //      item.CurrentAmount = 10;
                //      this.lstLabTest.Items.Add(item);
                //      txtSecondInjTotal.Text+=(10 * item.CurrentAmount);
                //  }
                //  //if (this.lbxPrescribedMedicines.Items.Count > 0)
                //  //    this.txtFee.Text = (10 * lbxInjection.Items.Count).ToString();
                //  //else
                //  //    this.txtThirdInjectionTotal.Text = "0";

                //  //clear free medicine previous entries
                //  //this.lbxFreeMedicine.Items.Clear();
                //  foreach (LabTest lt in free)
                //  {
                //      this.lstLabTest.Items.Add(lt);
                //  }

                ////  this.lbxLabTest.Items.Clear();
                //  foreach (LabTest item in assignedLabtest)
                //  {
                //      this.lstLabTest.Items.Add(item);
                //  }
                //CalculateCashRecv2nd2();
                //this.txtThirdFreeTotal.Text = "0";
                //End Of Prescribed Medicines
            }
            else
            {
                txtExistingToken.Text    = "0";
                txtExistingToken.Visible = false;
            }
        }