private void GetData() { ratingText.Text = rateText[0]; //using (GetEmployerConnString gecs = new GetEmployerConnString(EmployerID)) //{ // gecs.GetFrontEndData(); // if (gecs.Tables.Count > 0 && gecs.Tables[0].Rows.Count > 0) // { // ThisSession.CnxString = gecs.ConnectionString; using (sc_GetProviderRatings gpr = new sc_GetProviderRatings()) { gpr.Category = "mvp"; gpr.CCHID = this.PrimaryCCHID; gpr.EmployerID = this.EmployerID; gpr.GetData(); if (gpr.Tables.Count >= 1 && gpr.Tables[0].Rows.Count > 0) { Providers = gpr.Tables[0]; ratingText.Text = rateText[1]; } if (gpr.Tables.Count >= 2 && gpr.Tables[1].Rows.Count > 0) { ProviderAvatars = gpr.Tables[1]; } } //} rptSatisfaction.DataSource = Providers; rptSatisfaction.DataBind(); //} }
private void GetData() { ratingText.Text = rateText[0]; //using (GetEmployerConnString gecs = new GetEmployerConnString(EmployerID)) //{ // gecs.GetFrontEndData(); // if (gecs.Tables.Count > 0 && gecs.Tables[0].Rows.Count > 0) // { // ThisSession.CnxString = gecs.ConnectionString; using (sc_GetProviderRatings gpr = new sc_GetProviderRatings()) { gpr.Category = "mvp"; gpr.CCHID = this.PrimaryCCHID; gpr.EmployerID = this.EmployerID; gpr.GetData(); if (gpr.Tables.Count >= 1 && gpr.Tables[0].Rows.Count > 0) { Providers = gpr.Tables[0]; ratingText.Text = rateText[1]; } if (gpr.Tables.Count >= 2 && gpr.Tables[1].Rows.Count > 0) ProviderAvatars = gpr.Tables[1]; } //} rptSatisfaction.DataSource = Providers; rptSatisfaction.DataBind(); //} }