private void tsReprintToken_Click(object sender, EventArgs e) { if (tcPatientRegistration.SelectedTab == tpSecondTurn) { frm.Reprint = false; frm.ShowDialog(); if (frm.inLb != null) { if (frm.inLb.IsInjectionToken == true) { PrintPreviewInjection(false, frm.inLb); } else { PrintPreviewLab(false, frm.inLb); } } } else if (tcPatientRegistration.SelectedTab == tpFirstTurn) { frm.Reprint = true; frm.ShowDialog(); if (frm.pr != null) { PrintPreview(false, frm.pr); } } }
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; } }
private void tsReprintToken_Click(object sender, EventArgs e) { //////////////////////////////////////////////////////////////////////////////////////// InjectionLabTest inLb = new InjectionLabTest(); PrintDuplicate = true; //frm3rdreprnt.Reprint = true; frm3rdreprnt.ShowDialog(); if (frm3rdreprnt.inLb != null) { // assignedLabtest = new InjectionLabTestBLL().GetLabTestAssignedUnPaid3(frm3rdreprnt.inLb); // foreach (var item in assignedLabtest) // { // if (frm3rdreprnt.inLb.Type == PatientPayType.General) // frm3rdreprnt.inLb.CashReceived += Convert.ToDouble(item.General); // if (frm3rdreprnt.inLb.Type == PatientPayType.YCOD) // frm3rdreprnt.inLb.CashReceived += Convert.ToDouble(item.YCDO); // if (frm3rdreprnt.inLb.Type == PatientPayType.Poor) // frm3rdreprnt.inLb.CashReceived += Convert.ToDouble(item.Poor); // if (frm3rdreprnt.inLb.Type == PatientPayType.Deserving) // frm3rdreprnt.inLb.CashReceived += Convert.ToDouble(item.Deserving); // } //frm3rdreprnt.inLb.AssignedLabTest = assignedLabtest; //assignedLabtest = frm3rdreprnt.inLb.Tests.Where(t => t.IsMedicine == false).ToList<LabTest>(); frm3rdreprnt.inLb.AssignedLabTest = frm3rdreprnt.inLb.Tests.Where(t => t.IsMedicine == false).ToList <LabTest>(); frm3rdreprnt.inLb.Tests = frm3rdreprnt.inLb.Tests.Where(t => t.IsMedicine == true).ToList <LabTest>(); PrintPreviewLabandInj(false, frm3rdreprnt.inLb); } ////////////////////////////////////////////////////////////////////////////////////// }
private void toolStripButton2_Click(object sender, EventArgs e) { frm.doctor = true; frm.ShowDialog(); if (frm.pr != null) { prCancel = frm.pr; PopulateExistingToken(); } }
private void btnThirdExistingToken_Click(object sender, EventArgs e) { frm3rd = new FrmExistingToken(); frm3rd.Reprint = true; frm3rd.ShowDialog(); if (frm3rd.pr != null) { prCancel = frm3rd.pr; PopulateExistingToken3rd(); } }
private void tsReprintToken_Click(object sender, EventArgs e) { PrintDuplicate = true; frm.Reprint = true; frm.ShowDialog(); if (frm.pr != null) { PrintPreview(false, frm.pr); } }
private void tsReprintToken_Click(object sender, EventArgs e) { PrintDuplicate = true; frm.Reprint = false; frm.ShowDialog(); if (frm.inLb != null) { if (frm.inLb.IsInjectionToken == true) { PrintPreviewInjection(false, frm.inLb); } else { PrintPreviewLab(false, frm.inLb); } } }
private void tsReprintToken_Click(object sender, EventArgs e) { PrintDuplicate = true; frm.Reprint = false; frm.ShowDialog(); if (frm.inLb != null) { if (frm.inLb.IsInjectionToken == true) { if (ModifierKeys == Keys.Control) { PrintPreviewInjection(true, frm.inLb); } else { PrintPreviewInjection(false, frm.inLb); } } else { frm.inLb.TokenBy = IsloginUser; frm.inLb.AssignedLabTest = frm.inLb.Tests.Where(t => t.IsMedicine == false).ToList <LabTest>(); frm.inLb.Tests = frm.inLb.Tests.Where(t => t.IsMedicine == true).ToList <LabTest>(); if (ModifierKeys == Keys.Control) { PrintPreviewLab(true, frm.inLb); } else { PrintPreviewLab(false, frm.inLb); } } } }
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(); } }
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; } }