Exemple #1
0
        private void GetIpBillInfo()
        {
            DataTable dt  = new BillCheckingManagerNICU().GetConsultBill(patientID);
            DataTable dt1 = new BillCheckingManagerNICU().GetPharmacyBill(patientID);
            DataTable dt2 = new BillCheckingManagerNICU().GetPathologyBill(patientID);
            DataTable dt3 = new BillCheckingManagerNICU().GetHospitalServiceBill(patientID);
            DataTable dt4 = new BillCheckingManagerNICU().GetOTServiceBill(patientID);
            DataTable dt5 = new BillCheckingManagerNICU().GetOTMedicineBill(patientID);

            gridControl5.DataSource = dt;
            gridControl2.DataSource = dt1;
            gridControl3.DataSource = dt2;
            gridControl4.DataSource = dt3;
            gridControl6.DataSource = dt4;
            gridControl7.DataSource = dt5;
            caluclation(gridView5, "SubTotal", txtConsultTotal);
            caluclation(gridView2, "SubTotal", txtPharmacyTotal);
            caluclation(gridView3, "subTotal", txtPathologyTotal);
            caluclation(gridView4, "subTotal", txtHospitalToal);
            caluclation(gridView6, "subTotal", txtTotalOTService);
            caluclation(gridView7, "subTotal", txtOTMedicineTotal);
            txtTotalBill.Text =
                (Convert.ToDecimal(txtConsultTotal.Text) + Convert.ToDecimal(txtPathologyTotal.Text) + Convert.ToDecimal(txtTotalOTService.Text) + Convert.ToDecimal(txtOTMedicineTotal.Text) +
                 Convert.ToDecimal(txtPharmacyTotal.Text) + Convert.ToDecimal(txtHospitalToal.Text)).ToString("0.00");

            //  gridControl4.DataSource = dt3;
        }
Exemple #2
0
        private void btnPrintView_Click(object sender, EventArgs e)
        {
            //rdlcIndoorPatientFinalBilling.rdlc
            ReportModel model = new ReportModel();

            model.Parameters = new List <ReportParameter> {
                new ReportParameter("dtFrom", FromDate.Value.ToString("d")),
                new ReportParameter("dtTo", ToDate.Value.ToString("d")),
                new ReportParameter("Company", model.Company.ToUpper()),
                new ReportParameter("Address", model.Address),
                new ReportParameter("reportName", reportName),
            };
            model.ReportDataSource.Name = "IndoorPatientFinalBilling";

            chkValue();
            DataTable dt = new BillCheckingManagerNICU().GetNICUBILLInfo(FromDate.Value, ToDate.Value, check);

            model.ReportDataSource.Value = dt;

            model.ReportPath = "GHospital_Care.Report.rdlcNICUPatientFinalBilling.rdlc";
            model.Show(model, this);
        }
Exemple #3
0
        private void GetIpInfo()
        {
            chkValue();
            DataTable dt = new BillCheckingManagerNICU().GetNICUBILLInfo(FromDate.Value, ToDate.Value, check);

            gridControl1.DataSource = dt;
            Totalcaluclation(gridView1, "C_SubTotal", txtConsult);
            Totalcaluclation(gridView1, "P_SubTotal", txtPharmacy);
            Totalcaluclation(gridView1, "path_Subtotal", txtPathology);
            Totalcaluclation(gridView1, "H_SubTotal", txtHospital);
            Totalcaluclation(gridView1, "OTS_SubTotal", txtOtService);
            Totalcaluclation(gridView1, "OTM_SubTotal", txtOTmedicine);
            Totalcaluclation(gridView1, "DisCount", txtTotalDiscount);
            Totalcaluclation(gridView1, "ServiceCharge", txtServiceCharge);
            Totalcaluclation(gridView1, "A_SubTotal", txtAdvance);
            Totalcaluclation(gridView1, "PaidAmount", txtPaid);
            Totalcaluclation(gridView1, "BC_SubTotal", txtBedCabin);
            double totalBill = Convert.ToDouble(txtConsult.Text) + Convert.ToDouble(txtPharmacy.Text) + Convert.ToDouble(txtServiceCharge.Text) +
                               Convert.ToDouble(txtPathology.Text) + Convert.ToDouble(txtHospital.Text) + Convert.ToDouble(txtBedCabin.Text) +
                               Convert.ToDouble(txtOtService.Text) + Convert.ToDouble(txtOTmedicine.Text);

            TxtAllTotal.Text  = (totalBill).ToString("0.00");
            txtNetAmount.Text = (totalBill - Convert.ToDouble(txtTotalDiscount.Text) - Convert.ToDouble(txtAdvance.Text) - Convert.ToDouble(txtPaid.Text)).ToString("0.00");
        }