示例#1
0
    private void BindDoctorList()
    {
        string str = this.Session["SendPatientToDoctor"].ToString();

        if (str.ToLower() == "false")
        {
            Bill_Sys_Calender _bill_Sys_Calender = new Bill_Sys_Calender();
            DataSet           doctorlList        = _bill_Sys_Calender.GetDoctorlList(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            this.grdDoctor.DataSource = doctorlList;
            this.grdDoctor.DataBind();
        }
        else if (str.ToLower() == "true")
        {
            Bill_Sys_Event_BO objDocList = new Bill_Sys_Event_BO();
            DataSet           dsDoctor   = objDocList.GetDoctorlList(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            grdDoctor.DataSource = dsDoctor;
            grdDoctor.DataBind();
        }
    }
示例#2
0
    private void BindDoctorList()
    {
        string str = this.Session["SendPatientToDoctor"].ToString();

        if (str.ToLower() != "false")
        {
            if (str.ToLower() == "true")
            {
                Bill_Sys_Event_BO billSysEventBO = new Bill_Sys_Event_BO();
                DataSet           doctorlList    = billSysEventBO.GetDoctorlList(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                this.grdDoctor.DataSource = doctorlList;
                this.grdDoctor.DataBind();
            }
            return;
        }
        else
        {
            Bill_Sys_Calender billSysCalender = new Bill_Sys_Calender();
            DataSet           dataSet         = billSysCalender.GetDoctorlList(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            this.grdDoctor.DataSource = dataSet;
            this.grdDoctor.DataBind();
            return;
        }
    }