Esempio n. 1
0
        protected override TableRowContainter GetHeader(XElement columns)
        {
            var header = new TableRowContainter("thead");

            var row = new TableRow();

            row.Classes.Add("header");
            int columnPosition = 0;

            for (int i = 0; i < columns.Elements("col").Count(); i++)
            {
                var column = columns.Elements("col").ElementAt(i);
                if (i >= 0 && i <= 1)
                {
                    var cell = new GuideHeaderCellCenterGrayFactory("th", column.Attribute("col_name").Value, columnPosition);
                    row.Cells.Add(cell);
                    columnPosition++;
                }
                else if (i >= 2)
                {
                    var cell = new GuideHeaderCellImageTextFactory("th", column.Attribute("col_name").Value, columnPosition);
                    row.Cells.Add(cell);
                    columnPosition++;
                }
            }
            header.Rows.Add(row);
            return(header);
        }
Esempio n. 2
0
        protected override TableRowContainter GetHeader(UserViewModel columns)
        {
            var header = new TableRowContainter("thead");

            var row  = new TableRow();
            var cell = new GuideHeaderCellCenterGrayFactory("th", "First Name", 0);

            row.Cells.Add(cell);

            cell = new GuideHeaderCellCenterGrayFactory("th", "Last Name", 0);
            row.Cells.Add(cell);

            cell = new GuideHeaderCellCenterGrayFactory("th", "Position", 0);
            row.Cells.Add(cell);

            cell = new GuideHeaderCellCenterGrayFactory("th", "Email", 0);
            row.Cells.Add(cell);

            cell = new GuideHeaderCellCenterGrayFactory("th", "Org", 0);
            row.Cells.Add(cell);

            cell = new GuideHeaderCellCenterGrayFactory("th", "Geo", 0);
            row.Cells.Add(cell);
            header.Rows.Add(row);

            return(header);
        }
Esempio n. 3
0
        protected override TableRowContainter GetHeader(XElement columns)
        {
            var header = new TableRowContainter("thead");

            var row1 = new TableRow();

            row1.Classes.Add("header header-1");
            var cell = new GuideHeaderCellCenterGrayFactory("th", "Nielsen Mapping Time Periods (444 Weeks)", 0, 3);

            row1.Cells.Add(cell);

            cell = new GuideHeaderCellCenterGrayFactory("th", "IRI Mapping Time Periods (445)", 1, 3);
            row1.Cells.Add(cell);
            header.Rows.Add(row1);

            var row2 = new TableRow();

            row2.Classes.Add("header header-2");
            cell = new GuideHeaderCellCenterGrayFactory("th", "Dec 10 reporting", 0, 3);
            row2.Cells.Add(cell);

            cell = new GuideHeaderCellCenterGrayFactory("th", "Dec 10 reporting", 1, 3);
            row2.Cells.Add(cell);
            header.Rows.Add(row2);

            return(header);
        }
Esempio n. 4
0
        protected override TableRowContainter GetHeader(XElement columns)
        {
            var header = new TableRowContainter("thead");

            var row = new TableRow();

            for (int i = 0; i < columns.Elements("col").Count(); i++)
            {
                var column = columns.Elements("col").ElementAt(i);
                var cell   = new GuideHeaderCellCenterGrayFactory("th", column.Attribute("col_name").Value, i);
                row.Cells.Add(cell);
            }
            header.Rows.Add(row);

            return(header);
        }