Beispiel #1
0
    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        switch (Convert.ToInt32(DropDownList1.SelectedValue))
        {
        case 1:
            GetAppointmentInvoiceBL objGetAppointmentInvoiceBL = new GetAppointmentInvoiceBL();
            ds = objGetAppointmentInvoiceBL.GetAppointmentInvoice();
            GridView1.DataSource = ds;
            GridView1.DataBind();
            MultiView1.ActiveViewIndex = 0;
            break;

        case 2:
            GetOPDMedicalTestRegistrationInvoiceBL objGetIPDMedicalTestRegistrationInvoiceBL = new GetOPDMedicalTestRegistrationInvoiceBL();
            ds = objGetIPDMedicalTestRegistrationInvoiceBL.GetOPDMedicalTestRegistrationInvoice();
            GridView2.DataSource = ds;
            GridView2.DataBind();
            MultiView1.ActiveViewIndex = 1;
            break;

        case 3:
            GetIPDRegistrationReportBL objGetIPDRegistrationReportBL = new GetIPDRegistrationReportBL();
            ds = objGetIPDRegistrationReportBL.GetIPDRegistrationReport();
            GridView3.DataSource = ds;
            GridView3.DataBind();
            MultiView1.ActiveViewIndex = 2;
            break;
        }
    }
    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        switch(Convert.ToInt32(DropDownList1.SelectedValue))
        {
            case 1:
                GetAppointmentInvoiceBL objGetAppointmentInvoiceBL = new GetAppointmentInvoiceBL();
                ds = objGetAppointmentInvoiceBL.GetAppointmentInvoice();
                GridView1.DataSource = ds;
                GridView1.DataBind();
                MultiView1.ActiveViewIndex = 0;
                break;

            case 2:
                GetOPDMedicalTestRegistrationInvoiceBL objGetIPDMedicalTestRegistrationInvoiceBL = new GetOPDMedicalTestRegistrationInvoiceBL();
                ds = objGetIPDMedicalTestRegistrationInvoiceBL.GetOPDMedicalTestRegistrationInvoice();
                GridView2.DataSource = ds;
                GridView2.DataBind();
                MultiView1.ActiveViewIndex = 1;
                break;

            case 3:
                GetIPDRegistrationReportBL objGetIPDRegistrationReportBL = new GetIPDRegistrationReportBL();
                ds = objGetIPDRegistrationReportBL.GetIPDRegistrationReport();
                GridView3.DataSource = ds;
                GridView3.DataBind();
                MultiView1.ActiveViewIndex = 2;
                break;
        }
    }