private void displayTeams() { DataTable dt = (DataTable)Session["MyTeams"]; ddlTeams.DataSource = dt; ddlTeams.DataValueField = dt.Columns[0].ColumnName; ddlTeams.DataTextField = dt.Columns[1].ColumnName; ddlTeams.DataBind(); //ddlTeams.Items.Insert(0, new ListItem("Please select a Team...", "")); _tablef.TeamID = Convert.ToInt32(ddlTeams.SelectedValue); Session["MyMetrics1"] = _tablef.displayTeamMetrics(); }
public static string PTDisplay() { SystemObjects.TableF _tablef = new SystemObjects.TableF(); TableF.MyMetric _mymetric = new TableF.MyMetric(); DataSet ds = new DataSet(); try { ds.Tables.Add(_tablef.displayTeamMetrics()); } catch (Exception ex) { } return(ds.GetXml()); }
public static string ManualDisplay(List <string> _arr) { SystemObjects.TableF _tablef = new SystemObjects.TableF(); TableF.MyMetric _mymetric = new TableF.MyMetric(); _tablef.TeamID = Convert.ToInt32(_arr[0].ToString()); DataSet ds = new DataSet(); try { ds.Tables.Add(_tablef.displayTeamMetrics()); } catch (Exception ex) { } return(ds.GetXml()); }
public static string ATODisplay(List<string> _arr) { SystemObjects.TableF _tablef = new SystemObjects.TableF(); TableF.MyMetric _mymetric = new TableF.MyMetric(); _tablef.TeamID = Convert.ToInt32(_arr[0].ToString()); _tablef.RateDate = Convert.ToDateTime(_arr[1].ToString()); DataSet ds = new DataSet(); try { ds.Tables.Add(_tablef.displayATOMetrics()); ds.Tables.Add(_tablef.displayTeamMetrics()); } catch (Exception ex) { } return ds.GetXml(); }
public static string PTDisplay() { SystemObjects.TableF _tablef = new SystemObjects.TableF(); TableF.MyMetric _mymetric = new TableF.MyMetric(); DataSet ds = new DataSet(); try { ds.Tables.Add(_tablef.displayTeamMetrics()); } catch (Exception ex) { } return ds.GetXml(); }