Beispiel #1
0
    public string DrawMyTable()
    {
        StringBuilder sb         = new StringBuilder();
        StringBuilder jsAddSites = new StringBuilder();

        sb.Append(DrawListTableStart(6, 18, "Institution|Matches", "|", "|", "450|150", "l|c"));
        Int64 OddRow = 0;

        DataIO        oDataIO = new DataIO();
        SqlDataReader dr      = oDataIO.DirectResultset();

        while (dr.Read())
        {
            OddRow = 1 - OddRow;
            sb.Append(DrawListTableRow("doLocalPersonSearch('" + DirectServiceURL() + "'," + dr["SiteID"] + ");", "doSiteHoverOver(" + dr["SiteID"].ToString() + ");", "doSiteHoverOut(" + dr["SiteID"].ToString() + ");", OddRow,
                                       dr["SiteName"].ToString() + "|" + "<div id='SITE_STATUS_" + dr["SiteID"].ToString() + "'><div class='siteresult' style='height:16px;'></div></div>",
                                       "|",
                                       "450|150",
                                       "l|c"));
            jsAddSites.AppendLine("var t = {}; t.SiteID = " + dr["SiteID"] + "; t.ResultPopType = ''; t.ResultDetailsURL = ''; t.FSID = ''; fsObject.push(t);");
        }
        dr.Dispose();
        sb.Append(DrawListTableEnd());

        sb.Append("<script>");
        sb.Append(jsAddSites.ToString());
        sb.Append("</script>");

        return(sb.ToString());
    }
    public string DrawMyTable()
    {
        StringBuilder sb = new StringBuilder();
            StringBuilder jsAddSites = new StringBuilder();
            sb.Append(DrawListTableStart(6, 18, "Institution|Matches", "|", "|", "450|150", "l|c"));
            Int64 OddRow = 0;

            DataIO oDataIO = new DataIO();
            SqlDataReader dr = oDataIO.DirectResultset();

            while (dr.Read())
            {
                OddRow = 1 - OddRow;
                sb.Append(DrawListTableRow("doLocalPersonSearch('" + DirectServiceURL() + "'," + dr["SiteID"] + ");", "doSiteHoverOver(" + dr["SiteID"].ToString() + ");", "doSiteHoverOut(" + dr["SiteID"].ToString() + ");", OddRow,
                    dr["SiteName"].ToString() + "|" + "<div id='SITE_STATUS_" + dr["SiteID"].ToString() + "'><div class='siteresult' style='height:16px;'></div></div>",
                    "|",
                    "450|150",
                    "l|c"));
                jsAddSites.AppendLine("var t = {}; t.SiteID = " + dr["SiteID"] + "; t.ResultPopType = ''; t.ResultDetailsURL = ''; t.FSID = ''; fsObject.push(t);");
            }
            dr.Dispose();
            sb.Append(DrawListTableEnd());

            sb.Append("<script>");
            sb.Append(jsAddSites.ToString());
            sb.Append("</script>");

            return sb.ToString();
    }